Skip to content
Snippets Groups Projects
Commit 3e59d199 authored by Piotr Gawron's avatar Piotr Gawron
Browse files

cookie consent moved to npm dependency

parent 04798c7f
No related branches found
No related tags found
1 merge request!293Fix release build
Pipeline #35706 passed
......@@ -25,6 +25,7 @@ License: Django
Files: smash/node_modules/admin-lte/*
smash/node_modules/awesomplete/*
smash/node_modules/bootstrap/*
smash/node_modules/cookieconsent/*
smash/node_modules/datatables.net-bs/*
smash/node_modules/datatables.net-buttons-bs/*
smash/node_modules/datatables.net-buttons/*
......
......@@ -224,6 +224,11 @@
"safe-buffer": "~5.1.1"
}
},
"cookieconsent": {
"version": "3.1.1",
"resolved": "https://registry.npmjs.org/cookieconsent/-/cookieconsent-3.1.1.tgz",
"integrity": "sha512-v8JWLJcI7Zs9NWrs8hiVldVtm3EBF70TJI231vxn6YToBGj0c9dvdnYwltydkAnrbBMOM/qX1xLFrnTfm5wTag=="
},
"core-js": {
"version": "2.6.12",
"resolved": "https://registry.npmjs.org/core-js/-/core-js-2.6.12.tgz",
......
......@@ -13,6 +13,7 @@
"awesomplete": "^1.1.5",
"bootstrap": "^3.3.6",
"bootstrap-datepicker": "^1.7.0",
"cookieconsent": "^3.1.1",
"datatables.net-bs": "^1.10.22",
"datatables.net-buttons": "^1.6.5",
"datatables.net-buttons-bs": "^1.6.5",
......
......@@ -126,6 +126,7 @@ NPM_FILE_PATTERNS = {
'awesomplete': ['awesomplete.css', 'awesomplete.css.map', 'awesomplete.min.js', 'awesomplete.min.js.map'],
'bootstrap': ['dist/*'],
'bootstrap-datepicker': ['dist/*'],
'cookieconsent': ['build/*'],
'datatables.net': ['js/*'],
'datatables.net-bs': ['css/*', 'js/*'],
'datatables.net-buttons': ['js/*'],
......
......@@ -25,8 +25,7 @@
<link rel="stylesheet" href="{% static 'npm/jquery-ui-dist/jquery-ui.min.css' %}">
<script src="https://cdn.jsdelivr.net/npm/cookieconsent@3/build/cookieconsent.min.js"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/cookieconsent@3/build/cookieconsent.min.css">
<link rel="stylesheet" href="{% static 'npm/cookieconsent/build/cookieconsent.min.css' %}">
{% endblock styles %}
</head>
<!--
......@@ -363,6 +362,7 @@ desired effect
<script src="{% static 'js/smash.js' %}"></script>
<script src="{% static 'npm/moment/min/moment.min.js' %}"></script>
<script src="{% static 'npm/moment-range/dist/moment-range.js' %}"></script>
<script src="{% static 'npm/cookieconsent/build/cookieconsent.min.js' %}"></script>
<script type="text/javascript">
window['moment-range'].extendMoment(moment);
</script>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment