refactor: split tree shell state runtime

This commit is contained in:
lix-2026
2026-05-26 02:48:30 +08:00
parent e76fa437a3
commit b8a067ce9f
5 changed files with 86 additions and 52 deletions
+5
View File
@@ -170,6 +170,10 @@ pub fn build_router(state: AppState) -> Router {
"/api/mnote-browser-runtime/tree-shell-page-runtime.js",
get(web_shell::tree_shell_page_runtime_asset),
)
.route(
"/api/mnote-browser-runtime/tree-shell-state-runtime.js",
get(web_shell::tree_shell_state_runtime_asset),
)
.route(
"/api/mnote-browser-runtime/tree-shell-icons-runtime.js",
get(web_shell::tree_shell_icons_runtime_asset),
@@ -626,6 +630,7 @@ mod tests {
"/api/mnote-browser-runtime/tree-live-controller.js",
"/api/mnote-browser-runtime/tree-shell-runtime.js",
"/api/mnote-browser-runtime/tree-shell-page-runtime.js",
"/api/mnote-browser-runtime/tree-shell-state-runtime.js",
"/api/mnote-browser-runtime/tree-shell-icons-runtime.js",
"/api/mnote-browser-runtime/document-conflict-panel-runtime.js",
"/api/mnote-browser-runtime/document-pane-runtime.js",