django-cookie-consent 0.9.0__py3-none-any.whl → 1.0.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,31 @@
1
+ cookie_consent/__init__.py,sha256=J-j-u0itpEFT6irdmWmixQqYMadNl1X91TxUmoiLHMI,22
2
+ cookie_consent/admin.py,sha256=Xn4NJG9E_C4cHlhV0Cee5tfvrvPHwtLfGnLZIvB_DLE,1983
3
+ cookie_consent/apps.py,sha256=nldd3hZnNChnrajmCD3crvxFfieWgLi625grNTEVYis,248
4
+ cookie_consent/cache.py,sha256=MIO08f12RIuH6PQ6DJ0brYU83XLiE_jr15O4a50EZy8,1753
5
+ cookie_consent/conf.py,sha256=adgX8lwZxilBv4QNUTqgjq8RxWFVsTQj-Xeb57I0eeE,917
6
+ cookie_consent/forms.py,sha256=T2gXTwfanJA-IaslnqESVE3NZ3S0KPEuaXD69eE5RAQ,1519
7
+ cookie_consent/middleware.py,sha256=Z0CavPxHZntnrxb9rr27-lzJtzBbj4wc-_Xlh5YqZBg,2105
8
+ cookie_consent/models.py,sha256=322BuzMhWgrwW9bwkb8opv_SBnKL6K6VVHqv8_FKep0,6185
9
+ cookie_consent/processor.py,sha256=Vl7LO9HdP0vPzrIcmWMvlrTqJKvqL93NFDTzFRrISBI,2667
10
+ cookie_consent/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
11
+ cookie_consent/urls.py,sha256=X-OHDKbK-w6bnnxDCuytc8-tHwwCPBNQ2hq6hei8JpE,510
12
+ cookie_consent/util.py,sha256=hhNmrpTj6Cpn0MRwIw9juR9A7zxmJTlmhsiytNc2ftg,5252
13
+ cookie_consent/views.py,sha256=1d09pCGffGvVltVKmBYcv5vUJ_cpmSSR6vtQ8W8DGeU,3742
14
+ cookie_consent/fixtures/common_cookies.json,sha256=iOEeMtZhERoeoxBz5Kj-Mo_XOUk5F1ljNon4w2odBJo,2449
15
+ cookie_consent/migrations/0001_initial.py,sha256=euibMpY4x6gnVZnCe2eabXpAQ_b7N3DsqfgDSjtglbQ,4215
16
+ cookie_consent/migrations/0002_auto__add_logitem.py,sha256=rZ_kkXI3eij3k6PiGP5CsA41psENNZBbMD0qwUxBBTM,1633
17
+ cookie_consent/migrations/0003_alter_cookiegroup_varname.py,sha256=bDaCobgay6-Z4sPM7aSmTpsV7gK9JtUR6rE4WRb8Hho,899
18
+ cookie_consent/migrations/0004_cookie_natural_key.py,sha256=AJU2q_wVio7JuMFJqHT_WDGY9MCxvGeQrEDYDqZVq_4,465
19
+ cookie_consent/migrations/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
20
+ cookie_consent/static/cookie_consent/cookiebar.module.js,sha256=JlCNAvW8ZWZx2m6EgEct1-pJ1xn3sp3pOo8V8i8T7T4,5812
21
+ cookie_consent/static/cookie_consent/cookiebar.module.js.map,sha256=tIjDimt1Ya50XH-0wXhTWbexU1FzIl8FDW1xPoH2q-Y,14894
22
+ cookie_consent/templates/cookie_consent/_cookie_group.html,sha256=C4GCuNF8H5DN8nDsSH6dsuzYbDf2UDKE9WCMq1E1PQE,1632
23
+ cookie_consent/templates/cookie_consent/base.html,sha256=ghOQ9vqSzKG32LfSQmj5xTF1PBs-SDtQEcOC1wjAemQ,85
24
+ cookie_consent/templates/cookie_consent/cookiegroup_list.html,sha256=PMO9iLxQrgRpQGLC0stlDamMonc3tLS3o5PWPF378Zg,308
25
+ cookie_consent/templatetags/__init__.py,sha256=-JIt3g1eBf4bVQNNQd4JBeQNA7o0LK0W9tYKKX_r5s8,22
26
+ cookie_consent/templatetags/cookie_consent_tags.py,sha256=GfuCE90XQ4SSLkryqM0d-hW0iX3vgNEVIGye8p_0jks,2453
27
+ django_cookie_consent-1.0.0.dist-info/licenses/LICENSE,sha256=ZZi-io1uazO5jpDoNJScUfjeVI2dEzvDPOcyFhU0KYw,1349
28
+ django_cookie_consent-1.0.0.dist-info/METADATA,sha256=kGlgpGmxc-7KOTq3HOK5HhDjYnlqhnhzkJzCggS-3Ps,4618
29
+ django_cookie_consent-1.0.0.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
30
+ django_cookie_consent-1.0.0.dist-info/top_level.txt,sha256=wD8Ix58rJguYeYfils_Z40QfVybiRYb1vwRNm09HN4M,15
31
+ django_cookie_consent-1.0.0.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (80.9.0)
2
+ Generator: setuptools (80.10.2)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5
 
@@ -1,67 +0,0 @@
1
- function evalXCookieConsent(script) {
2
- var src = script.getAttribute("src")
3
- if (src) {
4
- var newScript = document.createElement('script');
5
- newScript.src = src;
6
- document.getElementsByTagName("head")[0].appendChild(newScript);
7
- } else {
8
- eval(script.innerHTML);
9
- }
10
- script.remove();
11
- }
12
-
13
- function lecacyShowCookieBar (options) {
14
- const defaults = {
15
- content: '',
16
- cookie_groups: [],
17
-
18
- cookie_decline: null, // set cookie_consent decline on client immediately
19
- beforeDeclined: null
20
- };
21
-
22
- const opts = Object.assign(defaults, options);
23
-
24
- const wrapper = document.createElement('div');
25
- wrapper.innerHTML= opts.content;
26
- const content = wrapper.firstChild;
27
-
28
- const body = document.querySelector('body');
29
- body.appendChild(content);
30
- body.classList.add('with-cookie-bar');
31
-
32
- document
33
- .querySelector(".cc-cookie-accept", content)
34
- .addEventListener('click', (e) => {
35
- e.preventDefault();
36
- fetch(e.target.getAttribute("href"), {method: "POST"})
37
- .then(() => {
38
- content.style.display = "none";
39
- body.classList.remove('with-cookie-bar');
40
- scripts = document.querySelectorAll("script[type='x/cookie_consent']");
41
- scripts.forEach( (script) => {
42
- if (cookie_groups.indexOf(script.getAttribute('data-varname')) != -1) {
43
- evalXCookieConsent(script);
44
- }
45
- });
46
- })
47
- });
48
-
49
- document
50
- .querySelector(".cc-cookie-decline", content)
51
- .addEventListener('click', (e) => {
52
- e.preventDefault();
53
- if (typeof opts.beforeDeclined === "function") {
54
- opts.beforeDeclined();
55
- }
56
- fetch(e.target.getAttribute("href"), {method: "POST"})
57
- .then(() => {
58
- content.style.display = "none";
59
- body.classList.remove('with-cookie-bar');
60
- if (opts.cookie_decline) {
61
- document.cookie = opts.cookie_decline;
62
- }
63
- })
64
- });
65
- }
66
-
67
- window.legacyShowCookieBar = window.showCookieBar = lecacyShowCookieBar;
@@ -1,29 +0,0 @@
1
- cookie_consent/__init__.py,sha256=H9NWRZb7NbeRRPLP_V1fARmLNXranorVM-OOY-8_2ug,22
2
- cookie_consent/admin.py,sha256=b4FqOZXERZLinba6h9J-aH5ypk1Wwf_kjx57McmLTNA,1952
3
- cookie_consent/apps.py,sha256=nldd3hZnNChnrajmCD3crvxFfieWgLi625grNTEVYis,248
4
- cookie_consent/cache.py,sha256=zrB8BWbKCPqAQUIQCimqSkwxgtbVqBi5DlaOK7umsGw,1384
5
- cookie_consent/conf.py,sha256=itvFmuf7q6nzgDDGnUZNPDGF8jVO7fdL_EiCcP18oO4,636
6
- cookie_consent/middleware.py,sha256=yTGQBeQs1arzNuyCjFbC3Ws71mAtsgcYRLGcBdjof9w,1925
7
- cookie_consent/models.py,sha256=EoFvS3kbjRGqAcnckjpGL8hvwXRBXP0xy-QC6xGO430,5512
8
- cookie_consent/urls.py,sha256=-_wq_Vz3waaHB9k_7Jmvm9BvNBRtvI-NxqBqCcAsZXg,1095
9
- cookie_consent/util.py,sha256=RSaepbbnDD_UiHqEPF3wf4KPzwkkmtvjBQTOHDaOGp0,7195
10
- cookie_consent/views.py,sha256=DcBQq7vY3HdFg-C-xKUfiHuT0hfGT8QR7XIDA2F2XBw,4168
11
- cookie_consent/fixtures/common_cookies.json,sha256=iOEeMtZhERoeoxBz5Kj-Mo_XOUk5F1ljNon4w2odBJo,2449
12
- cookie_consent/migrations/0001_initial.py,sha256=euibMpY4x6gnVZnCe2eabXpAQ_b7N3DsqfgDSjtglbQ,4215
13
- cookie_consent/migrations/0002_auto__add_logitem.py,sha256=rZ_kkXI3eij3k6PiGP5CsA41psENNZBbMD0qwUxBBTM,1633
14
- cookie_consent/migrations/0003_alter_cookiegroup_varname.py,sha256=bDaCobgay6-Z4sPM7aSmTpsV7gK9JtUR6rE4WRb8Hho,899
15
- cookie_consent/migrations/0004_cookie_natural_key.py,sha256=AJU2q_wVio7JuMFJqHT_WDGY9MCxvGeQrEDYDqZVq_4,465
16
- cookie_consent/migrations/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
17
- cookie_consent/static/cookie_consent/cookiebar.js,sha256=vdouyXSBRkzKDiLdMAdOTWKzNO3vgXZNehUTIVUW5Gk,1919
18
- cookie_consent/static/cookie_consent/cookiebar.module.js,sha256=_MSdSrafHkJX683S5MSGEEF6HS54ilbWM292JmqddIM,5606
19
- cookie_consent/static/cookie_consent/cookiebar.module.js.map,sha256=nclEC3MR3Ho90I8E0OzA8l6fyo_ZN8OJedwvlvyXaW4,14533
20
- cookie_consent/templates/cookie_consent/_cookie_group.html,sha256=wozvbdRjuKu3gnegN8vex_lDkku22pne830NWuzHXVw,1496
21
- cookie_consent/templates/cookie_consent/base.html,sha256=ghOQ9vqSzKG32LfSQmj5xTF1PBs-SDtQEcOC1wjAemQ,85
22
- cookie_consent/templates/cookie_consent/cookiegroup_list.html,sha256=PMO9iLxQrgRpQGLC0stlDamMonc3tLS3o5PWPF378Zg,308
23
- cookie_consent/templatetags/__init__.py,sha256=-JIt3g1eBf4bVQNNQd4JBeQNA7o0LK0W9tYKKX_r5s8,22
24
- cookie_consent/templatetags/cookie_consent_tags.py,sha256=JV8dCkC9_CNGR5S8dJ_O8ab__oOIOcfVUt74EF0w40E,5446
25
- django_cookie_consent-0.9.0.dist-info/licenses/LICENSE,sha256=ZZi-io1uazO5jpDoNJScUfjeVI2dEzvDPOcyFhU0KYw,1349
26
- django_cookie_consent-0.9.0.dist-info/METADATA,sha256=X_T8vaJ_HfHnJCiQenDS5HFbKZms3cgb75h1-QfhxYk,4548
27
- django_cookie_consent-0.9.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
28
- django_cookie_consent-0.9.0.dist-info/top_level.txt,sha256=wD8Ix58rJguYeYfils_Z40QfVybiRYb1vwRNm09HN4M,15
29
- django_cookie_consent-0.9.0.dist-info/RECORD,,