Sync-in · Sovereign platform for file storage, sharing, synchronization, and collaboration.
TypeScript cloud-alternativecollaborationcollaborative-editingdropboxfile-serverfile-sharingfile-storagefile-syncfull-text-searchhomelabnextcloudon-premiseopen-sourceprivacy-firstprivate-cloudrealtimesecureself-hostedstorage-serverwebdav
chore(frontend:files): remove history-initialization hook; empty initial value now fixed in the code-editor lib
johavenec79e2a48074
diff --git a/frontend/package.json b/frontend/package.jsonindex 24608ced..130c210f 100644--- a/frontend/package.json+++ b/frontend/package.json@@ -20,7 +20,7 @@"update:angular": "ng update @angular/cli@latest @angular/core@latest --allow-dirty"},"dependencies": {- "@acrodata/code-editor": "^0.5.1",+ "@acrodata/code-editor": "^0.6.0","@ali-hm/angular-tree-component": "^20.1.6","@angular/animations": "^20.1.7","@angular/cdk": "^20.1.6",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.tsindex 552135cc..d8f0380f 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@@ -25,7 +25,6 @@ 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,@@ -268,12 +267,7 @@ export class FilesViewerTextComponent implements OnInit, OnDestroy {await this.lockFile()}this.http.get(this.file().dataUrl, { responseType: 'text' }).subscribe({- next: (data: string) => {- this.editor().view.dispatch({- changes: { from: 0, to: this.editor().view.state.doc.length, insert: data },- annotations: Transaction.addToHistory.of(false)- })- },+ next: (data: string) => (this.content = data),error: (e: HttpErrorResponse) => this.layout.sendNotification('error', 'Unable to open document', this.file().name, e)})}diff --git a/package-lock.json b/package-lock.jsonindex 16704068..40610c8e 100644--- a/package-lock.json+++ b/package-lock.json@@ -161,7 +161,7 @@"name": "@sync-in-server/frontend","license": "AGPL-3.0-or-later","dependencies": {- "@acrodata/code-editor": "^0.5.1",+ "@acrodata/code-editor": "^0.6.0","@ali-hm/angular-tree-component": "^20.1.6","@angular/animations": "^20.1.7","@angular/cdk": "^20.1.6",@@ -206,10 +206,10 @@"typescript-eslint": "^8.15.0"}},- "node_modules/@acrodata/code-editor": {- "version": "0.5.1",- "resolved": "https://registry.npmjs.org/@acrodata/code-editor/-/code-editor-0.5.1.tgz",- "integrity": "sha512-ta0prFRwXQgLSqBtjzpR9+eWXPpFh/+tS/BQapoA89cMnJDo6zCjkfEax41uO5xb96UJA3IAuYM22jUA6G4WRw==",+ "frontend/node_modules/@acrodata/code-editor": {+ "version": "0.6.0",+ "resolved": "https://registry.npmjs.org/@acrodata/code-editor/-/code-editor-0.6.0.tgz",+ "integrity": "sha512-cegNEj5/eFehvA1IDUHo8EInnnhPN5VgLLyuzAkAPCosooUCI/fHdcoixlsOaM+Au32PcXDxvdg7DmMLsrV3Ww==","license": "MIT","dependencies": {"@codemirror/merge": "^6.0.0",