feat: implement custom WebUI support with dynamic frontend replacement

- Add WebUI service and controller for managing custom frontend packages

- Allow overriding default static assets when custom WebUI is activated

- Add Make commands for packing custom WebUI distributions

- Update UI settings to support uploading, activating and deleting WebUIs

- Document WebUI feature in README and changelog
This commit is contained in:
duorameng
2026-05-29 11:49:01 +08:00
parent 41af3cf9e0
commit 323a58e041
19 changed files with 1004 additions and 35 deletions
+7 -5
View File
@@ -30,6 +30,7 @@ const (
KeyPageSize = "page_size"
KeyCookieDays = "cookie_days"
KeyOpenapiToken = "openapi_token"
KeyActiveWebUI = "active_webui"
// Security Settings Key 常量
KeySecret = "secret"
@@ -201,11 +202,12 @@ var DefaultIcon = `<svg t="1766107903919" class="icon" viewBox="0 0 1024 1024" v
// DefaultSettings 默认系统设置
var DefaultSettings = map[string]map[string]string{
SectionSite: {
KeyTitle: "白虎面板",
KeySubtitle: "极致轻量、高性能的自动化任务调度平台",
KeyIcon: DefaultIcon,
KeyPageSize: "10",
KeyCookieDays: "7",
KeyTitle: "白虎面板",
KeySubtitle: "极致轻量、高性能的自动化任务调度平台",
KeyIcon: DefaultIcon,
KeyPageSize: "10",
KeyCookieDays: "7",
KeyActiveWebUI: "default",
},
SectionScheduler: {
KeyWorkerCount: "4",