feat: undo/redo for workflow editor (#3927)

Co-authored-by: StyleZhang <jasonapring2015@outlook.com>
This commit is contained in:
Pascal M
2024-06-26 08:37:12 +02:00
committed by GitHub
parent d0fe56a98e
commit af9448e6f2
38 changed files with 2049 additions and 778 deletions

View File

@@ -1,5 +1,7 @@
const translation = {
common: {
undo: '復原',
redo: '重做',
editing: '編輯中',
autoSaved: '自動保存',
unpublished: '未發佈',
@@ -68,6 +70,31 @@ const translation = {
workflowAsToolTip: '工作流更新後需要重新配置工具參數',
viewDetailInTracingPanel: '查看詳細信息',
},
changeHistory: {
title: '變更履歷',
placeholder: '尚未更改任何內容',
clearHistory: '清除歷史記錄',
hint: '提示',
hintText: '您的編輯操作將被跟踪並存儲在您的設備上,直到您離開編輯器。此歷史記錄將在您離開編輯器時被清除。',
stepBackward_one: '{{count}} 步後退',
stepBackward_other: '{{count}} 步後退',
stepForward_one: '{{count}} 步前進',
stepForward_other: '{{count}} 步前進',
sessionStart: '會話開始',
currentState: '當前狀態',
nodeTitleChange: '區塊標題已更改',
nodeDescriptionChange: '區塊描述已更改',
nodeDragStop: '區塊已移動',
nodeChange: '區塊已更改',
nodeConnect: '區塊已連接',
nodePaste: '區塊已粘貼',
nodeDelete: '區塊已刪除',
nodeAdd: '區塊已添加',
nodeResize: '區塊已調整大小',
noteAdd: '註釋已添加',
noteChange: '註釋已更改',
edgeDelete: '區塊已斷開連接',
},
errorMsg: {
fieldRequired: '{{field}} 不能為空',
authRequired: '請先授權',