refactor: split document mindmap host runtime

This commit is contained in:
lix-2026
2026-05-26 01:03:04 +08:00
parent 77244eec7e
commit ee5aeb45be
5 changed files with 226 additions and 175 deletions
+5
View File
@@ -146,6 +146,10 @@ pub fn build_router(state: AppState) -> Router {
"/api/mnote-browser-runtime/document-pane-runtime.js",
get(web_shell::document_pane_runtime_asset),
)
.route(
"/api/mnote-browser-runtime/document-mindmap-host-runtime.js",
get(web_shell::document_mindmap_host_runtime_asset),
)
.route(
"/api/mnote-browser-runtime/document-slash-position-runtime.js",
get(web_shell::document_slash_position_runtime_asset),
@@ -572,6 +576,7 @@ mod tests {
"/api/mnote-browser-runtime/tree-shell-runtime.js",
"/api/mnote-browser-runtime/document-conflict-panel-runtime.js",
"/api/mnote-browser-runtime/document-pane-runtime.js",
"/api/mnote-browser-runtime/document-mindmap-host-runtime.js",
"/api/mnote-browser-runtime/document-slash-position-runtime.js",
"/api/mnote-browser-runtime/document-tiptap-conversion-runtime.js",
"/api/mnote-browser-runtime/document-editor-adapter-runtime.js",