@nuxtify/pages 0.4.0 → 0.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -21
- package/README.md +230 -222
- package/dist/module.d.mts +0 -1
- package/dist/module.json +1 -1
- package/dist/module.mjs +4 -4
- package/dist/runtime/components/EmailSubscribeForm.vue +68 -68
- package/dist/runtime/components/FooterCallToAction.vue +29 -29
- package/dist/runtime/components/app/AppBar.vue +108 -108
- package/dist/runtime/components/app/AppFooter.vue +101 -131
- package/dist/runtime/components/app/AppNavigationDrawer.vue +85 -85
- package/dist/runtime/layouts/DefaultLayout.vue +27 -26
- package/dist/runtime/pages/DynamicSlug.vue +14 -14
- package/dist/runtime/pages/IndexPage.vue +12 -12
- package/dist/runtime/server/tsconfig.json +3 -3
- package/package.json +65 -64
|
@@ -9,89 +9,89 @@ const featuredSecondaryLink = secondaryNavLinks?.slice(0, 1)[0];
|
|
|
9
9
|
</script>
|
|
10
10
|
|
|
11
11
|
<template>
|
|
12
|
-
<v-navigation-drawer
|
|
13
|
-
v-if="smAndDown"
|
|
14
|
-
v-model="drawer"
|
|
15
|
-
location="right"
|
|
16
|
-
>
|
|
17
|
-
<nav>
|
|
18
|
-
<v-list nav>
|
|
19
|
-
<!-- Primary links -->
|
|
20
|
-
<v-list-item
|
|
21
|
-
v-for="(link, i) in primaryNavLinks"
|
|
22
|
-
:key="i"
|
|
23
|
-
:to="link.to"
|
|
24
|
-
:href="link.href"
|
|
25
|
-
:prepend-icon="link.icon"
|
|
26
|
-
color="primary"
|
|
27
|
-
:target="link.openInNew ? '_blank' : void 0"
|
|
28
|
-
:rel="link.openInNew ? 'noopener nofollow' : void 0"
|
|
29
|
-
slim
|
|
30
|
-
exact
|
|
31
|
-
>
|
|
32
|
-
<v-list-item-title class="text-subtitle-1 font-weight-bold py-1">
|
|
33
|
-
{{ link.text }}
|
|
34
|
-
<v-icon
|
|
35
|
-
v-if="link.openInNew"
|
|
36
|
-
:icon="mdiArrowTopRight"
|
|
37
|
-
size="x-small"
|
|
38
|
-
color="grey"
|
|
39
|
-
class="ml-1"
|
|
40
|
-
/>
|
|
41
|
-
</v-list-item-title>
|
|
42
|
-
</v-list-item>
|
|
43
|
-
|
|
44
|
-
<!-- Secondary links -->
|
|
45
|
-
<v-list-item
|
|
46
|
-
v-for="link in secondaryNavLinks?.slice(1).reverse()"
|
|
47
|
-
:key="link.text"
|
|
48
|
-
:to="link.to"
|
|
49
|
-
:href="link.href"
|
|
50
|
-
:prepend-icon="link.icon"
|
|
51
|
-
:target="link.openInNew ? '_blank' : void 0"
|
|
52
|
-
:rel="link.openInNew ? 'noopener nofollow' : void 0"
|
|
53
|
-
slim
|
|
54
|
-
exact
|
|
55
|
-
>
|
|
56
|
-
<v-list-item-title class="text-subtitle-1 font-weight-bold py-1">
|
|
57
|
-
{{ link.text }}
|
|
58
|
-
<v-icon
|
|
59
|
-
v-if="link.openInNew"
|
|
60
|
-
:icon="mdiArrowTopRight"
|
|
61
|
-
size="x-small"
|
|
62
|
-
color="grey"
|
|
63
|
-
class="ml-1"
|
|
64
|
-
/>
|
|
65
|
-
</v-list-item-title>
|
|
66
|
-
</v-list-item>
|
|
67
|
-
</v-list>
|
|
68
|
-
</nav>
|
|
69
|
-
|
|
70
|
-
<template #append>
|
|
71
|
-
<!-- Featured secondary link -->
|
|
72
|
-
<div
|
|
73
|
-
v-if="featuredSecondaryLink?.text"
|
|
74
|
-
class="ma-2"
|
|
75
|
-
>
|
|
76
|
-
<v-btn
|
|
77
|
-
:to="featuredSecondaryLink.to"
|
|
78
|
-
:href="featuredSecondaryLink.href"
|
|
79
|
-
:prepend-icon="featuredSecondaryLink.icon"
|
|
80
|
-
variant="flat"
|
|
81
|
-
size="large"
|
|
82
|
-
:target="featuredSecondaryLink.openInNew ? '_blank' : void 0"
|
|
83
|
-
:rel="featuredSecondaryLink.openInNew ? 'noopener nofollow' : void 0"
|
|
84
|
-
block
|
|
85
|
-
>
|
|
86
|
-
{{ featuredSecondaryLink.text }}
|
|
87
|
-
<v-icon
|
|
88
|
-
v-if="featuredSecondaryLink.openInNew"
|
|
89
|
-
:icon="mdiArrowTopRight"
|
|
90
|
-
size="small"
|
|
91
|
-
class="ml-1"
|
|
92
|
-
/>
|
|
93
|
-
</v-btn>
|
|
94
|
-
</div>
|
|
95
|
-
</template>
|
|
96
|
-
</v-navigation-drawer>
|
|
12
|
+
<v-navigation-drawer
|
|
13
|
+
v-if="smAndDown"
|
|
14
|
+
v-model="drawer"
|
|
15
|
+
location="right"
|
|
16
|
+
>
|
|
17
|
+
<nav>
|
|
18
|
+
<v-list nav>
|
|
19
|
+
<!-- Primary links -->
|
|
20
|
+
<v-list-item
|
|
21
|
+
v-for="(link, i) in primaryNavLinks"
|
|
22
|
+
:key="i"
|
|
23
|
+
:to="link.to"
|
|
24
|
+
:href="link.href"
|
|
25
|
+
:prepend-icon="link.icon"
|
|
26
|
+
color="primary"
|
|
27
|
+
:target="link.openInNew ? '_blank' : void 0"
|
|
28
|
+
:rel="link.openInNew ? 'noopener nofollow' : void 0"
|
|
29
|
+
slim
|
|
30
|
+
exact
|
|
31
|
+
>
|
|
32
|
+
<v-list-item-title class="text-subtitle-1 font-weight-bold py-1">
|
|
33
|
+
{{ link.text }}
|
|
34
|
+
<v-icon
|
|
35
|
+
v-if="link.openInNew"
|
|
36
|
+
:icon="mdiArrowTopRight"
|
|
37
|
+
size="x-small"
|
|
38
|
+
color="grey"
|
|
39
|
+
class="ml-1"
|
|
40
|
+
/>
|
|
41
|
+
</v-list-item-title>
|
|
42
|
+
</v-list-item>
|
|
43
|
+
|
|
44
|
+
<!-- Secondary links -->
|
|
45
|
+
<v-list-item
|
|
46
|
+
v-for="link in secondaryNavLinks?.slice(1).reverse()"
|
|
47
|
+
:key="link.text"
|
|
48
|
+
:to="link.to"
|
|
49
|
+
:href="link.href"
|
|
50
|
+
:prepend-icon="link.icon"
|
|
51
|
+
:target="link.openInNew ? '_blank' : void 0"
|
|
52
|
+
:rel="link.openInNew ? 'noopener nofollow' : void 0"
|
|
53
|
+
slim
|
|
54
|
+
exact
|
|
55
|
+
>
|
|
56
|
+
<v-list-item-title class="text-subtitle-1 font-weight-bold py-1">
|
|
57
|
+
{{ link.text }}
|
|
58
|
+
<v-icon
|
|
59
|
+
v-if="link.openInNew"
|
|
60
|
+
:icon="mdiArrowTopRight"
|
|
61
|
+
size="x-small"
|
|
62
|
+
color="grey"
|
|
63
|
+
class="ml-1"
|
|
64
|
+
/>
|
|
65
|
+
</v-list-item-title>
|
|
66
|
+
</v-list-item>
|
|
67
|
+
</v-list>
|
|
68
|
+
</nav>
|
|
69
|
+
|
|
70
|
+
<template #append>
|
|
71
|
+
<!-- Featured secondary link -->
|
|
72
|
+
<div
|
|
73
|
+
v-if="featuredSecondaryLink?.text"
|
|
74
|
+
class="ma-2"
|
|
75
|
+
>
|
|
76
|
+
<v-btn
|
|
77
|
+
:to="featuredSecondaryLink.to"
|
|
78
|
+
:href="featuredSecondaryLink.href"
|
|
79
|
+
:prepend-icon="featuredSecondaryLink.icon"
|
|
80
|
+
variant="flat"
|
|
81
|
+
size="large"
|
|
82
|
+
:target="featuredSecondaryLink.openInNew ? '_blank' : void 0"
|
|
83
|
+
:rel="featuredSecondaryLink.openInNew ? 'noopener nofollow' : void 0"
|
|
84
|
+
block
|
|
85
|
+
>
|
|
86
|
+
{{ featuredSecondaryLink.text }}
|
|
87
|
+
<v-icon
|
|
88
|
+
v-if="featuredSecondaryLink.openInNew"
|
|
89
|
+
:icon="mdiArrowTopRight"
|
|
90
|
+
size="small"
|
|
91
|
+
class="ml-1"
|
|
92
|
+
/>
|
|
93
|
+
</v-btn>
|
|
94
|
+
</div>
|
|
95
|
+
</template>
|
|
96
|
+
</v-navigation-drawer>
|
|
97
97
|
</template>
|
|
@@ -1,33 +1,34 @@
|
|
|
1
1
|
<script setup>
|
|
2
|
-
import { useDisplay, useNuxtifyConfig } from "#imports";
|
|
2
|
+
import { useDisplay, useNuxtifyConfig, useNuxtifySiteTitle } from "#imports";
|
|
3
3
|
const nuxtifyConfig = useNuxtifyConfig();
|
|
4
4
|
const { mdAndUp } = useDisplay();
|
|
5
|
+
useNuxtifySiteTitle();
|
|
5
6
|
</script>
|
|
6
7
|
|
|
7
8
|
<template>
|
|
8
|
-
<v-app>
|
|
9
|
-
<!-- Accessibility -->
|
|
10
|
-
<NuxtRouteAnnouncer />
|
|
11
|
-
|
|
12
|
-
<AppBar class="d-print-none" />
|
|
13
|
-
|
|
14
|
-
<AppNavigationDrawer class="d-print-none" />
|
|
15
|
-
|
|
16
|
-
<AppAnnouncementBar
|
|
17
|
-
v-if="nuxtifyConfig.announcement?.show"
|
|
18
|
-
class="d-print-none"
|
|
19
|
-
/>
|
|
20
|
-
|
|
21
|
-
<v-main :min-height="mdAndUp ? 800 : 550">
|
|
22
|
-
<slot />
|
|
23
|
-
</v-main>
|
|
24
|
-
|
|
25
|
-
<AppToast class="d-print-none" />
|
|
26
|
-
|
|
27
|
-
<AppDialog class="d-print-none" />
|
|
28
|
-
|
|
29
|
-
<v-footer class="bg-primary justify-center mt-8">
|
|
30
|
-
<AppFooter />
|
|
31
|
-
</v-footer>
|
|
32
|
-
</v-app>
|
|
9
|
+
<v-app>
|
|
10
|
+
<!-- Accessibility -->
|
|
11
|
+
<NuxtRouteAnnouncer />
|
|
12
|
+
|
|
13
|
+
<AppBar class="d-print-none" />
|
|
14
|
+
|
|
15
|
+
<AppNavigationDrawer class="d-print-none" />
|
|
16
|
+
|
|
17
|
+
<AppAnnouncementBar
|
|
18
|
+
v-if="nuxtifyConfig.announcement?.show"
|
|
19
|
+
class="d-print-none"
|
|
20
|
+
/>
|
|
21
|
+
|
|
22
|
+
<v-main :min-height="mdAndUp ? 800 : 550">
|
|
23
|
+
<slot />
|
|
24
|
+
</v-main>
|
|
25
|
+
|
|
26
|
+
<AppToast class="d-print-none" />
|
|
27
|
+
|
|
28
|
+
<AppDialog class="d-print-none" />
|
|
29
|
+
|
|
30
|
+
<v-footer class="bg-primary justify-center mt-8">
|
|
31
|
+
<AppFooter />
|
|
32
|
+
</v-footer>
|
|
33
|
+
</v-app>
|
|
33
34
|
</template>
|
|
@@ -4,18 +4,18 @@ const route = useRoute();
|
|
|
4
4
|
</script>
|
|
5
5
|
|
|
6
6
|
<template>
|
|
7
|
-
<v-container>
|
|
8
|
-
<v-row justify="center">
|
|
9
|
-
<v-col
|
|
10
|
-
cols="12"
|
|
11
|
-
sm="10"
|
|
12
|
-
lg="8"
|
|
13
|
-
xl="6"
|
|
14
|
-
>
|
|
15
|
-
<h1 class="text-h5 mt-4">
|
|
16
|
-
{{ capitalizeFirstLetter(route.params.slug) }}
|
|
17
|
-
</h1>
|
|
18
|
-
</v-col>
|
|
19
|
-
</v-row>
|
|
20
|
-
</v-container>
|
|
7
|
+
<v-container>
|
|
8
|
+
<v-row justify="center">
|
|
9
|
+
<v-col
|
|
10
|
+
cols="12"
|
|
11
|
+
sm="10"
|
|
12
|
+
lg="8"
|
|
13
|
+
xl="6"
|
|
14
|
+
>
|
|
15
|
+
<h1 class="text-h5 mt-4">
|
|
16
|
+
{{ capitalizeFirstLetter(route.params.slug) }}
|
|
17
|
+
</h1>
|
|
18
|
+
</v-col>
|
|
19
|
+
</v-row>
|
|
20
|
+
</v-container>
|
|
21
21
|
</template>
|
|
@@ -8,16 +8,16 @@ useServerSeoMeta({
|
|
|
8
8
|
</script>
|
|
9
9
|
|
|
10
10
|
<template>
|
|
11
|
-
<v-container class="text-center">
|
|
12
|
-
<v-row>
|
|
13
|
-
<v-col cols="12">
|
|
14
|
-
<ClientOnly>
|
|
15
|
-
<h1>{{ nuxtifyConfig.brand?.name }} Home</h1>
|
|
16
|
-
<template #fallback>
|
|
17
|
-
<AppLoading />
|
|
18
|
-
</template>
|
|
19
|
-
</ClientOnly>
|
|
20
|
-
</v-col>
|
|
21
|
-
</v-row>
|
|
22
|
-
</v-container>
|
|
11
|
+
<v-container class="text-center">
|
|
12
|
+
<v-row>
|
|
13
|
+
<v-col cols="12">
|
|
14
|
+
<ClientOnly>
|
|
15
|
+
<h1>{{ nuxtifyConfig.brand?.name }} Home</h1>
|
|
16
|
+
<template #fallback>
|
|
17
|
+
<AppLoading />
|
|
18
|
+
</template>
|
|
19
|
+
</ClientOnly>
|
|
20
|
+
</v-col>
|
|
21
|
+
</v-row>
|
|
22
|
+
</v-container>
|
|
23
23
|
</template>
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
{
|
|
2
|
-
"extends": "../../../.nuxt/tsconfig.server.json",
|
|
3
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"extends": "../../../.nuxt/tsconfig.server.json",
|
|
3
|
+
}
|
package/package.json
CHANGED
|
@@ -1,64 +1,65 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@nuxtify/pages",
|
|
3
|
-
"version": "0.4.
|
|
4
|
-
"description": "Nuxtify pages module powered by Nuxt and Vuetify.",
|
|
5
|
-
"license": "MIT",
|
|
6
|
-
"homepage": "https://nuxtify.dev",
|
|
7
|
-
"author": "Nuxtify.dev <hello@nuxtify.dev>",
|
|
8
|
-
"funding": "https://github.com/sponsors/davidstackio",
|
|
9
|
-
"repository": {
|
|
10
|
-
"type": "git",
|
|
11
|
-
"url": "git+https://github.com/nuxtify-dev/pages"
|
|
12
|
-
},
|
|
13
|
-
"bugs": {
|
|
14
|
-
"url": "https://github.com/nuxtify-dev/pages/issues"
|
|
15
|
-
},
|
|
16
|
-
"type": "module",
|
|
17
|
-
"exports": {
|
|
18
|
-
".": {
|
|
19
|
-
"types": "./dist/types.d.mts",
|
|
20
|
-
"import": "./dist/module.mjs"
|
|
21
|
-
}
|
|
22
|
-
},
|
|
23
|
-
"main": "./dist/module.mjs",
|
|
24
|
-
"typesVersions": {
|
|
25
|
-
"*": {
|
|
26
|
-
".": [
|
|
27
|
-
"./dist/types.d.mts"
|
|
28
|
-
]
|
|
29
|
-
}
|
|
30
|
-
},
|
|
31
|
-
"files": [
|
|
32
|
-
"dist"
|
|
33
|
-
],
|
|
34
|
-
"scripts": {
|
|
35
|
-
"prepack": "nuxt-module-build build",
|
|
36
|
-
"dev": "nuxi dev playground",
|
|
37
|
-
"dev:build": "nuxi build playground",
|
|
38
|
-
"dev:prepare": "nuxt-module-build build --stub && nuxt-module-build prepare && nuxi prepare playground",
|
|
39
|
-
"release": "npm run lint && npm run test && npm run prepack && changelogen --release && npm publish && git push --follow-tags",
|
|
40
|
-
"lint": "eslint .",
|
|
41
|
-
"test": "vitest run",
|
|
42
|
-
"test:watch": "vitest watch",
|
|
43
|
-
"test:types": "vue-tsc --noEmit && cd playground && vue-tsc --noEmit"
|
|
44
|
-
},
|
|
45
|
-
"dependencies": {
|
|
46
|
-
"@nuxtify/core": "^0.1.
|
|
47
|
-
"defu": "^6.1.4"
|
|
48
|
-
},
|
|
49
|
-
"devDependencies": {
|
|
50
|
-
"@nuxt/devtools": "^2.
|
|
51
|
-
"@nuxt/eslint
|
|
52
|
-
"@nuxt/
|
|
53
|
-
"@nuxt/
|
|
54
|
-
"@nuxt/
|
|
55
|
-
"@nuxt/
|
|
56
|
-
"@
|
|
57
|
-
"
|
|
58
|
-
"
|
|
59
|
-
"
|
|
60
|
-
"
|
|
61
|
-
"
|
|
62
|
-
"
|
|
63
|
-
|
|
64
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@nuxtify/pages",
|
|
3
|
+
"version": "0.4.2",
|
|
4
|
+
"description": "Nuxtify pages module powered by Nuxt and Vuetify.",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"homepage": "https://nuxtify.dev",
|
|
7
|
+
"author": "Nuxtify.dev <hello@nuxtify.dev>",
|
|
8
|
+
"funding": "https://github.com/sponsors/davidstackio",
|
|
9
|
+
"repository": {
|
|
10
|
+
"type": "git",
|
|
11
|
+
"url": "git+https://github.com/nuxtify-dev/pages"
|
|
12
|
+
},
|
|
13
|
+
"bugs": {
|
|
14
|
+
"url": "https://github.com/nuxtify-dev/pages/issues"
|
|
15
|
+
},
|
|
16
|
+
"type": "module",
|
|
17
|
+
"exports": {
|
|
18
|
+
".": {
|
|
19
|
+
"types": "./dist/types.d.mts",
|
|
20
|
+
"import": "./dist/module.mjs"
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
"main": "./dist/module.mjs",
|
|
24
|
+
"typesVersions": {
|
|
25
|
+
"*": {
|
|
26
|
+
".": [
|
|
27
|
+
"./dist/types.d.mts"
|
|
28
|
+
]
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
"files": [
|
|
32
|
+
"dist"
|
|
33
|
+
],
|
|
34
|
+
"scripts": {
|
|
35
|
+
"prepack": "nuxt-module-build build",
|
|
36
|
+
"dev": "nuxi dev playground",
|
|
37
|
+
"dev:build": "nuxi build playground",
|
|
38
|
+
"dev:prepare": "nuxt-module-build build --stub && nuxt-module-build prepare && nuxi prepare playground",
|
|
39
|
+
"release": "npm run lint && npm run test && npm run prepack && changelogen --release && npm publish && git push --follow-tags",
|
|
40
|
+
"lint": "eslint .",
|
|
41
|
+
"test": "vitest run",
|
|
42
|
+
"test:watch": "vitest watch",
|
|
43
|
+
"test:types": "vue-tsc --noEmit && cd playground && vue-tsc --noEmit"
|
|
44
|
+
},
|
|
45
|
+
"dependencies": {
|
|
46
|
+
"@nuxtify/core": "^0.1.9",
|
|
47
|
+
"defu": "^6.1.4"
|
|
48
|
+
},
|
|
49
|
+
"devDependencies": {
|
|
50
|
+
"@nuxt/devtools": "^2.5.0",
|
|
51
|
+
"@nuxt/eslint": "^1.4.1",
|
|
52
|
+
"@nuxt/eslint-config": "^1.4.1",
|
|
53
|
+
"@nuxt/kit": "^3.17.5",
|
|
54
|
+
"@nuxt/module-builder": "^1.0.1",
|
|
55
|
+
"@nuxt/schema": "^3.17.5",
|
|
56
|
+
"@nuxt/test-utils": "^3.19.1",
|
|
57
|
+
"@types/node": "^22.15.32",
|
|
58
|
+
"changelogen": "^0.6.1",
|
|
59
|
+
"eslint": "^9.29.0",
|
|
60
|
+
"nuxt": "^3.17.5",
|
|
61
|
+
"typescript": "~5.8.2",
|
|
62
|
+
"vitest": "^3.2.4",
|
|
63
|
+
"vue-tsc": "^2.2.10"
|
|
64
|
+
}
|
|
65
|
+
}
|