Fix tiptap selection sync and toolbar event loop

This commit is contained in:
lix-2026
2026-04-19 21:03:25 +08:00
parent 111a87d4fd
commit 394e2a155c
87 changed files with 17415 additions and 527 deletions
+11
View File
@@ -1,6 +1,8 @@
mod bridge;
mod command_support;
mod compat;
mod documents;
mod editor;
mod health;
mod hermes;
mod kernel;
@@ -22,6 +24,15 @@ pub fn build_router(state: AppState) -> Router {
Router::new()
.route("/health", get(health::health))
.route("/tree", get(tree::tree_shell))
.route("/document-debug", get(editor::document_editor_shell))
.route("/document", get(editor::document_editor_shell))
.route("/api/documents/meta", get(documents::meta))
.route("/api/documents/content", get(documents::content))
.route("/api/documents/save", post(documents::save))
.route(
"/api/documents/runtime/transform",
post(editor::transform_runtime_snapshot),
)
.route(
"/api/tree/projections/sidebar",
get(kernel::project_tree_sidebar),