From 034e55072a7bde55403384eb8882975c10a98c11 Mon Sep 17 00:00:00 2001 From: Your Name Date: Sun, 31 May 2026 10:40:06 +0800 Subject: [PATCH] refactor(webui): add static module split structure --- webui/css/README.md | 14 ++++++++++++++ webui/index.html | 2 ++ webui/js/README.md | 13 +++++++++++++ 3 files changed, 29 insertions(+) create mode 100644 webui/css/README.md create mode 100644 webui/js/README.md diff --git a/webui/css/README.md b/webui/css/README.md new file mode 100644 index 0000000..28a72bd --- /dev/null +++ b/webui/css/README.md @@ -0,0 +1,14 @@ +# WebUI CSS modules + +Plain CSS files loaded by `webui/index.html`. + +Recommended order: + +1. `tokens.css` +2. `base.css` +3. `layout.css` +4. `components.css` +5. focused panel or feature CSS +6. `styles.css` compatibility remainder + +Keep selectors stable so existing HTML and JavaScript continue to work. diff --git a/webui/index.html b/webui/index.html index b53e508..c49b159 100644 --- a/webui/index.html +++ b/webui/index.html @@ -19,6 +19,7 @@ } catch (e) {} })(); + @@ -1276,6 +1277,7 @@ + diff --git a/webui/js/README.md b/webui/js/README.md new file mode 100644 index 0000000..4938413 --- /dev/null +++ b/webui/js/README.md @@ -0,0 +1,13 @@ +# WebUI JavaScript modules + +Classic browser scripts loaded by `webui/index.html`. + +Load order matters: + +1. `constants.js` +2. `dom.js` +3. `api.js` +4. focused feature scripts +5. `app.js` + +Keep behavior-preserving splits small. Do not introduce a build step unless a later plan explicitly replaces this static layout.