π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Rename
Manav Rathi7138510e4811
diff --git a/web/apps/accounts/src/types/context.ts b/web/apps/accounts/src/types/context.tsindex 73617d92f6..d18bda6e9f 100644--- a/web/apps/accounts/src/types/context.ts+++ b/web/apps/accounts/src/types/context.ts@@ -1,10 +1,10 @@-import type { AccountsContextT } from "@/base/context";+import type { BaseContextT } from "@/base/context";import { createContext, useContext } from "react";/*** The type of the context for pages in the accounts app.*/-type AppContextT = Omit<AccountsContextT, "logout">;+type AppContextT = Omit<BaseContextT, "logout">;/*** The React {@link Context} available to all nodes in the React tree.diff --git a/web/apps/auth/src/types/context.ts b/web/apps/auth/src/types/context.tsindex 1072c514f0..d1a6eedfc2 100644--- a/web/apps/auth/src/types/context.ts+++ b/web/apps/auth/src/types/context.ts@@ -1,10 +1,10 @@-import type { AccountsContextT } from "@/base/context";+import type { BaseContextT } from "@/base/context";import { createContext, useContext } from "react";/*** Properties available via {@link AppContext} to the Auth app's React tree.*/-type AppContextT = AccountsContextT;+type AppContextT = BaseContextT;/** The React {@link Context} available to all pages. */export const AppContext = createContext<AppContextT | undefined>(undefined);diff --git a/web/packages/accounts/pages/two-factor/recover.tsx b/web/packages/accounts/pages/two-factor/recover.tsxindex 61d8421ca3..da73c38866 100644--- a/web/packages/accounts/pages/two-factor/recover.tsx+++ b/web/packages/accounts/pages/two-factor/recover.tsx@@ -11,7 +11,7 @@ import {} from "@/accounts/services/user";import { LinkButton } from "@/base/components/LinkButton";import type { MiniDialogAttributes } from "@/base/components/MiniDialog";-import type { AccountsContextT } from "@/base/context";+import type { BaseContextT } from "@/base/context";import { sharedCryptoWorker } from "@/base/crypto";import type { B64EncryptionResult } from "@/base/crypto/libsodium";import log from "@/base/log";@@ -38,7 +38,7 @@ const bip39 = require("bip39");bip39.setDefaultWordlist("english");export interface RecoverPageProps {- appContext: AccountsContextT;+ appContext: BaseContextT;twoFactorType: TwoFactorType;}diff --git a/web/packages/accounts/types/page.ts b/web/packages/accounts/types/page.tsindex 7f772bd66f..ffb7a27126 100644--- a/web/packages/accounts/types/page.ts+++ b/web/packages/accounts/types/page.ts@@ -1,4 +1,4 @@-import type { AccountsContextT } from "@/base/context";+import type { BaseContextT } from "@/base/context";/*** The default type for pages exposed by this package.@@ -12,5 +12,5 @@ export interface PageProps {* Within this package we do not have access to the context object declared* with the app's code, so we need to take the context as a parameter.*/- appContext: AccountsContextT;+ appContext: BaseContextT;}diff --git a/web/packages/base/context.ts b/web/packages/base/context.tsindex 12f9584802..aa01858b3c 100644--- a/web/packages/base/context.ts+++ b/web/packages/base/context.ts@@ -1,10 +1,10 @@import type { MiniDialogAttributes } from "@/base/components/MiniDialog";/**- * Properties expected to be present in the AppContext types for pages that- * defer to the pages provided by the accounts package.+ * The type of the context expected to be present in the React tree for all apps+ * that use the base package.*/-export interface AccountsContextT {+export interface BaseContextT {/*** Perform the (possibly app specific) logout sequence.*/diff --git a/web/packages/gallery/components/FileInfo.tsx b/web/packages/gallery/components/FileInfo.tsxindex 1c1a4aabee..3a4ad8fccc 100644--- a/web/packages/gallery/components/FileInfo.tsx+++ b/web/packages/gallery/components/FileInfo.tsx@@ -13,7 +13,7 @@ import { SidebarDrawer } from "@/base/components/mui/SidebarDrawer";import { Titlebar } from "@/base/components/Titlebar";import { EllipsizedTypography } from "@/base/components/Typography";import { useModalVisibility } from "@/base/components/utils/modal";-import type { AccountsContextT } from "@/base/context";+import type { BaseContextT } from "@/base/context";import { haveWindow } from "@/base/env";import { nameAndExtension } from "@/base/file-name";import log from "@/base/log";@@ -113,7 +113,7 @@ export interface FileInfoProps {* This is the same as the {@link showMiniDialog} prop in the top level* {@link AppContext} of the app which we're currently being shown in.*/- showMiniDialog: AccountsContextT["showMiniDialog"];+ showMiniDialog: BaseContextT["showMiniDialog"];/*** TODO: Rename and flip to allowEdits.*/diff --git a/web/packages/new/photos/types/context.ts b/web/packages/new/photos/types/context.tsindex dd9cab7c0b..fc3d285956 100644--- a/web/packages/new/photos/types/context.ts+++ b/web/packages/new/photos/types/context.ts@@ -1,11 +1,11 @@-import type { AccountsContextT } from "@/base/context";+import type { BaseContextT } from "@/base/context";import { type NotificationAttributes } from "@/new/photos/components/Notification";import { createContext, useContext } from "react";/*** The type of the React context available to all pages in the photos app.*/-export type AppContextT = AccountsContextT & {+export type AppContextT = BaseContextT & {/*** Show the global activity indicator (a loading bar at the top of the* page).