refactor: externalize document editor adapter runtime

This commit is contained in:
lix-2026
2026-05-26 00:35:35 +08:00
parent 020545e07f
commit 990df30a0f
5 changed files with 3968 additions and 3925 deletions
+5
View File
@@ -142,6 +142,10 @@ pub fn build_router(state: AppState) -> Router {
"/api/mnote-browser-runtime/document-conflict-panel-runtime.js",
get(web_shell::document_conflict_panel_runtime_asset),
)
.route(
"/api/mnote-browser-runtime/document-editor-adapter-runtime.js",
get(web_shell::document_editor_adapter_runtime_asset),
)
.route("/api/search/documents", post(search::documents))
.route(
"/api/search/local-index/refresh",
@@ -555,6 +559,7 @@ mod tests {
"/api/mnote-browser-runtime/tree-live-controller.js",
"/api/mnote-browser-runtime/tree-shell-runtime.js",
"/api/mnote-browser-runtime/document-conflict-panel-runtime.js",
"/api/mnote-browser-runtime/document-editor-adapter-runtime.js",
] {
let response = app(false)
.oneshot(