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,32 @@ 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: 'ノートが変更されました',
noteDelete: 'ノートが削除されました',
edgeDelete: 'ブロックが切断されました',
},
errorMsg: {
fieldRequired: '{{field}}は必須です',
authRequired: '認証が必要です',