Skip to content

Sync-in · Sovereign platform for file storage, sharing, synchronization, and collaboration.

feat(frontend:files): add undo and redo functionality with i18n updates and improved editor error handling

johavendaccfbcf7c01
diff --git a/backend/src/applications/files/files.controller.ts b/backend/src/applications/files/files.controller.ts
index 3a725905..79a66271 100644
--- a/backend/src/applications/files/files.controller.ts
+++ b/backend/src/applications/files/files.controller.ts
@@ -17,6 +17,7 @@ import {
ParseIntPipe,
Patch,
Post,
+ Put,
Query,
Req,
Res,
@@ -81,11 +82,16 @@ export class FilesController {
return this.filesMethods.upload(req)
}
- @Patch(`${FILES_ROUTE.OPERATION}/${FILE_OPERATION.UPLOAD}/*`)
+ @Put(`${FILES_ROUTE.OPERATION}/${FILE_OPERATION.UPLOAD}/*`)
async uploadOverwrite(@Req() req: FastifySpaceRequest): Promise<void> {
return this.filesMethods.upload(req)
}
+ @Patch(`${FILES_ROUTE.OPERATION}/${FILE_OPERATION.UPLOAD}/*`)
+ async uploadContent(@Req() req: FastifySpaceRequest): Promise<void> {
+ return this.filesMethods.upload(req)
+ }
+
@Copy(`${FILES_ROUTE.OPERATION}/*`)
async copy(
@GetUser() user: UserModel,
diff --git a/frontend/src/app/applications/files/components/viewers/files-viewer-text.component.html b/frontend/src/app/applications/files/components/viewers/files-viewer-text.component.html
index ec86e30a..2a94b620 100644
--- a/frontend/src/app/applications/files/components/viewers/files-viewer-text.component.html
+++ b/frontend/src/app/applications/files/components/viewers/files-viewer-text.component.html
@@ -17,7 +17,7 @@
</button>
<button
(click)="save()"
- [tooltip]="(isReadonly() || !isWriteable() || !isModified() ? null : 'Save') | translate:locale.language"
+ [tooltip]="(isReadonly() || !isWriteable() || !isModified() ? undefined : 'Save') | translate:locale.language"
[isDisabled]="isReadonly() || !isWriteable() || !isModified()"
class="d-none d-sm-block btn btn-sm btn-secondary me-1"
type="button"
@@ -28,6 +28,22 @@
<fa-icon [icon]="icons.faFloppyDisk"></fa-icon>
}
</button>
+ <button
+ (click)="onUndo()"
+ [disabled]="!canUndo()"
+ [tooltip]="'Undo' | translate:locale.language"
+ class="d-none d-sm-block btn btn-sm btn-custom me-1"
+ type="button">
+ <fa-icon [icon]="icons.faReply"></fa-icon>
+ </button>
+ <button
+ (click)="onRedo()"
+ [disabled]="!canRedo()"
+ [tooltip]="'Redo' | translate:locale.language"
+ class="d-none d-sm-block btn btn-sm btn-custom me-1"
+ type="button">
+ <fa-icon [icon]="icons.faShare"></fa-icon>
+ </button>
<button
btnCheckbox
[ngModel]="lineWrapping()"
@@ -73,5 +89,6 @@
(change)="contentChange()"
[theme]="currentTheme"
[readonly]="isReadonly()"
+ [disabled]="isReadonly()"
[lineWrapping]="lineWrapping()" />
</div>
diff --git a/frontend/src/app/applications/files/components/viewers/files-viewer-text.component.ts b/frontend/src/app/applications/files/components/viewers/files-viewer-text.component.ts
index e7161211..41639c87 100644
--- a/frontend/src/app/applications/files/components/viewers/files-viewer-text.component.ts
+++ b/frontend/src/app/applications/files/components/viewers/files-viewer-text.component.ts
@@ -12,7 +12,6 @@ import {
HostListener,
inject,
input,
- linkedSignal,
model,
OnDestroy,
OnInit,
@@ -22,11 +21,22 @@ import {
ViewEncapsulation
} from '@angular/core'
import { FormsModule } from '@angular/forms'
+import { redo, redoDepth, undo, undoDepth } from '@codemirror/commands'
import { LanguageDescription } from '@codemirror/language'
import { languages } from '@codemirror/language-data'
import { closeSearchPanel, openSearchPanel } from '@codemirror/search'
+import { Transaction } from '@codemirror/state'
import { FaIconComponent } from '@fortawesome/angular-fontawesome'
-import { faArrowsLeftRightToLine, faFloppyDisk, faLock, faLockOpen, faMagnifyingGlass, faSpinner } from '@fortawesome/free-solid-svg-icons'
+import {
+ faArrowsLeftRightToLine,
+ faFloppyDisk,
+ faLock,
+ faLockOpen,
+ faMagnifyingGlass,
+ faReply,
+ faShare,
+ faSpinner
+} from '@fortawesome/free-solid-svg-icons'
import type { FileLockProps } from '@sync-in-server/backend/src/applications/files/interfaces/file-props.interface'
import { L10N_LOCALE, L10nLocale, L10nTranslateDirective, L10nTranslatePipe } from 'angular-l10n'
import { ButtonCheckboxDirective } from 'ngx-bootstrap/buttons'
@@ -82,15 +92,14 @@ export class FilesViewerTextComponent implements OnInit, OnDestroy {
protected isSaving = signal(false)
protected lineWrapping = signal(false)
protected warnOnUnsavedChanges = signal(false)
- protected content: string
+ protected content: any = false
protected currentLanguage = undefined
protected readonly languages: LanguageDescription[] = languages
protected currentTheme: any = 'light'
- protected readonly icons = { faFloppyDisk, faLock, faLockOpen, faMagnifyingGlass, faSpinner, faArrowsLeftRightToLine }
+ protected readonly icons = { faFloppyDisk, faLock, faLockOpen, faMagnifyingGlass, faSpinner, faArrowsLeftRightToLine, faReply, faShare }
protected isSearchPanelOpen = signal(false)
protected readonly layout = inject(LayoutService)
protected readonly locale = inject<L10nLocale>(L10N_LOCALE)
- private readonly canLock = linkedSignal(() => this.isWriteable() && !this.isReadonly())
private isContentReady = false
private readonly http = inject(HttpClient)
private readonly filesServices = inject(FilesService)
@@ -111,7 +120,7 @@ export class FilesViewerTextComponent implements OnInit, OnDestroy {
this.layout.restoreDialog(fileId)
}
} else {
- this.onClose()
+ this.onClose().catch(console.error)
}
})
effect(() => {
@@ -143,7 +152,7 @@ export class FilesViewerTextComponent implements OnInit, OnDestroy {
this.warnOnUnsavedChanges.set(true)
} else {
event.stopPropagation()
- this.onClose()
+ this.onClose().catch(console.error)
}
return
}
@@ -168,8 +177,7 @@ export class FilesViewerTextComponent implements OnInit, OnDestroy {
if (language?.name || this.file().size <= this.maxSize) {
this.currentLanguage = language?.name
this.isSupported.set(true)
- await this.lockFile()
- this.loadContent()
+ this.loadContent().catch(console.error)
} else {
this.isReadonly.set(true)
this.isSupported.set(false)
@@ -194,7 +202,7 @@ export class FilesViewerTextComponent implements OnInit, OnDestroy {
this.isSaving.set(false)
this.warnOnUnsavedChanges.set(false)
if (exit) {
- this.onClose()
+ this.onClose().catch(console.error)
}
},
error: (e: HttpErrorResponse) => {
@@ -222,23 +230,56 @@ export class FilesViewerTextComponent implements OnInit, OnDestroy {
}
}
- onClose() {
- this.unlockFile().then(() => this.layout.closeDialog(null, this.file().id))
+ onUndo() {
+ undo({ state: this.editor().view.state, dispatch: this.editor().view.dispatch })
+ }
+
+ onRedo() {
+ redo({ state: this.editor().view.state, dispatch: this.editor().view.dispatch })
+ }
+
+ canUndo(): boolean {
+ if (this.editor()?.view) {
+ return undoDepth(this.editor().view.state) > 0
+ }
+ return false
+ }
+
+ canRedo(): boolean {
+ if (this.editor()?.view) {
+ return redoDepth(this.editor().view.state) > 0
+ }
+ return false
+ }
+
+ async onClose() {
+ if (!this.isReadonly()) {
+ await this.unlockFile()
+ }
+ this.layout.closeDialog(null, this.file().id)
}
ngOnDestroy() {
this.subscription.unsubscribe()
}
- private loadContent() {
+ private async loadContent() {
+ if (!this.isReadonly()) {
+ await this.lockFile()
+ }
this.http.get(this.file().dataUrl, { responseType: 'text' }).subscribe({
- next: (data: string) => (this.content = data),
+ next: (data: string) => {
+ this.editor().view.dispatch({
+ changes: { from: 0, to: this.editor().view.state.doc.length, insert: data },
+ annotations: Transaction.addToHistory.of(false)
+ })
+ },
error: (e: HttpErrorResponse) => this.layout.sendNotification('error', 'Unable to open document', this.file().name, e)
})
}
private async lockFile() {
- if (!this.canLock()) return
+ if (!this.isSupported || !this.isWriteable()) return
try {
const lock: FileLockProps = await firstValueFrom(this.filesServices.lock(this.file()))
this.file.update((f) => {
@@ -251,7 +292,7 @@ export class FilesViewerTextComponent implements OnInit, OnDestroy {
}
private async unlockFile() {
- if (!this.canLock()) return
+ if (!this.isSupported || !this.isWriteable()) return
try {
await firstValueFrom(this.filesServices.unlock(this.file()))
this.file.update((f) => {
diff --git a/frontend/src/assets/mimes/application-sql.svg b/frontend/src/assets/mimes/application-sql.svg
index 2bd8d68e..c7acdb18 100644
--- a/frontend/src/assets/mimes/application-sql.svg
+++ b/frontend/src/assets/mimes/application-sql.svg
@@ -1 +1,29 @@
-<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><title>file_type_light_db</title><path d="M8.562,15.256A21.159,21.159,0,0,0,16,16.449a21.159,21.159,0,0,0,7.438-1.194c1.864-.727,2.525-1.535,2.525-2V9.7a10.357,10.357,0,0,1-2.084,1.076A22.293,22.293,0,0,1,16,12.078a22.36,22.36,0,0,1-7.879-1.3A10.28,10.28,0,0,1,6.037,9.7v3.55C6.037,13.724,6.7,14.528,8.562,15.256Z" style="fill:#74777c"/><path d="M8.562,21.961a15.611,15.611,0,0,0,2.6.741A24.9,24.9,0,0,0,16,23.155a24.9,24.9,0,0,0,4.838-.452,15.614,15.614,0,0,0,2.6-.741c1.864-.727,2.525-1.535,2.525-2v-3.39a10.706,10.706,0,0,1-1.692.825A23.49,23.49,0,0,1,16,18.74a23.49,23.49,0,0,1-8.271-1.348,10.829,10.829,0,0,1-1.692-.825V19.96C6.037,20.426,6.7,21.231,8.562,21.961Z" style="fill:#74777c"/><path d="M16,30c5.5,0,9.963-1.744,9.963-3.894V23.269a10.5,10.5,0,0,1-1.535.762l-.157.063A23.487,23.487,0,0,1,16,25.445a23.422,23.422,0,0,1-8.271-1.351c-.054-.02-.106-.043-.157-.063a10.5,10.5,0,0,1-1.535-.762v2.837C6.037,28.256,10.5,30,16,30Z" style="fill:#74777c"/><ellipse cx="16" cy="5.894" rx="9.963" ry="3.894" style="fill:#74777c"/></svg>
\ No newline at end of file
+<?xml version="1.0" encoding="utf-8"?><!-- Uploaded to: SVG Repo, www.svgrepo.com, Generator: SVG Repo Mixer Tools -->
+<svg width="800px" height="800px" viewBox="-8.78 0 70 70" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:cc="http://creativecommons.org/ns#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://www.w3.org/2000/svg">
+ <metadata>
+ <rdf:RDF>
+ <cc:Work>
+ <dc:subject>
+ Data
+ </dc:subject>
+ <dc:identifier>
+ sql-database-generic
+ </dc:identifier>
+ <dc:title>
+ SQL Database (Generic)
+ </dc:title>
+ <dc:format>
+ image/svg+xml
+ </dc:format>
+ <dc:publisher>
+ Amido Limited
+ </dc:publisher>
+ <dc:creator>
+ Richard Slater
+ </dc:creator>
+ <dc:type rdf:resource="http://purl.org/dc/dcmitype/StillImage"/>
+ </cc:Work>
+ </rdf:RDF>
+ </metadata>
+ <path d="m 852.97077,1013.9363 c -6.55238,-0.4723 -13.02857,-2.1216 -17.00034,-4.3296 -2.26232,-1.2576 -3.98589,-2.8032 -4.66223,-4.1807 l -0.4024,-0.8196 0,-25.70807 0,-25.7081 0.31843,-0.6465 c 1.42297,-2.889 5.96432,-5.4935 12.30378,-7.0562 2.15195,-0.5305 5.2586,-1.0588 7.79304,-1.3252 2.58797,-0.2721 9.44765,-0.2307 12.02919,0.073 6.86123,0.8061 12.69967,2.6108 16.29768,5.0377 1.38756,0.9359 2.81137,2.4334 3.29371,3.4642 l 0.41358,0.8838 -0.0354,25.6303 -0.0354,25.63047 -0.33195,0.6744 c -0.18257,0.3709 -0.73406,1.1007 -1.22553,1.6216 -2.99181,3.1715 -9.40919,5.5176 -17.8267,6.5172 -1.71567,0.2038 -9.16916,0.3686 -10.92937,0.2417 z m 12.07501,-22.02839 c -0.0252,-0.0657 -1.00472,-0.93831 -2.17671,-1.93922 -1.17199,-1.00091 -2.18138,-1.86687 -2.24309,-1.92436 -0.0617,-0.0575 0.15481,-0.26106 0.48117,-0.45237 0.32635,-0.19131 0.95163,-0.7235 1.3895,-1.18265 1.2805,-1.34272 1.88466,-3.00131 1.88466,-5.17388 0,-2.1388 -0.65162,-3.8645 -1.95671,-5.1818 -1.31533,-1.3278 -2.82554,-1.8983 -5.02486,-1.8983 -3.39007,0 -5.99368,1.9781 -6.82468,5.1851 -0.28586,1.1031 -0.28432,3.33211 0.003,4.31023 0.74941,2.55136 2.79044,4.40434 5.33062,4.83946 0.8596,0.14724 0.97605,0.21071 1.5621,0.85144 0.34829,0.38078 1.06301,1.14085 1.58827,1.68904 l 0.95501,0.9967 2.53878,0 c 1.39633,0 2.51816,-0.0537 2.49296,-0.11939 z m -8.70653,-7.10848 c -0.61119,-0.31868 -0.84225,-0.56599 -1.19079,-1.27453 -0.26919,-0.54724 -0.31522,-0.85851 -0.31824,-2.15197 -0.003,-1.3143 0.0388,-1.5983 0.31987,-2.169 0.45985,-0.9339 1.09355,-1.376 2.07384,-1.4469 1.36454,-0.099 2.15217,0.5707 2.56498,2.1801 0.50612,1.97321 -0.0504,4.07107 -1.26471,4.76729 -0.63707,0.36527 -1.58737,0.40659 -2.18495,0.095 z m -11.25315,3.66269 c 2.66179,-0.5048 4.1728,-2.0528 4.1728,-4.27495 0,-1.97137 -0.97548,-3.12004 -3.6716,-4.32364 -1.54338,-0.689 -2.10241,-1.1215 -2.10241,-1.6268 0,-0.4188 0.53052,-0.8777 1.14813,-0.993 0.60302,-0.1126 2.20237,0.1652 3.14683,0.5467 l 0.79167,0.3198 0,-1.7524 0,-1.7525 -0.85923,-0.1906 c -0.53103,-0.1178 -1.64689,-0.1885 -2.92137,-0.1849 -1.80528,0 -2.15881,0.044 -2.83818,0.3138 -1.98445,0.7878 -2.92613,2.1298 -2.91107,4.1485 0.0141,1.8898 1.01108,3.06864 3.49227,4.12912 1.46399,0.62572 2.05076,1.10218 2.05076,1.66522 0,1.1965 -1.99362,1.34375 -4.10437,0.30315 -0.57805,-0.28498 -1.09739,-0.54137 -1.1541,-0.56976 -0.0567,-0.0284 -0.10311,0.79023 -0.10311,1.81917 0,1.86239 0.002,1.87137 0.33919,1.99974 1.26979,0.48278 4.07626,0.69787 5.52379,0.42335 z m 30.4308,-1.72766 0,-1.58098 -2.40584,0 -2.40583,0 0,-5.43035 0,-5.4303 -2.13089,0 -2.13088,0 0,7.0113 0,7.01131 4.53672,0 4.53672,0 0,-1.58098 z m -14.84745,-27.70503 c 4.23447,-0.2937 7.4086,-0.8482 10.20178,-1.7821 2.78264,-0.9304 4.42643,-2.0562 4.79413,-3.2834 0.14166,-0.4729 0.13146,-0.6523 -0.0665,-1.1708 -0.88775,-2.3245 -5.84694,-4.1104 -13.42493,-4.8345 -3.24154,-0.3098 -9.13671,-0.2094 -12.22745,0.2081 -4.71604,0.6372 -8.54333,1.8208 -10.2451,3.1683 -3.44251,2.726 0.19793,5.7242 8.66397,7.1354 3.67084,0.6119 8.42674,0.828 12.30414,0.559 z" fill="#00bcf2" transform="translate(-830.906 -943.981)"/>
+</svg>
\ No newline at end of file
diff --git a/frontend/src/assets/mimes/application-x-sql.svg b/frontend/src/assets/mimes/application-x-sql.svg
new file mode 100644
index 00000000..c7acdb18
--- /dev/null
+++ b/frontend/src/assets/mimes/application-x-sql.svg
@@ -0,0 +1,29 @@
+<?xml version="1.0" encoding="utf-8"?><!-- Uploaded to: SVG Repo, www.svgrepo.com, Generator: SVG Repo Mixer Tools -->
+<svg width="800px" height="800px" viewBox="-8.78 0 70 70" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:cc="http://creativecommons.org/ns#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://www.w3.org/2000/svg">
+ <metadata>
+ <rdf:RDF>
+ <cc:Work>
+ <dc:subject>
+ Data
+ </dc:subject>
+ <dc:identifier>
+ sql-database-generic
+ </dc:identifier>
+ <dc:title>
+ SQL Database (Generic)
+ </dc:title>
+ <dc:format>
+ image/svg+xml
+ </dc:format>
+ <dc:publisher>
+ Amido Limited
+ </dc:publisher>
+ <dc:creator>
+ Richard Slater
+ </dc:creator>
+ <dc:type rdf:resource="http://purl.org/dc/dcmitype/StillImage"/>
+ </cc:Work>
+ </rdf:RDF>
+ </metadata>
+ <path d="m 852.97077,1013.9363 c -6.55238,-0.4723 -13.02857,-2.1216 -17.00034,-4.3296 -2.26232,-1.2576 -3.98589,-2.8032 -4.66223,-4.1807 l -0.4024,-0.8196 0,-25.70807 0,-25.7081 0.31843,-0.6465 c 1.42297,-2.889 5.96432,-5.4935 12.30378,-7.0562 2.15195,-0.5305 5.2586,-1.0588 7.79304,-1.3252 2.58797,-0.2721 9.44765,-0.2307 12.02919,0.073 6.86123,0.8061 12.69967,2.6108 16.29768,5.0377 1.38756,0.9359 2.81137,2.4334 3.29371,3.4642 l 0.41358,0.8838 -0.0354,25.6303 -0.0354,25.63047 -0.33195,0.6744 c -0.18257,0.3709 -0.73406,1.1007 -1.22553,1.6216 -2.99181,3.1715 -9.40919,5.5176 -17.8267,6.5172 -1.71567,0.2038 -9.16916,0.3686 -10.92937,0.2417 z m 12.07501,-22.02839 c -0.0252,-0.0657 -1.00472,-0.93831 -2.17671,-1.93922 -1.17199,-1.00091 -2.18138,-1.86687 -2.24309,-1.92436 -0.0617,-0.0575 0.15481,-0.26106 0.48117,-0.45237 0.32635,-0.19131 0.95163,-0.7235 1.3895,-1.18265 1.2805,-1.34272 1.88466,-3.00131 1.88466,-5.17388 0,-2.1388 -0.65162,-3.8645 -1.95671,-5.1818 -1.31533,-1.3278 -2.82554,-1.8983 -5.02486,-1.8983 -3.39007,0 -5.99368,1.9781 -6.82468,5.1851 -0.28586,1.1031 -0.28432,3.33211 0.003,4.31023 0.74941,2.55136 2.79044,4.40434 5.33062,4.83946 0.8596,0.14724 0.97605,0.21071 1.5621,0.85144 0.34829,0.38078 1.06301,1.14085 1.58827,1.68904 l 0.95501,0.9967 2.53878,0 c 1.39633,0 2.51816,-0.0537 2.49296,-0.11939 z m -8.70653,-7.10848 c -0.61119,-0.31868 -0.84225,-0.56599 -1.19079,-1.27453 -0.26919,-0.54724 -0.31522,-0.85851 -0.31824,-2.15197 -0.003,-1.3143 0.0388,-1.5983 0.31987,-2.169 0.45985,-0.9339 1.09355,-1.376 2.07384,-1.4469 1.36454,-0.099 2.15217,0.5707 2.56498,2.1801 0.50612,1.97321 -0.0504,4.07107 -1.26471,4.76729 -0.63707,0.36527 -1.58737,0.40659 -2.18495,0.095 z m -11.25315,3.66269 c 2.66179,-0.5048 4.1728,-2.0528 4.1728,-4.27495 0,-1.97137 -0.97548,-3.12004 -3.6716,-4.32364 -1.54338,-0.689 -2.10241,-1.1215 -2.10241,-1.6268 0,-0.4188 0.53052,-0.8777 1.14813,-0.993 0.60302,-0.1126 2.20237,0.1652 3.14683,0.5467 l 0.79167,0.3198 0,-1.7524 0,-1.7525 -0.85923,-0.1906 c -0.53103,-0.1178 -1.64689,-0.1885 -2.92137,-0.1849 -1.80528,0 -2.15881,0.044 -2.83818,0.3138 -1.98445,0.7878 -2.92613,2.1298 -2.91107,4.1485 0.0141,1.8898 1.01108,3.06864 3.49227,4.12912 1.46399,0.62572 2.05076,1.10218 2.05076,1.66522 0,1.1965 -1.99362,1.34375 -4.10437,0.30315 -0.57805,-0.28498 -1.09739,-0.54137 -1.1541,-0.56976 -0.0567,-0.0284 -0.10311,0.79023 -0.10311,1.81917 0,1.86239 0.002,1.87137 0.33919,1.99974 1.26979,0.48278 4.07626,0.69787 5.52379,0.42335 z m 30.4308,-1.72766 0,-1.58098 -2.40584,0 -2.40583,0 0,-5.43035 0,-5.4303 -2.13089,0 -2.13088,0 0,7.0113 0,7.01131 4.53672,0 4.53672,0 0,-1.58098 z m -14.84745,-27.70503 c 4.23447,-0.2937 7.4086,-0.8482 10.20178,-1.7821 2.78264,-0.9304 4.42643,-2.0562 4.79413,-3.2834 0.14166,-0.4729 0.13146,-0.6523 -0.0665,-1.1708 -0.88775,-2.3245 -5.84694,-4.1104 -13.42493,-4.8345 -3.24154,-0.3098 -9.13671,-0.2094 -12.22745,0.2081 -4.71604,0.6372 -8.54333,1.8208 -10.2451,3.1683 -3.44251,2.726 0.19793,5.7242 8.66397,7.1354 3.67084,0.6119 8.42674,0.828 12.30414,0.559 z" fill="#00bcf2" transform="translate(-830.906 -943.981)"/>
+</svg>
\ No newline at end of file
diff --git a/frontend/src/i18n/de.json b/frontend/src/i18n/de.json
index 7403531e..cb0bcd72 100644
--- a/frontend/src/i18n/de.json
+++ b/frontend/src/i18n/de.json
@@ -606,5 +606,7 @@
"Read-only": "Schreibgeschützt",
"Read-write": "Lesen/Schreiben",
"Save And Exit": "Speichern und beenden",
- "Close Without Saving": "Schließen ohne zu speichern"
+ "Close Without Saving": "Schließen ohne zu speichern",
+ "Undo": "Rückgängig",
+ "Redo": "Wiederholen"
}
\ No newline at end of file
diff --git a/frontend/src/i18n/es.json b/frontend/src/i18n/es.json
index 728393af..4a929a5f 100644
--- a/frontend/src/i18n/es.json
+++ b/frontend/src/i18n/es.json
@@ -606,5 +606,7 @@
"Read-only": "Solo lectura",
"Read-write": "Lectura y escritura",
"Save And Exit": "Guardar y salir",
- "Close Without Saving": "Cerrar sin guardar"
+ "Close Without Saving": "Cerrar sin guardar",
+ "Undo": "Deshacer",
+ "Redo": "Rehacer"
}
\ No newline at end of file
diff --git a/frontend/src/i18n/fr.json b/frontend/src/i18n/fr.json
index ff540a86..417e3234 100644
--- a/frontend/src/i18n/fr.json
+++ b/frontend/src/i18n/fr.json
@@ -606,5 +606,7 @@
"Read-only": "Lecture seule",
"Read-write": "Lecture-écriture",
"Save And Exit": "Enregistrer et quitter",
- "Close Without Saving": "Fermer sans enregistrer"
+ "Close Without Saving": "Fermer sans enregistrer",
+ "Undo": "Annuler",
+ "Redo": "Rétablir"
}
diff --git a/frontend/src/i18n/hi.json b/frontend/src/i18n/hi.json
index 7674daad..0970e082 100644
--- a/frontend/src/i18n/hi.json
+++ b/frontend/src/i18n/hi.json
@@ -606,5 +606,7 @@
"Read-only": "केवल-पढ़ने योग्य",
"Read-write": "पढ़ने-लिखने योग्य",
"Save And Exit": "सहेजें और बाहर निकलें",
- "Close Without Saving": "बिना सहेजे बंद करें"
+ "Close Without Saving": "बिना सहेजे बंद करें",
+ "Undo": "पूर्ववत करें",
+ "Redo": "फिर से करें"
}
\ No newline at end of file
diff --git a/frontend/src/i18n/it.json b/frontend/src/i18n/it.json
index 01f0f897..76748216 100644
--- a/frontend/src/i18n/it.json
+++ b/frontend/src/i18n/it.json
@@ -606,5 +606,7 @@
"Read-only": "Sola lettura",
"Read-write": "Lettura e scrittura",
"Save And Exit": "Salva e esci",
- "Close Without Saving": "Chiudi senza salvare"
+ "Close Without Saving": "Chiudi senza salvare",
+ "Undo": "Annulla",
+ "Redo": "Ripristina"
}
\ No newline at end of file
diff --git a/frontend/src/i18n/ja.json b/frontend/src/i18n/ja.json
index 00404d03..67952504 100644
--- a/frontend/src/i18n/ja.json
+++ b/frontend/src/i18n/ja.json
@@ -606,5 +606,7 @@
"Read-only": "読み取り専用",
"Read-write": "読み書き可能",
"Save And Exit": "保存して終了",
- "Close Without Saving": "保存せずに閉じる"
+ "Close Without Saving": "保存せずに閉じる",
+ "Undo": "元に戻す",
+ "Redo": "やり直す"
}
diff --git a/frontend/src/i18n/ko.json b/frontend/src/i18n/ko.json
index 807f4ae0..fa9e9432 100644
--- a/frontend/src/i18n/ko.json
+++ b/frontend/src/i18n/ko.json
@@ -606,5 +606,7 @@
"Read-only": "읽기 전용",
"Read-write": "읽기/쓰기",
"Save And Exit": "저장하고 종료",
- "Close Without Saving": "저장하지 않고 닫기"
+ "Close Without Saving": "저장하지 않고 닫기",
+ "Undo": "실행 취소",
+ "Redo": "다시 실행"
}
diff --git a/frontend/src/i18n/pl.json b/frontend/src/i18n/pl.json
index 948d7824..2967c398 100644
--- a/frontend/src/i18n/pl.json
+++ b/frontend/src/i18n/pl.json
@@ -606,5 +606,7 @@
"Read-only": "Tylko do odczytu",
"Read-write": "Odczyt i zapis",
"Save And Exit": "Zapisz i wyjdź",
- "Close Without Saving": "Zamknij bez zapisywania"
+ "Close Without Saving": "Zamknij bez zapisywania",
+ "Undo": "Cofnij",
+ "Redo": "Ponów"
}
diff --git a/frontend/src/i18n/pt-BR.json b/frontend/src/i18n/pt-BR.json
index a4a43507..56c538c9 100644
--- a/frontend/src/i18n/pt-BR.json
+++ b/frontend/src/i18n/pt-BR.json
@@ -606,5 +606,7 @@
"Read-only": "Somente leitura",
"Read-write": "Leitura e escrita",
"Save And Exit": "Salvar e sair",
- "Close Without Saving": "Fechar sem salvar"
+ "Close Without Saving": "Fechar sem salvar",
+ "Undo": "Desfazer",
+ "Redo": "Refazer"
}
diff --git a/frontend/src/i18n/pt.json b/frontend/src/i18n/pt.json
index 14329837..7f36a967 100644
--- a/frontend/src/i18n/pt.json
+++ b/frontend/src/i18n/pt.json
@@ -606,5 +606,7 @@
"Read-only": "Somente leitura",
"Read-write": "Leitura e escrita",
"Save And Exit": "Salvar e sair",
- "Close Without Saving": "Fechar sem salvar"
+ "Close Without Saving": "Fechar sem salvar",
+ "Undo": "Desfazer",
+ "Redo": "Refazer"
}
\ No newline at end of file
diff --git a/frontend/src/i18n/ru.json b/frontend/src/i18n/ru.json
index 22505447..0c2e5737 100644
--- a/frontend/src/i18n/ru.json
+++ b/frontend/src/i18n/ru.json
@@ -606,5 +606,7 @@
"Read-only": "Только чтение",
"Read-write": "Чтение и запись",
"Save And Exit": "Сохранить и выйти",
- "Close Without Saving": "Закрыть без сохранения"
+ "Close Without Saving": "Закрыть без сохранения",
+ "Undo": "Отменить",
+ "Redo": "Повторить"
}
\ No newline at end of file
diff --git a/frontend/src/i18n/tr.json b/frontend/src/i18n/tr.json
index 983cd2f5..2e605cc4 100644
--- a/frontend/src/i18n/tr.json
+++ b/frontend/src/i18n/tr.json
@@ -606,5 +606,7 @@
"Read-only": "Salt okunur",
"Read-write": "Okuma/Yazma",
"Save And Exit": "Kaydet ve çık",
- "Close Without Saving": "Kaydetmeden kapat"
+ "Close Without Saving": "Kaydetmeden kapat",
+ "Undo": "Geri Al",
+ "Redo": "Yinele"
}
diff --git a/frontend/src/i18n/zh.json b/frontend/src/i18n/zh.json
index 8e50d54c..5dd5c100 100644
--- a/frontend/src/i18n/zh.json
+++ b/frontend/src/i18n/zh.json
@@ -606,5 +606,7 @@
"Read-only": "只读",
"Read-write": "读写",
"Save And Exit": "保存并退出",
- "Close Without Saving": "不保存并关闭"
+ "Close Without Saving": "不保存并关闭",
+ "Undo": "撤销",
+ "Redo": "重做"
}
\ No newline at end of file