roymondchen
|
0f42989ca3
|
refactor(editor): 统一历史栈结构,支持扩展历史类型
将 pageSteps/codeBlockState/dataSourceState 三套独立历史栈收敛为统一的 steps 结构
(按 stepType 分桶),并新增 registerStepType/setStepName/getStepName 支持自定义
扩展历史类型。同步重构 history 相关服务、组件、工具方法、测试与文档。
|
2026-06-23 20:14:41 +08:00 |
|
roymondchen
|
921188d2da
|
refactor(editor): 优化历史记录 IndexedDB 持久化,仅序列化 step diff
避免 serialize-javascript 序列化整份快照,改为结构化克隆写入 IndexedDB;初始历史行展示已保存标记;root-change 事件携带 options。
|
2026-06-12 17:46:55 +08:00 |
|
roymondchen
|
4f284e8d9c
|
feat(editor): 支持页面初始基线与 root 变更历史记录
设置 root 时为各页建立 initial 基线并展示在历史列表底部;编辑期间再次 set root 按页面粒度写入历史,并抽取历史工具函数以支持撤销下限与持久化恢复。
|
2026-06-11 15:00:11 +08:00 |
|
roymondchen
|
a965dfb06e
|
refactor(editor): 优化历史记录列表复用
|
2026-06-08 20:09:10 +08:00 |
|
roymondchen
|
614f12adf3
|
feat(editor): 支持历史记录持久化
Co-authored-by: Cursor <cursoragent@cursor.com>
|
2026-06-08 17:04:39 +08:00 |
|