1
0
Fork 0
forked from forgejo/forgejo

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
This commit is contained in:
silverwind 2020-03-07 22:06:15 +01:00 committed by GitHub
parent 0c2148c037
commit 9d3e69e867
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
14 changed files with 38 additions and 2196 deletions

View file

@ -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