@nuxtify/pages 0.4.1 → 0.4.4

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.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuxtify/pages",
3
- "version": "0.4.1",
3
+ "version": "0.4.4",
4
4
  "configKey": "nuxtifyPages",
5
5
  "compatibility": {
6
6
  "nuxt": ">=3.16.0",
package/dist/module.mjs CHANGED
@@ -1,8 +1,8 @@
1
- import { defineNuxtModule, createResolver, installModule, addLayout, addComponentsDir, addImportsDir, extendPages } from '@nuxt/kit';
1
+ import { defineNuxtModule, createResolver, useLogger, installModule, 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.1";
5
+ const version = "0.4.4";
6
6
 
7
7
  const module = defineNuxtModule({
8
8
  meta: {
@@ -43,6 +43,7 @@ const module = defineNuxtModule({
43
43
  },
44
44
  async setup(_options, _nuxt) {
45
45
  const resolver = createResolver(import.meta.url);
46
+ const logger = useLogger("Nuxtify Pages");
46
47
  _nuxt.options.appConfig.nuxtify = defu(_nuxt.options.appConfig.nuxtify, {
47
48
  ..._options
48
49
  });
@@ -77,7 +78,7 @@ const module = defineNuxtModule({
77
78
  );
78
79
  if (coreImportIndex > -1) {
79
80
  imports.splice(coreImportIndex, 1);
80
- if (_options.verboseLogs) console.log("[nuxtify-pages] Intentionally overriding useNuxtifyConfig from @nuxtify/core.");
81
+ if (_options.verboseLogs) logger.warn("[nuxtify-pages] Intentionally overriding useNuxtifyConfig from @nuxtify/core.");
81
82
  }
82
83
  });
83
84
  }
@@ -17,7 +17,7 @@ const footerSecondaryLinks = nuxtifyConfig.navigation?.altSecondary;
17
17
  <!-- Brand -->
18
18
  <v-col
19
19
  cols="12"
20
- :lg="footerPrimaryLinks?.length === 4 ? 3 : 4"
20
+ :lg="footerPrimaryLinks && footerPrimaryLinks?.length >= 4 ? 3 : 4"
21
21
  >
22
22
  <!-- Logo -->
23
23
  <AppLogo dark />
@@ -31,40 +31,44 @@ const footerSecondaryLinks = nuxtifyConfig.navigation?.altSecondary;
31
31
  <v-spacer />
32
32
 
33
33
  <!-- Primary Links -->
34
- <v-col
35
- v-for="group in footerPrimaryLinks"
36
- :key="group.title"
37
- cols="6"
38
- md="3"
39
- lg="2"
40
- >
41
- <p class="text-body-1 font-weight-bold mb-3">
42
- {{ group.title }}
43
- </p>
44
- <div
45
- v-for="link in group.links"
46
- :key="link.text"
47
- >
48
- <v-btn
49
- :to="link.to"
50
- :href="link.href"
51
- variant="text"
52
- :active="false"
53
- :ripple="false"
54
- :target="link.openInNew ? '_blank' : void 0"
55
- :rel="link.openInNew ? 'noopener nofollow' : void 0"
56
- class="px-0"
34
+ <v-col :lg="footerPrimaryLinks && footerPrimaryLinks?.length >= 4 ? 9 : 8">
35
+ <v-row>
36
+ <v-col
37
+ v-for="group in footerPrimaryLinks"
38
+ :key="group.title"
39
+ cols="6"
40
+ md="3"
41
+ lg="3"
57
42
  >
58
- {{ link.text }}
59
- <v-icon
60
- v-if="link.openInNew"
61
- :icon="mdiArrowTopRight"
62
- size="small"
63
- color="grey"
64
- class="ml-1"
65
- />
66
- </v-btn>
67
- </div>
43
+ <p class="text-body-1 font-weight-bold mb-3">
44
+ {{ group.title }}
45
+ </p>
46
+ <div
47
+ v-for="link in group.links"
48
+ :key="link.text"
49
+ >
50
+ <v-btn
51
+ :to="link.to"
52
+ :href="link.href"
53
+ variant="text"
54
+ :active="false"
55
+ :ripple="false"
56
+ :target="link.openInNew ? '_blank' : void 0"
57
+ :rel="link.openInNew ? 'noopener nofollow' : void 0"
58
+ class="px-0"
59
+ >
60
+ {{ link.text }}
61
+ <v-icon
62
+ v-if="link.openInNew"
63
+ :icon="mdiArrowTopRight"
64
+ size="small"
65
+ color="grey"
66
+ class="ml-1"
67
+ />
68
+ </v-btn>
69
+ </div>
70
+ </v-col>
71
+ </v-row>
68
72
  </v-col>
69
73
  </v-row>
70
74
 
@@ -32,3 +32,7 @@ useNuxtifySiteTitle();
32
32
  </v-footer>
33
33
  </v-app>
34
34
  </template>
35
+
36
+ <style>
37
+ .link-hover{text-decoration:none}.link-hover:hover{text-decoration:underline}
38
+ </style>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuxtify/pages",
3
- "version": "0.4.1",
3
+ "version": "0.4.4",
4
4
  "description": "Nuxtify pages module powered by Nuxt and Vuetify.",
5
5
  "license": "MIT",
6
6
  "homepage": "https://nuxtify.dev",
@@ -43,11 +43,12 @@
43
43
  "test:types": "vue-tsc --noEmit && cd playground && vue-tsc --noEmit"
44
44
  },
45
45
  "dependencies": {
46
- "@nuxtify/core": "^0.1.8",
46
+ "@nuxtify/core": "^0.1.10",
47
47
  "defu": "^6.1.4"
48
48
  },
49
49
  "devDependencies": {
50
50
  "@nuxt/devtools": "^2.5.0",
51
+ "@nuxt/eslint": "^1.4.1",
51
52
  "@nuxt/eslint-config": "^1.4.1",
52
53
  "@nuxt/kit": "^3.17.5",
53
54
  "@nuxt/module-builder": "^1.0.1",