π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Move
Manav Rathi5a755d851a4d
diff --git a/web/apps/photos/src/components/Export.tsx b/web/apps/photos/src/components/Export.tsxindex 85623d5b93..a3feaae4af 100644--- a/web/apps/photos/src/components/Export.tsx+++ b/web/apps/photos/src/components/Export.tsx@@ -7,12 +7,12 @@ import {} from "@/base/components/OverflowMenu";import { EllipsizedTypography } from "@/base/components/Typography";import type { ButtonishProps } from "@/base/components/mui";+import { DialogCloseIconButton } from "@/base/components/mui/DialogCloseIconButton";import type { ModalVisibilityProps } from "@/base/components/utils/modal";import { useBaseContext } from "@/base/context";import { ensureElectron } from "@/base/electron";import log from "@/base/log";import { EnteFile } from "@/media/file";-import { DialogCloseIconButton } from "@/new/photos/components/mui/Dialog";import { SpaceBetweenFlex } from "@ente/shared/components/Container";import { CustomError } from "@ente/shared/error";import FolderIcon from "@mui/icons-material/Folder";diff --git a/web/apps/photos/src/components/Sidebar.tsx b/web/apps/photos/src/components/Sidebar.tsxindex b65af1a5bb..65d0741edf 100644--- a/web/apps/photos/src/components/Sidebar.tsx+++ b/web/apps/photos/src/components/Sidebar.tsx@@ -12,6 +12,7 @@ import {} from "@/base/components/RowButton";import { SpacedRow } from "@/base/components/containers";import { ActivityIndicator } from "@/base/components/mui/ActivityIndicator";+import { DialogCloseIconButton } from "@/base/components/mui/DialogCloseIconButton";import {NestedSidebarDrawer,SidebarDrawer,@@ -34,7 +35,6 @@ import { savedLogs } from "@/base/log-web";import { customAPIHost } from "@/base/origins";import { downloadString } from "@/base/utils/web";import { DropdownInput } from "@/new/photos/components/DropdownInput";-import { DialogCloseIconButton } from "@/new/photos/components/mui/Dialog";import { MLSettings } from "@/new/photos/components/sidebar/MLSettings";import { TwoFactorSettings } from "@/new/photos/components/sidebar/TwoFactorSettings";import {diff --git a/web/apps/photos/src/components/Upload/UploadTypeSelector.tsx b/web/apps/photos/src/components/Upload/UploadTypeSelector.tsxindex 065cea33b0..fdf6f7f070 100644--- a/web/apps/photos/src/components/Upload/UploadTypeSelector.tsx+++ b/web/apps/photos/src/components/Upload/UploadTypeSelector.tsx@@ -1,8 +1,8 @@import { SpacedRow } from "@/base/components/containers";+import { DialogCloseIconButton } from "@/base/components/mui/DialogCloseIconButton";import { FocusVisibleButton } from "@/base/components/mui/FocusVisibleButton";import { RowButton } from "@/base/components/RowButton";import { useIsTouchscreen } from "@/base/components/utils/hooks";-import { DialogCloseIconButton } from "@/new/photos/components/mui/Dialog";import ChevronRightIcon from "@mui/icons-material/ChevronRight";import GoogleIcon from "@mui/icons-material/Google";import ImageOutlinedIcon from "@mui/icons-material/ImageOutlined";diff --git a/web/apps/photos/src/components/WatchFolder.tsx b/web/apps/photos/src/components/WatchFolder.tsxindex bc916eca9d..9f781e7af9 100644--- a/web/apps/photos/src/components/WatchFolder.tsx+++ b/web/apps/photos/src/components/WatchFolder.tsx@@ -1,4 +1,5 @@import { CenteredFill, SpacedRow } from "@/base/components/containers";+import { DialogCloseIconButton } from "@/base/components/mui/DialogCloseIconButton";import { FocusVisibleButton } from "@/base/components/mui/FocusVisibleButton";import {OverflowMenu,@@ -14,7 +15,6 @@ import { ensureElectron } from "@/base/electron";import { basename, dirname } from "@/base/file-name";import type { CollectionMapping, FolderWatch } from "@/base/types/ipc";import { CollectionMappingChoice } from "@/new/photos/components/CollectionMappingChoice";-import { DialogCloseIconButton } from "@/new/photos/components/mui/Dialog";import AddIcon from "@mui/icons-material/Add";import CheckIcon from "@mui/icons-material/Check";import DoNotDisturbOutlinedIcon from "@mui/icons-material/DoNotDisturbOutlined";diff --git a/web/packages/accounts/components/RecoveryKey.tsx b/web/packages/accounts/components/RecoveryKey.tsxindex 67f69f1675..94deda54f0 100644--- a/web/packages/accounts/components/RecoveryKey.tsx+++ b/web/packages/accounts/components/RecoveryKey.tsx@@ -1,12 +1,12 @@import { type MiniDialogAttributes } from "@/base/components/MiniDialog";import { SpacedRow } from "@/base/components/containers";+import { DialogCloseIconButton } from "@/base/components/mui/DialogCloseIconButton";import { FocusVisibleButton } from "@/base/components/mui/FocusVisibleButton";import { errorDialogAttributes } from "@/base/components/utils/dialog";import { useIsSmallWidth } from "@/base/components/utils/hooks";import type { ModalVisibilityProps } from "@/base/components/utils/modal";import log from "@/base/log";import { downloadString } from "@/base/utils/web";-import { DialogCloseIconButton } from "@/new/photos/components/mui/Dialog";import { getRecoveryKey } from "@ente/shared/crypto/helpers";import {Dialog,diff --git a/web/packages/new/photos/components/mui/Dialog.tsx b/web/packages/base/components/mui/DialogCloseIconButton.tsxsimilarity index 100%rename from web/packages/new/photos/components/mui/Dialog.tsxrename to web/packages/base/components/mui/DialogCloseIconButton.tsxdiff --git a/web/packages/new/photos/components/CollectionMappingChoice.tsx b/web/packages/new/photos/components/CollectionMappingChoice.tsxindex fdcda398c1..6917b60a25 100644--- a/web/packages/new/photos/components/CollectionMappingChoice.tsx+++ b/web/packages/new/photos/components/CollectionMappingChoice.tsx@@ -1,4 +1,5 @@import { SpacedRow } from "@/base/components/containers";+import { DialogCloseIconButton } from "@/base/components/mui/DialogCloseIconButton";import { FocusVisibleButton } from "@/base/components/mui/FocusVisibleButton";import type { ModalVisibilityProps } from "@/base/components/utils/modal";import type { CollectionMapping } from "@/base/types/ipc";@@ -13,7 +14,6 @@ import {} from "@mui/material";import { t } from "i18next";import React from "react";-import { DialogCloseIconButton } from "./mui/Dialog";type CollectionMappingChoiceProps = ModalVisibilityProps & {/**diff --git a/web/packages/new/photos/components/CollectionSelector.tsx b/web/packages/new/photos/components/CollectionSelector.tsxindex af8b0b13fd..e0b10c0a5c 100644--- a/web/packages/new/photos/components/CollectionSelector.tsx+++ b/web/packages/new/photos/components/CollectionSelector.tsx@@ -1,4 +1,5 @@import { SpacedRow } from "@/base/components/containers";+import { DialogCloseIconButton } from "@/base/components/mui/DialogCloseIconButton";import type { ModalVisibilityProps } from "@/base/components/utils/modal";import type { Collection } from "@/media/collection";import {@@ -24,7 +25,6 @@ import {} from "@mui/material";import { t } from "i18next";import React, { useEffect, useState } from "react";-import { DialogCloseIconButton } from "./mui/Dialog";export type CollectionSelectorAction =| "upload"diff --git a/web/packages/new/photos/components/gallery/PeopleHeader.tsx b/web/packages/new/photos/components/gallery/PeopleHeader.tsxindex 464aa44919..e9df72dea7 100644--- a/web/packages/new/photos/components/gallery/PeopleHeader.tsx+++ b/web/packages/new/photos/components/gallery/PeopleHeader.tsx@@ -1,6 +1,7 @@import { CenteredFill, SpacedRow } from "@/base/components/containers";import { ActivityErrorIndicator } from "@/base/components/ErrorIndicator";import { ActivityIndicator } from "@/base/components/mui/ActivityIndicator";+import { DialogCloseIconButton } from "@/base/components/mui/DialogCloseIconButton";import { FocusVisibleButton } from "@/base/components/mui/FocusVisibleButton";import { LoadingButton } from "@/base/components/mui/LoadingButton";import {@@ -60,7 +61,6 @@ import { t } from "i18next";import React, { useEffect, useReducer, useState } from "react";import type { FaceCluster } from "../../services/ml/cluster";import { usePhotosAppContext } from "../../types/context";-import { DialogCloseIconButton } from "../mui/Dialog";import { SuggestionFaceList } from "../PeopleList";import {ItemCard,