diff --git a/bin/admin-yml/index.js b/bin/admin-yml/index.js index 686e66e..fa399af 100644 --- a/bin/admin-yml/index.js +++ b/bin/admin-yml/index.js @@ -7,7 +7,6 @@ const { baseConfig, pageUrl, siteName, - textField, stringField, markdownField, listField, @@ -292,22 +291,6 @@ const configTree = { stringField('imprint', '[Label] Imprint'), stringField('privacy', '[Label] Data privacy') ] - }), - objectField('socialMedia', 'Social Media Share Text', { - hint: 'These are the default texts which get used to share.', - list: [ - stringField('twitter', 'Twitter'), - stringField('facebook', 'Facebook'), - stringField('clipboard', 'Clipboard') - ] - }), - objectField('cookieConsent', 'Cookie Consent Layer', { - hint: 'The text which is shown in the cookie consent layer.', - list: [ - textField('text', 'Text'), - stringField('btnDecline', '[Button] Decline'), - stringField('btnAccept', '[Button] Accept') - ] }) ] }) diff --git a/package.json b/package.json index c0b97c3..74223c6 100644 --- a/package.json +++ b/package.json @@ -20,7 +20,6 @@ "stylelint-processor-html": "^1.0.0", "stylelint-webpack-plugin": "^0.10.5", "vue": "^2.6.6", - "vue-analytics": "^5.16.4", "vue-feather-icons": "^4.10.0", "vue-i18n": "^8.10.0", "vue-markdown": "^2.2.4", diff --git a/public/admin/config.yml b/public/admin/config.yml index 3dedcb4..22aac67 100644 --- a/public/admin/config.yml +++ b/public/admin/config.yml @@ -767,31 +767,3 @@ collections: - label: '[Label] Data privacy' name: privacy widget: string - - label: Social Media Share Text - name: socialMedia - widget: object - hint: These are the default texts which get used to share. - fields: - - label: Twitter - name: twitter - widget: string - - label: Facebook - name: facebook - widget: string - - label: Clipboard - name: clipboard - widget: string - - label: Cookie Consent Layer - name: cookieConsent - widget: object - hint: The text which is shown in the cookie consent layer. - fields: - - label: Text - name: text - widget: text - - label: '[Button] Decline' - name: btnDecline - widget: string - - label: '[Button] Accept' - name: btnAccept - widget: string diff --git a/src/app/app.vue b/src/app/app.vue index a5c9066..d259958 100644 --- a/src/app/app.vue +++ b/src/app/app.vue @@ -18,21 +18,14 @@ - - diff --git a/src/app/imprint/components/index.vue b/src/app/imprint/components/index.vue index 121cc79..01c6576 100644 --- a/src/app/imprint/components/index.vue +++ b/src/app/imprint/components/index.vue @@ -97,34 +97,6 @@ - - diff --git a/src/components/cookie-consent.vue b/src/components/cookie-consent.vue deleted file mode 100644 index 5df700f..0000000 --- a/src/components/cookie-consent.vue +++ /dev/null @@ -1,68 +0,0 @@ - - - - - diff --git a/src/config/analytics.js b/src/config/analytics.js deleted file mode 100644 index 64a16cb..0000000 --- a/src/config/analytics.js +++ /dev/null @@ -1,2 +0,0 @@ -export const GA_KEY = 'UA-83519650-2' -export const GA_COOKIE_NAME = '_euromat-ga' diff --git a/src/data/meta/de.json b/src/data/meta/de.json index 0b7c0cf..f4325e4 100644 --- a/src/data/meta/de.json +++ b/src/data/meta/de.json @@ -11,15 +11,5 @@ "footerMenu": { "imprint": "Impressum", "privacy": "Datenschutz" - }, - "socialMedia": { - "twitter": "Die #Europawahlen2019 stehen vor der Tür! Neugierig was die europäischen Parteien sagen? Mach den EUROMAT & finde heraus mit wem du übereinstimmst! ", - "facebook": "Die #Europawahlen2019 stehen vor der Tür! Neugierig was die europäischen Parteien zur sagen haben? Mach den #EUROMAT & finde heraus mit wem du übereinstimmst!", - "clipboard": "In Zwischenablage kopiert" - }, - "cookieConsent": { - "text": "Diese Website verwendet Cookies, um die bestmögliche Erfahrung auf unserer Website zu ermöglichen.", - "btnDecline": "Ablehnen", - "btnAccept": "Akzeptieren" } -} \ No newline at end of file +} diff --git a/src/helper/cookies.js b/src/helper/cookies.js deleted file mode 100644 index d962fd9..0000000 --- a/src/helper/cookies.js +++ /dev/null @@ -1,30 +0,0 @@ -export function setCookie (name, value = '') { - if (!name) { - throw new Error(`Cookie needs a valid name, you passed "${name}".`) - } - document.cookie = `${name}=${value}` -} - -export function getCookie (name) { - const nameEQ = name + '=' - const cookies = document.cookie.split(';') - - for (var i = 0; i < cookies.length; i++) { - let cookie = cookies[i] - while (cookie.charAt(0) === ' ') { - cookie = cookie.substring(1, cookie.length) - } - if (cookie.indexOf(nameEQ) === 0) { - return cookie.substring(nameEQ.length, cookie.length) - } - } - - return null -} - -export function deleteCookie (name) { - if (!name) { - throw new Error(`Cookie needs a valid name, you passed "${name}".`) - } - document.cookie = `${name}=; Max-Age=-99999999;` -} diff --git a/src/main.js b/src/main.js index 158b541..dd93e01 100644 --- a/src/main.js +++ b/src/main.js @@ -1,6 +1,5 @@ import Vue from 'vue' import VueSVGIcon from 'vue-svgicon' -import VueAnalytics from 'vue-analytics' import { init as initSentry } from '@sentry/browser' import * as Integrations from '@sentry/integrations' @@ -8,8 +7,6 @@ import App from '@/app/app' import router from '@/router' import i18n from '@/i18n' import storage from '@/helper/storage' -import { getCookie } from '@/helper/cookies' -import { GA_KEY, GA_COOKIE_NAME } from '@/config/analytics' import '@/registerComponents' import '@/registerServiceWorker' @@ -17,14 +14,6 @@ import '@/registerServiceWorker' Vue.config.productionTip = false Vue.use(VueSVGIcon) Vue.use(storage) -Vue.use(VueAnalytics, { - id: GA_KEY, - disabled: getCookie(GA_COOKIE_NAME) !== 'true', - router, - debug: { - sendHitTask: process.env.NODE_ENV === 'production' - } -}) if (process.env.NODE_ENV === 'production') { initSentry({