π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Inline
Manav Rathi83126c3ec453
diff --git a/web/apps/photos/src/constants/api.ts b/web/apps/photos/src/constants/api.tsdeleted file mode 100644index 17571f7f37..0000000000--- a/web/apps/photos/src/constants/api.ts+++ /dev/null@@ -1 +0,0 @@-export const REQUEST_BATCH_SIZE = 1000;diff --git a/web/apps/photos/src/constants/redirects.ts b/web/apps/photos/src/constants/redirects.tsdeleted file mode 100644index e69de29bb2..0000000000diff --git a/web/apps/photos/src/services/collectionService.ts b/web/apps/photos/src/services/collectionService.tsindex 60d4ea35cc..7fef72c532 100644--- a/web/apps/photos/src/services/collectionService.ts+++ b/web/apps/photos/src/services/collectionService.ts@@ -17,7 +17,6 @@ import { LS_KEYS, getData } from "@ente/shared/storage/localStorage";import { getToken } from "@ente/shared/storage/localStorage/helpers";import { getActualKey } from "@ente/shared/user";import type { User } from "@ente/shared/user/types";-import { REQUEST_BATCH_SIZE } from "constants/api";import {ALL_SECTION,ARCHIVE_SECTION,@@ -84,6 +83,8 @@ const UNCATEGORIZED_COLLECTION_NAME = "Uncategorized";export const HIDDEN_COLLECTION_NAME = ".hidden";const FAVORITE_COLLECTION_NAME = "Favorites";+export const REQUEST_BATCH_SIZE = 1000;+export const getCollectionLastSyncTime = async (collection: Collection) =>(await localForage.getItem<number>(`${collection.id}-time`)) ?? 0;diff --git a/web/apps/photos/src/services/fileService.ts b/web/apps/photos/src/services/fileService.tsindex ef364844a2..613e9bd85e 100644--- a/web/apps/photos/src/services/fileService.ts+++ b/web/apps/photos/src/services/fileService.ts@@ -18,13 +18,13 @@ import { mergeMetadata } from "@/new/photos/utils/file";import { batch } from "@/utils/array";import HTTPService from "@ente/shared/network/HTTPService";import { getToken } from "@ente/shared/storage/localStorage/helpers";-import { REQUEST_BATCH_SIZE } from "constants/api";import exportService from "services/export";import { Collection } from "types/collection";import { SetFiles } from "types/gallery";import { decryptFile, getLatestVersionFiles, sortFiles } from "utils/file";import {getCollectionLastSyncTime,+ REQUEST_BATCH_SIZE,setCollectionLastSyncTime,} from "./collectionService";