summaryrefslogtreecommitdiffstats
path: root/templates/pwa
diff options
context:
space:
mode:
authorsilverwind <me@silverwind.io>2020-03-07 22:06:15 +0100
committerGitHub <noreply@github.com>2020-03-07 21:06:15 +0000
commit9d3e69e8677008384d159ee138515ff7498064d7 (patch)
tree6f4108b98bd665506315ce8dd41e2e66b0896a3d /templates/pwa
parent0c2148c037c4bc23a802c7a5580e3fed336ebe3e (diff)
downloadgitea-9d3e69e8677008384d159ee138515ff7498064d7.tar.gz
gitea-9d3e69e8677008384d159ee138515ff7498064d7.zip
Move dropzone.js to npm/webpack (#10645)
- unvendor dropzone and upgrade it from 4.2.0 to 5.7.0 - make `csrf` available on window.config
Diffstat (limited to 'templates/pwa')
-rw-r--r--templates/pwa/serviceworker_js.tmpl2
1 files changed, 2 insertions, 0 deletions
diff --git a/templates/pwa/serviceworker_js.tmpl b/templates/pwa/serviceworker_js.tmpl
index 0fc9ed3193..2472b23a1f 100644
--- a/templates/pwa/serviceworker_js.tmpl
+++ b/templates/pwa/serviceworker_js.tmpl
@@ -9,6 +9,7 @@ var urlsToCache = [
'{{StaticUrlPrefix}}/js/jquery.js?v={{MD5 AppVer}}',
'{{StaticUrlPrefix}}/js/swagger.js?v={{MD5 AppVer}}',
'{{StaticUrlPrefix}}/js/userheatmap.js',
+ '{{StaticUrlPrefix}}/js/dropzone.js',
'{{StaticUrlPrefix}}/vendor/plugins/codemirror/addon/mode/loadmode.js',
'{{StaticUrlPrefix}}/vendor/plugins/codemirror/mode/meta.js',
'{{StaticUrlPrefix}}/vendor/plugins/dropzone/dropzone.js',
@@ -21,6 +22,7 @@ var urlsToCache = [
'{{StaticUrlPrefix}}/css/index.css?v={{MD5 AppVer}}',
'{{StaticUrlPrefix}}/css/swagger.css?v={{MD5 AppVer}}',
'{{StaticUrlPrefix}}/css/userheatmap.css',
+ '{{StaticUrlPrefix}}/css/dropzone.css',
'{{StaticUrlPrefix}}/fomantic/semantic.min.css?v={{MD5 AppVer}}',
'{{StaticUrlPrefix}}/vendor/assets/font-awesome/css/font-awesome.min.css',
'{{StaticUrlPrefix}}/vendor/plugins/dropzone/dropzone.css',