Refactor editor (#34780)

A complete rewrite
This commit is contained in:
wxiaoguang authored and GitHub committed 2025-06-21 19:20:51 +08:00
1 parent 81adb01713
commit 4fc626daa1
41 files changed
+977 -1638

No files matched your search

+2
View File
@@ -113,5 +113,7 @@ func AddUploadContext(ctx *context.Context, uploadType string) {
ctx.Data["UploadAccepts"] = strings.ReplaceAll(setting.Repository.Upload.AllowedTypes, "|", ",")
ctx.Data["UploadMaxFiles"] = setting.Repository.Upload.MaxFiles
ctx.Data["UploadMaxSize"] = setting.Repository.Upload.FileMaxSize
default:
setting.PanicInDevOrTesting("Invalid upload type: %s", uploadType)
}
}