π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Can use it with tsc currently
Manav Rathi7a9110cc9b96
diff --git a/web/packages/base/components/loaders.tsx b/web/packages/base/components/loaders.tsxindex 45c2f6d665..49c4429c87 100644--- a/web/packages/base/components/loaders.tsx+++ b/web/packages/base/components/loaders.tsx@@ -39,14 +39,19 @@ export const LoadingOverlay: React.FC = () => (* An translucent overlay that covers the entire viewport and shows an activity* indicator in its center.*- * Used as a overscreen during blocking actions.+ * Used as a overscreen during blocking actions. The use of this component is+ * not recommended for new code.*/export const TranslucentLoadingOverlay: React.FC = () => (<Backdrop+ // Specifying open here causes us to lose animations. This is fine since+ // the use of this is limited to a few interstitial overlays, and if+ // refactoring consider replacing this entirely with a more localized+ // activity indicator.open={true}- variant="blur"sx={{- // TODO: Why?+ backdropFilter: "blur(30px) opacity(95%)",+ // TODO: Why is this zIndex override required? + use a constant.zIndex: 9000,}}>diff --git a/web/packages/base/components/utils/mui-theme.d.ts b/web/packages/base/components/utils/mui-theme.d.tsindex b4b3177993..17a2df19cb 100644--- a/web/packages/base/components/utils/mui-theme.d.ts+++ b/web/packages/base/components/utils/mui-theme.d.ts@@ -285,17 +285,3 @@ declare module "@mui/material/Typography" {tiny: true;}}--// Tell TypeScript about our custom variants for other components-//-// https://mui.com/material-ui/customization/theme-components/#variants--declare module "@mui/material/Backdrop" {- interface BackdropPropVariantOverrides {- /**- * A variant that uses a translucent blur filter over the background of- * the backdrop.- */- blur: true;- }-}diff --git a/web/packages/base/components/utils/theme.ts b/web/packages/base/components/utils/theme.tsindex 544325ceff..7b6abbb4fa 100644--- a/web/packages/base/components/utils/theme.ts+++ b/web/packages/base/components/utils/theme.ts@@ -554,14 +554,24 @@ const components: Components = {styleOverrides: {root: {backgroundColor: "var(--mui-palette-backdrop-muted)",- variants: [- {- props: { variant: "blur" },- style: {- backdropFilter: "blur(30px) opacity(95%)",- },- },- ],+ // [Note: Backdrop variant blur]+ //+ // What we wish for is this. But as of MUI v6.4, the TypeScript+ // definition for Backdrop does not contain a variant, causing+ // tsc to show an error when we try to specify a variant.+ //+ // Since the styling is trivial and used only infrequently, for+ // now we copy paste it. If it gets needed more often, we can+ // also make it into a palette var.+ //+ // variants: [+ // {+ // props: { variant: "blur" },+ // style: {+ // backdropFilter: "blur(30px) opacity(95%)",+ // },+ // },+ // ],},},},