π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Move
Manav Rathifdc641be881b
diff --git a/web/apps/photos/src/components/Collections/CollectionSelector.tsx b/web/apps/photos/src/components/Collections/CollectionSelector.tsxindex 4c2db97f60..85f75add92 100644--- a/web/apps/photos/src/components/Collections/CollectionSelector.tsx+++ b/web/apps/photos/src/components/Collections/CollectionSelector.tsx@@ -21,7 +21,6 @@ import {import { t } from "i18next";import { useEffect, useState } from "react";import { createUnCategorizedCollection } from "services/collectionService";-import { CollectionSelectorIntent } from "types/gallery";import {COLLECTION_SORT_ORDER,DUMMY_UNCATEGORIZED_COLLECTION,@@ -29,6 +28,14 @@ import {isMoveToAllowedCollection,} from "utils/collection";+export enum CollectionSelectorIntent {+ upload,+ add,+ move,+ restore,+ unhide,+}+export interface CollectionSelectorAttributes {callback: (collection: Collection) => void;showNextModal: () => void;diff --git a/web/apps/photos/src/components/Upload/Uploader.tsx b/web/apps/photos/src/components/Upload/Uploader.tsxindex 77ce1aef83..f9e0e5c728 100644--- a/web/apps/photos/src/components/Upload/Uploader.tsx+++ b/web/apps/photos/src/components/Upload/Uploader.tsx@@ -13,6 +13,7 @@ import { firstNonEmpty } from "@/utils/array";import { ensure } from "@/utils/ensure";import { CustomError } from "@ente/shared/error";import DiscFullIcon from "@mui/icons-material/DiscFull";+import { CollectionSelectorIntent } from "components/Collections/CollectionSelector";import UserNameInputDialog from "components/UserNameInputDialog";import { t } from "i18next";import isElectron from "is-electron";@@ -36,7 +37,6 @@ import type {import uploadManager from "services/upload/uploadManager";import watcher from "services/watch";import {- CollectionSelectorIntent,SetCollectionSelectorAttributes,SetCollections,SetFiles,diff --git a/web/apps/photos/src/components/pages/gallery/SelectedFileOptions.tsx b/web/apps/photos/src/components/pages/gallery/SelectedFileOptions.tsxindex fe4d4ffdaa..bae62e864f 100644--- a/web/apps/photos/src/components/pages/gallery/SelectedFileOptions.tsx+++ b/web/apps/photos/src/components/pages/gallery/SelectedFileOptions.tsx@@ -15,13 +15,11 @@ import UnArchiveIcon from "@mui/icons-material/Unarchive";import VisibilityOffOutlined from "@mui/icons-material/VisibilityOffOutlined";import VisibilityOutlined from "@mui/icons-material/VisibilityOutlined";import { Box, IconButton, Stack, Tooltip } from "@mui/material";+import { CollectionSelectorIntent } from "components/Collections/CollectionSelector";import { t } from "i18next";import { AppContext } from "pages/_app";import { useContext } from "react";-import {- CollectionSelectorIntent,- SetCollectionSelectorAttributes,-} from "types/gallery";+import { SetCollectionSelectorAttributes } from "types/gallery";import {ALL_SECTION,ARCHIVE_SECTION,diff --git a/web/apps/photos/src/types/gallery/index.ts b/web/apps/photos/src/types/gallery/index.tsindex f83773699b..1db05da364 100644--- a/web/apps/photos/src/types/gallery/index.ts+++ b/web/apps/photos/src/types/gallery/index.ts@@ -64,11 +64,3 @@ export type GalleryContextType = {setSelectedFiles: (value) => void;selectedFile: SelectedState;};--export enum CollectionSelectorIntent {- upload,- add,- move,- restore,- unhide,-}