summaryrefslogtreecommitdiffstats
path: root/routers
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 /routers
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 'routers')
-rw-r--r--routers/repo/attachment.go1
-rw-r--r--routers/repo/editor.go1
-rw-r--r--routers/repo/issue.go1
3 files changed, 0 insertions, 3 deletions
diff --git a/routers/repo/attachment.go b/routers/repo/attachment.go
index f938c230ed..51725100b8 100644
--- a/routers/repo/attachment.go
+++ b/routers/repo/attachment.go
@@ -18,7 +18,6 @@ import (
)
func renderAttachmentSettings(ctx *context.Context) {
- ctx.Data["RequireDropzone"] = true
ctx.Data["IsAttachmentEnabled"] = setting.AttachmentEnabled
ctx.Data["AttachmentAllowedTypes"] = setting.AttachmentAllowedTypes
ctx.Data["AttachmentMaxSize"] = setting.AttachmentMaxSize
diff --git a/routers/repo/editor.go b/routers/repo/editor.go
index 97a3fea24c..ca15c6a3c1 100644
--- a/routers/repo/editor.go
+++ b/routers/repo/editor.go
@@ -474,7 +474,6 @@ func DeleteFilePost(ctx *context.Context, form auth.DeleteRepoFileForm) {
}
func renderUploadSettings(ctx *context.Context) {
- ctx.Data["RequireDropzone"] = true
ctx.Data["RequireTribute"] = true
ctx.Data["RequireSimpleMDE"] = true
ctx.Data["UploadAllowedTypes"] = strings.Join(setting.Repository.Upload.AllowedTypes, ",")
diff --git a/routers/repo/issue.go b/routers/repo/issue.go
index a8406d3154..9cc6ea1dfa 100644
--- a/routers/repo/issue.go
+++ b/routers/repo/issue.go
@@ -697,7 +697,6 @@ func ViewIssue(ctx *context.Context) {
}
ctx.Data["RequireHighlightJS"] = true
- ctx.Data["RequireDropzone"] = true
ctx.Data["RequireTribute"] = true
ctx.Data["RequireSimpleMDE"] = true
renderAttachmentSettings(ctx)