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: 'Undo',
redo: 'Redo',
editing: 'Editing',
autoSaved: 'Auto-Saved',
unpublished: 'Unpublished',
@@ -76,6 +78,32 @@ const translation = {
importFailure: 'Import failure',
importSuccess: 'Import success',
},
changeHistory: {
title: 'Change History',
placeholder: 'You haven\'t changed anything yet',
clearHistory: 'Clear History',
hint: 'Hint',
hintText: 'Your editing actions are tracked in a change history, which is stored on your device for the duration of this session. This history will be cleared when you leave the editor.',
stepBackward_one: '{{count}} step backward',
stepBackward_other: '{{count}} steps backward',
stepForward_one: '{{count}} step forward',
stepForward_other: '{{count}} steps forward',
sessionStart: 'Session Start',
currentState: 'Current State',
nodeTitleChange: 'Block title changed',
nodeDescriptionChange: 'Block description changed',
nodeDragStop: 'Block moved',
nodeChange: 'Block changed',
nodeConnect: 'Block connected',
nodePaste: 'Block pasted',
nodeDelete: 'Block deleted',
nodeAdd: 'Block added',
nodeResize: 'Block resized',
noteAdd: 'Note added',
noteChange: 'Note changed',
noteDelete: 'Note deleted',
edgeDelete: 'Block disconnected',
},
errorMsg: {
fieldRequired: '{{field}} is required',
authRequired: 'Authorization is required',