π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Inline
Manav Rathic0e93244f05b
diff --git a/web/apps/photos/src/components/Collections/CollectionShare.tsx b/web/apps/photos/src/components/Collections/CollectionShare.tsxindex 18ee3ef965..da19d138ea 100644--- a/web/apps/photos/src/components/Collections/CollectionShare.tsx+++ b/web/apps/photos/src/components/Collections/CollectionShare.tsx@@ -319,13 +319,12 @@ const EnablePublicShareOptions: React.FC<EnablePublicShareOptionsProps> = ({);};-export default function EmailShare({- collection,- onRootClose,-}: {+interface EmailShareProps {collection: Collection;onRootClose: () => void;-}) {+}++const EmailShare: React.FC<EmailShareProps> = ({ collection, onRootClose }) => {const [addParticipantView, setAddParticipantView] = useState(false);const [manageEmailShareView, setManageEmailShareView] = useState(false);@@ -406,7 +405,7 @@ export default function EmailShare({/></>);-}+};const AvatarContainer = styled("div")({position: "relative",@@ -568,7 +567,7 @@ interface AddParticipantFormValues {selectedOptions: string[];}-export interface AddParticipantFormProps {+interface AddParticipantFormProps {callback: (props: { email?: string; emails?: string[] }) => Promise<void>;fieldType: "text" | "email" | "password";placeholder: string;diff --git a/web/apps/photos/src/components/Directory/index.tsx b/web/apps/photos/src/components/Directory/index.tsxindex 37b8e84f5a..e69de29bb2 100644--- a/web/apps/photos/src/components/Directory/index.tsx+++ b/web/apps/photos/src/components/Directory/index.tsx@@ -1,33 +0,0 @@-import { ensureElectron } from "@/base/electron";-import log from "@/base/log";-import LinkButton from "@ente/shared/components/LinkButton";-import { Tooltip, styled } from "@mui/material";--const DirectoryPathContainer = styled(LinkButton)(- ({ width }) => `- width: ${width}px;- white-space: nowrap;- overflow: hidden;- text-overflow: ellipsis;- /* Beginning of string */- direction: rtl;- text-align: left;-`,-);--export const DirectoryPath = ({ width, path }) => {- const handleClick = async () => {- try {- await ensureElectron().openDirectory(path);- } catch (e) {- log.error("openDirectory failed", e);- }- };- return (- <DirectoryPathContainer width={width} onClick={handleClick}>- <Tooltip title={path}>- <span>{path}</span>- </Tooltip>- </DirectoryPathContainer>- );-};diff --git a/web/apps/photos/src/components/ExportModal.tsx b/web/apps/photos/src/components/ExportModal.tsxindex b46f471c67..3f71f201b3 100644--- a/web/apps/photos/src/components/ExportModal.tsx+++ b/web/apps/photos/src/components/ExportModal.tsx@@ -1,4 +1,5 @@import { EnteSwitch } from "@/base/components/EnteSwitch";+import { ensureElectron } from "@/base/electron";import log from "@/base/log";import { EnteFile } from "@/media/file";import { useAppContext } from "@/new/photos/types/context";@@ -7,6 +8,7 @@ import {SpaceBetweenFlex,VerticallyCenteredFlex,} from "@ente/shared/components/Container";+import LinkButton from "@ente/shared/components/LinkButton";import DialogTitleWithCloseButton from "@ente/shared/components/TitleWithCloseButton";import { CustomError } from "@ente/shared/error";import {@@ -15,7 +17,9 @@ import {Dialog,DialogContent,Divider,+ Tooltip,Typography,+ styled,} from "@mui/material";import { t } from "i18next";import isElectron from "is-electron";@@ -27,7 +31,6 @@ import exportService, {type ExportOpts,} from "services/export";import { ExportProgress, ExportSettings } from "types/export";-import { DirectoryPath } from "./Directory";import ExportFinished from "./ExportFinished";import ExportInProgress from "./ExportInProgress";import ExportInit from "./ExportInit";@@ -227,6 +230,35 @@ function ExportDirectory({ exportFolder, changeExportDirectory, exportStage }) {);}+const DirectoryPath = ({ width, path }) => {+ const handleClick = async () => {+ try {+ await ensureElectron().openDirectory(path);+ } catch (e) {+ log.error("openDirectory failed", e);+ }+ };+ return (+ <DirectoryPathContainer width={width} onClick={handleClick}>+ <Tooltip title={path}>+ <span>{path}</span>+ </Tooltip>+ </DirectoryPathContainer>+ );+};++const DirectoryPathContainer = styled(LinkButton)(+ ({ width }) => `+ width: ${width}px;+ white-space: nowrap;+ overflow: hidden;+ text-overflow: ellipsis;+ /* Beginning of string */+ direction: rtl;+ text-align: left;+`,+);+function ContinuousExport({ continuousExport, toggleContinuousExport }) {return (<SpaceBetweenFlex minHeight={"48px"}>