@dargmuesli/nuxt-vio 4.0.2 → 5.0.0
Sign up to get free protection for your applications and to get access to all the features.
- package/nuxt.config.ts +2 -4
- package/package.json +17 -19
- package/utils/constants.ts +1 -7
package/nuxt.config.ts
CHANGED
@@ -29,9 +29,6 @@ export default defineNuxtConfig(
|
|
29
29
|
lang: 'en', // fallback data to prevent invalid html at generation
|
30
30
|
},
|
31
31
|
titleTemplate: '%s', // fully set in `composables/useAppLayout.ts`
|
32
|
-
templateParams: {
|
33
|
-
separator: '·',
|
34
|
-
},
|
35
32
|
},
|
36
33
|
pageTransition: {
|
37
34
|
name: 'layout',
|
@@ -146,6 +143,7 @@ export default defineNuxtConfig(
|
|
146
143
|
logLevel: 'warning',
|
147
144
|
},
|
148
145
|
i18n: {
|
146
|
+
baseUrl: SITE_URL,
|
149
147
|
detectBrowserLanguage: {
|
150
148
|
cookieKey: I18N_COOKIE_NAME,
|
151
149
|
cookieSecure: true,
|
@@ -159,6 +157,7 @@ export default defineNuxtConfig(
|
|
159
157
|
},
|
160
158
|
site: {
|
161
159
|
debug: process.env.NODE_ENV === 'development',
|
160
|
+
url: SITE_URL,
|
162
161
|
},
|
163
162
|
sitemap: {
|
164
163
|
exclude: I18N_MODULE_CONFIG.locales.map(
|
@@ -171,7 +170,6 @@ export default defineNuxtConfig(
|
|
171
170
|
},
|
172
171
|
},
|
173
172
|
VIO_NUXT_BASE_CONFIG({
|
174
|
-
siteUrl: SITE_URL,
|
175
173
|
defaultLocale: 'en',
|
176
174
|
siteName: SITE_NAME,
|
177
175
|
stagingHost: 'localhost:3000',
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@dargmuesli/nuxt-vio",
|
3
|
-
"version": "
|
3
|
+
"version": "5.0.0",
|
4
4
|
"type": "module",
|
5
5
|
"publishConfig": {
|
6
6
|
"access": "public"
|
@@ -32,7 +32,7 @@
|
|
32
32
|
"scripts": {
|
33
33
|
"build": "pnpm run build:node",
|
34
34
|
"build:node": "nuxt build .playground",
|
35
|
-
"build:static": "
|
35
|
+
"build:static": "nuxt generate .playground",
|
36
36
|
"dev": "pnpm run start:dev",
|
37
37
|
"generate": "pnpm run build:static",
|
38
38
|
"lint:fix": "pnpm run lint:js --fix && pnpm run lint:ts --fix && pnpm run lint:style --fix",
|
@@ -64,8 +64,10 @@
|
|
64
64
|
"@axe-core/playwright": "4.7.3",
|
65
65
|
"@dargmuesli/nuxt-cookie-control": "6.4.2",
|
66
66
|
"@http-util/status-i18n": "0.8.1",
|
67
|
+
"@intlify/eslint-plugin-vue-i18n": "3.0.0-next.3",
|
67
68
|
"@nuxt/image": "1.0.0-rc.1",
|
68
69
|
"@nuxtjs/color-mode": "3.3.0",
|
70
|
+
"@nuxtjs/eslint-config-typescript": "12.1.0",
|
69
71
|
"@nuxtjs/html-validator": "1.5.2",
|
70
72
|
"@nuxtjs/i18n": "8.0.0-rc.4",
|
71
73
|
"@nuxtjs/tailwindcss": "6.8.0",
|
@@ -86,34 +88,30 @@
|
|
86
88
|
"cookie": "0.5.0",
|
87
89
|
"cross-env": "7.0.3",
|
88
90
|
"dayjs": "2.0.0-alpha.4",
|
89
|
-
"is-https": "4.0.0",
|
90
|
-
"jiti": "1.20.0",
|
91
|
-
"jose": "4.14.6",
|
92
|
-
"lodash-es": "4.17.21",
|
93
|
-
"pinia": "2.1.6",
|
94
|
-
"serve": "14.2.1",
|
95
|
-
"sweetalert2": "11.7.27",
|
96
|
-
"vue-gtag": "2.0.1",
|
97
|
-
"vue-tsc": "1.8.11"
|
98
|
-
},
|
99
|
-
"devDependencies": {
|
100
|
-
"@intlify/eslint-plugin-vue-i18n": "3.0.0-next.3",
|
101
|
-
"@nuxtjs/eslint-config-typescript": "12.1.0",
|
102
|
-
"eslint": "8.49.0",
|
103
91
|
"eslint-config-prettier": "9.0.0",
|
104
92
|
"eslint-plugin-compat": "4.2.0",
|
105
93
|
"eslint-plugin-nuxt": "4.0.0",
|
106
94
|
"eslint-plugin-prettier": "5.0.0",
|
107
95
|
"eslint-plugin-yml": "1.9.0",
|
96
|
+
"eslint": "8.49.0",
|
97
|
+
"is-https": "4.0.0",
|
98
|
+
"jiti": "1.20.0",
|
99
|
+
"jose": "4.14.6",
|
108
100
|
"lint-staged": "14.0.1",
|
109
|
-
"
|
110
|
-
"
|
101
|
+
"lodash-es": "4.17.21",
|
102
|
+
"nuxt": "3.7.2",
|
103
|
+
"pinia": "2.1.6",
|
111
104
|
"prettier-plugin-tailwindcss": "0.5.4",
|
112
|
-
"
|
105
|
+
"prettier": "3.0.3",
|
106
|
+
"serve": "14.2.1",
|
113
107
|
"stylelint-config-recommended-vue": "1.5.0",
|
114
108
|
"stylelint-config-standard": "34.0.0",
|
115
109
|
"stylelint-no-unsupported-browser-features": "7.0.0",
|
110
|
+
"stylelint": "15.10.3",
|
111
|
+
"sweetalert2": "11.7.27",
|
116
112
|
"tailwindcss": "3.3.3",
|
113
|
+
"vue-gtag": "2.0.1",
|
114
|
+
"vue-tsc": "1.8.11",
|
117
115
|
"vue": "3.3.4"
|
118
116
|
},
|
119
117
|
"peerDependencies": {
|
package/utils/constants.ts
CHANGED
@@ -53,12 +53,10 @@ export const TITLE_TEMPLATE = ({
|
|
53
53
|
export const VALIDATION_SUGGESTION_TITLE_LENGTH_MAXIMUM = 300
|
54
54
|
export const VERIFICATION_FORMAT_UUID = helpers.regex(REGEX_UUID)
|
55
55
|
export const VIO_NUXT_BASE_CONFIG = ({
|
56
|
-
siteUrl,
|
57
56
|
defaultLocale,
|
58
57
|
siteName,
|
59
58
|
stagingHost,
|
60
59
|
}: {
|
61
|
-
siteUrl?: string
|
62
60
|
defaultLocale?: string
|
63
61
|
siteName: string
|
64
62
|
stagingHost?: string
|
@@ -66,14 +64,11 @@ export const VIO_NUXT_BASE_CONFIG = ({
|
|
66
64
|
({
|
67
65
|
app: {
|
68
66
|
head: {
|
69
|
-
title:
|
67
|
+
title: siteName, // fallback data to prevent invalid html at generation
|
70
68
|
},
|
71
69
|
},
|
72
70
|
runtimeConfig: {
|
73
71
|
public: {
|
74
|
-
i18n: {
|
75
|
-
...(siteUrl ? { baseUrl: siteUrl } : {}),
|
76
|
-
},
|
77
72
|
vio: {
|
78
73
|
...(stagingHost
|
79
74
|
? {
|
@@ -94,7 +89,6 @@ export const VIO_NUXT_BASE_CONFIG = ({
|
|
94
89
|
...I18N_MODULE_CONFIG, // `langDir`, `lazy` and `locales` must be configured to extend a layer having lazy-loaded translations (https://v8.i18n.nuxtjs.org/guide/layers#locales)
|
95
90
|
},
|
96
91
|
site: {
|
97
|
-
...(siteUrl ? { url: siteUrl } : {}),
|
98
92
|
...(defaultLocale ? { defaultLocale } : {}),
|
99
93
|
name: siteName,
|
100
94
|
},
|