Skip to content

Commit 5cc392b

Browse files
committed
chore: fix lint and build errors
1 parent d21619d commit 5cc392b

File tree

15 files changed

+149
-130
lines changed

15 files changed

+149
-130
lines changed

client/pages/index.vue

Lines changed: 25 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!-- eslint-disable max-len -->
1+
<!-- eslint-disable vue/multi-word-component-names -->
22
<script setup lang="ts">
33
import { useDevtoolsClient } from '@nuxt/devtools-kit/iframe-client'
44
@@ -7,20 +7,38 @@ const client = useDevtoolsClient()
77

88
<template>
99
<div class="relative n-bg-base flex flex-col h-screen">
10-
<header class="p4 flex items-center justify-between hover:bg-active p-2" border="b base">
10+
<header
11+
class="p4 flex items-center justify-between hover:bg-active p-2"
12+
border="b base"
13+
>
1114
<div class="flex items-center gap-4">
1215
<h2 class="opacity-60 font-bold">
1316
CodeMirror DevTools
1417
</h2>
1518
</div>
1619
<div class="flex items-center gap-2">
17-
<UButton variant="ghost" color="white" size="sm" icon="i-carbon-document" target="_blank"
18-
to="https://codemirror.net/docs/ref/" />
19-
<UButton variant="ghost" color="white" size="sm" icon="i-iconoir-github" target="_blank"
20-
to="https://github.com/ThimoDEV/nuxt-codemirror" />
20+
<UButton
21+
variant="ghost"
22+
color="white"
23+
size="sm"
24+
icon="i-carbon-document"
25+
target="_blank"
26+
to="https://codemirror.net/docs/ref/"
27+
/>
28+
<UButton
29+
variant="ghost"
30+
color="white"
31+
size="sm"
32+
icon="i-iconoir-github"
33+
target="_blank"
34+
to="https://github.com/ThimoDEV/nuxt-codemirror"
35+
/>
2136
</div>
2237
</header>
23-
<div v-if="client" class="flex flex-col gap-2 p-2">
38+
<div
39+
v-if="client"
40+
class="flex flex-col gap-2 p-2"
41+
>
2442
Connected to the client.
2543
</div>
2644
<div v-else>

docs/app/app.config.ts

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -2,36 +2,36 @@ export default defineAppConfig({
22
ui: {
33
colors: {
44
primary: 'green',
5-
neutral: 'slate'
6-
}
5+
neutral: 'slate',
6+
},
77
},
88
uiPro: {
99
footer: {
1010
slots: {
1111
root: 'border-t border-(--ui-border)',
12-
left: 'text-sm text-(--ui-text-muted)'
13-
}
14-
}
12+
left: 'text-sm text-(--ui-text-muted)',
13+
},
14+
},
1515
},
1616
seo: {
17-
siteName: 'Nuxt Codemirror'
17+
siteName: 'Nuxt Codemirror',
1818
},
1919
header: {
2020
title: 'Nuxt Codemirror',
2121
to: '/',
2222
logo: {
2323
alt: '',
2424
light: '',
25-
dark: ''
25+
dark: '',
2626
},
2727
search: true,
2828
colorMode: true,
2929
links: [{
3030
'icon': 'i-simple-icons-github',
3131
'to': 'https://github.com/ThimoDEV/nuxt-codemirror',
3232
'target': '_blank',
33-
'aria-label': 'GitHub'
34-
}]
33+
'aria-label': 'GitHub',
34+
}],
3535
},
3636
footer: {
3737
credits: `Copyright © ${new Date().getFullYear()}`,
@@ -40,23 +40,23 @@ export default defineAppConfig({
4040
'icon': 'i-simple-icons-nuxtdotjs',
4141
'to': 'https://nuxt.com',
4242
'target': '_blank',
43-
'aria-label': 'Nuxt Website'
43+
'aria-label': 'Nuxt Website',
4444
}, {
4545
'icon': 'i-simple-icons-discord',
4646
'to': 'https://discord.com/invite/ps2h6QT',
4747
'target': '_blank',
48-
'aria-label': 'Nuxt UI on Discord'
48+
'aria-label': 'Nuxt UI on Discord',
4949
}, {
5050
'icon': 'i-simple-icons-x',
5151
'to': 'https://x.com/nuxt_js',
5252
'target': '_blank',
53-
'aria-label': 'Nuxt on X'
53+
'aria-label': 'Nuxt on X',
5454
}, {
5555
'icon': 'i-simple-icons-github',
5656
'to': 'https://github.com/ThimoDEV/nuxt-codemirror',
5757
'target': '_blank',
58-
'aria-label': 'Nuxt Codemirror Module on GitHub'
59-
}]
58+
'aria-label': 'Nuxt Codemirror Module on GitHub',
59+
}],
6060
},
6161
toc: {
6262
title: 'Table of Contents',
@@ -67,18 +67,18 @@ export default defineAppConfig({
6767
icon: 'i-lucide-star',
6868
label: 'Star on GitHub',
6969
to: 'https://github.com/ThimoDEV/nuxt-codemirror',
70-
target: '_blank'
70+
target: '_blank',
7171
}, {
7272
icon: 'i-lucide-book-open',
7373
label: 'Nuxt UI Pro docs',
7474
to: 'https://ui.nuxt.com/getting-started/installation/pro/nuxt',
75-
target: '_blank'
75+
target: '_blank',
7676
}, {
7777
icon: 'i-simple-icons-nuxtdotjs',
7878
label: 'Purchase a license',
7979
to: 'https://ui.nuxt.com/pro/purchase',
80-
target: '_blank'
81-
}]
82-
}
83-
}
80+
target: '_blank',
81+
}],
82+
},
83+
},
8484
})

docs/app/app.vue

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,25 +3,25 @@ const { seo } = useAppConfig()
33
44
const { data: navigation } = await useAsyncData('navigation', () => queryCollectionNavigation('docs'))
55
const { data: files } = useLazyAsyncData('search', () => queryCollectionSearchSections('docs'), {
6-
server: false
6+
server: false,
77
})
88
99
useHead({
1010
meta: [
11-
{ name: 'viewport', content: 'width=device-width, initial-scale=1' }
11+
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
1212
],
1313
link: [
14-
{ rel: 'icon', href: '/favicon.ico' }
14+
{ rel: 'icon', href: '/favicon.ico' },
1515
],
1616
htmlAttrs: {
17-
lang: 'en'
18-
}
17+
lang: 'en',
18+
},
1919
})
2020
2121
useSeoMeta({
2222
titleTemplate: `%s - ${seo?.siteName}`,
2323
ogSiteName: seo?.siteName,
24-
twitterCard: 'summary_large_image'
24+
twitterCard: 'summary_large_image',
2525
})
2626
2727
provide('navigation', navigation)

docs/app/components/OgImage/OgImageDocs.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<script lang="ts" setup>
22
const props = withDefaults(defineProps<{ title?: string, description?: string, headline?: string }>(), {
33
title: 'title',
4-
description: 'description'
4+
description: 'description',
55
})
66
77
const title = computed(() => (props.title || '').slice(0, 60))

docs/app/components/TemplateMenu.vue

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,22 +4,22 @@
44
:modal="false"
55
:items="[{
66
label: `Starter`,
7-
to: 'https://ui-pro-starter.nuxt.dev/'
7+
to: 'https://ui-pro-starter.nuxt.dev/',
88
}, {
99
label: `Landing`,
10-
to: 'https://landing-template.nuxt.dev/'
10+
to: 'https://landing-template.nuxt.dev/',
1111
}, {
1212
label: `Docs`,
1313
to: 'https://docs-template.nuxt.dev/',
1414
color: 'primary',
1515
checked: true,
16-
type: 'checkbox'
16+
type: 'checkbox',
1717
}, {
1818
label: `SaaS`,
19-
to: 'https://saas-template.nuxt.dev/'
19+
to: 'https://saas-template.nuxt.dev/',
2020
}, {
2121
label: `Dashboard`,
22-
to: 'https://dashboard-template.nuxt.dev/'
22+
to: 'https://dashboard-template.nuxt.dev/',
2323
}]"
2424
:ui="{ content: 'w-(--reka-dropdown-menu-trigger-width) min-w-0' }"
2525
size="xs"
@@ -32,7 +32,7 @@
3232
class="-mb-[6px] font-semibold rounded-full truncate"
3333
:class="[open && 'bg-(--ui-primary)/15']"
3434
:ui="{
35-
trailingIcon: ['transition-transform duration-200', open ? 'rotate-180' : undefined].filter(Boolean).join(' ')
35+
trailingIcon: ['transition-transform duration-200', open ? 'rotate-180' : undefined].filter(Boolean).join(' '),
3636
}"
3737
/>
3838
</UDropdownMenu>

docs/app/error.vue

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
<!-- eslint-disable vue/multi-word-component-names -->
12
<script setup lang="ts">
23
import type { NuxtError } from '#app'
34
@@ -7,18 +8,18 @@ defineProps<{
78
89
useHead({
910
htmlAttrs: {
10-
lang: 'en'
11-
}
11+
lang: 'en',
12+
},
1213
})
1314
1415
useSeoMeta({
1516
title: 'Page not found',
16-
description: 'We are sorry but this page could not be found.'
17+
description: 'We are sorry but this page could not be found.',
1718
})
1819
1920
const { data: navigation } = await useAsyncData('navigation', () => queryCollectionNavigation('docs'))
2021
const { data: files } = useLazyAsyncData('search', () => queryCollectionSearchSections('docs'), {
21-
server: false
22+
server: false,
2223
})
2324
2425
provide('navigation', navigation)

docs/app/layouts/docs.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
<!-- eslint-disable vue/multi-word-component-names -->
12
<script setup lang="ts">
23
import type { ContentNavigationItem } from '@nuxt/content'
34

docs/app/pages/[...slug].vue

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1+
<!-- eslint-disable vue/multi-word-component-names -->
12
<script setup lang="ts">
23
import type { ContentNavigationItem } from '@nuxt/content'
34
import { findPageHeadline } from '#ui-pro/utils/content'
45
56
definePageMeta({
6-
layout: 'docs'
7+
layout: 'docs',
78
})
89
910
const route = useRoute()
@@ -17,23 +18,23 @@ if (!page.value) {
1718
1819
const { data: surround } = await useAsyncData(`${route.path}-surround`, () => {
1920
return queryCollectionItemSurroundings('docs', route.path, {
20-
fields: ['description']
21+
fields: ['description'],
2122
})
2223
})
2324
2425
useSeoMeta({
2526
title: page.value.seo.title,
2627
ogTitle: `${page.value.seo.title} - ${seo?.siteName}`,
2728
description: page.value.seo.description,
28-
ogDescription: page.value.seo.description
29+
ogDescription: page.value.seo.description,
2930
})
3031
3132
const headline = computed(() => findPageHeadline(navigation?.value, page.value))
3233
3334
defineOgImageComponent('Docs', {
3435
title: page.value.title,
3536
description: page.value.description,
36-
headline: headline.value
37+
headline: headline.value,
3738
})
3839
3940
const links = computed(() => {
@@ -43,7 +44,7 @@ const links = computed(() => {
4344
icon: 'i-lucide-external-link',
4445
label: 'Edit this page',
4546
to: `${toc.bottom.edit}/${page?.value?.stem}.${page?.value?.extension}`,
46-
target: '_blank'
47+
target: '_blank',
4748
})
4849
}
4950

docs/app/pages/index.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
<!-- eslint-disable vue/multi-word-component-names -->
12
<script setup lang="ts">
23
const { data: page } = await useAsyncData('index', () => queryCollection('landing').path('/').first())
34
if (!page.value) {
@@ -11,7 +12,7 @@ useSeoMeta({
1112
description: page.value.seo.description,
1213
ogDescription: page.value.seo.description,
1314
ogImage: 'https://docs-template.nuxt.dev/social-card.png',
14-
twitterImage: 'https://docs-template.nuxt.dev/social-card.png'
15+
twitterImage: 'https://docs-template.nuxt.dev/social-card.png',
1516
})
1617
</script>
1718

docs/content.config.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,22 +4,22 @@ export default defineContentConfig({
44
collections: {
55
landing: defineCollection({
66
type: 'page',
7-
source: 'index.md'
7+
source: 'index.md',
88
}),
99
docs: defineCollection({
1010
type: 'page',
1111
source: {
1212
include: '**',
13-
exclude: ['index.md']
13+
exclude: ['index.md'],
1414
},
1515
schema: z.object({
1616
links: z.array(z.object({
1717
label: z.string(),
1818
icon: z.string(),
1919
to: z.string(),
20-
target: z.string().optional()
21-
})).optional()
22-
})
23-
})
24-
}
20+
target: z.string().optional(),
21+
})).optional(),
22+
}),
23+
}),
24+
},
2525
})

0 commit comments

Comments
 (0)