@dargmuesli/nuxt-vio 20.0.0-beta.8 → 20.1.0
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/.config/lint.js +8 -1
- package/app/composables/window.ts +20 -0
- package/i18n/locales/de.json +1 -0
- package/i18n/locales/en.json +1 -0
- package/package.json +8 -8
- /package/app/components/vio/loader/{Loader.vue → VioLoader.vue} +0 -0
- /package/app/components/vio/loader/{LoaderImage.vue → VioLoaderImage.vue} +0 -0
- /package/app/components/vio/loader/indicator/{LoaderIndicatorText.vue → VioLoaderIndicatorText.vue} +0 -0
package/.config/lint.js
CHANGED
|
@@ -36,6 +36,13 @@ export const VIO_ESLINT_CONFIG = [
|
|
|
36
36
|
},
|
|
37
37
|
},
|
|
38
38
|
rules: {
|
|
39
|
+
'@intlify/vue-i18n/no-missing-keys': 'error',
|
|
40
|
+
'@intlify/vue-i18n/no-raw-text': 'error',
|
|
41
|
+
'@intlify/vue-i18n/no-deprecated-i18n-component': 'error',
|
|
42
|
+
'@intlify/vue-i18n/no-deprecated-i18n-place-attr': 'error',
|
|
43
|
+
'@intlify/vue-i18n/no-deprecated-i18n-places-prop': 'error',
|
|
44
|
+
'@intlify/vue-i18n/no-i18n-t-path-prop': 'error',
|
|
45
|
+
'@intlify/vue-i18n/valid-message-syntax': 'error',
|
|
39
46
|
'@intlify/vue-i18n/key-format-style': 'error',
|
|
40
47
|
'@intlify/vue-i18n/no-duplicate-keys-in-locale': 'error',
|
|
41
48
|
'@intlify/vue-i18n/no-dynamic-keys': 'error',
|
|
@@ -44,7 +51,7 @@ export const VIO_ESLINT_CONFIG = [
|
|
|
44
51
|
'@intlify/vue-i18n/no-unused-keys': 'error',
|
|
45
52
|
'@intlify/vue-i18n/prefer-sfc-lang-attr': 'error',
|
|
46
53
|
'@intlify/vue-i18n/prefer-linked-key-with-paren': 'error',
|
|
47
|
-
// '@intlify/vue-i18n/sfc-locale-attr': 'error',
|
|
54
|
+
// '@intlify/vue-i18n/sfc-locale-attr': 'error', // TODO: evaluate if enabling this makes sense
|
|
48
55
|
|
|
49
56
|
'yml/quotes': ['error', { prefer: 'single' }],
|
|
50
57
|
},
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { useClipboard } from '@vueuse/core'
|
|
2
|
+
|
|
3
|
+
export const useCopy = () => {
|
|
4
|
+
const { copy: clipboardCopy, isSupported } = useClipboard()
|
|
5
|
+
const { t } = useI18n({ useScope: 'global' })
|
|
6
|
+
const alertError = useAlertError()
|
|
7
|
+
|
|
8
|
+
const copy = async (text: string) => {
|
|
9
|
+
if (!import.meta.client) return
|
|
10
|
+
|
|
11
|
+
if (!isSupported) {
|
|
12
|
+
alertError(t('globalErrorClipboard'))
|
|
13
|
+
return
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
await clipboardCopy(text)
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
return { copy }
|
|
20
|
+
}
|
package/i18n/locales/de.json
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"globalError": "Fehler",
|
|
3
|
+
"globalErrorClipboard": "Dein Browser unterstützt das moderne Kopieren in die Zwischenablage nicht.",
|
|
3
4
|
"globalSeoOgImageAlt": "Social Preview Image für eine Vio Webseite.",
|
|
4
5
|
"globalPlaceholderEmailAddress": "e-mail{'@'}adres.se",
|
|
5
6
|
"globalPlaceholderUrl": "https://websei.te",
|
package/i18n/locales/en.json
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"globalError": "Error",
|
|
3
|
+
"globalErrorClipboard": "Your browser does not support modern copying to the clipboard.",
|
|
3
4
|
"globalSeoOgImageAlt": "Social Preview Image for a Vio webpage.",
|
|
4
5
|
"globalPlaceholderEmailAddress": "email{'@'}addre.ss",
|
|
5
6
|
"globalPlaceholderUrl": "https://websi.te",
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"dependencies": {
|
|
3
|
-
"@dargmuesli/nuxt-cookie-control": "9.1.
|
|
3
|
+
"@dargmuesli/nuxt-cookie-control": "9.1.9",
|
|
4
4
|
"@eslint/compat": "2.0.0",
|
|
5
5
|
"@heroicons/vue": "2.2.0",
|
|
6
6
|
"@http-util/status-i18n": "0.9.0",
|
|
7
7
|
"@intlify/eslint-plugin-vue-i18n": "4.1.0",
|
|
8
|
-
"@nuxt/devtools": "3.1.
|
|
9
|
-
"@nuxt/eslint": "1.
|
|
8
|
+
"@nuxt/devtools": "3.1.1",
|
|
9
|
+
"@nuxt/eslint": "1.11.0",
|
|
10
10
|
"@nuxt/image": "2.0.0",
|
|
11
11
|
"@nuxtjs/color-mode": "4.0.0",
|
|
12
12
|
"@nuxtjs/html-validator": "2.1.0",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"@urql/vue": "2.0.0",
|
|
22
22
|
"@vuelidate/core": "2.0.3",
|
|
23
23
|
"@vuelidate/validators": "2.0.4",
|
|
24
|
-
"@vueuse/core": "14.
|
|
24
|
+
"@vueuse/core": "14.1.0",
|
|
25
25
|
"class-variance-authority": "0.7.1",
|
|
26
26
|
"clipboardy": "5.0.1",
|
|
27
27
|
"clsx": "2.1.1",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"globals": "16.5.0",
|
|
34
34
|
"jiti": "2.6.1",
|
|
35
35
|
"jose": "6.1.2",
|
|
36
|
-
"lucide-vue-next": "0.
|
|
36
|
+
"lucide-vue-next": "0.555.0",
|
|
37
37
|
"nuxt-gtag": "4.1.0",
|
|
38
38
|
"nuxt-security": "2.5.0",
|
|
39
39
|
"reka-ui": "2.6.0",
|
|
@@ -47,14 +47,14 @@
|
|
|
47
47
|
"@types/node": "24.10.1",
|
|
48
48
|
"@urql/devtools": "2.0.3",
|
|
49
49
|
"@urql/exchange-graphcache": "8.1.0",
|
|
50
|
-
"@vueuse/core": "14.
|
|
50
|
+
"@vueuse/core": "14.1.0",
|
|
51
51
|
"consola": "3.4.2",
|
|
52
52
|
"defu": "6.1.4",
|
|
53
53
|
"h3": "1.15.4",
|
|
54
54
|
"lodash-es": "4.17.21",
|
|
55
55
|
"nuxt": "4.2.1",
|
|
56
56
|
"pinia": "3.0.4",
|
|
57
|
-
"prettier": "3.
|
|
57
|
+
"prettier": "3.7.1",
|
|
58
58
|
"prettier-plugin-tailwindcss": "0.7.1",
|
|
59
59
|
"serve": "14.2.5",
|
|
60
60
|
"sharp": "0.34.5",
|
|
@@ -114,5 +114,5 @@
|
|
|
114
114
|
"start:static": "serve playground/.output/public --ssl-cert ./.config/certificates/ssl.crt --ssl-key ./.config/certificates/ssl.key"
|
|
115
115
|
},
|
|
116
116
|
"type": "module",
|
|
117
|
-
"version": "20.
|
|
117
|
+
"version": "20.1.0"
|
|
118
118
|
}
|
|
File without changes
|
|
File without changes
|
/package/app/components/vio/loader/indicator/{LoaderIndicatorText.vue → VioLoaderIndicatorText.vue}
RENAMED
|
File without changes
|