π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Move
Manav Rathi16fd6bf1e15a
diff --git a/web/apps/photos/src/components/Collections/AllCollections/index.tsx b/web/apps/photos/src/components/Collections/AllCollections/index.tsxindex 509410bd87..067dc8384e 100644--- a/web/apps/photos/src/components/Collections/AllCollections/index.tsx+++ b/web/apps/photos/src/components/Collections/AllCollections/index.tsx@@ -1,5 +1,5 @@+import { FilledIconButton } from "@/base/components/mui";import { CollectionsSortOptions } from "@/new/photos/components/CollectionsSortOptions";-import { FilledIconButton } from "@/new/photos/components/mui";import { SlideUpTransition } from "@/new/photos/components/mui/SlideUpTransition";import type { CollectionSummary } from "@/new/photos/services/collection/ui";import { CollectionsSortBy } from "@/new/photos/services/collection/ui";diff --git a/web/apps/photos/src/components/Notification.tsx b/web/apps/photos/src/components/Notification.tsxindex 9d0c703eb2..f0236121ae 100644--- a/web/apps/photos/src/components/Notification.tsx+++ b/web/apps/photos/src/components/Notification.tsx@@ -1,5 +1,5 @@import { EllipsizedTypography } from "@/base/components/Typography";-import { FilledIconButton } from "@/new/photos/components/mui";+import { FilledIconButton } from "@/base/components/mui";import { NotificationAttributes } from "@/new/photos/types/notification";import CloseIcon from "@mui/icons-material/Close";import InfoIcon from "@mui/icons-material/InfoOutlined";diff --git a/web/apps/photos/src/components/PhotoViewer/FileInfo/index.tsx b/web/apps/photos/src/components/PhotoViewer/FileInfo/index.tsxindex 390ec925bf..8dc623f4bf 100644--- a/web/apps/photos/src/components/PhotoViewer/FileInfo/index.tsx+++ b/web/apps/photos/src/components/PhotoViewer/FileInfo/index.tsx@@ -1,3 +1,4 @@+import { type ButtonishProps } from "@/base/components/mui";import { ActivityIndicator } from "@/base/components/mui/ActivityIndicator";import { SidebarDrawer } from "@/base/components/mui/SidebarDrawer";import { Titlebar } from "@/base/components/Titlebar";@@ -15,7 +16,6 @@ import {type ParsedMetadataDate,} from "@/media/file-metadata";import { FileType } from "@/media/file-type";-import { type ButtonishProps } from "@/new/photos/components/mui";import { ChipButton } from "@/new/photos/components/mui/ChipButton";import { FilePeopleList } from "@/new/photos/components/PeopleList";import { PhotoDateTimePicker } from "@/new/photos/components/PhotoDateTimePicker";diff --git a/web/apps/photos/src/components/PhotoViewer/index.tsx b/web/apps/photos/src/components/PhotoViewer/index.tsxindex e45803bffc..1807224626 100644--- a/web/apps/photos/src/components/PhotoViewer/index.tsx+++ b/web/apps/photos/src/components/PhotoViewer/index.tsx@@ -1,4 +1,5 @@import { isDesktop } from "@/base/app";+import { FilledIconButton, type ButtonishProps } from "@/base/components/mui";import { ActivityIndicator } from "@/base/components/mui/ActivityIndicator";import { Overlay } from "@/base/components/mui/Container";import { type ModalVisibilityProps } from "@/base/components/utils/modal";@@ -8,10 +9,6 @@ import type { LoadedLivePhotoSourceURL } from "@/media/file";import { fileLogID, type EnteFile } from "@/media/file";import { FileType } from "@/media/file-type";import { isHEICExtension, needsJPEGConversion } from "@/media/formats";-import {- FilledIconButton,- type ButtonishProps,-} from "@/new/photos/components/mui";import downloadManager from "@/new/photos/services/download";import { extractRawExif, parseExif } from "@/new/photos/services/exif";import { AppContext } from "@/new/photos/types/context";diff --git a/web/apps/photos/src/components/Sidebar/SubscriptionCard.tsx b/web/apps/photos/src/components/Sidebar/SubscriptionCard.tsxindex f07231a518..48876761e2 100644--- a/web/apps/photos/src/components/Sidebar/SubscriptionCard.tsx+++ b/web/apps/photos/src/components/Sidebar/SubscriptionCard.tsx@@ -1,5 +1,5 @@+import type { ButtonishProps } from "@/base/components/mui";import { Overlay } from "@/base/components/mui/Container";-import type { ButtonishProps } from "@/new/photos/components/mui";import type { UserDetails } from "@/new/photos/services/user-details";import {familyUsage,diff --git a/web/apps/photos/src/components/Upload/UploadProgress.tsx b/web/apps/photos/src/components/Upload/UploadProgress.tsxindex c7628d2cea..191c83e699 100644--- a/web/apps/photos/src/components/Upload/UploadProgress.tsx+++ b/web/apps/photos/src/components/Upload/UploadProgress.tsx@@ -1,4 +1,4 @@-import { FilledIconButton } from "@/new/photos/components/mui";+import { FilledIconButton } from "@/base/components/mui";import {UPLOAD_RESULT,type UploadPhase,diff --git a/web/packages/new/photos/components/mui/index.tsx b/web/packages/base/components/mui/index.tsxsimilarity index 100%rename from web/packages/new/photos/components/mui/index.tsxrename to web/packages/base/components/mui/index.tsxdiff --git a/web/packages/base/eslint.config.mjs b/web/packages/base/eslint.config.mjsindex b5636ffc56..cdc5ac51c3 100644--- a/web/packages/base/eslint.config.mjs+++ b/web/packages/base/eslint.config.mjs@@ -1,8 +1,3 @@import config from "@/build-config/eslintrc-react.mjs";-export default [- ...config,- {- ignores: ["next.config.base.js"],- },-];+export default [...config, { ignores: ["next.config.base.js"] }];diff --git a/web/packages/new/photos/components/CollectionSelector.tsx b/web/packages/new/photos/components/CollectionSelector.tsxindex cbbdec0311..07a22be7f0 100644--- a/web/packages/new/photos/components/CollectionSelector.tsx+++ b/web/packages/new/photos/components/CollectionSelector.tsx@@ -1,3 +1,4 @@+import { type ButtonishProps } from "@/base/components/mui";import { SpaceBetweenFlex } from "@/base/components/mui/Container";import type { ModalVisibilityProps } from "@/base/components/utils/modal";import type { Collection } from "@/media/collection";@@ -24,7 +25,6 @@ import {} from "@mui/material";import { t } from "i18next";import React, { useEffect, useState } from "react";-import { type ButtonishProps } from "./mui";import { DialogCloseIconButton } from "./mui/Dialog";export type CollectionSelectorAction =diff --git a/web/packages/new/photos/components/SearchBar.tsx b/web/packages/new/photos/components/SearchBar.tsxindex 2739742d8d..849aac6d4c 100644--- a/web/packages/new/photos/components/SearchBar.tsx+++ b/web/packages/new/photos/components/SearchBar.tsx@@ -1,4 +1,5 @@import { assertionFailed } from "@/base/assert";+import type { ButtonishProps } from "@/base/components/mui";import { useIsSmallWidth } from "@/base/components/utils/hooks";import { ItemCard, PreviewItemTile } from "@/new/photos/components/Tiles";import { isMLSupported, mlStatusSnapshot } from "@/new/photos/services/ml";@@ -35,7 +36,6 @@ import {import AsyncSelect from "react-select/async";import { SearchPeopleList } from "./PeopleList";import { UnstyledButton } from "./UnstyledButton";-import type { ButtonishProps } from "./mui";import {useMLStatusSnapshot,usePeopleStateSnapshot,diff --git a/web/packages/new/photos/components/gallery/BarImpl.tsx b/web/packages/new/photos/components/gallery/BarImpl.tsxindex b069cc5b3e..6cdaf4b6ea 100644--- a/web/packages/new/photos/components/gallery/BarImpl.tsx+++ b/web/packages/new/photos/components/gallery/BarImpl.tsx@@ -1,7 +1,7 @@+import { FilledIconButton } from "@/base/components/mui";import { Overlay } from "@/base/components/mui/Container";import { useIsSmallWidth } from "@/base/components/utils/hooks";import { CollectionsSortOptions } from "@/new/photos/components/CollectionsSortOptions";-import { FilledIconButton } from "@/new/photos/components/mui";import {IMAGE_CONTAINER_MAX_WIDTH,MIN_COLUMNS,diff --git a/web/packages/new/photos/components/gallery/PeopleHeader.tsx b/web/packages/new/photos/components/gallery/PeopleHeader.tsxindex 5ea7fd4749..36c812ec4f 100644--- a/web/packages/new/photos/components/gallery/PeopleHeader.tsx+++ b/web/packages/new/photos/components/gallery/PeopleHeader.tsx@@ -1,4 +1,5 @@import { ActivityErrorIndicator } from "@/base/components/ErrorIndicator";+import { type ButtonishProps } from "@/base/components/mui";import { ActivityIndicator } from "@/base/components/mui/ActivityIndicator";import {CenteredFill,@@ -60,7 +61,6 @@ import { t } from "i18next";import React, { useEffect, useReducer, useState } from "react";import type { FaceCluster } from "../../services/ml/cluster";import { useAppContext } from "../../types/context";-import { type ButtonishProps } from "../mui";import { DialogCloseIconButton } from "../mui/Dialog";import { SuggestionFaceList } from "../PeopleList";import { SingleInputDialog } from "../SingleInputForm";