feat: MD编辑模式(预览/编辑切换+保存回磁盘,新增POST /api/worktable/write路由)

This commit is contained in:
Aisland
2026-08-18 00:44:48 +08:00
parent 07e6a5e49f
commit 20f34fecbf
6 changed files with 152 additions and 29 deletions
+8
View File
@@ -65,6 +65,10 @@ export const zh = {
'pane.openLater': '该类型暂不支持预览',
'file.loading': '加载中…',
'file.fail': '文件读取失败',
'file.preview': '预览',
'file.edit': '编辑',
'file.save': '保存',
'file.saveFail': '保存失败',
'pane.gitNotRepo': '当前目录不是 git 仓库',
'pane.gitClean': '工作区干净',
'pane.jobsEmpty': '当前会话暂无后台任务',
@@ -144,6 +148,10 @@ export const en = {
'pane.openLater': 'Preview not supported for this type',
'file.loading': 'Loading…',
'file.fail': 'Failed to read file',
'file.preview': 'Preview',
'file.edit': 'Edit',
'file.save': 'Save',
'file.saveFail': 'Save failed',
'pane.gitNotRepo': 'Not a git repository',
'pane.gitClean': 'Working tree clean',
'pane.jobsEmpty': 'No background jobs in the current session',