Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Auth app doesn't use it

Manav Rathi75c280d86b0f
diff --git a/web/apps/auth/src/pages/_app.tsx b/web/apps/auth/src/pages/_app.tsx
index 3fc2a2948d..5557ace23d 100644
--- a/web/apps/auth/src/pages/_app.tsx
+++ b/web/apps/auth/src/pages/_app.tsx
@@ -32,14 +32,7 @@ import { ThemeProvider } from "@mui/material/styles";
import { t } from "i18next";
import type { AppProps } from "next/app";
import { useRouter } from "next/router";
-import React, {
- createContext,
- useContext,
- useEffect,
- useRef,
- useState,
-} from "react";
-import LoadingBar, { type LoadingBarRef } from "react-top-loading-bar";
+import React, { createContext, useContext, useEffect, useState } from "react";
import "../../public/css/global.css";
@@ -47,8 +40,6 @@ import "../../public/css/global.css";
* Properties available via {@link AppContext} to the Auth app's React tree.
*/
type AppContextT = AccountsContextT & {
- startLoading: () => void;
- finishLoading: () => void;
themeColor: THEME_COLOR;
setThemeColor: (themeColor: THEME_COLOR) => void;
somethingWentWrong: () => void;
@@ -68,8 +59,6 @@ const App: React.FC<AppProps> = ({ Component, pageProps }) => {
typeof window !== "undefined" && !window.navigator.onLine,
);
const [showNavbar, setShowNavBar] = useState(false);
- const isLoadingBarRunning = useRef<boolean>(false);
- const loadingBar = useRef<LoadingBarRef>(null);
const { showMiniDialog, miniDialogProps } = useAttributedMiniDialog();
const [themeColor, setThemeColor] = useLocalState(
@@ -113,16 +102,6 @@ const App: React.FC<AppProps> = ({ Component, pageProps }) => {
const showNavBar = (show: boolean) => setShowNavBar(show);
- const startLoading = () => {
- !isLoadingBarRunning.current && loadingBar.current?.continuousStart();
- isLoadingBarRunning.current = true;
- };
-
- const finishLoading = () => {
- isLoadingBarRunning.current && loadingBar.current?.complete();
- isLoadingBarRunning.current = false;
- };
-
const somethingWentWrong = () =>
showMiniDialog(genericErrorDialogAttributes());
@@ -134,8 +113,6 @@ const App: React.FC<AppProps> = ({ Component, pageProps }) => {
logout,
showNavBar,
showMiniDialog,
- startLoading,
- finishLoading,
themeColor,
setThemeColor,
somethingWentWrong,
@@ -154,8 +131,6 @@ const App: React.FC<AppProps> = ({ Component, pageProps }) => {
{isI18nReady && offline && t("OFFLINE_MSG")}
</MessageContainer>
- <LoadingBar color="#51cd7c" ref={loadingBar} />
-
<AttributedMiniDialog {...miniDialogProps} />
<AppContext.Provider value={appContext}>
diff --git a/web/docs/dependencies.md b/web/docs/dependencies.md
index 26bcbbac5d..0f5a8a3d1a 100644
--- a/web/docs/dependencies.md
+++ b/web/docs/dependencies.md
@@ -140,11 +140,6 @@ For more details, see [translations.md](translations.md).
- [react-select](https://react-select.com/) is used for search dropdowns.
-- [react-top-loading-bar](https://github.com/klendi/react-top-loading-bar) is
- used for showing a progress indicator for global actions (This shouldn't be
- used always, it is only meant as a fallback when there isn't an otherwise
- suitable place for showing a local activity indicator).
-
## Utilities
- [comlink](https://github.com/GoogleChromeLabs/comlink) provides a minimal
@@ -186,8 +181,6 @@ For more details, see [translations.md](translations.md).
## Photos app specific
-### General
-
- [react-dropzone](https://github.com/react-dropzone/react-dropzone/) is a
React hook to create a drag-and-drop input zone.
@@ -198,10 +191,13 @@ For more details, see [translations.md](translations.md).
- [chrono-node](https://github.com/wanasit/chrono) is used for parsing natural
language queries into dates for showing search results.
-### Face search
+- [react-top-loading-bar](https://github.com/klendi/react-top-loading-bar) is
+ used for showing a progress indicator for global actions (This shouldn't be
+ used always, it is only meant as a fallback when there isn't an otherwise
+ suitable place for showing a local activity indicator).
-- [matrix](https://github.com/mljs/matrix) is mathematical matrix abstraction.
- It is used alongwith
+- [matrix](https://github.com/mljs/matrix) is mathematical matrix abstraction
+ by the machine learning code. It is used alongwith
[similarity-transformation](https://github.com/shaileshpandit/similarity-transformation-js)
during face alignment.