fix: remove manual css/js references from shell.ui and load_path.py

- Remove Html widget in shell.ui that manually loaded shell_theme.css/js
  (ahserver auto-serves wwwroot js/css files)
- Remove shell_theme.css/js from load_path.py permission list
  (ahserver handles static resources automatically)
This commit is contained in:
yumoqing 2026-05-26 07:36:52 +08:00
parent f2b2e5d6e7
commit 0f470fca61
2 changed files with 1 additions and 9 deletions

View File

@ -31,10 +31,8 @@ paths = [
# Menu — must be any so unauthenticated users can see nav
("/dashboard_for_sage/menu.ui", "any"),
# Shell / theme files — CSS/JS must be 'any' (static resources loaded before auth)
# Shell
("/dashboard_for_sage/shell.ui", "logined"),
("/dashboard_for_sage/shell_theme.css", "any"),
("/dashboard_for_sage/shell_theme.js", "any"),
# Global menu
("/dashboard_for_sage/global_menu.ui", "logined"),

View File

@ -6,12 +6,6 @@
"bgcolor": "#0B1120"
},
"subwidgets": [
{
"widgettype": "Html",
"options": {
"html": "<link rel=\"stylesheet\" href=\"/dashboard_for_sage/shell_theme.css\"><script src=\"/dashboard_for_sage/shell_theme.js\"><\\/script>"
}
},
{
"widgettype": "HBox",
"options": {