@nuxtify/pages 0.3.3 β 0.4.1
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 -21
- package/dist/module.json +1 -1
- package/dist/module.mjs +2 -10
- 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 +103 -133
- 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 +64 -64
package/LICENSE
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
The MIT License (MIT)
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2023-present - Nuxtify
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2023-present - Nuxtify
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,222 +1,230 @@
|
|
|
1
|
-
<div align=center>
|
|
2
|
-
<img src="./nuxtify-banner.png"/>
|
|
3
|
-
</div>
|
|
4
|
-
|
|
5
|
-
# Nuxtify Pages
|
|
6
|
-
|
|
7
|
-
<!--
|
|
8
|
-
[![npm downloads][npm-downloads-src]][npm-downloads-href]
|
|
9
|
-
[![Nuxtify Docs][nuxtify-src]][nuxtify-href] -->
|
|
10
|
-
|
|
11
|
-
[![npm version][npm-version-src]][npm-version-href]
|
|
12
|
-
[![License][license-src]][license-href]
|
|
13
|
-
[![π Playground][playground-src]][playground-href]
|
|
14
|
-
|
|
15
|
-
> [!NOTE]
|
|
16
|
-
>
|
|
17
|
-
> **Early Access Preview:**
|
|
18
|
-
> This module is under active development. While it is already used to power a [handful of sites](https://nuxtify.dev/showcase) in production, expect things to change frequently. I will do my best to call out breaking changes in the [changelog](https://github.com/nuxtify-dev/pages/blob/main/CHANGELOG.md).
|
|
19
|
-
|
|
20
|
-
### Table of Contents
|
|
21
|
-
|
|
22
|
-
- βΎοΈ [Why Nuxtify?](#why-nuxtify)
|
|
23
|
-
- π§© [Nuxtify Modules](#modules)
|
|
24
|
-
- β¨ [Features](#features)
|
|
25
|
-
- π [Quick Start](#quick-start)
|
|
26
|
-
- π§ [Configuration](#configuration)
|
|
27
|
-
- β
[Updates](#updates)
|
|
28
|
-
- β€οΈ [Contributing](#contributing)
|
|
29
|
-
- π [Local Development](#local-development)
|
|
30
|
-
- βοΈ [License](#license)
|
|
31
|
-
|
|
32
|
-
## <a name="why-nuxtify">βΎοΈ Why Nuxtify?</a>
|
|
33
|
-
|
|
34
|
-
Nuxtify is a collection of [Nuxt modules](https://nuxt.com/docs/guide/concepts/modules) that help you stay organized, maintain focus, and _ship weirdly fast_.
|
|
35
|
-
|
|
36
|
-
It's built on a loosely opinionated stack that eliminates decision fatigue and ensures consistency across projects. This extensible approach gives you incredible control over your site's structure and style.
|
|
37
|
-
|
|
38
|
-
Once you add a Nuxtify module (like this one) to a new or existing Nuxt project, you can use any of the components, composables, and other features instantly β no imports necessary. And more importantly, you can override these defaults with your own version at any time.
|
|
39
|
-
|
|
40
|
-
**This unlocks a powerful way of working.**
|
|
41
|
-
|
|
42
|
-
Use the defaults when they're helpful, and progressively upgrade when they're not.
|
|
43
|
-
|
|
44
|
-
This means you can:
|
|
45
|
-
|
|
46
|
-
- Setup a new project using the default configuration in a matter of minutes.
|
|
47
|
-
- Use the default footer component, but completely change the navigation component.
|
|
48
|
-
- Change the colors of all the buttons with one line of code.
|
|
49
|
-
- Override the default button component with a style of your choosing.
|
|
50
|
-
- And much more...
|
|
51
|
-
|
|
52
|
-
In short, Nuxtify helps you build faster, iterate smarter, and maintain consistency β without sacrificing control or creativity.
|
|
53
|
-
|
|
54
|
-
## <a name="modules">π§© Modules</a>
|
|
55
|
-
|
|
56
|
-
### [Nuxtify
|
|
57
|
-
|
|
58
|
-
Provides
|
|
59
|
-
|
|
60
|
-
-
|
|
61
|
-
-
|
|
62
|
-
|
|
63
|
-
### [Nuxtify
|
|
64
|
-
|
|
65
|
-
Provides single
|
|
66
|
-
|
|
67
|
-
-
|
|
68
|
-
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
###
|
|
83
|
-
|
|
84
|
-
-
|
|
85
|
-
-
|
|
86
|
-
- [
|
|
87
|
-
-
|
|
88
|
-
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
-
|
|
95
|
-
-
|
|
96
|
-
-
|
|
97
|
-
-
|
|
98
|
-
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
###
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
###
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
```
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
```
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
[
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
[
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
[
|
|
222
|
-
[
|
|
1
|
+
<div align=center>
|
|
2
|
+
<img src="./nuxtify-banner.png"/>
|
|
3
|
+
</div>
|
|
4
|
+
|
|
5
|
+
# Nuxtify Pages
|
|
6
|
+
|
|
7
|
+
<!--
|
|
8
|
+
[![npm downloads][npm-downloads-src]][npm-downloads-href]
|
|
9
|
+
[![Nuxtify Docs][nuxtify-src]][nuxtify-href] -->
|
|
10
|
+
|
|
11
|
+
[![npm version][npm-version-src]][npm-version-href]
|
|
12
|
+
[![License][license-src]][license-href]
|
|
13
|
+
[![π Playground][playground-src]][playground-href]
|
|
14
|
+
|
|
15
|
+
> [!NOTE]
|
|
16
|
+
>
|
|
17
|
+
> **Early Access Preview:**
|
|
18
|
+
> This module is under active development. While it is already used to power a [handful of sites](https://nuxtify.dev/showcase) in production, expect things to change frequently. I will do my best to call out breaking changes in the [changelog](https://github.com/nuxtify-dev/pages/blob/main/CHANGELOG.md).
|
|
19
|
+
|
|
20
|
+
### Table of Contents
|
|
21
|
+
|
|
22
|
+
- βΎοΈ [Why Nuxtify?](#why-nuxtify)
|
|
23
|
+
- π§© [Nuxtify Modules](#modules)
|
|
24
|
+
- β¨ [Features](#features)
|
|
25
|
+
- π [Quick Start](#quick-start)
|
|
26
|
+
- π§ [Configuration](#configuration)
|
|
27
|
+
- β
[Updates](#updates)
|
|
28
|
+
- β€οΈ [Contributing](#contributing)
|
|
29
|
+
- π [Local Development](#local-development)
|
|
30
|
+
- βοΈ [License](#license)
|
|
31
|
+
|
|
32
|
+
## <a name="why-nuxtify">βΎοΈ Why Nuxtify?</a>
|
|
33
|
+
|
|
34
|
+
Nuxtify is a collection of [Nuxt modules](https://nuxt.com/docs/guide/concepts/modules) that help you stay organized, maintain focus, and _ship weirdly fast_.
|
|
35
|
+
|
|
36
|
+
It's built on a loosely opinionated stack that eliminates decision fatigue and ensures consistency across projects. This extensible approach gives you incredible control over your site's structure and style.
|
|
37
|
+
|
|
38
|
+
Once you add a Nuxtify module (like this one) to a new or existing Nuxt project, you can use any of the components, composables, and other features instantly β no imports necessary. And more importantly, you can override these defaults with your own version at any time.
|
|
39
|
+
|
|
40
|
+
**This unlocks a powerful way of working.**
|
|
41
|
+
|
|
42
|
+
Use the defaults when they're helpful, and progressively upgrade when they're not.
|
|
43
|
+
|
|
44
|
+
This means you can:
|
|
45
|
+
|
|
46
|
+
- Setup a new project using the default configuration in a matter of minutes.
|
|
47
|
+
- Use the default footer component, but completely change the navigation component.
|
|
48
|
+
- Change the colors of all the buttons with one line of code.
|
|
49
|
+
- Override the default button component with a style of your choosing.
|
|
50
|
+
- And much more...
|
|
51
|
+
|
|
52
|
+
In short, Nuxtify helps you build faster, iterate smarter, and maintain consistency β without sacrificing control or creativity.
|
|
53
|
+
|
|
54
|
+
## <a name="modules">π§© Modules</a>
|
|
55
|
+
|
|
56
|
+
### [Nuxtify Pages](https://github.com/nuxtify-dev/pages) (this module)
|
|
57
|
+
|
|
58
|
+
Provides single and multi-page website building blocks so you can _ship weirdly fast_.
|
|
59
|
+
|
|
60
|
+
- Ready to use page components, page templates, and email subscribe form
|
|
61
|
+
- (coming soon) Robots, sitemaps, schema.org, social share images, broken links, and more powered by [Nuxt SEO](https://nuxtseo.com/)
|
|
62
|
+
|
|
63
|
+
### [Nuxtify App](https://github.com/nuxtify-dev/app)
|
|
64
|
+
|
|
65
|
+
Provides a single page app (SPA) skeleton for building your next SaaS or AI tool.
|
|
66
|
+
|
|
67
|
+
- Admin backend powered by [Firebase](https://firebase.google.com/) and [Vuefire](https://vuefire.vuejs.org/)
|
|
68
|
+
- Sign in and sign up pages powered by [Firebase Authentication](https://firebase.google.com/products/auth)
|
|
69
|
+
- User account page, app style navigation, and more...
|
|
70
|
+
|
|
71
|
+
### [Nuxtify Core](https://github.com/nuxtify-dev/core)
|
|
72
|
+
|
|
73
|
+
Provides the core functionality for Nuxtify, including:
|
|
74
|
+
|
|
75
|
+
- Default components, composables, and utilities
|
|
76
|
+
- Global configuration and theming with [Vuetify](https://vuetifyjs.com/en/introduction/why-vuetify/)
|
|
77
|
+
|
|
78
|
+
## <a name="features">β¨ Features</a>
|
|
79
|
+
|
|
80
|
+
Nuxtify Pages builds on the functionality in [Nuxtify Core](https://github.com/nuxtify-dev/core).
|
|
81
|
+
|
|
82
|
+
### π‘ Intuitive UI & UX
|
|
83
|
+
|
|
84
|
+
- Ready to use components, page templates, and layouts so you can _ship weirdly fast_
|
|
85
|
+
- Easily override any component with [Vuetify global defaults](https://vuetifyjs.com/en/features/global-configuration/)
|
|
86
|
+
- Icons powered by [Material Design Icons](https://pictogrammers.com/library/mdi/) via [Vuetify icon fonts](https://vuetifyjs.com/en/features/icon-fonts/)
|
|
87
|
+
- Fully responsive and adapts to all modern browsers and devices
|
|
88
|
+
- (coming soon) Light and dark mode toggle
|
|
89
|
+
|
|
90
|
+
### π Premium DX
|
|
91
|
+
|
|
92
|
+
- Zero-config with sensible defaults for common use cases
|
|
93
|
+
- All components use the modern [Vue Composition API](https://vuejs.org/guide/extras/composition-api-faq) and [Single File Component (SFC) syntax](https://vuejs.org/guide/scaling-up/sfc.html)
|
|
94
|
+
- [TypeScript](https://www.typescriptlang.org/) auto-complete and type safety for all components
|
|
95
|
+
- [ESLint](https://eslint.org/) support out of the box using flat config (v9)
|
|
96
|
+
- Identify performance gaps and seamlessly manage your app with [Nuxt Devtools](https://devtools.nuxt.com/)
|
|
97
|
+
- Clean, elegant code that's easy to understand and customize
|
|
98
|
+
- Loosely opinionated, leveraging ecosystem standards so you're not locked into outdated dependencies and practices
|
|
99
|
+
|
|
100
|
+
### π€ Smart SEO, Security, & Performance
|
|
101
|
+
|
|
102
|
+
- Fully tree shakeable for small bundle sizes
|
|
103
|
+
- Optimized caching and rendering strategies for each page with [hybrid rendering](https://nuxt.com/docs/guide/concepts/rendering#hybrid-rendering)
|
|
104
|
+
- (coming soon) Robots, sitemaps, schema.org, social share images, broken links, and more powered by [Nuxt SEO](https://nuxtseo.com/)
|
|
105
|
+
- (coming soon) Fast, responsive, optimized images for [20+ image providers](https://image.nuxt.com/get-started/providers) powered by [Nuxt Image](https://image.nuxt.com/)
|
|
106
|
+
- (coming soon) Load third-party scripts with better performance, privacy, security powered by [Nuxt Scripts](https://scripts.nuxt.com/)
|
|
107
|
+
- (coming soon) Optimal security patterns and principles powered by [Nuxt Security](https://nuxt.com/modules/security)
|
|
108
|
+
|
|
109
|
+
### π Host Anywhere
|
|
110
|
+
|
|
111
|
+
- Deploy to any Node.js server, static host, or serverless edge CDN environment with [20+ hosting providers](https://nuxt.com/deploy) supported
|
|
112
|
+
|
|
113
|
+
## <a name="quick-start">π Quick Start</a>
|
|
114
|
+
|
|
115
|
+
To use this module in your [new](https://nuxt.com/docs/getting-started/installation) or existing Nuxt project:
|
|
116
|
+
|
|
117
|
+
### 1. Install the module
|
|
118
|
+
|
|
119
|
+
Install the module in your Nuxt application with one command:
|
|
120
|
+
|
|
121
|
+
```bash
|
|
122
|
+
npx nuxi@latest module add @nuxtify/pages
|
|
123
|
+
```
|
|
124
|
+
|
|
125
|
+
### 2. Update Nuxt config
|
|
126
|
+
|
|
127
|
+
Add the `@nuxtify/pages` module to `nuxt.config.ts` and configure it:
|
|
128
|
+
|
|
129
|
+
```ts
|
|
130
|
+
// nuxt.config.ts
|
|
131
|
+
|
|
132
|
+
export default defineNuxtConfig({
|
|
133
|
+
modules: ["@nuxtify/pages"],
|
|
134
|
+
nuxtifyPages: {
|
|
135
|
+
/* module specific options */
|
|
136
|
+
},
|
|
137
|
+
});
|
|
138
|
+
```
|
|
139
|
+
|
|
140
|
+
Read the [π documentation](https://nuxtify.dev/docs) for a complete guide on how to configure and use this module.
|
|
141
|
+
|
|
142
|
+
### 3. Start building!
|
|
143
|
+
|
|
144
|
+
Develop and [deploy](https://nuxt.com/docs/getting-started/deployment) your Nuxt app like any other.
|
|
145
|
+
|
|
146
|
+
## <a name="configuration">π§ Configuration</a>
|
|
147
|
+
|
|
148
|
+
### Module configuration
|
|
149
|
+
|
|
150
|
+
To see the full config, check out the [types](https://github.com/nuxtify-dev/pages/blob/main/src/types.ts).
|
|
151
|
+
|
|
152
|
+
### Overriding the defaults
|
|
153
|
+
|
|
154
|
+
Nuxtify comes pre-configured with sensible defaults. Both for how the module functions and for the corresponding Nuxt [directory](https://nuxt.com/docs/guide/directory-structure).
|
|
155
|
+
|
|
156
|
+
If you need to override a [component](https://nuxt.com/docs/guide/directory-structure/components), [page](https://nuxt.com/docs/guide/directory-structure/pages), or [layout](https://nuxt.com/docs/guide/directory-structure/layouts), create the a file with the same name in your project (in the appropriate directory).
|
|
157
|
+
|
|
158
|
+
If you need to override a [composable](https://nuxt.com/docs/guide/directory-structure/composables) or [utils](https://nuxt.com/docs/guide/directory-structure/utils) utility function, create a function with the same name in your project (in the appropriate directory).
|
|
159
|
+
|
|
160
|
+
## <a name="updates">β
Updates</a>
|
|
161
|
+
|
|
162
|
+
[β¨ Release Notes](/CHANGELOG.md)
|
|
163
|
+
|
|
164
|
+
It's easy to stay up to date with the latest version of Nuxtify. Just update to the latest package using your favorite package manager.
|
|
165
|
+
|
|
166
|
+
**Minor and patch versions**
|
|
167
|
+
|
|
168
|
+
```bash
|
|
169
|
+
npm update @nuxtify/pages --save
|
|
170
|
+
```
|
|
171
|
+
|
|
172
|
+
**Major versions**
|
|
173
|
+
|
|
174
|
+
```bash
|
|
175
|
+
npm install @nuxtify/pages@latest --save
|
|
176
|
+
```
|
|
177
|
+
|
|
178
|
+
## <a name="contributing">β€οΈ Contributing</a>
|
|
179
|
+
|
|
180
|
+
I invite you to contribute and help improve Nuxtify!
|
|
181
|
+
|
|
182
|
+
Here are a few ways you can get involved:
|
|
183
|
+
|
|
184
|
+
- **Reporting Bugs:** If you come across any bugs or issues, please [open a new issue](https://github.com/nuxtify-dev/pages/issues/new).
|
|
185
|
+
- **Suggestions:** Have ideas to enhance Nuxtify? I'd love to hear them! You can [open a new issue](https://github.com/nuxtify-dev/pages/issues/new) describing your feature request or suggestion.
|
|
186
|
+
- **Local Development:** contribute directly to the framework with a pull request. Just follow the instructions below.
|
|
187
|
+
|
|
188
|
+
## <a name="local-development">π Local Development</a>
|
|
189
|
+
|
|
190
|
+
### CLI commands
|
|
191
|
+
|
|
192
|
+
```bash
|
|
193
|
+
# Install dependencies
|
|
194
|
+
npm install
|
|
195
|
+
|
|
196
|
+
# Generate type stubs
|
|
197
|
+
npm run dev:prepare
|
|
198
|
+
|
|
199
|
+
# Develop with the playground
|
|
200
|
+
npm run dev
|
|
201
|
+
|
|
202
|
+
# Build the playground
|
|
203
|
+
npm run dev:build
|
|
204
|
+
|
|
205
|
+
# Run ESLint
|
|
206
|
+
npm run lint
|
|
207
|
+
|
|
208
|
+
# Run Vitest
|
|
209
|
+
npm run test
|
|
210
|
+
npm run test:watch
|
|
211
|
+
```
|
|
212
|
+
|
|
213
|
+
Learn about [authoring Nuxt modules](https://nuxt.com/docs/guide/going-further/modules).
|
|
214
|
+
|
|
215
|
+
## <a name="license">βοΈ License</a>
|
|
216
|
+
|
|
217
|
+
[MIT](https://github.com/nuxtify-dev/pages/blob/main/LICENSE)
|
|
218
|
+
|
|
219
|
+
<!-- Badges -->
|
|
220
|
+
|
|
221
|
+
[npm-version-src]: https://img.shields.io/npm/v/@nuxtify/pages/latest.svg?style=flat&colorA=020420&colorB=00DC82
|
|
222
|
+
[npm-version-href]: https://npmjs.com/package/@nuxtify/pages
|
|
223
|
+
[npm-downloads-src]: https://img.shields.io/npm/dm/@nuxtify/pages.svg?style=flat&colorA=020420&colorB=00DC82
|
|
224
|
+
[npm-downloads-href]: https://npm.chart.dev/@nuxtify/pages
|
|
225
|
+
[license-src]: https://img.shields.io/npm/l/@nuxtify/pages.svg?style=flat&colorA=020420&colorB=00DC82
|
|
226
|
+
[license-href]: https://npmjs.com/package/@nuxtify/pages
|
|
227
|
+
[nuxtify-src]: https://img.shields.io/badge/Nuxtify_Docs-00DC82
|
|
228
|
+
[nuxtify-href]: https://nuxtify.dev/docs
|
|
229
|
+
[playground-src]: https://img.shields.io/badge/%F0%9F%8F%80_Playground-Demo-00DC82?labelColor=020420
|
|
230
|
+
[playground-href]: https://stackblitz.com/github/nuxtify-dev/pages?file=playground%2Fpages%2Findex.vue
|
package/dist/module.d.mts
CHANGED
|
@@ -7,32 +7,11 @@ interface Email extends CoreEmailOptions {
|
|
|
7
7
|
defaultSubmitUrl?: string;
|
|
8
8
|
};
|
|
9
9
|
}
|
|
10
|
-
interface Link {
|
|
11
|
-
text: string;
|
|
12
|
-
to?: string;
|
|
13
|
-
href?: string;
|
|
14
|
-
icon?: string;
|
|
15
|
-
openInNew?: boolean;
|
|
16
|
-
}
|
|
17
|
-
interface FooterLinks {
|
|
18
|
-
title: string;
|
|
19
|
-
links: Link[];
|
|
20
|
-
}
|
|
21
10
|
interface PageModuleOptions {
|
|
22
|
-
/**
|
|
23
|
-
* Navigation options
|
|
24
|
-
*/
|
|
25
|
-
navigation?: {
|
|
26
|
-
primary?: Link[];
|
|
27
|
-
secondary?: Link[];
|
|
28
|
-
footerPrimary?: FooterLinks[];
|
|
29
|
-
footerSecondary?: Link[];
|
|
30
|
-
};
|
|
31
11
|
/**
|
|
32
12
|
* Footer options
|
|
33
13
|
*/
|
|
34
14
|
footer?: {
|
|
35
|
-
copyright?: string;
|
|
36
15
|
cta?: {
|
|
37
16
|
show?: boolean;
|
|
38
17
|
title?: string;
|
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -2,7 +2,7 @@ import { defineNuxtModule, createResolver, installModule, addLayout, addComponen
|
|
|
2
2
|
import { defu } from 'defu';
|
|
3
3
|
|
|
4
4
|
const name = "@nuxtify/pages";
|
|
5
|
-
const version = "0.
|
|
5
|
+
const version = "0.4.1";
|
|
6
6
|
|
|
7
7
|
const module = defineNuxtModule({
|
|
8
8
|
meta: {
|
|
@@ -17,18 +17,10 @@ const module = defineNuxtModule({
|
|
|
17
17
|
defaults: {
|
|
18
18
|
// Brand
|
|
19
19
|
brand: {
|
|
20
|
-
name
|
|
21
|
-
},
|
|
22
|
-
// Navigation
|
|
23
|
-
navigation: {
|
|
24
|
-
primary: [],
|
|
25
|
-
secondary: [],
|
|
26
|
-
footerPrimary: [],
|
|
27
|
-
footerSecondary: []
|
|
20
|
+
name
|
|
28
21
|
},
|
|
29
22
|
// Footer
|
|
30
23
|
footer: {
|
|
31
|
-
copyright: "",
|
|
32
24
|
cta: {
|
|
33
25
|
show: false,
|
|
34
26
|
title: "",
|