Continue painting

This commit is contained in:
Manav Rathi
2024-06-30 18:16:11 +05:30
parent 4a14017cff
commit 776915e659
9 changed files with 11 additions and 14 deletions

View File

@@ -1,7 +1,7 @@
import { staticAppTitle } from "@/next/app";
import { CustomHead } from "@/next/components/Head";
import { disableDiskLogs } from "@/next/log";
import { logUnhandledErrorsAndRejections } from "@/next/log-web";
import { appTitle } from "@/next/app";
import { getTheme } from "@ente/shared/themes";
import { THEME_COLOR } from "@ente/shared/themes/constants";
import { CssBaseline, ThemeProvider } from "@mui/material";
@@ -19,7 +19,7 @@ const App: React.FC<AppProps> = ({ Component, pageProps }) => {
return (
<>
<CustomHead title={appTitle.photos} />
<CustomHead title={staticAppTitle} />
<ThemeProvider theme={getTheme(THEME_COLOR.DARK, "photos")}>
<CssBaseline enableColorScheme />

View File

@@ -1,3 +1,4 @@
import { clientPackageName, staticAppTitle } from "@/next/app";
import { CustomHead } from "@/next/components/Head";
import { setupI18n } from "@/next/i18n";
import log from "@/next/log";
@@ -5,11 +6,7 @@ import {
logStartupBanner,
logUnhandledErrorsAndRejections,
} from "@/next/log-web";
import {
clientPackageName,
staticAppTitle,
type BaseAppContextT,
} from "@/next/types/app";
import type { BaseAppContextT } from "@/next/types/context";
import { AppUpdate } from "@/next/types/ipc";
import { ensure } from "@/utils/ensure";
import { Overlay } from "@ente/shared/components/Container";

View File

@@ -1,8 +1,8 @@
import { FILE_TYPE } from "@/media/file-type";
import { EnteFile } from "@/new/photos/types/file";
import { clientPackageNamePhotosDesktop } from "@/next/app";
import { ensureElectron } from "@/next/electron";
import log from "@/next/log";
import { clientPackageNamePhotosDesktop } from "@/next/types/app";
import { ComlinkWorker } from "@/next/worker/comlink-worker";
import { eventBus, Events } from "@ente/shared/events";
import { getToken, getUserID } from "@ente/shared/storage/localStorage/helpers";

View File

@@ -1,5 +1,5 @@
import { appName } from "@/next/app";
import { apiURL } from "@/next/origins";
import { appName } from "@/next/types/app";
import type {
RecoveryKey,
TwoFactorRecoveryResponse,

View File

@@ -1,5 +1,5 @@
import log from "@/next/log";
import type { BaseAppContextT } from "@/next/types/app";
import type { BaseAppContextT } from "@/next/types/context";
import { ensure } from "@/utils/ensure";
import {
recoverTwoFactor,

View File

@@ -1,7 +1,7 @@
import { clientPackageName, isDesktop } from "@/next/app";
import { clientPackageHeader } from "@/next/http";
import log from "@/next/log";
import { accountsAppOrigin, apiURL } from "@/next/origins";
import { clientPackageName, isDesktop } from "@/next/types/app";
import { TwoFactorAuthorizationResponse } from "@/next/types/credentials";
import { ensure } from "@/utils/ensure";
import ComlinkCryptoWorker from "@ente/shared/crypto";

View File

@@ -9,6 +9,6 @@ import { AUTH_PAGES, PHOTOS_PAGES } from "@ente/shared/constants/pages";
export const appHomeRoute: string = {
accounts: "/passkeys",
auth: AUTH_PAGES.AUTH,
cast: "/",
cast: "/" /* The cast app doesn't use this, this is an arbitrary value. */,
photos: PHOTOS_PAGES.GALLERY,
}[appName];

View File

@@ -1,4 +1,4 @@
import type { BaseAppContextT } from "@/next/types/app";
import type { BaseAppContextT } from "@/next/types/context";
/**
* The default type for pages exposed by this package.

View File

@@ -1,6 +1,6 @@
import log from "@/next/log";
import { customAPIHost } from "@/next/origins";
import type { BaseAppContextT } from "@/next/types/app";
import type { BaseAppContextT } from "@/next/types/context";
import {
checkPasskeyVerificationStatus,
passkeySessionExpiredErrorMessage,