@nuxtify/pages 0.4.2 → 0.4.5

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.2",
3
+ "version": "0.4.5",
4
4
  "configKey": "nuxtifyPages",
5
5
  "compatibility": {
6
6
  "nuxt": ">=3.16.0",
package/dist/module.mjs CHANGED
@@ -2,7 +2,7 @@ import { defineNuxtModule, createResolver, useLogger, installModule, addLayout,
2
2
  import { defu } from 'defu';
3
3
 
4
4
  const name = "@nuxtify/pages";
5
- const version = "0.4.2";
5
+ const version = "0.4.5";
6
6
 
7
7
  const module = defineNuxtModule({
8
8
  meta: {
@@ -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,7 +25,7 @@ const footerSecondaryLinks = nuxtifyConfig.navigation?.altSecondary;
17
25
  <!-- Brand -->
18
26
  <v-col
19
27
  cols="12"
20
- :lg="footerPrimaryLinks?.length === 4 ? 3 : 4"
28
+ :lg="brandColWidth"
21
29
  >
22
30
  <!-- Logo -->
23
31
  <AppLogo dark />
@@ -31,40 +39,44 @@ const footerSecondaryLinks = nuxtifyConfig.navigation?.altSecondary;
31
39
  <v-spacer />
32
40
 
33
41
  <!-- 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"
42
+ <v-col :lg="12 - brandColWidth">
43
+ <v-row>
44
+ <v-col
45
+ v-for="group in footerPrimaryLinks"
46
+ :key="group.title"
47
+ cols="6"
48
+ md="3"
49
+ lg="3"
57
50
  >
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>
51
+ <p class="text-body-1 font-weight-bold mb-3">
52
+ {{ group.title }}
53
+ </p>
54
+ <div
55
+ v-for="link in group.links"
56
+ :key="link.text"
57
+ >
58
+ <v-btn
59
+ :to="link.to"
60
+ :href="link.href"
61
+ variant="text"
62
+ :active="false"
63
+ :ripple="false"
64
+ :target="link.openInNew ? '_blank' : void 0"
65
+ :rel="link.openInNew ? 'noopener nofollow' : void 0"
66
+ class="px-0"
67
+ >
68
+ {{ link.text }}
69
+ <v-icon
70
+ v-if="link.openInNew"
71
+ :icon="mdiArrowTopRight"
72
+ size="small"
73
+ color="grey"
74
+ class="ml-1"
75
+ />
76
+ </v-btn>
77
+ </div>
78
+ </v-col>
79
+ </v-row>
68
80
  </v-col>
69
81
  </v-row>
70
82
 
@@ -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.2",
3
+ "version": "0.4.5",
4
4
  "description": "Nuxtify pages module powered by Nuxt and Vuetify.",
5
5
  "license": "MIT",
6
6
  "homepage": "https://nuxtify.dev",
@@ -43,7 +43,7 @@
43
43
  "test:types": "vue-tsc --noEmit && cd playground && vue-tsc --noEmit"
44
44
  },
45
45
  "dependencies": {
46
- "@nuxtify/core": "^0.1.9",
46
+ "@nuxtify/core": "^0.1.10",
47
47
  "defu": "^6.1.4"
48
48
  },
49
49
  "devDependencies": {