From 0f470fca61ad756964de792b1601dfe8b049ff1d Mon Sep 17 00:00:00 2001 From: yumoqing Date: Tue, 26 May 2026 07:36:52 +0800 Subject: [PATCH] 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) --- scripts/load_path.py | 4 +--- wwwroot/shell.ui | 6 ------ 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/scripts/load_path.py b/scripts/load_path.py index 38dda7c..08f2075 100644 --- a/scripts/load_path.py +++ b/scripts/load_path.py @@ -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"), diff --git a/wwwroot/shell.ui b/wwwroot/shell.ui index 59aa0d6..22c9938 100644 --- a/wwwroot/shell.ui +++ b/wwwroot/shell.ui @@ -6,12 +6,6 @@ "bgcolor": "#0B1120" }, "subwidgets": [ - { - "widgettype": "Html", - "options": { - "html": "