π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
remove-comments
Aswin Asok3e7aecdbd206
diff --git a/web/apps/photos/src/components/auth/Checkbox.tsx b/web/apps/photos/src/components/auth/Checkbox.tsxindex bef25c69b9..6aa86b997f 100644--- a/web/apps/photos/src/components/auth/Checkbox.tsx+++ b/web/apps/photos/src/components/auth/Checkbox.tsx@@ -14,12 +14,6 @@ export interface CheckboxProps extends Omit<> {checked: boolean;onChange: (checked: boolean) => void;- /**- * Label rendered next to the box, inside the label element, giving the- * checkbox its accessible name (and making the text itself clickable).- *- * When omitted, pass an `aria-label` instead.- */label?: React.ReactNode;}@@ -84,7 +78,6 @@ const CheckboxMark = styled("span")({width: "16px",height: "16px",flex: "0 0 16px",- // Center against the first line of a (possibly wrapping) label.marginTop: "2px",borderRadius: "4px",display: "inline-flex",diff --git a/web/apps/photos/src/components/auth/TextLink.tsx b/web/apps/photos/src/components/auth/TextLink.tsxindex 70f82ec42a..ca0caa8ec7 100644--- a/web/apps/photos/src/components/auth/TextLink.tsx+++ b/web/apps/photos/src/components/auth/TextLink.tsx@@ -14,12 +14,6 @@ export interface TextLinkProps extends Omit<children: React.ReactNode;}-/**- * A button that looks like an inline text link.- *- * Named TextLink (not LinkButton) to avoid colliding with the LinkButton- * exported by ente-base, which is used elsewhere in this app.- */export function TextLink({regular = false,type = "button",diff --git a/web/apps/photos/src/components/auth/styles.ts b/web/apps/photos/src/components/auth/styles.tsindex f872565694..b2d4fe190c 100644--- a/web/apps/photos/src/components/auth/styles.ts+++ b/web/apps/photos/src/components/auth/styles.ts@@ -1,15 +1,3 @@-/**- * The auth palette, exposed as CSS variables.- *- * Declared globally by {@link PhotosAuthShell} (via MUI's GlobalStyles) while- * an auth screen is mounted, so the `var(--photos-auth-*)` consumers in this- * directory resolve anywhere in the document β including MUI portals- * (dialogs, menus, snackbars), which mount outside the shell's DOM subtree.- *- * Both selectors have zero specificity, so source order alone lets the dark- * block win whenever the color scheme class (`colorSchemeSelector: "class"`- * in the app theme) is present on an ancestor.- */export const authColorVariables = {":where(:root)": {"--photos-auth-primary": "#08c225",@@ -41,31 +29,16 @@ export const authColorVariables = {},};-/**- * The auth layout's mobile cutoff.- *- * Both queries derive from the same constant. The 0.05px epsilon (the same- * one MUI's breakpoint helpers use) keeps fractional viewport widths from- * falling between the two queries.- */const authMobileCutoffPx = 640;export const authMobileMediaQuery = `@media (max-width: ${authMobileCutoffPx - 0.05}px)`;export const authAboveMobileMediaQuery = `@media (min-width: ${authMobileCutoffPx}px)`;-/**- * styled() options that keep `$`-prefixed transient props off the DOM.- *- * All transient props in this directory use the `$` prefix, so every- * styled() call with transient props can share this filter.- */export const authTransientProps = {shouldForwardProp: (prop: string) => !prop.startsWith("$"),};-/** The display font used for headlines and the OTP digits. */export const authDisplayFontFamily = '"Outfit Variable", sans-serif';-/** The keyboard focus indicator shared by the interactive components. */export const authFocusRing = {outline: "1px solid var(--photos-auth-primary)",outlineOffset: "2px",