43 lines
1.3 KiB
Markdown
43 lines
1.3 KiB
Markdown
# Reasonix Worker C:资源打开 resolver 收敛
|
|
|
|
Project root: `/mnt/Data1T/mnote`
|
|
|
|
## 目标
|
|
|
|
继续对照 Sidex editor input resolver,收敛 MNote 正文附件、FileTree asset、new-window、active-tab 的资源打开策略。重点检查并尽量减少 `layout.rs` 中正文附件与 FileTree 的重复 Office / local file 分支。
|
|
|
|
## Ownership
|
|
|
|
你可以修改:
|
|
|
|
- `rust/crates/mnote-web/src/ssr/pages/layout.rs`
|
|
- `scripts/task463-onlyoffice-resolver-smoke.js`
|
|
- `design/05-editor-mainline/process/5-26-resource-open-resolver-convergence-checklist-v1.md`
|
|
|
|
不要修改:
|
|
|
|
- `rust/crates/mnote-web/src/routes/web_shell.rs`
|
|
- `rust/crates/mnote-web/src/routes/onlyoffice.rs`
|
|
- ACP / Hermes 相关文件
|
|
|
|
## 约束
|
|
|
|
- 文件树 edit-mode active tab 行为已经可用,不能破坏。
|
|
- 正文附件 `弹窗编辑` 应继续进入 main resource tab。
|
|
- 正文附件 `新窗口编辑` 应继续打开浏览器新窗口。
|
|
- md/text/code 仍应走 tiptap / 内建编辑器,不要改成 OnlyOffice。
|
|
|
|
## 验收
|
|
|
|
- `cargo test -p mnote-web sidebar_tree_runtime_opens_office_assets_through_resource_shell -- --test-threads=1`
|
|
- `node scripts/task463-onlyoffice-resolver-smoke.js`
|
|
|
|
## 输出要求
|
|
|
|
最终回复列出:
|
|
|
|
- 修改文件
|
|
- 收敛了哪些重复分支
|
|
- 验证命令结果
|
|
- 未完成项和风险
|