π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
lint fixes
AmanRajSinghMourya5b3093f202eb
diff --git a/web/apps/share/src/components/file-share/CollectionShareView.tsx b/web/apps/share/src/components/file-share/CollectionShareView.tsxindex 699c6f3e48..9cddad8217 100644--- a/web/apps/share/src/components/file-share/CollectionShareView.tsx+++ b/web/apps/share/src/components/file-share/CollectionShareView.tsx@@ -159,7 +159,11 @@ export const CollectionShareView: React.FC = () => {<Paper elevation={0} sx={passwordCardSx}><Typographyvariant="h4"- sx={{ fontWeight: 700, color: "text.base", mb: 1.5 }}+ sx={{+ fontWeight: 700,+ color: "text.base",+ mb: 1.5,+ }}>{passwordTitle}</Typography>diff --git a/web/apps/share/src/components/file-share/FileShareView.tsx b/web/apps/share/src/components/file-share/FileShareView.tsxindex 13a52b7cb1..715a456d5c 100644--- a/web/apps/share/src/components/file-share/FileShareView.tsx+++ b/web/apps/share/src/components/file-share/FileShareView.tsx@@ -38,245 +38,241 @@ export const FileShareView: React.FC = () => {overflowX: "hidden",}}>+ <Box+ sx={{+ height: {+ xs: "calc(100dvh - 20px)",+ md: "calc(100dvh - 32px)",+ },+ width: "100%",+ bgcolor: "background.default",+ borderRadius: { xs: "24px", md: "34px" },+ display: "flex",+ flexDirection: "column",+ alignItems: "center",+ overflow: "hidden",+ "& ::selection": {+ backgroundColor: "accent.main",+ color: "fixed.white",+ },+ "& ::-moz-selection": {+ backgroundColor: "accent.main",+ color: "fixed.white",+ },+ }}+ >+ {/* Ente Locker Logo */}<Boxsx={{- height: {- xs: "calc(100dvh - 20px)",- md: "calc(100dvh - 32px)",- },width: "100%",- bgcolor: "background.default",- borderRadius: { xs: "24px", md: "34px" },display: "flex",- flexDirection: "column",alignItems: "center",- overflow: "hidden",- "& ::selection": {- backgroundColor: "accent.main",- color: "fixed.white",- },- "& ::-moz-selection": {- backgroundColor: "accent.main",- color: "fixed.white",- },+ justifyContent: { xs: "center", md: "flex-end" },+ minHeight: { xs: 88, md: 104 },+ px: { xs: 3, md: 4.5 },+ mb: fileInfo?.lockerType ? { xs: 16, md: 0 } : 0,}}>- {/* Ente Locker Logo */}- <Box- sx={{- width: "100%",- display: "flex",- alignItems: "center",- justifyContent: { xs: "center", md: "flex-end" },- minHeight: { xs: 88, md: 104 },- px: { xs: 3, md: 4.5 },- mb: fileInfo?.lockerType ? { xs: 16, md: 0 } : 0,- }}+ <a+ href="https://ente.com/locker"+ target="_blank"+ rel="noopener noreferrer"+ style={{ display: "block", lineHeight: 0 }}>- <a- href="https://ente.com/locker"- target="_blank"- rel="noopener noreferrer"- style={{ display: "block", lineHeight: 0 }}+ <picture>+ <source+ srcSet="/images/ente-locker-white.svg"+ media="(prefers-color-scheme: dark)"+ />+ <Box+ component="img"+ src="/images/ente-locker.svg"+ alt="Ente Locker"+ sx={{ height: "56px", cursor: "pointer" }}+ />+ </picture>+ </a>+ </Box>++ {/* Main Container */}+ <Box+ sx={{+ display: "flex",+ flexDirection: "column",+ alignItems: "center",+ justifyContent: fileInfo?.lockerType+ ? "flex-start"+ : "center",+ width: "100%",+ maxWidth: 400,+ flex: 1,+ px: 3,+ pb: 8,+ mt: fileInfo?.lockerType ? { xs: 0, md: "20dvh" } : 0,+ }}+ >+ {/* Loading State */}+ {loading && (+ <Box+ sx={{+ flex: 1,+ display: "flex",+ alignItems: "center",+ justifyContent: "center",+ }}>- <picture>- <source- srcSet="/images/ente-locker-white.svg"- media="(prefers-color-scheme: dark)"- />- <Box- component="img"- src="/images/ente-locker.svg"- alt="Ente Locker"- sx={{ height: "56px", cursor: "pointer" }}- />- </picture>- </a>- </Box>+ <CircularProgress+ sx={{ color: "accent.main" }}+ size={32}+ />+ </Box>+ )}- {/* Main Container */}- <Box- sx={{- display: "flex",- flexDirection: "column",- alignItems: "center",- justifyContent: fileInfo?.lockerType- ? "flex-start"- : "center",- width: "100%",- maxWidth: 400,- flex: 1,- px: 3,- pb: 8,- mt: fileInfo?.lockerType- ? { xs: 0, md: "20dvh" }- : 0,- }}- >- {/* Loading State */}- {loading && (- <Box- sx={{- flex: 1,- display: "flex",- alignItems: "center",- justifyContent: "center",- }}- >- <CircularProgress- sx={{ color: "accent.main" }}- size={32}- />- </Box>- )}+ {/* Error State */}+ {error && !loading && (+ <Box+ sx={{+ flex: 1,+ display: "flex",+ alignItems: "center",+ justifyContent: "center",+ textAlign: "center",+ p: 3,+ }}+ >+ <Typography variant="body" color="error">+ {error}+ </Typography>+ </Box>+ )}- {/* Error State */}- {error && !loading && (+ {/* File Info Display */}+ {fileInfo && iconInfo && !loading && (+ <>+ {/* File Info - Centered */}<Boxsx={{- flex: 1,display: "flex",+ flexDirection: "column",alignItems: "center",justifyContent: "center",- textAlign: "center",- p: 3,+ gap: 3,+ width: "100%",+ marginBottom: 4,}}>- <Typography variant="body" color="error">- {error}- </Typography>- </Box>- )}-- {/* File Info Display */}- {fileInfo && iconInfo && !loading && (- <>- {/* File Info - Centered */}+ {/* Large File Icon */}<Boxsx={{+ backgroundColor:+ iconInfo.backgroundColor,+ borderRadius: "20px",+ padding: 1.8,display: "flex",- flexDirection: "column",alignItems: "center",justifyContent: "center",- gap: 3,- width: "100%",- marginBottom: 4,}}>- {/* Large File Icon */}- <Box- sx={{- backgroundColor:- iconInfo.backgroundColor,- borderRadius: "20px",- padding: 1.8,- display: "flex",- alignItems: "center",- justifyContent: "center",- }}- >- {iconInfo.icon}- </Box>+ {iconInfo.icon}+ </Box>- {/* File Name */}+ {/* File Name */}+ <Typography+ variant="h5"+ sx={{+ fontWeight: 600,+ fontSize: fileInfo.lockerType+ ? "24px"+ : "22px",+ textAlign: "center",+ wordBreak: "break-word",+ color: "text.base",+ }}+ >+ {fileInfo.fileName}+ </Typography>++ {/* File Size - only show if no locker type */}+ {!fileInfo.lockerType && (<Typography- variant="h5"+ variant="body"sx={{- fontWeight: 600,- fontSize: fileInfo.lockerType- ? "24px"- : "22px",- textAlign: "center",- wordBreak: "break-word",- color: "text.base",+ color: "text.muted",+ mt: -2,+ fontSize: "1rem",}}>- {fileInfo.fileName}+ {fileInfo.fileSize > 0+ ? formatFileSize(fileInfo.fileSize)+ : "Unknown size"}</Typography>+ )}- {/* File Size - only show if no locker type */}- {!fileInfo.lockerType && (- <Typography- variant="body"- sx={{- color: "text.muted",- mt: -2,- fontSize: "1rem",- }}- >- {fileInfo.fileSize > 0- ? formatFileSize(- fileInfo.fileSize,- )- : "Unknown size"}- </Typography>+ {/* Locker Type Display */}+ {fileInfo.lockerType &&+ fileInfo.lockerInfoData && (+ <LockerTypeDisplay+ type={fileInfo.lockerType}+ data={fileInfo.lockerInfoData}+ onCopy={handleCopyContent}+ />)}+ </Box>- {/* Locker Type Display */}- {fileInfo.lockerType &&- fileInfo.lockerInfoData && (- <LockerTypeDisplay- type={fileInfo.lockerType}- data={fileInfo.lockerInfoData}- onCopy={handleCopyContent}- />- )}- </Box>-- {/* Download Button - Only show if not a LockerInfoType */}- {!fileInfo.lockerType && (- <Box sx={{ width: "100%", mt: 4 }}>- <Button- variant="contained"- size="large"- fullWidth- onClick={handleDownload}- disabled={downloading}- sx={{- py: 2.5,- fontSize: "1rem",- fontWeight: 600,+ {/* Download Button - Only show if not a LockerInfoType */}+ {!fileInfo.lockerType && (+ <Box sx={{ width: "100%", mt: 4 }}>+ <Button+ variant="contained"+ size="large"+ fullWidth+ onClick={handleDownload}+ disabled={downloading}+ sx={{+ py: 2.5,+ fontSize: "1rem",+ fontWeight: 600,+ bgcolor: "accent.main",+ color: "accent.contrastText",+ "&:hover": {+ bgcolor: "accent.dark",+ },+ "&:disabled": {bgcolor: "accent.main",color: "accent.contrastText",- "&:hover": {- bgcolor: "accent.dark",- },- "&:disabled": {- bgcolor: "accent.main",- color: "accent.contrastText",- opacity: 0.7,- },- borderRadius: "22px",- textTransform: "none",- }}- >- {downloading ? (- <>- <CircularProgress- size={20}- sx={{- mr: 1,- color: "accent.contrastText",- }}- />- Downloading...- </>- ) : (- "Download"- )}- </Button>- </Box>- )}- </>- )}- </Box>-- <Notification- open={!!notificationAttributes}- onClose={() => setNotificationAttributes(undefined)}- attributes={notificationAttributes}- />+ opacity: 0.7,+ },+ borderRadius: "22px",+ textTransform: "none",+ }}+ >+ {downloading ? (+ <>+ <CircularProgress+ size={20}+ sx={{+ mr: 1,+ color: "accent.contrastText",+ }}+ />+ Downloading...+ </>+ ) : (+ "Download"+ )}+ </Button>+ </Box>+ )}+ </>+ )}</Box>++ <Notification+ open={!!notificationAttributes}+ onClose={() => setNotificationAttributes(undefined)}+ attributes={notificationAttributes}+ />+ </Box></Box>);};