@dargmuesli/nuxt-vio 11.2.0 → 11.2.1

Sign up to get free protection for your applications and to get access to all the features.
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 prettier from 'eslint-plugin-prettier/recommended'
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
- prettier, // must be last
20
+ prettierRecommended, // must be last
21
21
 
22
22
  // {
23
23
  // files: ['server/**/*'],
@@ -1,4 +1,4 @@
1
- import { GOOGLE_ANALYTICS_COOKIE_NAME } from '../utils/constants'
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(GOOGLE_ANALYTICS_COOKIE_NAME) &&
23
- current?.includes(GOOGLE_ANALYTICS_COOKIE_NAME)
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: 'granted',
29
- ad_personalization: 'granted',
30
- ad_storage: 'granted',
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(GOOGLE_ANALYTICS_COOKIE_NAME) &&
37
- !current?.includes(GOOGLE_ANALYTICS_COOKIE_NAME)
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
- GOOGLE_ANALYTICS_COOKIE_NAME,
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: GOOGLE_ANALYTICS_COOKIE_NAME,
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.2.0",
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@8.15.7",
15
+ "packageManager": "pnpm@9.0.5",
16
16
  "files": [
17
17
  ".config",
18
18
  "assets",
@@ -35,28 +35,28 @@
35
35
  ],
36
36
  "main": "nuxt.config.ts",
37
37
  "dependencies": {
38
- "@dargmuesli/nuxt-cookie-control": "8.1.2",
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
41
  "@intlify/eslint-plugin-vue-i18n": "3.0.0-next.11",
42
- "@nuxt/devtools": "1.1.5",
43
- "@nuxt/eslint": "0.3.7",
44
- "@nuxt/image": "1.5.0",
42
+ "@nuxt/devtools": "1.2.0",
43
+ "@nuxt/eslint": "0.3.9",
44
+ "@nuxt/image": "1.6.0",
45
45
  "@nuxtjs/color-mode": "3.4.0",
46
- "@nuxtjs/html-validator": "1.7.1",
46
+ "@nuxtjs/html-validator": "1.7.2",
47
47
  "@nuxtjs/i18n": "8.3.0",
48
48
  "@nuxtjs/seo": "2.0.0-rc.10",
49
- "@nuxtjs/tailwindcss": "6.11.4",
49
+ "@nuxtjs/tailwindcss": "6.12.0",
50
50
  "@pinia/nuxt": "0.5.1",
51
51
  "@tailwindcss/forms": "0.5.7",
52
52
  "@tailwindcss/typography": "0.5.12",
53
53
  "@types/lodash-es": "4.17.12",
54
- "@urql/core": "5.0.0",
54
+ "@urql/core": "5.0.1",
55
55
  "@vuelidate/core": "2.0.3",
56
56
  "@vuelidate/validators": "2.0.4",
57
57
  "clipboardy": "4.0.0",
58
58
  "dayjs": "2.0.0-alpha.4",
59
- "eslint": "9.0.0",
59
+ "eslint": "9.1.1",
60
60
  "eslint-config-prettier": "9.1.0",
61
61
  "eslint-plugin-compat": "4.2.0",
62
62
  "eslint-plugin-prettier": "5.1.3",
@@ -65,12 +65,12 @@
65
65
  "jose": "5.2.4",
66
66
  "nuxt-gtag": "2.0.5",
67
67
  "nuxt-security": "1.3.2",
68
- "sweetalert2": "11.10.7"
68
+ "sweetalert2": "11.10.8"
69
69
  },
70
70
  "devDependencies": {
71
71
  "@axe-core/playwright": "4.9.0",
72
72
  "@playwright/test": "1.43.1",
73
- "@unhead/vue": "1.9.5",
73
+ "@unhead/vue": "1.9.7",
74
74
  "@urql/devtools": "2.0.3",
75
75
  "@urql/exchange-graphcache": "7.0.1",
76
76
  "@urql/vue": "1.1.3",
@@ -86,23 +86,23 @@
86
86
  "pinia": "2.1.7",
87
87
  "prettier": "3.2.5",
88
88
  "prettier-plugin-tailwindcss": "0.5.14",
89
- "serve": "14.2.1",
90
- "stylelint": "16.3.1",
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.5",
97
- "vue": "3.4.22",
98
- "vue-router": "4.3.0",
99
- "vue-tsc": "2.0.13"
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.22",
105
- "vue-router": "4.3.0"
104
+ "vue": "3.4.24",
105
+ "vue-router": "4.3.2"
106
106
  },
107
107
  "scripts": {
108
108
  "build": "pnpm run build:node",
@@ -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 GOOGLE_ANALYTICS_COOKIE_NAME = 'ga'
16
+ export const GTAG_COOKIE_ID = 'ga'
17
17
  export const I18N_MODULE_CONFIG = {
18
18
  langDir: 'locales',
19
19
  lazy: true,