π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Rename locker app to share for public file sharing
anandbaburajan5ff1d8a6d452
diff --git a/web/CLAUDE.md b/web/CLAUDE.mdindex 99cd23a9b7..533d214fbe 100644--- a/web/CLAUDE.md+++ b/web/CLAUDE.md@@ -33,7 +33,7 @@ yarn dev:auth # Auth app (port 3003)yarn dev:embed # Embed app (port 3006)yarn dev:accounts # Accounts app (port 3001)yarn dev:cast # Cast app (port 3004)-yarn dev:locker # Locker app (port 3005)+yarn dev:share # Public Locker app (port 3005)# Production buildsyarn build # Photos app@@ -70,7 +70,7 @@ web/β βββ embed/ # Embeddable photo viewer (iframe-friendly)β βββ accounts/ # Passkey supportβ βββ cast/ # Chromecast/browser casting-β βββ locker/ # Document storage+β βββ share/ # Document storageβ βββ payments/ # Subscription managementββββ packages/ # Shared code between appsdiff --git a/web/apps/locker/.env b/web/apps/share/.envsimilarity index 100%rename from web/apps/locker/.envrename to web/apps/share/.envdiff --git a/web/apps/locker/eslint.config.mjs b/web/apps/share/eslint.config.mjssimilarity index 100%rename from web/apps/locker/eslint.config.mjsrename to web/apps/share/eslint.config.mjsdiff --git a/web/apps/locker/next.config.js b/web/apps/share/next.config.jssimilarity index 100%rename from web/apps/locker/next.config.jsrename to web/apps/share/next.config.jsdiff --git a/web/apps/locker/package.json b/web/apps/share/package.jsonsimilarity index 90%rename from web/apps/locker/package.jsonrename to web/apps/share/package.jsonindex d19cf670ed..f4e11278a6 100644--- a/web/apps/locker/package.json+++ b/web/apps/share/package.json@@ -1,5 +1,5 @@{- "name": "locker",+ "name": "share","version": "0.0.0","private": true,"dependencies": {diff --git a/web/apps/locker/public/images/ente-locker.svg b/web/apps/share/public/images/ente-locker.svgsimilarity index 100%rename from web/apps/locker/public/images/ente-locker.svgrename to web/apps/share/public/images/ente-locker.svgdiff --git a/web/apps/locker/public/images/favicon.png b/web/apps/share/public/images/favicon.pngsimilarity index 100%rename from web/apps/locker/public/images/favicon.pngrename to web/apps/share/public/images/favicon.pngdiff --git a/web/apps/locker/src/components/file-share/CopyableField.tsx b/web/apps/share/src/components/file-share/CopyableField.tsxsimilarity index 100%rename from web/apps/locker/src/components/file-share/CopyableField.tsxrename to web/apps/share/src/components/file-share/CopyableField.tsxdiff --git a/web/apps/locker/src/components/file-share/FileShareView.tsx b/web/apps/share/src/components/file-share/FileShareView.tsxsimilarity index 100%rename from web/apps/locker/src/components/file-share/FileShareView.tsxrename to web/apps/share/src/components/file-share/FileShareView.tsxdiff --git a/web/apps/locker/src/components/file-share/LockerTypeDisplay.tsx b/web/apps/share/src/components/file-share/LockerTypeDisplay.tsxsimilarity index 100%rename from web/apps/locker/src/components/file-share/LockerTypeDisplay.tsxrename to web/apps/share/src/components/file-share/LockerTypeDisplay.tsxdiff --git a/web/apps/locker/src/hooks/useFileShare.ts b/web/apps/share/src/hooks/useFileShare.tssimilarity index 100%rename from web/apps/locker/src/hooks/useFileShare.tsrename to web/apps/share/src/hooks/useFileShare.tsdiff --git a/web/apps/locker/src/pages/[token].tsx b/web/apps/share/src/pages/[token].tsxsimilarity index 100%rename from web/apps/locker/src/pages/[token].tsxrename to web/apps/share/src/pages/[token].tsxdiff --git a/web/apps/locker/src/pages/_app.tsx b/web/apps/share/src/pages/_app.tsxsimilarity index 87%rename from web/apps/locker/src/pages/_app.tsxrename to web/apps/share/src/pages/_app.tsxindex ca94c06676..e42a1a4b0d 100644--- a/web/apps/locker/src/pages/_app.tsx+++ b/web/apps/share/src/pages/_app.tsx@@ -3,7 +3,7 @@ import { CssBaseline, ThemeProvider } from "@mui/material";import { staticAppTitle } from "ente-base/app";import { CustomHead } from "ente-base/components/Head";import { useSetupLogs } from "ente-base/components/utils/hooks-app";-import { lockerTheme } from "ente-base/components/utils/theme";+import { shareTheme } from "ente-base/components/utils/theme";import type { AppProps } from "next/app";import React from "react";@@ -13,7 +13,7 @@ const App: React.FC<AppProps> = ({ Component, pageProps }) => {// We don't provide BaseContext. Nothing in the cast app needs it yet.return (- <ThemeProvider theme={lockerTheme}>+ <ThemeProvider theme={shareTheme}><CustomHead title={staticAppTitle} /><CssBaseline enableColorScheme /><Component {...pageProps} />diff --git a/web/apps/locker/src/pages/index.tsx b/web/apps/share/src/pages/index.tsxsimilarity index 54%rename from web/apps/locker/src/pages/index.tsxrename to web/apps/share/src/pages/index.tsxindex 32f0bcde2a..59ad467846 100644--- a/web/apps/locker/src/pages/index.tsx+++ b/web/apps/share/src/pages/index.tsx@@ -1,5 +1,4 @@import { Stack, Typography } from "@mui/material";-import { EnteLogo } from "ente-base/components/EnteLogo";import React from "react";const Page: React.FC = () => {@@ -9,16 +8,18 @@ const Page: React.FC = () => {justifyContent: "center",minHeight: "100vh",gap: 2,- bgcolor: "accent.main",- color: "white",+ bgcolor: "white",textAlign: "center",}}>- <EnteLogo height={42} />- <Typography variant="h1" sx={{ fontWeight: "bold" }}>- Locker+ <img+ src="/images/ente-locker.svg"+ alt="Ente Locker"+ style={{ height: "100px", alignSelf: "center" }}+ />+ <Typography variant="small" sx={{ color: "#a2a2a2", mt: 4 }}>+ β Coming soon β</Typography>- <Typography variant="small">β Coming soon β</Typography></Stack>);};diff --git a/web/apps/locker/src/services/file-share.ts b/web/apps/share/src/services/file-share.tssimilarity index 100%rename from web/apps/locker/src/services/file-share.tsrename to web/apps/share/src/services/file-share.tsdiff --git a/web/apps/locker/src/types/file-share.ts b/web/apps/share/src/types/file-share.tssimilarity index 100%rename from web/apps/locker/src/types/file-share.tsrename to web/apps/share/src/types/file-share.tsdiff --git a/web/apps/locker/src/utils/file-type.tsx b/web/apps/share/src/utils/file-type.tsxsimilarity index 100%rename from web/apps/locker/src/utils/file-type.tsxrename to web/apps/share/src/utils/file-type.tsxdiff --git a/web/apps/locker/tsconfig.json b/web/apps/share/tsconfig.jsonsimilarity index 100%rename from web/apps/locker/tsconfig.jsonrename to web/apps/share/tsconfig.jsondiff --git a/web/package.json b/web/package.jsonindex 5c12deb6d1..2493974020 100644--- a/web/package.json+++ b/web/package.json@@ -12,18 +12,18 @@"build:auth": "yarn workspace auth next build","build:cast": "yarn workspace cast next build","build:embed": "yarn workspace embed next build",- "build:locker": "yarn workspace locker next build","build:payments": "yarn workspace payments build","build:photos": "yarn workspace photos next build",+ "build:share": "yarn workspace share next build","dev": "yarn dev:photos","dev:accounts": "yarn workspace accounts next dev -p 3001","dev:albums": "yarn workspace photos next dev -p 3002","dev:auth": "yarn workspace auth next dev -p 3003","dev:cast": "yarn workspace cast next dev -p 3004","dev:embed": "yarn workspace embed next dev -p 3006",- "dev:locker": "yarn workspace locker next dev -p 3005","dev:payments": "yarn workspace payments dev","dev:photos": "yarn workspace photos next dev -p 3000",+ "dev:share": "yarn workspace share next dev -p 3005","lint": "concurrently --names 'prettier,eslint,tsc' \"yarn prettier --check --log-level warn .\" \"yarn workspaces run eslint\" \"yarn workspaces run tsc\"","lint-fix": "concurrently --names 'prettier,eslint,tsc' \"yarn prettier --write --log-level warn .\" \"yarn workspaces run eslint --fix\" \"yarn workspaces run tsc\""},diff --git a/web/packages/accounts/services/redirect.ts b/web/packages/accounts/services/redirect.tsindex a87e2b51c3..009e536c8b 100644--- a/web/packages/accounts/services/redirect.ts+++ b/web/packages/accounts/services/redirect.ts@@ -10,7 +10,7 @@ export const appHomeRoute: string = {auth: "/auth",cast: "/" /* The cast app doesn't use this, this is an arbitrary value. */,embed: "/" /* The embed app doesn't use this either. */,- locker: "/" /* The locker app also doesn't use this. */,+ share: "/" /* The locker public app also doesn't use this. */,photos: "/gallery",}[appName];diff --git a/web/packages/base/app.ts b/web/packages/base/app.tsindex 2deb82be2c..b77e7d191d 100644--- a/web/packages/base/app.ts+++ b/web/packages/base/app.ts@@ -3,7 +3,7 @@ export const appNames = ["auth","cast","embed",- "locker",+ "share","photos",] as const;@@ -64,7 +64,7 @@ export const staticAppTitle = {auth: "Ente Auth",cast: "Ente Photos",embed: "Ente Photos",- locker: "Ente Locker",+ share: "Ente Locker",photos: "Ente Photos",}[appName];@@ -87,7 +87,7 @@ export const clientPackageName = (() => {auth: "io.ente.auth.web",cast: "io.ente.cast.web",embed: "io.ente.photos.web", // Use photos package name for embed app- locker: "io.ente.locker.web",+ share: "io.ente.share.web",photos: "io.ente.photos.web",}[appName];})();diff --git a/web/packages/base/components/utils/theme.ts b/web/packages/base/components/utils/theme.tsindex 0c79a7414e..8ad7e6c7e4 100644--- a/web/packages/base/components/utils/theme.ts+++ b/web/packages/base/components/utils/theme.ts@@ -128,8 +128,8 @@ const getColors = (appName: AppName) => ({accent:appName == "auth"? _colors.accentAuth- : appName == "locker"- ? _colors.accentLocker+ : appName == "share"+ ? _colors.accentShare: _colors.accentPhotos,},});@@ -144,7 +144,7 @@ const getColors = (appName: AppName) => ({const _colors = {accentPhotos: { dark: "#00b33c", main: "#1db954", light: "#01de4d" },accentAuth: { dark: "#8e0fcb", main: "#9610d6", light: "#8e2de2" },- accentLocker: { dark: "#615bff", main: "#5ba8ff", light: "#5bf9ff" },+ accentShare: { dark: "#615bff", main: "#5ba8ff", light: "#5bf9ff" },fixed: {white: "#fff",black: "#000",@@ -772,6 +772,6 @@ export const authTheme = getTheme("auth");export const castTheme = getTheme("cast");/**- * The MUI {@link Theme} to use for the locker app.+ * The MUI {@link Theme} to use for the locker public app.*/-export const lockerTheme = getTheme("locker");+export const shareTheme = getTheme("share");