@dargmuesli/nuxt-vio 20.0.0 → 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.
@@ -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
+ }
@@ -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",
@@ -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
@@ -6,7 +6,7 @@
6
6
  "@http-util/status-i18n": "0.9.0",
7
7
  "@intlify/eslint-plugin-vue-i18n": "4.1.0",
8
8
  "@nuxt/devtools": "3.1.1",
9
- "@nuxt/eslint": "1.10.0",
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.0.0",
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.554.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.0.0",
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.6.2",
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.0.0"
117
+ "version": "20.1.0"
118
118
  }