Skip to content

armgit / ente

Public Imported from GitHub
0

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

Rename locker app to share for public file sharing

anandbaburajan5ff1d8a6d452
diff --git a/web/CLAUDE.md b/web/CLAUDE.md
index 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 builds
yarn 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 apps
diff --git a/web/apps/locker/.env b/web/apps/share/.env
similarity index 100%
rename from web/apps/locker/.env
rename to web/apps/share/.env
diff --git a/web/apps/locker/eslint.config.mjs b/web/apps/share/eslint.config.mjs
similarity index 100%
rename from web/apps/locker/eslint.config.mjs
rename to web/apps/share/eslint.config.mjs
diff --git a/web/apps/locker/next.config.js b/web/apps/share/next.config.js
similarity index 100%
rename from web/apps/locker/next.config.js
rename to web/apps/share/next.config.js
diff --git a/web/apps/locker/package.json b/web/apps/share/package.json
similarity index 90%
rename from web/apps/locker/package.json
rename to web/apps/share/package.json
index 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.svg
similarity index 100%
rename from web/apps/locker/public/images/ente-locker.svg
rename to web/apps/share/public/images/ente-locker.svg
diff --git a/web/apps/locker/public/images/favicon.png b/web/apps/share/public/images/favicon.png
similarity index 100%
rename from web/apps/locker/public/images/favicon.png
rename to web/apps/share/public/images/favicon.png
diff --git a/web/apps/locker/src/components/file-share/CopyableField.tsx b/web/apps/share/src/components/file-share/CopyableField.tsx
similarity index 100%
rename from web/apps/locker/src/components/file-share/CopyableField.tsx
rename to web/apps/share/src/components/file-share/CopyableField.tsx
diff --git a/web/apps/locker/src/components/file-share/FileShareView.tsx b/web/apps/share/src/components/file-share/FileShareView.tsx
similarity index 100%
rename from web/apps/locker/src/components/file-share/FileShareView.tsx
rename to web/apps/share/src/components/file-share/FileShareView.tsx
diff --git a/web/apps/locker/src/components/file-share/LockerTypeDisplay.tsx b/web/apps/share/src/components/file-share/LockerTypeDisplay.tsx
similarity index 100%
rename from web/apps/locker/src/components/file-share/LockerTypeDisplay.tsx
rename to web/apps/share/src/components/file-share/LockerTypeDisplay.tsx
diff --git a/web/apps/locker/src/hooks/useFileShare.ts b/web/apps/share/src/hooks/useFileShare.ts
similarity index 100%
rename from web/apps/locker/src/hooks/useFileShare.ts
rename to web/apps/share/src/hooks/useFileShare.ts
diff --git a/web/apps/locker/src/pages/[token].tsx b/web/apps/share/src/pages/[token].tsx
similarity index 100%
rename from web/apps/locker/src/pages/[token].tsx
rename to web/apps/share/src/pages/[token].tsx
diff --git a/web/apps/locker/src/pages/_app.tsx b/web/apps/share/src/pages/_app.tsx
similarity index 87%
rename from web/apps/locker/src/pages/_app.tsx
rename to web/apps/share/src/pages/_app.tsx
index 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.tsx
similarity index 54%
rename from web/apps/locker/src/pages/index.tsx
rename to web/apps/share/src/pages/index.tsx
index 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.ts
similarity index 100%
rename from web/apps/locker/src/services/file-share.ts
rename to web/apps/share/src/services/file-share.ts
diff --git a/web/apps/locker/src/types/file-share.ts b/web/apps/share/src/types/file-share.ts
similarity index 100%
rename from web/apps/locker/src/types/file-share.ts
rename to web/apps/share/src/types/file-share.ts
diff --git a/web/apps/locker/src/utils/file-type.tsx b/web/apps/share/src/utils/file-type.tsx
similarity index 100%
rename from web/apps/locker/src/utils/file-type.tsx
rename to web/apps/share/src/utils/file-type.tsx
diff --git a/web/apps/locker/tsconfig.json b/web/apps/share/tsconfig.json
similarity index 100%
rename from web/apps/locker/tsconfig.json
rename to web/apps/share/tsconfig.json
diff --git a/web/package.json b/web/package.json
index 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.ts
index 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.ts
index 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.ts
index 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");