This commit is contained in:
Manav Rathi
2024-10-05 12:00:34 +05:30
parent 68c28df945
commit 79b311af8d
14 changed files with 17 additions and 18 deletions

View File

@@ -3,7 +3,7 @@ import {
ItemCard,
LargeTileTextOverlay,
} from "@/new/photos/components/ItemCards";
import type { CollectionSummary } from "@/new/photos/types/collection";
import type { CollectionSummary } from "@/new/photos/services/collection/ui";
import { FlexWrapper } from "@ente/shared/components/Container";
import useWindowSize from "@ente/shared/hooks/useWindowSize";
import { DialogContent, Typography } from "@mui/material";

View File

@@ -1,8 +1,8 @@
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/types/collection";
import { CollectionsSortBy } from "@/new/photos/types/collection";
import type { CollectionSummary } from "@/new/photos/services/collection/ui";
import { CollectionsSortBy } from "@/new/photos/services/collection/ui";
import { FlexWrapper, FluidContainer } from "@ente/shared/components/Container";
import Close from "@mui/icons-material/Close";
import {

View File

@@ -10,7 +10,7 @@ import { SpaceBetweenFlex } from "@/new/photos/components/mui";
import type {
CollectionSummary,
CollectionSummaryType,
} from "@/new/photos/types/collection";
} from "@/new/photos/services/collection/ui";
import { HorizontalFlex } from "@ente/shared/components/Container";
import EnteSpinner from "@ente/shared/components/EnteSpinner";
import OverflowMenu, {

View File

@@ -9,7 +9,7 @@ import {
CollectionSummaryOrder,
type CollectionSummaries,
type CollectionSummary,
} from "@/new/photos/types/collection";
} from "@/new/photos/services/collection/ui";
import { FlexWrapper } from "@ente/shared/components/Container";
import DialogTitleWithCloseButton from "@ente/shared/components/DialogBox/TitleWithCloseButton";
import {

View File

@@ -1,7 +1,7 @@
import { EnteDrawer } from "@/base/components/EnteDrawer";
import { Titlebar } from "@/base/components/Titlebar";
import type { Collection } from "@/media/collection";
import type { CollectionSummary } from "@/new/photos/types/collection";
import type { CollectionSummary } from "@/new/photos/services/collection/ui";
import { DialogProps, Stack } from "@mui/material";
import { t } from "i18next";
import EmailShare from "./emailShare";

View File

@@ -8,7 +8,7 @@ import {
collectionsSortBy,
type CollectionsSortBy,
type CollectionSummaries,
} from "@/new/photos/types/collection";
} from "@/new/photos/services/collection/ui";
import { includes } from "@/utils/type-guards";
import {
getData,

View File

@@ -4,7 +4,7 @@ import { EnteDrawer } from "@/base/components/EnteDrawer";
import log from "@/base/log";
import { savedLogs } from "@/base/log-web";
import { customAPIHost } from "@/base/origins";
import type { CollectionSummaries } from "@/new/photos/types/collection";
import type { CollectionSummaries } from "@/new/photos/services/collection/ui";
import { initiateEmail, openURL } from "@/new/photos/utils/web";
import { SpaceBetweenFlex } from "@ente/shared/components/Container";
import { EnteLogo } from "@ente/shared/components/EnteLogo";

View File

@@ -15,6 +15,7 @@ import {
} from "@/new/photos/components/SearchBar";
import { WhatsNew } from "@/new/photos/components/WhatsNew";
import { shouldShowWhatsNew } from "@/new/photos/services/changelog";
import type { CollectionSummaries } from "@/new/photos/services/collection/ui";
import downloadManager from "@/new/photos/services/download";
import {
getLocalFiles,
@@ -28,7 +29,6 @@ import {
setSearchCollectionsAndFiles,
} from "@/new/photos/services/search";
import type { SearchOption } from "@/new/photos/services/search/types";
import type { CollectionSummaries } from "@/new/photos/types/collection";
import { EnteFile } from "@/new/photos/types/file";
import { mergeMetadata } from "@/new/photos/utils/file";
import { ensure } from "@/utils/ensure";

View File

@@ -19,16 +19,16 @@ import {
UpdatePublicURL,
} from "@/media/collection";
import { ItemVisibility } from "@/media/file-metadata";
import { getLocalFiles, sortFiles } from "@/new/photos/services/files";
import type {
CollectionSummaries,
CollectionSummary,
CollectionSummaryType,
} from "@/new/photos/types/collection";
} from "@/new/photos/services/collection/ui";
import {
CollectionSummaryOrder,
CollectionsSortBy,
} from "@/new/photos/types/collection";
} from "@/new/photos/services/collection/ui";
import { getLocalFiles, sortFiles } from "@/new/photos/services/files";
import { EnteFile } from "@/new/photos/types/file";
import {
EncryptedMagicMetadata,

View File

@@ -8,11 +8,11 @@ import {
CollectionType,
} from "@/media/collection";
import { ItemVisibility } from "@/media/file-metadata";
import { getAllLocalFiles, getLocalFiles } from "@/new/photos/services/files";
import type {
CollectionSummaries,
CollectionSummaryType,
} from "@/new/photos/types/collection";
} from "@/new/photos/services/collection/ui";
import { getAllLocalFiles, getLocalFiles } from "@/new/photos/services/files";
import { EnteFile } from "@/new/photos/types/file";
import { SUB_TYPE } from "@/new/photos/types/magicMetadata";
import { safeDirectoryName } from "@/new/photos/utils/native-fs";

View File

@@ -113,7 +113,6 @@ export function getSelectedFiles(
return files.filter((file) => selectedFilesIDs.has(file.id));
}
export async function decryptFile(
file: EncryptedEnteFile,
collectionKey: string,

View File

@@ -1,4 +1,4 @@
import type { CollectionsSortBy } from "@/new/photos/types/collection";
import type { CollectionsSortBy } from "@/new/photos/services/collection/ui";
import OverflowMenu from "@ente/shared/components/OverflowMenu/menu";
import { OverflowMenuOption } from "@ente/shared/components/OverflowMenu/option";
import TickIcon from "@mui/icons-material/Done";

View File

@@ -11,12 +11,12 @@ import {
MIN_COLUMNS,
} from "@/new/photos/components/PhotoList";
import { UnstyledButton } from "@/new/photos/components/UnstyledButton";
import type { Person } from "@/new/photos/services/ml/people";
import type {
CollectionSummary,
CollectionSummaryType,
CollectionsSortBy,
} from "@/new/photos/types/collection";
} from "@/new/photos/services/collection/ui";
import type { Person } from "@/new/photos/services/ml/people";
import { ensure } from "@/utils/ensure";
import { Overlay } from "@ente/shared/components/Container";
import ArchiveIcon from "@mui/icons-material/Archive";