From a48a5a4d87d476124fa70081f3ebb9839e27f5fd Mon Sep 17 00:00:00 2001 From: Esteban Galvis Date: Mon, 20 Oct 2025 13:34:29 -0500 Subject: [PATCH 1/5] Update file size limit in translations to 40GB --- src/frontend/core/i18n/locales/en.ts | 2 +- src/frontend/core/i18n/locales/es.ts | 2 +- src/frontend/core/i18n/locales/fr.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/frontend/core/i18n/locales/en.ts b/src/frontend/core/i18n/locales/en.ts index 8a67fe7..8612dfe 100644 --- a/src/frontend/core/i18n/locales/en.ts +++ b/src/frontend/core/i18n/locales/en.ts @@ -427,7 +427,7 @@ export const en = { CREATE_FOLDER_FAILED: 'Failed to create folder', DELETE_ERROR: 'Cannot delete item', FILE_MODIFIED: 'File modified while uploading', - FILE_SIZE_TOO_BIG: 'File size too big (max 20GB)', + FILE_SIZE_TOO_BIG: 'File size too big (max 40GB)', FOLDER_ACCESS_DENIED: 'The app does not have permission to access this folder', FOLDER_DOES_NOT_EXIST: 'Folder does not exist', INVALID_WINDOWS_NAME: String.raw`Windows does not allow names that include the characters \ / : * ? " < > |`, diff --git a/src/frontend/core/i18n/locales/es.ts b/src/frontend/core/i18n/locales/es.ts index 5bba506..7c18955 100644 --- a/src/frontend/core/i18n/locales/es.ts +++ b/src/frontend/core/i18n/locales/es.ts @@ -431,7 +431,7 @@ export const es: Translation = { CREATE_FOLDER_FAILED: 'Error al crear la carpeta', DELETE_ERROR: 'No se pudo eliminar el elemento', FILE_MODIFIED: 'Archivo modificado durante la subida', - FILE_SIZE_TOO_BIG: 'Archivo es demasiado grande (máximo 20GB)', + FILE_SIZE_TOO_BIG: 'Archivo es demasiado grande (máximo 40GB)', FOLDER_ACCESS_DENIED: 'La app no tiene permiso para acceder a esta carpeta', FOLDER_DOES_NOT_EXIST: 'Carpeta no existe', INVALID_WINDOWS_NAME: String.raw`Windows no permite nombres que incluyen los caracteres \ / : * ? " < > |`, diff --git a/src/frontend/core/i18n/locales/fr.ts b/src/frontend/core/i18n/locales/fr.ts index b80939f..e0f5f58 100644 --- a/src/frontend/core/i18n/locales/fr.ts +++ b/src/frontend/core/i18n/locales/fr.ts @@ -433,7 +433,7 @@ export const fr: Translation = { CREATE_FOLDER_FAILED: 'Erreur lors de la création de la dossier', DELETE_ERROR: "Impossible de supprimer l'élément", FILE_MODIFIED: 'Fichier modifié lors du téléchargement', - FILE_SIZE_TOO_BIG: 'Le fichier est trop grand (max 20GB)', + FILE_SIZE_TOO_BIG: 'Le fichier est trop grand (max 40GB)', FOLDER_ACCESS_DENIED: "L'app n'a pas le droit d'accéder à cette dossier", FOLDER_DOES_NOT_EXIST: 'Dossier non existant', INVALID_WINDOWS_NAME: String.raw`Windows ne permet pas les noms contenant les caractères \ / : * ? " < > |`, From 2e30ef15c4ab08a7095914d3fa5b6d4b7c816b44 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Jim=C3=A9nez=20Rivera?= Date: Tue, 21 Oct 2025 09:31:51 +0200 Subject: [PATCH 2/5] Update package version --- package-lock.json | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index 7c03ec7..6316739 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@internxt/drive-desktop-core", - "version": "0.1.6", + "version": "0.1.7", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@internxt/drive-desktop-core", - "version": "0.1.6", + "version": "0.1.7", "license": "MIT", "dependencies": { "@internxt/sdk": "^1.11.10", diff --git a/package.json b/package.json index 7a94b56..075f5fb 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@internxt/drive-desktop-core", - "version": "0.1.6", + "version": "0.1.7", "author": "Internxt ", "license": "MIT", "files": [ From acc6ef08a8878f7321c0d73ebe934d11fdf5c742 Mon Sep 17 00:00:00 2001 From: Esteban Galvis Date: Tue, 21 Oct 2025 08:10:14 -0500 Subject: [PATCH 3/5] Add BucketEntry class with a maximum size constant --- src/backend/core/virtual-drive/bucket-entry.ts | 3 +++ src/backend/index.ts | 1 + 2 files changed, 4 insertions(+) create mode 100644 src/backend/core/virtual-drive/bucket-entry.ts diff --git a/src/backend/core/virtual-drive/bucket-entry.ts b/src/backend/core/virtual-drive/bucket-entry.ts new file mode 100644 index 0000000..6e6ece5 --- /dev/null +++ b/src/backend/core/virtual-drive/bucket-entry.ts @@ -0,0 +1,3 @@ +export class BucketEntry { + static readonly MAX_SIZE = 40 * 1024 * 1024 * 1024; +} diff --git a/src/backend/index.ts b/src/backend/index.ts index 052d41e..c0b9b1e 100644 --- a/src/backend/index.ts +++ b/src/backend/index.ts @@ -1,6 +1,7 @@ export { logger, TLoggerBody } from './core/logger/logger'; export { setupElectronLog } from './core/logger/setup-electron-log'; export { throwWrapper } from './core/utils/throw-wrapper'; +export { BucketEntry } from './core/virtual-drive/bucket-entry'; export { FileSystemModule, AbsolutePath, RelativePath } from './infra/file-system/file-system.module'; export { PaymentsModule, UserAvailableProducts } from './features/payments/payments.module'; From 7b97cbe0d0515a2b19b4b2216da3d4bb337dbacd Mon Sep 17 00:00:00 2001 From: Esteban Galvis Date: Tue, 21 Oct 2025 08:32:59 -0500 Subject: [PATCH 4/5] Remove BucketEntry class and add SyncModule with MAX_FILE_SIZE constant --- src/backend/core/virtual-drive/bucket-entry.ts | 3 --- src/backend/features/sync/index.tsx | 3 +++ src/backend/index.ts | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) delete mode 100644 src/backend/core/virtual-drive/bucket-entry.ts create mode 100644 src/backend/features/sync/index.tsx diff --git a/src/backend/core/virtual-drive/bucket-entry.ts b/src/backend/core/virtual-drive/bucket-entry.ts deleted file mode 100644 index 6e6ece5..0000000 --- a/src/backend/core/virtual-drive/bucket-entry.ts +++ /dev/null @@ -1,3 +0,0 @@ -export class BucketEntry { - static readonly MAX_SIZE = 40 * 1024 * 1024 * 1024; -} diff --git a/src/backend/features/sync/index.tsx b/src/backend/features/sync/index.tsx new file mode 100644 index 0000000..f3593a1 --- /dev/null +++ b/src/backend/features/sync/index.tsx @@ -0,0 +1,3 @@ +export const SyncModule = { + MAX_FILE_SIZE: 40 * 1024 * 1024 * 1024, +}; \ No newline at end of file diff --git a/src/backend/index.ts b/src/backend/index.ts index c0b9b1e..8465881 100644 --- a/src/backend/index.ts +++ b/src/backend/index.ts @@ -1,8 +1,8 @@ export { logger, TLoggerBody } from './core/logger/logger'; export { setupElectronLog } from './core/logger/setup-electron-log'; export { throwWrapper } from './core/utils/throw-wrapper'; -export { BucketEntry } from './core/virtual-drive/bucket-entry'; export { FileSystemModule, AbsolutePath, RelativePath } from './infra/file-system/file-system.module'; export { PaymentsModule, UserAvailableProducts } from './features/payments/payments.module'; export { CleanerModule } from './features/cleaner/cleaner.module'; +export { SyncModule } from './features/sync'; From 2272ecf5e3e2676c791f05249a5cc2e0fbb2caab Mon Sep 17 00:00:00 2001 From: Esteban Galvis Date: Tue, 21 Oct 2025 08:36:11 -0500 Subject: [PATCH 5/5] Fix formatting of MAX_FILE_SIZE in SyncModule --- src/backend/features/sync/index.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/backend/features/sync/index.tsx b/src/backend/features/sync/index.tsx index f3593a1..abf6cba 100644 --- a/src/backend/features/sync/index.tsx +++ b/src/backend/features/sync/index.tsx @@ -1,3 +1,3 @@ export const SyncModule = { - MAX_FILE_SIZE: 40 * 1024 * 1024 * 1024, -}; \ No newline at end of file + MAX_FILE_SIZE: 40 * 1024 * 1024 * 1024, +};