π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Start fixing
Manav Rathi80146522ad21
diff --git a/web/apps/auth/eslint.config.mjs b/web/apps/auth/eslint.config.mjsindex c61e4cd750..619424e396 100644--- a/web/apps/auth/eslint.config.mjs+++ b/web/apps/auth/eslint.config.mjs@@ -16,7 +16,7 @@ export default ["@typescript-eslint/no-unsafe-member-access": "off","@typescript-eslint/no-unsafe-argument": "off",/** TODO: Disabled as we migrate, try to prune these again */- "@typescript-eslint/no-floating-promises": "off",+"@typescript-eslint/no-unsafe-enum-comparison": "off","@typescript-eslint/no-unnecessary-type-assertion": "off","@typescript-eslint/array-type": "off",diff --git a/web/apps/auth/src/pages/_app.tsx b/web/apps/auth/src/pages/_app.tsxindex e1bb9353f0..772311ce95 100644--- a/web/apps/auth/src/pages/_app.tsx+++ b/web/apps/auth/src/pages/_app.tsx@@ -70,7 +70,7 @@ const App: React.FC<AppProps> = ({ Component, pageProps }) => {useEffect(() => {void setupI18n().finally(() => setIsI18nReady(true));const user = getData(LS_KEYS.USER) as User | undefined | null;- migrateKVToken(user);+ void migrateKVToken(user);logStartupBanner(user?.id);HTTPService.setHeaders({ "X-Client-Package": clientPackageName });logUnhandledErrorsAndRejections(true);diff --git a/web/apps/auth/src/pages/auth.tsx b/web/apps/auth/src/pages/auth.tsxindex 0032777ff9..a254d151c9 100644--- a/web/apps/auth/src/pages/auth.tsx+++ b/web/apps/auth/src/pages/auth.tsx@@ -42,7 +42,7 @@ const Page: React.FC = () => {e.message == CustomError.KEY_MISSING) {stashRedirect(PAGES.AUTH);- router.push("/");+ void router.push("/");} else if (e instanceof ApiError && e.httpStatusCode == 401) {// We get back a 401 Unauthorized if the token is not valid.showSessionExpiredDialog();@@ -184,11 +184,11 @@ const CodeDisplay: React.FC<CodeDisplayProps> = ({ code }) => {}};- const copyCode = () => {- navigator.clipboard.writeText(otp);- setHasCopied(true);- setTimeout(() => setHasCopied(false), 2000);- };+ const copyCode = () =>+ void navigator.clipboard.writeText(otp).then(() => {+ setHasCopied(true);+ setTimeout(() => setHasCopied(false), 2000);+ });useEffect(() => {// Generate to set the initial otp and nextOTP on component mount.diff --git a/web/apps/auth/src/pages/index.tsx b/web/apps/auth/src/pages/index.tsxindex e5540896e3..81dd02b769 100644--- a/web/apps/auth/src/pages/index.tsx+++ b/web/apps/auth/src/pages/index.tsx@@ -4,10 +4,7 @@ import React, { useEffect } from "react";const Page: React.FC = () => {const router = useRouter();- useEffect(() => {- router.push(PAGES.LOGIN);- }, []);-+ useEffect(() => void router.push(PAGES.LOGIN), []);return <></>;};diff --git a/web/apps/auth/src/pages/share.tsx b/web/apps/auth/src/pages/share.tsxindex 97d32e415d..adb7cf37e0 100644--- a/web/apps/auth/src/pages/share.tsx+++ b/web/apps/auth/src/pages/share.tsx@@ -89,7 +89,7 @@ const Share: React.FC = () => {);}};- decryptCode();+ void decryptCode();}, []);useEffect(() => {diff --git a/web/apps/photos/src/pages/_app.tsx b/web/apps/photos/src/pages/_app.tsxindex e92f092a76..640f0fa5b1 100644--- a/web/apps/photos/src/pages/_app.tsx+++ b/web/apps/photos/src/pages/_app.tsx@@ -79,7 +79,7 @@ export default function App({ Component, pageProps }: AppProps) {useEffect(() => {void setupI18n().finally(() => setIsI18nReady(true));const user = getData(LS_KEYS.USER) as User | undefined | null;- migrateKVToken(user);+ void migrateKVToken(user);logStartupBanner(user?.id);HTTPService.setHeaders({ "X-Client-Package": clientPackageName });logUnhandledErrorsAndRejections(true);