Skip to content

Commit

Permalink
feat(deps): update dependency @dargmuesli/nuxt-cookie-control to v5-beta
Browse files Browse the repository at this point in the history
  • Loading branch information
dargmuesli committed Jan 30, 2023
1 parent 3255aa1 commit 6976401
Show file tree
Hide file tree
Showing 3 changed files with 71 additions and 140 deletions.
133 changes: 65 additions & 68 deletions nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,74 +18,9 @@ export default defineNuxtConfig({
},
css: ['@/assets/css/main.css'],
modules: [
[
'@dargmuesli/nuxt-cookie-control',
{
cookies: {
necessary: [
{
description: {
de: 'Speichert die Einstellungen, die in diesem Dialog getroffen werden.',
en: 'Saves the settings made in this dialog.',
},
name: {
de: 'Cookie-Präferenzen',
en: 'Cookie Preferences',
},
targetCookieIds: [
'cookie_control_is_consent_given',
'cookie_control_cookies_enabled_ids',
],
},
{
description: {
de: 'Speichert in welcher Sprache die Webseite angezeigt wird.',
en: 'Saves in which language the web page is displayed.',
},
name: {
de: 'Spracheinstellungen',
en: 'Language Settings',
},
targetCookieIds: ['i18n_redirected'],
},
],
optional: [
{
description: {
de: 'Hilft uns dabei Nutzerverhalten zu verstehen und unsere Dienste zu verbessern.',
en: 'Helps us understand user behavior and optimize our services.',
},
name: 'Google Analytics',
targetCookieIds: ['_ga', '_ga_K4R41W62BR'],
},
],
},
locales: ['en', 'de'],
},
],
[
'@nuxtjs/html-validator',
{
failOnError: true,
logLevel: 'warning',
},
],
[
'@nuxtjs/i18n',
{
baseUrl: BASE_URL,
defaultLocale: 'en', // Must be set for the default prefix_except_default prefix strategy.
detectBrowserLanguage: false, // Enabling browser language detection does not generate (!) other languages than the default one.
locales: LOCALES,
vueI18n: {
messages: {
de: localeDe,
en: localeEn,
},
fallbackWarn: false, // TODO: don't show incorrect warnings (https://github.com/intlify/vue-i18n-next/issues/776)
},
},
],
'@dargmuesli/nuxt-cookie-control',
'@nuxtjs/html-validator',
'@nuxtjs/i18n',
'@nuxtjs/robots',
['@funken-studio/sitemap-nuxt-3', { hostname: BASE_URL }], // Should be declared at the end of the array.
],
Expand All @@ -110,4 +45,66 @@ export default defineNuxtConfig({
},
},
},

// modules
cookieControl: {
cookies: {
necessary: [
{
description: {
de: 'Dieser Cookie von uns speichert die Einstellungen, die in diesem Dialog getroffen werden.',
en: 'This cookie of ours stores the settings made in this dialog.',
},
name: {
de: 'Cookie-Präferenzen',
en: 'Cookie Preferences',
},
targetCookieIds: [
'cookie_control_is_consent_given',
'cookie_control_cookies_enabled_ids',
],
},
{
description: {
de: 'Dieser Cookie von uns speichert die Sprache, in der diese Webseite angezeigt wird.',
en: "This cookie of ours stores the language that's used to display this website.",
},
name: {
de: 'Sprache',
en: 'Language',
},
targetCookieIds: ['i18n_redirected'],
},
],
optional: [
{
description: {
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.',
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.',
},
id: 'google-analytics',
name: 'Analytics',
targetCookieIds: ['_ga', '_ga_K4R41W62BR'],
},
],
},
locales: ['en', 'de'],
},
htmlValidator: {
failOnError: true,
logLevel: 'warning',
},
i18n: {
baseUrl: BASE_URL,
defaultLocale: 'en', // Must be set for the default prefix_except_default prefix strategy.
detectBrowserLanguage: false, // Enabling browser language detection does not generate (!) other languages than the default one.
locales: LOCALES,
vueI18n: {
messages: {
de: localeDe,
en: localeEn,
},
fallbackWarn: false, // TODO: don't show incorrect warnings (https://github.com/intlify/vue-i18n-next/issues/776)
},
},
})
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"devDependencies": {
"@commitlint/cli": "17.4.2",
"@commitlint/config-conventional": "17.4.2",
"@dargmuesli/nuxt-cookie-control": "3.0.0",
"@dargmuesli/nuxt-cookie-control": "5.0.0-beta.2",
"@funken-studio/sitemap-nuxt-3": "4.0.4",
"@intlify/eslint-plugin-vue-i18n": "2.0.0",
"@nuxtjs/eslint-config-typescript": "12.0.0",
Expand Down
76 changes: 5 additions & 71 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 6976401

Please sign in to comment.