lint:fix all
This commit is contained in:
@@ -1,11 +1,12 @@
|
||||
<script setup lang="ts">
|
||||
import type { NavigationMenuItem } from '@nuxt/ui'
|
||||
|
||||
const route = useRoute()
|
||||
const items = ref<NavigationMenuItem[][]>([
|
||||
[
|
||||
{
|
||||
label: 'Guide',
|
||||
icon: 'lucide-book-open',
|
||||
icon: 'lucide-book-open'
|
||||
},
|
||||
{
|
||||
label: 'Composables',
|
||||
@@ -74,7 +75,7 @@ const items = ref<NavigationMenuItem[][]>([
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
]
|
||||
// [
|
||||
// {
|
||||
// label: 'GitHub',
|
||||
@@ -94,5 +95,10 @@ const items = ref<NavigationMenuItem[][]>([
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<UNavigationMenu orientation="vertical" :items="items" class="w-full justify-center" color="primary" />
|
||||
<UNavigationMenu
|
||||
orientation="vertical"
|
||||
:items="items"
|
||||
class="w-full justify-center"
|
||||
color="primary"
|
||||
/>
|
||||
</template>
|
||||
|
@@ -17,28 +17,28 @@ const items = [
|
||||
toast.add({
|
||||
title: 'Markdown link copied to clipboard',
|
||||
icon: 'lucide-check-circle',
|
||||
color: 'success',
|
||||
color: 'success'
|
||||
})
|
||||
},
|
||||
}
|
||||
},
|
||||
{
|
||||
label: 'View as Markdown',
|
||||
icon: 'simple-icons:markdown',
|
||||
target: '_blank',
|
||||
to: markdownLink.value,
|
||||
to: markdownLink.value
|
||||
},
|
||||
{
|
||||
label: 'Open in ChatGPT',
|
||||
icon: 'simple-icons:openai',
|
||||
target: '_blank',
|
||||
to: `https://chatgpt.com/?hints=search&q=${encodeURIComponent(`Read ${markdownLink.value} so I can ask questions about it.`)}`,
|
||||
to: `https://chatgpt.com/?hints=search&q=${encodeURIComponent(`Read ${markdownLink.value} so I can ask questions about it.`)}`
|
||||
},
|
||||
{
|
||||
label: 'Open in Claude',
|
||||
icon: 'simple-icons:anthropic',
|
||||
target: '_blank',
|
||||
to: `https://claude.ai/new?q=${encodeURIComponent(`Read ${markdownLink.value} so I can ask questions about it.`)}`,
|
||||
},
|
||||
to: `https://claude.ai/new?q=${encodeURIComponent(`Read ${markdownLink.value} so I can ask questions about it.`)}`
|
||||
}
|
||||
]
|
||||
</script>
|
||||
|
||||
@@ -50,7 +50,7 @@ const items = [
|
||||
color="neutral"
|
||||
variant="outline"
|
||||
:ui="{
|
||||
leadingIcon: [copied ? 'text-primary' : 'text-neutral', 'size-3.5'],
|
||||
leadingIcon: [copied ? 'text-primary' : 'text-neutral', 'size-3.5']
|
||||
}"
|
||||
@click="copy(markdownLink)"
|
||||
/>
|
||||
@@ -61,10 +61,10 @@ const items = [
|
||||
:content="{
|
||||
align: 'end',
|
||||
side: 'bottom',
|
||||
sideOffset: 8,
|
||||
sideOffset: 8
|
||||
}"
|
||||
:ui="{
|
||||
content: 'w-48',
|
||||
content: 'w-48'
|
||||
}"
|
||||
>
|
||||
<UButton
|
||||
|
Reference in New Issue
Block a user