@nuxtify/pages 0.4.4 → 0.4.6

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/dist/module.d.mts CHANGED
@@ -1,12 +1,6 @@
1
1
  import * as _nuxt_schema from '@nuxt/schema';
2
2
  import { ModuleOptions as ModuleOptions$1 } from '@nuxtify/core';
3
3
 
4
- type CoreEmailOptions = NonNullable<ModuleOptions$1['email']>;
5
- interface Email extends CoreEmailOptions {
6
- provider?: {
7
- defaultSubmitUrl?: string;
8
- };
9
- }
10
4
  interface PageModuleOptions {
11
5
  /**
12
6
  * Footer options
@@ -22,7 +16,13 @@ interface PageModuleOptions {
22
16
  /**
23
17
  * Email options
24
18
  */
25
- email?: Email;
19
+ email?: {
20
+ general?: string;
21
+ support?: string;
22
+ provider?: {
23
+ defaultSubmitUrl?: string;
24
+ };
25
+ };
26
26
  /**
27
27
  * Style options
28
28
  */
@@ -34,6 +34,28 @@ interface PageModuleOptions {
34
34
  }
35
35
  type ModuleOptions = Omit<ModuleOptions$1, keyof PageModuleOptions> & PageModuleOptions;
36
36
 
37
- declare const _default: _nuxt_schema.NuxtModule<ModuleOptions, ModuleOptions, false>;
37
+ declare const _default: _nuxt_schema.NuxtModule<ModuleOptions, {
38
+ brand: {
39
+ name: string;
40
+ };
41
+ footer: {
42
+ cta: {
43
+ show: false;
44
+ title: string;
45
+ subtitle: string;
46
+ color: string;
47
+ };
48
+ };
49
+ email: {
50
+ provider: {
51
+ defaultSubmitUrl: string;
52
+ };
53
+ };
54
+ style: {
55
+ btn: {
56
+ rounded: true;
57
+ };
58
+ };
59
+ }, true>;
38
60
 
39
61
  export { _default as default };
package/dist/module.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@nuxtify/pages",
3
- "version": "0.4.4",
3
+ "version": "0.4.6",
4
4
  "configKey": "nuxtifyPages",
5
5
  "compatibility": {
6
6
  "nuxt": ">=3.16.0",
7
7
  "bridge": false
8
8
  },
9
9
  "builder": {
10
- "@nuxt/module-builder": "1.0.1",
11
- "unbuild": "3.5.0"
10
+ "@nuxt/module-builder": "1.0.2",
11
+ "unbuild": "unknown"
12
12
  }
13
13
  }
package/dist/module.mjs CHANGED
@@ -1,10 +1,10 @@
1
- import { defineNuxtModule, createResolver, useLogger, installModule, addLayout, addComponentsDir, addImportsDir, extendPages } from '@nuxt/kit';
1
+ import { defineNuxtModule, createResolver, useLogger, addLayout, addComponentsDir, addImportsDir, extendPages } from '@nuxt/kit';
2
2
  import { defu } from 'defu';
3
3
 
4
4
  const name = "@nuxtify/pages";
5
- const version = "0.4.4";
5
+ const version = "0.4.6";
6
6
 
7
- const module = defineNuxtModule({
7
+ const module$1 = defineNuxtModule().with({
8
8
  meta: {
9
9
  name,
10
10
  version,
@@ -14,6 +14,11 @@ const module = defineNuxtModule({
14
14
  bridge: false
15
15
  }
16
16
  },
17
+ moduleDependencies: {
18
+ "@nuxtify/core": {
19
+ version: ">=0.1.11"
20
+ }
21
+ },
17
22
  defaults: {
18
23
  // Brand
19
24
  brand: {
@@ -41,36 +46,33 @@ const module = defineNuxtModule({
41
46
  }
42
47
  }
43
48
  },
44
- async setup(_options, _nuxt) {
45
- const resolver = createResolver(import.meta.url);
46
- const logger = useLogger("Nuxtify Pages");
47
- _nuxt.options.appConfig.nuxtify = defu(_nuxt.options.appConfig.nuxtify, {
48
- ..._options
49
- });
50
- await installModule("@nuxtify/core", {
51
- verboseLogs: _options.verboseLogs
49
+ async setup(resolvedOptions, nuxt) {
50
+ const { resolve } = createResolver(import.meta.url);
51
+ const logger = useLogger("nuxtify-pages");
52
+ nuxt.options.appConfig.nuxtify = defu(nuxt.options.appConfig.nuxtify, {
53
+ ...resolvedOptions
52
54
  });
53
55
  addLayout({
54
- src: resolver.resolve("./runtime/layouts/DefaultLayout.vue")
56
+ src: resolve("./runtime/layouts/DefaultLayout.vue")
55
57
  }, "default");
56
58
  addComponentsDir({
57
- path: resolver.resolve("./runtime/components")
59
+ path: resolve("./runtime/components")
58
60
  });
59
- addImportsDir(resolver.resolve("./runtime/composables"));
60
- addImportsDir(resolver.resolve("./runtime/utils"));
61
+ addImportsDir(resolve("./runtime/composables"));
62
+ addImportsDir(resolve("./runtime/utils"));
61
63
  extendPages((pages) => {
62
64
  pages.unshift({
63
65
  name: "index",
64
66
  path: "/",
65
- file: resolver.resolve("./runtime/pages/IndexPage.vue")
67
+ file: resolve("./runtime/pages/IndexPage.vue")
66
68
  });
67
69
  pages.unshift({
68
70
  name: "slug",
69
71
  path: "/:slug",
70
- file: resolver.resolve("./runtime/pages/DynamicSlug.vue")
72
+ file: resolve("./runtime/pages/DynamicSlug.vue")
71
73
  });
72
74
  });
73
- _nuxt.hook("imports:extend", (imports) => {
75
+ nuxt.hook("imports:extend", (imports) => {
74
76
  const coreImportIndex = imports.findIndex(
75
77
  (imp) => {
76
78
  return (imp.as || imp.name) === "useNuxtifyConfig" && imp.from.includes("@nuxtify/core");
@@ -78,10 +80,10 @@ const module = defineNuxtModule({
78
80
  );
79
81
  if (coreImportIndex > -1) {
80
82
  imports.splice(coreImportIndex, 1);
81
- if (_options.verboseLogs) logger.warn("[nuxtify-pages] Intentionally overriding useNuxtifyConfig from @nuxtify/core.");
83
+ if (resolvedOptions.verboseLogs) logger.info("Intentionally overriding useNuxtifyConfig from @nuxtify/core.");
82
84
  }
83
85
  });
84
86
  }
85
87
  });
86
88
 
87
- export { module as default };
89
+ export { module$1 as default };
@@ -1,8 +1,16 @@
1
1
  <script setup>
2
- import { mdiArrowTopRight, useNuxtifyConfig } from "#imports";
2
+ import { computed, mdiArrowTopRight, useNuxtifyConfig } from "#imports";
3
3
  const nuxtifyConfig = useNuxtifyConfig();
4
4
  const footerPrimaryLinks = nuxtifyConfig.navigation?.altPrimary;
5
5
  const footerSecondaryLinks = nuxtifyConfig.navigation?.altSecondary;
6
+ const brandColWidth = computed(() => {
7
+ if (!footerPrimaryLinks) {
8
+ return 12;
9
+ } else if (footerPrimaryLinks?.length >= 4) {
10
+ return 4;
11
+ }
12
+ return 6;
13
+ });
6
14
  </script>
7
15
 
8
16
  <template>
@@ -17,10 +25,12 @@ const footerSecondaryLinks = nuxtifyConfig.navigation?.altSecondary;
17
25
  <!-- Brand -->
18
26
  <v-col
19
27
  cols="12"
20
- :lg="footerPrimaryLinks && footerPrimaryLinks?.length >= 4 ? 3 : 4"
28
+ :lg="brandColWidth"
21
29
  >
22
30
  <!-- Logo -->
23
- <AppLogo dark />
31
+ <NuxtLink to="/">
32
+ <AppLogo dark />
33
+ </NuxtLink>
24
34
 
25
35
  <!-- Tagline -->
26
36
  <p class="mt-2 clip-text">
@@ -31,7 +41,7 @@ const footerSecondaryLinks = nuxtifyConfig.navigation?.altSecondary;
31
41
  <v-spacer />
32
42
 
33
43
  <!-- Primary Links -->
34
- <v-col :lg="footerPrimaryLinks && footerPrimaryLinks?.length >= 4 ? 9 : 8">
44
+ <v-col :lg="12 - brandColWidth">
35
45
  <v-row>
36
46
  <v-col
37
47
  v-for="group in footerPrimaryLinks"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuxtify/pages",
3
- "version": "0.4.4",
3
+ "version": "0.4.6",
4
4
  "description": "Nuxtify pages module powered by Nuxt and Vuetify.",
5
5
  "license": "MIT",
6
6
  "homepage": "https://nuxtify.dev",
@@ -38,28 +38,29 @@
38
38
  "dev:prepare": "nuxt-module-build build --stub && nuxt-module-build prepare && nuxi prepare playground",
39
39
  "release": "npm run lint && npm run test && npm run prepack && changelogen --release && npm publish && git push --follow-tags",
40
40
  "lint": "eslint .",
41
+ "lint:fix": "eslint . --fix",
41
42
  "test": "vitest run",
42
43
  "test:watch": "vitest watch",
43
44
  "test:types": "vue-tsc --noEmit && cd playground && vue-tsc --noEmit"
44
45
  },
45
46
  "dependencies": {
46
- "@nuxtify/core": "^0.1.10",
47
+ "@nuxtify/core": "^0.1.11",
47
48
  "defu": "^6.1.4"
48
49
  },
49
50
  "devDependencies": {
50
- "@nuxt/devtools": "^2.5.0",
51
- "@nuxt/eslint": "^1.4.1",
51
+ "@nuxt/devtools": "^2.7.0",
52
+ "@nuxt/eslint": "^1.12.1",
52
53
  "@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",
54
+ "@nuxt/kit": "^3.20.2",
55
+ "@nuxt/module-builder": "^1.0.2",
56
+ "@nuxt/schema": "^3.20.2",
57
+ "@nuxt/test-utils": "^3.23.0",
58
+ "@types/node": "^22.19.7",
59
+ "changelogen": "^0.6.2",
60
+ "eslint": "^9.39.2",
61
+ "nuxt": "^3.20.2",
62
+ "typescript": "^5.9.3",
62
63
  "vitest": "^3.2.4",
63
- "vue-tsc": "^2.2.10"
64
+ "vue-tsc": "^2.2.12"
64
65
  }
65
66
  }