π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Inline
Manav Rathi9ac9842e53e0
diff --git a/web/apps/photos/src/components/Collections/CollectionShare.tsx b/web/apps/photos/src/components/Collections/CollectionShare.tsxindex ecd2f07832..b658cbcf08 100644--- a/web/apps/photos/src/components/Collections/CollectionShare.tsx+++ b/web/apps/photos/src/components/Collections/CollectionShare.tsx@@ -65,7 +65,6 @@ import {unshareCollection,updateShareableURL,} from "services/collectionService";-import { SetPublicShareProp } from "types/publicCollection";import {appendCollectionKeyToShareURL,getDeviceLimitOptions,@@ -234,6 +233,8 @@ function SharingDetails({ collection, type }) {);}+type SetPublicShareProp = React.Dispatch<React.SetStateAction<PublicURL>>;+interface EnablePublicShareOptionsProps {collection: Collection;setPublicShareProp: (value: PublicURL) => void;diff --git a/web/apps/photos/src/components/Directory/index.tsx b/web/apps/photos/src/components/Directory/index.tsxdeleted file mode 100644index e69de29bb2..0000000000diff --git a/web/apps/photos/src/types/deduplicate/index.ts b/web/apps/photos/src/types/deduplicate/index.tsdeleted file mode 100644index e69de29bb2..0000000000diff --git a/web/apps/photos/src/types/publicCollection/index.ts b/web/apps/photos/src/types/publicCollection/index.tsdeleted file mode 100644index f11dd79059..0000000000--- a/web/apps/photos/src/types/publicCollection/index.ts+++ /dev/null@@ -1,15 +0,0 @@-import type { PublicURL } from "@/media/collection";-import { TimeStampListItem } from "components/PhotoList";--export interface PublicCollectionGalleryContextType {- token: string;- passwordToken: string;- referralCode: string | null;- accessedThroughSharedURL: boolean;- photoListHeader: TimeStampListItem;- photoListFooter: TimeStampListItem;-}--export type SetPublicShareProp = React.Dispatch<- React.SetStateAction<PublicURL>->;diff --git a/web/apps/photos/src/utils/publicCollectionGallery/index.ts b/web/apps/photos/src/utils/publicCollectionGallery/index.tsindex c038aabb74..c0e4cc9ff6 100644--- a/web/apps/photos/src/utils/publicCollectionGallery/index.ts+++ b/web/apps/photos/src/utils/publicCollectionGallery/index.ts@@ -1,17 +1,21 @@+import { TimeStampListItem } from "components/PhotoList";import { createContext } from "react";-import { PublicCollectionGalleryContextType } from "types/publicCollection";-const defaultPublicCollectionGalleryContext: PublicCollectionGalleryContextType =- {+export interface PublicCollectionGalleryContextType {+ token: string;+ passwordToken: string;+ referralCode: string | null;+ accessedThroughSharedURL: boolean;+ photoListHeader: TimeStampListItem;+ photoListFooter: TimeStampListItem;+}++export const PublicCollectionGalleryContext =+ createContext<PublicCollectionGalleryContextType>({token: null,passwordToken: null,referralCode: null,accessedThroughSharedURL: false,photoListHeader: null,photoListFooter: null,- };--export const PublicCollectionGalleryContext =- createContext<PublicCollectionGalleryContextType>(- defaultPublicCollectionGalleryContext,- );+ });