feat: WebUI settings page with sidebar + ConfigRegistry integration

- /api/v1/settings endpoint: GET (list by prefix) + PUT (set key/value)
- Config tab redesigned: left sidebar (core + per-plugin) + right editor
- Sidebar groups: core.* and plugin.<name>.* from plugin registry
- Each setting rendered as editable input with save button
- WebUI now receives cfgReg and pluginReg from main
- handler_test.go updated with new NewHandler signature
This commit is contained in:
root
2026-07-03 08:39:30 +08:00
parent 9c33b3b149
commit 672b098c4e
4 changed files with 83 additions and 11 deletions

View File

@ -303,7 +303,7 @@ func main() {
// === Built-in HTTP API & WebUI Plugin ===
webui := api.NewWebUIPlugin(
"webui", cfg.Daemon.ListenAddr,
sup, memDB, skMgr, luaVM, cfg, iom, textMem, ks, trk,
sup, memDB, skMgr, luaVM, cfg, iom, textMem, ks, trk, cfgReg, pluginReg,
)
iom.RegisterDevice(webui)
webui.Start()