Skip to content

Commit cd59249

Browse files
committed
chore: bump deps and lint
1 parent ce5737a commit cd59249

22 files changed

+544
-445
lines changed

.eslintignore

-5
This file was deleted.

.eslintrc

-5
This file was deleted.

.playground/app.vue

+21-19
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,23 @@
11
<template>
2-
<div class="flex flex-col min-h-screen">
3-
<header class="sticky top-0 z-50 w-full backdrop-blur flex-none border-b border-gray-900/10 dark:border-gray-50/[0.06] bg-white/75 dark:bg-gray-900/75">
4-
<UContainer class="py-3">
5-
<div class="flex items-end gap-1.5 font-bold text-xl text-gray-900 dark:text-white">
6-
<Icon name="logos:nuxt-icon" class="w-8 h-8" />
7-
Nuxt
8-
<div class="text-primary-500 dark:text-primary-400">SEO</div>
9-
</div>
10-
</UContainer>
11-
</header>
12-
<main class="min-h-full h-full flex-grow">
13-
<UContainer class="mt-4">
14-
<NuxtPage />
15-
</UContainer>
16-
</main>
17-
<footer class="text-sm text-gray-700 flex justify-center items-center py-5">
18-
Made by <UAvatar src="https://avatars.githubusercontent.com/u/5326365?v=4" size="xs" class="w-5 h-5 mx-1" /> Harlan Wilton
19-
</footer>
20-
</div>
2+
<div class="flex flex-col min-h-screen">
3+
<header class="sticky top-0 z-50 w-full backdrop-blur flex-none border-b border-gray-900/10 dark:border-gray-50/[0.06] bg-white/75 dark:bg-gray-900/75">
4+
<UContainer class="py-3">
5+
<div class="flex items-end gap-1.5 font-bold text-xl text-gray-900 dark:text-white">
6+
<Icon name="logos:nuxt-icon" class="w-8 h-8" />
7+
Nuxt
8+
<div class="text-primary-500 dark:text-primary-400">
9+
SEO
10+
</div>
11+
</div>
12+
</UContainer>
13+
</header>
14+
<main class="min-h-full h-full flex-grow">
15+
<UContainer class="mt-4">
16+
<NuxtPage />
17+
</UContainer>
18+
</main>
19+
<footer class="text-sm text-gray-700 flex justify-center items-center py-5">
20+
Made by <UAvatar src="https://avatars.githubusercontent.com/u/5326365?v=4" size="xs" class="w-5 h-5 mx-1" /> Harlan Wilton
21+
</footer>
22+
</div>
2123
</template>

.playground/nuxt.config.ts

+5-5
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export default defineNuxtConfig({
55
modules: [
66
NuxtSeoKit,
77
'@nuxt/ui',
8-
'nuxt-icon'
8+
'nuxt-icon',
99
],
1010

1111
devtools: {
@@ -15,11 +15,11 @@ export default defineNuxtConfig({
1515
app: {
1616
head: {
1717
titleTemplate: '%s - Nuxt SEO Kit',
18-
}
18+
},
1919
},
2020

2121
i18n: {
22-
locales: ['en', 'it']
22+
locales: ['en', 'it'],
2323
},
2424

2525
site: {
@@ -36,12 +36,12 @@ export default defineNuxtConfig({
3636
url: 'it.nuxtseo.dev',
3737
name: 'Nuxt SEO It',
3838
description: 'Nuxt SEO Playground itality description.',
39-
}
39+
},
4040
},
4141
},
4242

4343
routeRules: {
4444
'/about': { sitemap: { changefreq: 'daily', priority: 0.3 } },
4545
'/secret': { index: false },
46-
}
46+
},
4747
})

.playground/package.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"dependencies": {
3-
"nuxt-icon": "^0.4.2",
4-
"@nuxtjs/i18n": "8.0.0-rc.2"
5-
}
2+
"dependencies": {
3+
"@nuxtjs/i18n": "8.0.0-rc.2",
4+
"nuxt-icon": "^0.4.2"
5+
}
66
}

.playground/pages/about.vue

+4-1
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,13 @@ defineOgImage({
1111
customSomething: 'custom',
1212
})
1313
</script>
14+
1415
<template>
1516
<div>
1617
<div>
17-
<NuxtLink to="/">home</NuxtLink>
18+
<NuxtLink to="/">
19+
home
20+
</NuxtLink>
1821
About page
1922
</div>
2023
</div>
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
<template>
2-
<div>temp</div>
2+
<div>temp</div>
33
</template>

.playground/pages/index.vue

+9-6
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,22 @@ import { definePageMeta, useHead } from '#imports'
33
44
definePageMeta({
55
breadcrumbTitle: 'Home',
6-
image: '/images/og-image.png'
6+
image: '/images/og-image.png',
77
})
88
99
useHead({
1010
title: 'hello',
1111
})
1212
</script>
13+
1314
<template>
14-
<div>
15-
<h1>Hello world</h1>
16-
<p>Welcome to my website</p>
1715
<div>
18-
<NuxtLink to="/about">new title</NuxtLink>
16+
<h1>Hello world</h1>
17+
<p>Welcome to my website</p>
18+
<div>
19+
<NuxtLink to="/about">
20+
new title
21+
</NuxtLink>
22+
</div>
1923
</div>
20-
</div>
2124
</template>

.playground/pages/tak.vue

+5-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
<script lang="ts" setup>
22
defineI18nRoute({
33
locales: ['it'],
4-
});
4+
})
55
</script>
6+
67
<template>
78
<div>
8-
<NuxtLink to="/">home</NuxtLink>
9+
<NuxtLink to="/">
10+
home
11+
</NuxtLink>
912
Italic about page
1013
</div>
1114
</template>

docs/app.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ const modules = useModuleList()
3131
</NuxtLink>
3232
</div>
3333
<div class="mb-2">
34-
Hey <i class="i-noto-waving-hand"></i> I built Nuxt SEO to solve SEO for Nuxt once and for all.
34+
Hey <i class="i-noto-waving-hand" /> I built Nuxt SEO to solve SEO for Nuxt once and for all.
3535
</div>
3636
<div>
3737
It's been on-going work for the last year and I'd love to have your <a href="https://github.com/sponsors/harlan-zw">support</a>!

docs/composables/useScrollspy.ts

+9-11
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,17 @@ export function useScrollspy() {
77
const visibleHeadings = ref([]) as Ref<string[]>
88
const activeHeadings = ref([]) as Ref<string[]>
99

10-
const observerCallback = (entries: IntersectionObserverEntry[]) =>
11-
entries.forEach((entry) => {
12-
const id = entry.target.id
10+
const observerCallback = (entries: IntersectionObserverEntry[]) => entries.forEach((entry) => {
11+
const id = entry.target.id
1312

14-
if (entry.isIntersecting)
15-
visibleHeadings.value.push(id)
16-
else visibleHeadings.value = visibleHeadings.value.filter(t => t !== id)
17-
})
13+
if (entry.isIntersecting)
14+
visibleHeadings.value.push(id)
15+
else visibleHeadings.value = visibleHeadings.value.filter(t => t !== id)
16+
})
1817

19-
const updateHeadings = (headings: Element[]) =>
20-
headings.forEach((heading) => {
21-
observer.value.observe(heading)
22-
})
18+
const updateHeadings = (headings: Element[]) => headings.forEach((heading) => {
19+
observer.value.observe(heading)
20+
})
2321

2422
watch(visibleHeadings, (val, oldVal) => {
2523
if (val.length === 0)

docs/content/0.nuxt-seo/1.getting-started/migration-guide.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ Composables & Components:
194194
If you were using the runtime browser previously, you will need to manually opt-in for it to work in production.
195195

196196
```ts
197-
export default defineNuxtConfig(() => {
197+
export default defineNuxtConfig({
198198
ogImage: {
199199
runtimeBrowser: true
200200
}
@@ -208,7 +208,6 @@ export default defineNuxtConfig(() => {
208208
<script setup>
209209
defineOgImageStatic({ /* */ })
210210
</script>
211-
<template>
212211
```
213212

214213

docs/content/10.site-config/0.getting-started/3.how-it-works.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,8 @@ Environment variables provided by the hosting providers.
5252
export default {
5353
url: [
5454
// vercel, netlify
55-
process.env.NUXT_ENV_VERCEL_URL, process.env.URL,
55+
process.env.NUXT_ENV_VERCEL_URL,
56+
process.env.URL,
5657
// cloudflare pages
5758
process.env.CF_PAGES_URL,
5859
],

docs/content/3.og-image/3.api/0.config.md

+1
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ export default defineNuxtConfig({
9090
password: 'password'
9191
}
9292
}
93+
})
9394
```
9495

9596
### `debug`

docs/content/3.og-image/4.releases/v2.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ Composables & Components:
198198
If you were using the runtime browser previously, you will need to manually opt-in for it to work in production.
199199

200200
```ts
201-
export default defineNuxtConfig(() => {
201+
export default defineNuxtConfig({
202202
ogImage: {
203203
runtimeBrowser: true
204204
}

docs/package.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,19 @@
77
"dependencies": {
88
"@iconify-json/noto": "^1.1.12",
99
"@iconify-json/ph": "^1.1.6",
10-
"@nuxt/content": "^2.8.2",
10+
"@nuxt/content": "^2.8.3",
1111
"@nuxt/ui": "npm:@nuxt/ui-edge@latest",
12-
"@nuxt/ui-pro": "npm:@nuxt/[email protected]28256330.75f2e3a",
12+
"@nuxt/ui-pro": "npm:@nuxt/[email protected]28262031.ce23416",
1313
"nuxt-icon": "^0.5.0",
1414
"nuxt-lego": "^0.0.14"
1515
},
1616
"devDependencies": {
1717
"@iconify-json/heroicons": "^1.1.12",
1818
"@iconify-json/simple-icons": "^1.1.72",
19-
"@nuxt/devtools": "^0.8.4",
19+
"@nuxt/devtools": "^0.8.5",
2020
"@nuxtjs/fontaine": "^0.4.1",
2121
"@vueuse/nuxt": "^10.4.1",
22-
"nuxt": "3.7.3",
22+
"nuxt": "3.7.4",
2323
"nuxt-lodash": "^2.5.0"
2424
}
2525
}

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

+33-34
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@ if (!page.value)
1010
const { data: surround } = await useAsyncData(`docs-${route.path}-surround`, () => queryContent()
1111
.only(['_path', 'title', 'navigation', 'description'])
1212
.where({ _extension: 'md', navigation: { $ne: false } })
13-
.findSurround(route.path.endsWith('/') ? route.path.slice(0, -1) : route.path),
14-
)
13+
.findSurround(route.path.endsWith('/') ? route.path.slice(0, -1) : route.path))
1514
1615
const [prev, next] = surround.value
1716
@@ -83,39 +82,39 @@ const ecosystemLinks = [
8382
</script>
8483

8584
<template>
86-
<div>
87-
<UMain>
88-
<UPage :ui="{ wrapper: 'xl:gap-10' }">
89-
<template #left>
90-
<UAside>
91-
<UNavigationTree :links="mapContentNavigation(children)" />
92-
</UAside>
93-
</template>
94-
<div>
95-
<UPage :ui="{ wrapper: 'xl:gap-18' }">
96-
<UPageHeader :title="page.title" :description="page.description" :links="page.links" :headline="headline" />
85+
<div>
86+
<UMain>
87+
<UPage :ui="{ wrapper: 'xl:gap-10' }">
88+
<template #left>
89+
<UAside>
90+
<UNavigationTree :links="mapContentNavigation(children)" />
91+
</UAside>
92+
</template>
93+
<div>
94+
<UPage :ui="{ wrapper: 'xl:gap-18' }">
95+
<UPageHeader :title="page.title" :description="page.description" :links="page.links" :headline="headline" />
9796

98-
<UPageBody prose class="pb-0">
99-
<ContentRenderer v-if="page.body" :value="page" />
100-
<hr v-if="surround?.length" class="my-8">
101-
<UDocsSurround :surround="surround" />
102-
</UPageBody>
97+
<UPageBody prose class="pb-0">
98+
<ContentRenderer v-if="page.body" :value="page" />
99+
<hr v-if="surround?.length" class="my-8">
100+
<UDocsSurround :surround="surround" />
101+
</UPageBody>
103102

104-
<template #right>
105-
<UDocsToc :links="page.body?.toc?.links || []">
106-
<template #bottom>
107-
<div class="hidden !mt-6 lg:block space-y-6">
108-
<UDivider v-if="page.body?.toc?.links?.length" dashed />
109-
<UPageLinks title="Community" :links="communityLinks" />
110-
<UDivider dashed />
111-
<UPageLinks title="Ecosystem" :links="ecosystemLinks" />
112-
</div>
103+
<template #right>
104+
<UDocsToc :links="page.body?.toc?.links || []">
105+
<template #bottom>
106+
<div class="hidden !mt-6 lg:block space-y-6">
107+
<UDivider v-if="page.body?.toc?.links?.length" dashed />
108+
<UPageLinks title="Community" :links="communityLinks" />
109+
<UDivider dashed />
110+
<UPageLinks title="Ecosystem" :links="ecosystemLinks" />
111+
</div>
112+
</template>
113+
</UDocsToc>
113114
</template>
114-
</UDocsToc>
115-
</template>
116-
</UPage>
117-
</div>
118-
</UPage>
119-
</UMain>
120-
</div>
115+
</UPage>
116+
</div>
117+
</UPage>
118+
</UMain>
119+
</div>
121120
</template>

eslint.config.js

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import antfu from '@antfu/eslint-config'
2+
3+
export default antfu({
4+
rules: {
5+
'node/prefer-global/process': 'off',
6+
},
7+
})

module/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"build": "nuxt-module-build --stub && nuxt-module-build prepare && nuxt-module-build"
3030
},
3131
"dependencies": {
32-
"@nuxt/kit": "^3.7.3",
32+
"@nuxt/kit": "^3.7.4",
3333
"chalk": "^5.3.0",
3434
"defu": "^6.1.2",
3535
"nuxt-link-checker": "^2.1.8",

module/src/module.ts

+5-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
import {
2-
addImports, addPlugin, addServerHandler,
2+
addImports,
3+
addPlugin,
4+
addServerHandler,
35
createResolver,
46
defineNuxtModule,
5-
installModule, useLogger,
7+
installModule,
8+
useLogger,
69
} from '@nuxt/kit'
710
import chalk from 'chalk'
811
import { installNuxtSiteConfig } from 'nuxt-site-config-kit'

0 commit comments

Comments
 (0)