basic cookie notice

This commit is contained in:
Jannis Portmann 2021-05-27 16:40:00 +02:00
parent 58734aa7b2
commit 222d35e1b4
4 changed files with 3861 additions and 3752 deletions

View file

@ -27,3 +27,6 @@ document.querySelector('.custom-file-input').addEventListener('change',function(
var nextSibling = e.target.nextElementSibling var nextSibling = e.target.nextElementSibling
nextSibling.innerText = fileName nextSibling.innerText = fileName
}) })
// Cookie-consent
import 'cookie-notice/dist/cookie.notice.min.js'

45
package-lock.json generated
View file

@ -6,6 +6,7 @@
"": { "": {
"license": "UNLICENSED", "license": "UNLICENSED",
"dependencies": { "dependencies": {
"cookie-notice": "^1.3.6",
"friendly-challenge": "^0.8.5" "friendly-challenge": "^0.8.5"
}, },
"devDependencies": { "devDependencies": {
@ -14,6 +15,8 @@
"@symfony/webpack-encore": "^1.0.0", "@symfony/webpack-encore": "^1.0.0",
"bootstrap": "^4.6.0", "bootstrap": "^4.6.0",
"core-js": "^3.0.0", "core-js": "^3.0.0",
"jquery": "^3.6.0",
"popper.js": "^1.16.1",
"regenerator-runtime": "^0.13.2", "regenerator-runtime": "^0.13.2",
"sass": "^1.32.11", "sass": "^1.32.11",
"sass-loader": "^11.0.0", "sass-loader": "^11.0.0",
@ -3018,6 +3021,14 @@
"node": ">= 0.6" "node": ">= 0.6"
} }
}, },
"node_modules/cookie-notice": {
"version": "1.3.6",
"resolved": "https://registry.npmjs.org/cookie-notice/-/cookie-notice-1.3.6.tgz",
"integrity": "sha512-CE8CF9sezAJmRWzHi3S2gP+eggSKgGbVYF1NJtOqT2sOfbX9zktxri23lDV8Lkaq75GgxC3L1uaeselln4EKdg==",
"engines": {
"node": ">=6.0"
}
},
"node_modules/cookie-signature": { "node_modules/cookie-signature": {
"version": "1.0.6", "version": "1.0.6",
"resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.6.tgz", "resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.6.tgz",
@ -5522,6 +5533,12 @@
"node": ">=8" "node": ">=8"
} }
}, },
"node_modules/jquery": {
"version": "3.6.0",
"resolved": "https://registry.npmjs.org/jquery/-/jquery-3.6.0.tgz",
"integrity": "sha512-JVzAR/AjBvVt2BmYhxRCSYysDsPcssdmTFnzyLEts9qNwmjmu4JTAMYubEfwVOSwpQ1I1sKKFcxhZCI2buerfw==",
"dev": true
},
"node_modules/js-tokens": { "node_modules/js-tokens": {
"version": "4.0.0", "version": "4.0.0",
"resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz",
@ -6676,6 +6693,17 @@
"node": ">=8" "node": ">=8"
} }
}, },
"node_modules/popper.js": {
"version": "1.16.1",
"resolved": "https://registry.npmjs.org/popper.js/-/popper.js-1.16.1.tgz",
"integrity": "sha512-Wb4p1J4zyFTbM+u6WuO4XstYx4Ky9Cewe4DWrel7B0w6VVICvPwdOpotjzcf6eD8TsckVnIMNONQyPIUFOUbCQ==",
"deprecated": "You can find the new Popper v2 at @popperjs/core, this package is dedicated to the legacy v1",
"dev": true,
"funding": {
"type": "opencollective",
"url": "https://opencollective.com/popperjs"
}
},
"node_modules/portfinder": { "node_modules/portfinder": {
"version": "1.0.28", "version": "1.0.28",
"resolved": "https://registry.npmjs.org/portfinder/-/portfinder-1.0.28.tgz", "resolved": "https://registry.npmjs.org/portfinder/-/portfinder-1.0.28.tgz",
@ -11621,6 +11649,11 @@
"integrity": "sha512-+Hp8fLp57wnUSt0tY0tHEXh4voZRDnoIrZPqlo3DPiI4y9lwg/jqx+1Om94/W6ZaPDOUbnjOt/99w66zk+l1Xg==", "integrity": "sha512-+Hp8fLp57wnUSt0tY0tHEXh4voZRDnoIrZPqlo3DPiI4y9lwg/jqx+1Om94/W6ZaPDOUbnjOt/99w66zk+l1Xg==",
"dev": true "dev": true
}, },
"cookie-notice": {
"version": "1.3.6",
"resolved": "https://registry.npmjs.org/cookie-notice/-/cookie-notice-1.3.6.tgz",
"integrity": "sha512-CE8CF9sezAJmRWzHi3S2gP+eggSKgGbVYF1NJtOqT2sOfbX9zktxri23lDV8Lkaq75GgxC3L1uaeselln4EKdg=="
},
"cookie-signature": { "cookie-signature": {
"version": "1.0.6", "version": "1.0.6",
"resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.6.tgz", "resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.6.tgz",
@ -13391,6 +13424,12 @@
} }
} }
}, },
"jquery": {
"version": "3.6.0",
"resolved": "https://registry.npmjs.org/jquery/-/jquery-3.6.0.tgz",
"integrity": "sha512-JVzAR/AjBvVt2BmYhxRCSYysDsPcssdmTFnzyLEts9qNwmjmu4JTAMYubEfwVOSwpQ1I1sKKFcxhZCI2buerfw==",
"dev": true
},
"js-tokens": { "js-tokens": {
"version": "4.0.0", "version": "4.0.0",
"resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz",
@ -14167,6 +14206,12 @@
"find-up": "^3.0.0" "find-up": "^3.0.0"
} }
}, },
"popper.js": {
"version": "1.16.1",
"resolved": "https://registry.npmjs.org/popper.js/-/popper.js-1.16.1.tgz",
"integrity": "sha512-Wb4p1J4zyFTbM+u6WuO4XstYx4Ky9Cewe4DWrel7B0w6VVICvPwdOpotjzcf6eD8TsckVnIMNONQyPIUFOUbCQ==",
"dev": true
},
"portfinder": { "portfinder": {
"version": "1.0.28", "version": "1.0.28",
"resolved": "https://registry.npmjs.org/portfinder/-/portfinder-1.0.28.tgz", "resolved": "https://registry.npmjs.org/portfinder/-/portfinder-1.0.28.tgz",

View file

@ -22,6 +22,7 @@
"build": "encore production --progress" "build": "encore production --progress"
}, },
"dependencies": { "dependencies": {
"cookie-notice": "^1.3.6",
"friendly-challenge": "^0.8.5" "friendly-challenge": "^0.8.5"
} }
} }

7562
yarn.lock

File diff suppressed because it is too large Load diff