@dargmuesli/nuxt-vio 14.1.2 → 15.0.0
Sign up to get free protection for your applications and to get access to all the features.
- package/.config/lint.js +2 -2
- package/components/vio/_/VioLink.vue +2 -1
- package/composables/useAppLayout.ts +1 -1
- package/package.json +17 -17
- package/types/i18n.d.ts +2 -0
- package/utils/constants.ts +2 -3
- package/i18n.config.ts +0 -3
- package/locales/de.json +0 -14
- package/locales/en.json +0 -14
package/.config/lint.js
CHANGED
@@ -59,7 +59,7 @@ export const VIO_ESLINT_CONFIG = [
|
|
59
59
|
settings: {
|
60
60
|
polyfills: POLYFILLS,
|
61
61
|
'vue-i18n': {
|
62
|
-
localeDir: './locales/*.json',
|
62
|
+
localeDir: './i18n/locales/*.json',
|
63
63
|
messageSyntaxVersion: '^9.0.0',
|
64
64
|
},
|
65
65
|
},
|
@@ -68,7 +68,7 @@ export const VIO_ESLINT_CONFIG = [
|
|
68
68
|
ignores: ['tests'],
|
69
69
|
},
|
70
70
|
{
|
71
|
-
files: ['locales/**/*'],
|
71
|
+
files: ['i18n/locales/**/*'],
|
72
72
|
rules: {
|
73
73
|
'@intlify/vue-i18n/no-unused-keys': 'off',
|
74
74
|
},
|
@@ -26,6 +26,7 @@
|
|
26
26
|
|
27
27
|
<script setup lang="ts">
|
28
28
|
import type { NuxtLinkProps } from '#app'
|
29
|
+
import type { I18N_LOCALE_CODE } from '../../../types/i18n'
|
29
30
|
import { append } from '../../../utils/utils' // TODO: wait for autoimport to be fixed and remove this import
|
30
31
|
|
31
32
|
interface Props {
|
@@ -33,7 +34,7 @@ interface Props {
|
|
33
34
|
isColored?: boolean
|
34
35
|
isToRelative?: boolean
|
35
36
|
isUnderlined?: boolean
|
36
|
-
locale?:
|
37
|
+
locale?: I18N_LOCALE_CODE
|
37
38
|
nofollow?: boolean
|
38
39
|
to: NuxtLinkProps['to']
|
39
40
|
}
|
@@ -3,7 +3,7 @@ export const useAppLayout = () => {
|
|
3
3
|
const siteConfig = useSiteConfig()
|
4
4
|
|
5
5
|
useServerHeadSafe({
|
6
|
-
...useLocaleHead(
|
6
|
+
...useLocaleHead().value,
|
7
7
|
bodyAttrs: {
|
8
8
|
class:
|
9
9
|
'bg-background-bright dark:bg-background-dark text-text-dark dark:text-text-bright',
|
package/package.json
CHANGED
@@ -1,38 +1,38 @@
|
|
1
1
|
{
|
2
2
|
"dependencies": {
|
3
|
-
"@dargmuesli/nuxt-cookie-control": "8.4.
|
4
|
-
"@eslint/compat": "1.2.
|
3
|
+
"@dargmuesli/nuxt-cookie-control": "8.4.18",
|
4
|
+
"@eslint/compat": "1.2.4",
|
5
5
|
"@heroicons/vue": "2.2.0",
|
6
6
|
"@http-util/status-i18n": "0.8.1",
|
7
|
-
"@intlify/eslint-plugin-vue-i18n": "
|
8
|
-
"@nuxt/devtools": "1.6.
|
7
|
+
"@intlify/eslint-plugin-vue-i18n": "4.0.0-next.0",
|
8
|
+
"@nuxt/devtools": "1.6.3",
|
9
9
|
"@nuxt/eslint": "0.7.2",
|
10
10
|
"@nuxt/image": "1.8.1",
|
11
11
|
"@nuxtjs/color-mode": "3.5.2",
|
12
12
|
"@nuxtjs/html-validator": "1.8.2",
|
13
|
-
"@nuxtjs/i18n": "
|
13
|
+
"@nuxtjs/i18n": "9.0.0",
|
14
14
|
"@nuxtjs/seo": "2.0.2",
|
15
15
|
"@nuxtjs/tailwindcss": "6.12.2",
|
16
|
-
"@pinia/nuxt": "0.
|
16
|
+
"@pinia/nuxt": "0.9.0",
|
17
17
|
"@tailwindcss/forms": "0.5.9",
|
18
18
|
"@tailwindcss/typography": "0.5.15",
|
19
19
|
"@types/lodash-es": "4.17.12",
|
20
|
-
"@urql/core": "5.0
|
20
|
+
"@urql/core": "5.1.0",
|
21
21
|
"@urql/vue": "1.4.2",
|
22
22
|
"@vuelidate/core": "2.0.3",
|
23
23
|
"@vuelidate/validators": "2.0.4",
|
24
24
|
"clipboardy": "4.0.0",
|
25
25
|
"dayjs": "2.0.0-alpha.4",
|
26
|
-
"eslint": "9.
|
26
|
+
"eslint": "9.16.0",
|
27
27
|
"eslint-config-prettier": "9.1.0",
|
28
28
|
"eslint-plugin-compat": "6.0.1",
|
29
29
|
"eslint-plugin-prettier": "5.2.1",
|
30
|
-
"eslint-plugin-yml": "1.
|
31
|
-
"globals": "15.
|
32
|
-
"jiti": "2.4.
|
30
|
+
"eslint-plugin-yml": "1.16.0",
|
31
|
+
"globals": "15.13.0",
|
32
|
+
"jiti": "2.4.1",
|
33
33
|
"jose": "5.9.6",
|
34
34
|
"nuxt-gtag": "3.0.2",
|
35
|
-
"nuxt-security": "2.1.
|
35
|
+
"nuxt-security": "2.1.5",
|
36
36
|
"sweetalert2": "11.14.5",
|
37
37
|
"vue-tsc": "2.1.10"
|
38
38
|
},
|
@@ -46,16 +46,16 @@
|
|
46
46
|
"h3": "1.13.0",
|
47
47
|
"lodash-es": "4.17.21",
|
48
48
|
"nuxt": "3.14.1592",
|
49
|
-
"pinia": "2.
|
50
|
-
"prettier": "3.4.
|
49
|
+
"pinia": "2.3.0",
|
50
|
+
"prettier": "3.4.2",
|
51
51
|
"prettier-plugin-tailwindcss": "0.6.9",
|
52
52
|
"serve": "14.2.4",
|
53
53
|
"sharp": "0.33.5",
|
54
|
-
"stylelint": "16.
|
54
|
+
"stylelint": "16.11.0",
|
55
55
|
"stylelint-config-recommended-vue": "1.5.0",
|
56
56
|
"stylelint-config-standard": "36.0.1",
|
57
57
|
"stylelint-no-unsupported-browser-features": "8.0.2",
|
58
|
-
"tailwindcss": "3.4.
|
58
|
+
"tailwindcss": "3.4.16",
|
59
59
|
"unhead": "1.11.13",
|
60
60
|
"vue": "3.5.13",
|
61
61
|
"vue-router": "4.5.0"
|
@@ -117,5 +117,5 @@
|
|
117
117
|
"start:static": "serve .playground/.output/public --ssl-cert ./.config/certificates/ssl.crt --ssl-key ./.config/certificates/ssl.key"
|
118
118
|
},
|
119
119
|
"type": "module",
|
120
|
-
"version": "
|
120
|
+
"version": "15.0.0"
|
121
121
|
}
|
package/types/i18n.d.ts
ADDED
package/utils/constants.ts
CHANGED
@@ -131,17 +131,16 @@ export const GET_CSP = (siteUrl: string) =>
|
|
131
131
|
)
|
132
132
|
export const GTAG_COOKIE_ID = 'ga'
|
133
133
|
export const I18N_MODULE_CONFIG = {
|
134
|
-
langDir: 'locales',
|
135
134
|
lazy: true,
|
136
135
|
locales: [
|
137
136
|
{
|
138
|
-
code: 'en',
|
137
|
+
code: 'en' as const,
|
139
138
|
file: 'en.json',
|
140
139
|
language: 'en', // could be `en-US` is multiple `en` locales are differentiated
|
141
140
|
name: 'English', // Will be used as catchall locale by default.
|
142
141
|
},
|
143
142
|
{
|
144
|
-
code: 'de',
|
143
|
+
code: 'de' as const,
|
145
144
|
file: 'de.json',
|
146
145
|
language: 'de', // could be `de-DE` is multiple `de` locales are differentiated
|
147
146
|
name: 'Deutsch',
|
package/i18n.config.ts
DELETED
package/locales/de.json
DELETED
@@ -1,14 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"globalPlaceholderEmailAddress": "e-mail{'@'}adres.se",
|
3
|
-
"globalPlaceholderUrl": "https://websei.te",
|
4
|
-
"globalStatusError": "Fehler",
|
5
|
-
"globalStatusLoading": "Lade...",
|
6
|
-
"globalValidationFailed": "Bitte überprüfe deine Eingaben 🙈",
|
7
|
-
"globalValidationFormat": "Falsches Format",
|
8
|
-
"globalValidationFormatUrlHttps": "Muss mit \"https://\" beginnen",
|
9
|
-
"globalValidationLength": "Zu lang",
|
10
|
-
"globalValidationRequired": "Pflichtfeld",
|
11
|
-
"nuxtSiteConfig": {
|
12
|
-
"description": "Vio ist {'@'}dargmueslis Nuxt layer."
|
13
|
-
}
|
14
|
-
}
|
package/locales/en.json
DELETED
@@ -1,14 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"globalPlaceholderEmailAddress": "email{'@'}addre.ss",
|
3
|
-
"globalPlaceholderUrl": "https://websi.te",
|
4
|
-
"globalStatusError": "Error",
|
5
|
-
"globalStatusLoading": "Loading...",
|
6
|
-
"globalValidationFailed": "Please check your input 🙈",
|
7
|
-
"globalValidationFormat": "Incorrect format",
|
8
|
-
"globalValidationFormatUrlHttps": "Must start with \"https://\"",
|
9
|
-
"globalValidationLength": "Too long",
|
10
|
-
"globalValidationRequired": "Required",
|
11
|
-
"nuxtSiteConfig": {
|
12
|
-
"description": "Vio is {'@'}dargmuesli's Nuxt layer."
|
13
|
-
}
|
14
|
-
}
|