@dargmuesli/nuxt-vio 11.1.1 → 11.2.1
Sign up to get free protection for your applications and to get access to all the features.
- package/.config/lint.js +2 -2
- package/composables/useVioGtag.ts +11 -15
- package/nuxt.config.ts +7 -2
- package/package.json +28 -28
- package/types/api.d.ts +4 -1
- package/utils/constants.ts +1 -1
package/.config/lint.js
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
// // TODO: add compat plugin when it supports flat config (https://github.com/amilajack/eslint-plugin-compat/issues/603)
|
2
2
|
// import { FlatCompat } from '@eslint/eslintrc'
|
3
3
|
import vueI18n from '@intlify/eslint-plugin-vue-i18n'
|
4
|
-
import
|
4
|
+
import prettierRecommended from 'eslint-plugin-prettier/recommended'
|
5
5
|
import eslintPluginYml from 'eslint-plugin-yml'
|
6
6
|
import globals from 'globals'
|
7
7
|
import jiti from 'jiti'
|
@@ -17,7 +17,7 @@ export const VIO_ESLINT_CONFIG = [
|
|
17
17
|
...vueI18n.configs['flat/recommended'],
|
18
18
|
// ...compat.extends('plugin:compat/recommended'),
|
19
19
|
...eslintPluginYml.configs['flat/recommended'],
|
20
|
-
|
20
|
+
prettierRecommended, // must be last
|
21
21
|
|
22
22
|
// {
|
23
23
|
// files: ['server/**/*'],
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import {
|
1
|
+
import { GTAG_COOKIE_ID } from '../utils/constants'
|
2
2
|
|
3
3
|
export const useVioGtag = () => {
|
4
4
|
const {
|
@@ -9,32 +9,28 @@ export const useVioGtag = () => {
|
|
9
9
|
} = useGtag()
|
10
10
|
const cookieControl = useCookieControl()
|
11
11
|
|
12
|
-
if (
|
13
|
-
cookieControl.cookiesEnabledIds.value?.includes(
|
14
|
-
GOOGLE_ANALYTICS_COOKIE_NAME,
|
15
|
-
)
|
16
|
-
) {
|
12
|
+
if (cookieControl.cookiesEnabledIds.value?.includes(GTAG_COOKIE_ID)) {
|
17
13
|
initializeGtag()
|
18
14
|
}
|
19
15
|
|
20
16
|
watch(cookieControl.cookiesEnabledIds, (current, previous) => {
|
21
17
|
if (
|
22
|
-
!previous?.includes(
|
23
|
-
current?.includes(
|
18
|
+
!previous?.includes(GTAG_COOKIE_ID) &&
|
19
|
+
current?.includes(GTAG_COOKIE_ID)
|
24
20
|
) {
|
25
|
-
initializeGtag()
|
26
|
-
enableAnalytics()
|
27
21
|
gtag('consent', 'update', {
|
28
|
-
ad_user_data: '
|
29
|
-
ad_personalization: '
|
30
|
-
ad_storage: '
|
22
|
+
ad_user_data: 'denied',
|
23
|
+
ad_personalization: 'denied',
|
24
|
+
ad_storage: 'denied',
|
31
25
|
analytics_storage: 'granted',
|
32
26
|
})
|
27
|
+
initializeGtag()
|
28
|
+
enableAnalytics()
|
33
29
|
}
|
34
30
|
|
35
31
|
if (
|
36
|
-
previous?.includes(
|
37
|
-
!current?.includes(
|
32
|
+
previous?.includes(GTAG_COOKIE_ID) &&
|
33
|
+
!current?.includes(GTAG_COOKIE_ID)
|
38
34
|
) {
|
39
35
|
disableAnalytics()
|
40
36
|
}
|
package/nuxt.config.ts
CHANGED
@@ -7,7 +7,7 @@ import {
|
|
7
7
|
SITE_URL,
|
8
8
|
SITE_NAME,
|
9
9
|
TIMEZONE_COOKIE_NAME,
|
10
|
-
|
10
|
+
GTAG_COOKIE_ID,
|
11
11
|
VIO_NUXT_BASE_CONFIG,
|
12
12
|
} from './utils/constants'
|
13
13
|
|
@@ -107,6 +107,11 @@ export default defineNuxtConfig(
|
|
107
107
|
// },
|
108
108
|
// },
|
109
109
|
},
|
110
|
+
vite: {
|
111
|
+
optimizeDeps: {
|
112
|
+
include: ['@heroicons/vue/24/outline'],
|
113
|
+
},
|
114
|
+
},
|
110
115
|
|
111
116
|
// modules
|
112
117
|
colorMode: {
|
@@ -146,7 +151,7 @@ export default defineNuxtConfig(
|
|
146
151
|
de: 'Die Cookies vom Drittanbieter Google ermöglichen die Analyse von Nutzerverhalten. Diese Analyse hilft uns unsere Dienste zu verbessern, indem wir verstehen, wie diese Webseite genutzt wird.',
|
147
152
|
en: 'The third-party cookies by Google enable the analysis of user behavior. This analysis helps us to improve our services by understanding how this website is used.',
|
148
153
|
},
|
149
|
-
id:
|
154
|
+
id: GTAG_COOKIE_ID,
|
150
155
|
links: {
|
151
156
|
'https://policies.google.com/privacy': 'Google Privacy Policy',
|
152
157
|
'https://policies.google.com/terms': 'Google Terms of Service',
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@dargmuesli/nuxt-vio",
|
3
|
-
"version": "11.
|
3
|
+
"version": "11.2.1",
|
4
4
|
"repository": {
|
5
5
|
"type": "git",
|
6
6
|
"url": "git+https://github.com/dargmuesli/vio.git"
|
@@ -12,7 +12,7 @@
|
|
12
12
|
"engines": {
|
13
13
|
"node": "20"
|
14
14
|
},
|
15
|
-
"packageManager": "pnpm@
|
15
|
+
"packageManager": "pnpm@9.0.5",
|
16
16
|
"files": [
|
17
17
|
".config",
|
18
18
|
"assets",
|
@@ -35,36 +35,42 @@
|
|
35
35
|
],
|
36
36
|
"main": "nuxt.config.ts",
|
37
37
|
"dependencies": {
|
38
|
-
"@dargmuesli/nuxt-cookie-control": "8.1.
|
38
|
+
"@dargmuesli/nuxt-cookie-control": "8.1.3",
|
39
39
|
"@heroicons/vue": "2.1.3",
|
40
40
|
"@http-util/status-i18n": "0.8.1",
|
41
|
-
"@
|
42
|
-
"@nuxt/
|
41
|
+
"@intlify/eslint-plugin-vue-i18n": "3.0.0-next.11",
|
42
|
+
"@nuxt/devtools": "1.2.0",
|
43
|
+
"@nuxt/eslint": "0.3.9",
|
44
|
+
"@nuxt/image": "1.6.0",
|
43
45
|
"@nuxtjs/color-mode": "3.4.0",
|
44
|
-
"@nuxtjs/html-validator": "1.7.
|
46
|
+
"@nuxtjs/html-validator": "1.7.2",
|
45
47
|
"@nuxtjs/i18n": "8.3.0",
|
46
48
|
"@nuxtjs/seo": "2.0.0-rc.10",
|
47
|
-
"@nuxtjs/tailwindcss": "6.
|
49
|
+
"@nuxtjs/tailwindcss": "6.12.0",
|
48
50
|
"@pinia/nuxt": "0.5.1",
|
49
51
|
"@tailwindcss/forms": "0.5.7",
|
50
52
|
"@tailwindcss/typography": "0.5.12",
|
51
53
|
"@types/lodash-es": "4.17.12",
|
52
|
-
"@urql/core": "5.0.
|
54
|
+
"@urql/core": "5.0.1",
|
53
55
|
"@vuelidate/core": "2.0.3",
|
54
56
|
"@vuelidate/validators": "2.0.4",
|
55
57
|
"clipboardy": "4.0.0",
|
56
58
|
"dayjs": "2.0.0-alpha.4",
|
59
|
+
"eslint": "9.1.1",
|
60
|
+
"eslint-config-prettier": "9.1.0",
|
61
|
+
"eslint-plugin-compat": "4.2.0",
|
62
|
+
"eslint-plugin-prettier": "5.1.3",
|
63
|
+
"eslint-plugin-yml": "1.14.0",
|
64
|
+
"globals": "15.0.0",
|
57
65
|
"jose": "5.2.4",
|
58
66
|
"nuxt-gtag": "2.0.5",
|
59
67
|
"nuxt-security": "1.3.2",
|
60
|
-
"sweetalert2": "11.10.
|
68
|
+
"sweetalert2": "11.10.8"
|
61
69
|
},
|
62
70
|
"devDependencies": {
|
63
71
|
"@axe-core/playwright": "4.9.0",
|
64
|
-
"@intlify/eslint-plugin-vue-i18n": "3.0.0-next.11",
|
65
|
-
"@nuxt/eslint": "0.3.7",
|
66
72
|
"@playwright/test": "1.43.1",
|
67
|
-
"@unhead/vue": "1.9.
|
73
|
+
"@unhead/vue": "1.9.7",
|
68
74
|
"@urql/devtools": "2.0.3",
|
69
75
|
"@urql/exchange-graphcache": "7.0.1",
|
70
76
|
"@urql/vue": "1.1.3",
|
@@ -72,12 +78,6 @@
|
|
72
78
|
"cookie-es": "1.1.0",
|
73
79
|
"cross-env": "7.0.3",
|
74
80
|
"defu": "6.1.4",
|
75
|
-
"eslint": "9.0.0",
|
76
|
-
"eslint-config-prettier": "9.1.0",
|
77
|
-
"eslint-plugin-compat": "4.2.0",
|
78
|
-
"eslint-plugin-prettier": "5.1.3",
|
79
|
-
"eslint-plugin-yml": "1.14.0",
|
80
|
-
"globals": "15.0.0",
|
81
81
|
"h3": "1.11.1",
|
82
82
|
"jiti": "1.21.0",
|
83
83
|
"lint-staged": "15.2.2",
|
@@ -85,24 +85,24 @@
|
|
85
85
|
"nuxt": "3.11.2",
|
86
86
|
"pinia": "2.1.7",
|
87
87
|
"prettier": "3.2.5",
|
88
|
-
"prettier-plugin-tailwindcss": "0.5.
|
89
|
-
"serve": "14.2.
|
90
|
-
"stylelint": "16.
|
88
|
+
"prettier-plugin-tailwindcss": "0.5.14",
|
89
|
+
"serve": "14.2.2",
|
90
|
+
"stylelint": "16.4.0",
|
91
91
|
"stylelint-config-recommended-vue": "1.5.0",
|
92
92
|
"stylelint-config-standard": "36.0.0",
|
93
93
|
"stylelint-no-unsupported-browser-features": "8.0.1",
|
94
94
|
"tailwindcss": "3.4.3",
|
95
95
|
"ufo": "1.5.3",
|
96
|
-
"unhead": "1.9.
|
97
|
-
"vue": "3.4.
|
98
|
-
"vue-router": "4.3.
|
99
|
-
"vue-tsc": "2.0.
|
96
|
+
"unhead": "1.9.7",
|
97
|
+
"vue": "3.4.24",
|
98
|
+
"vue-router": "4.3.2",
|
99
|
+
"vue-tsc": "2.0.14"
|
100
100
|
},
|
101
101
|
"peerDependencies": {
|
102
102
|
"nuxt": "3.11.2",
|
103
103
|
"playwright-core": "1.43.1",
|
104
|
-
"vue": "3.4.
|
105
|
-
"vue-router": "4.3.
|
104
|
+
"vue": "3.4.24",
|
105
|
+
"vue-router": "4.3.2"
|
106
106
|
},
|
107
107
|
"scripts": {
|
108
108
|
"build": "pnpm run build:node",
|
@@ -112,7 +112,7 @@
|
|
112
112
|
"dev": "pnpm run start:dev",
|
113
113
|
"generate": "pnpm run build:static",
|
114
114
|
"lint:fix": "pnpm run lint:js --fix && pnpm run lint:ts --fix && pnpm run lint:style --fix",
|
115
|
-
"lint:js": "eslint --cache
|
115
|
+
"lint:js": "eslint --cache",
|
116
116
|
"lint:staged": "lint-staged",
|
117
117
|
"lint:style": "stylelint --cache \"**/*.{vue,css}\" --ignore-path .gitignore",
|
118
118
|
"lint:ts": "nuxt typecheck",
|
package/types/api.d.ts
CHANGED
@@ -6,4 +6,7 @@ export type ApiData = ComputedRef<{
|
|
6
6
|
isFetching: boolean
|
7
7
|
}>
|
8
8
|
|
9
|
-
|
9
|
+
// if an `originalError` property seems to be required, consider https://github.com/maevsi/maevsi/pull/1182/files#diff-3011f5fc2745796b181fe633b2590cfeb2e976aec95b8e94630bba0cc6163c1cL8
|
10
|
+
export type BackendError = {
|
11
|
+
graphQLErrors: (GraphQLError & { errcode?: string })[]
|
12
|
+
} & CombinedError
|
package/utils/constants.ts
CHANGED
@@ -13,7 +13,7 @@ export const CACHE_VERSION = 'bOXMwoKlJr'
|
|
13
13
|
export const COOKIE_PREFIX = SITE_NAME.toLocaleLowerCase()
|
14
14
|
export const COOKIE_SEPARATOR = '_'
|
15
15
|
export const FETCH_RETRY_AMOUNT = 3
|
16
|
-
export const
|
16
|
+
export const GTAG_COOKIE_ID = 'ga'
|
17
17
|
export const I18N_MODULE_CONFIG = {
|
18
18
|
langDir: 'locales',
|
19
19
|
lazy: true,
|