Skip to content

armgit / ente

Public Imported from GitHub
0

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

Merge branch 'main' into web/memory_lane_clean

AmanRajSinghMourya42078d1f31a4
diff --cc web/apps/photos/src/pages/index.tsx
index d28bed14a3,995741bf1c..67669acde5
--- a/web/apps/photos/src/pages/index.tsx
+++ b/web/apps/photos/src/pages/index.tsx
@@@ -115,14 -116,9 +118,10 @@@ const Page: React.FC = () =>
if (
(shouldOnlyServeAlbumsApp ||
currentURL.host == albumsURL.host) &&
- currentURL.pathname != "/shared-albums"
+ currentURL.pathname != "/shared-albums" &&
+ !isMemoryRoute
) {
- const end = currentURL.hash.lastIndexOf("&");
- const hash = currentURL.hash.slice(
- 1,
- end !== -1 ? end : undefined,
- );
+ const [hash] = currentURL.hash.slice(1).split("&", 1);
await router.replace({
pathname: "/shared-albums",
search: currentURL.search,
diff --cc web/package.json
index d763839151,c2dc2374b2..717198ebc1
--- a/web/package.json
+++ b/web/package.json
@@@ -13,7 -13,7 +13,8 @@@
"build:cast": "yarn build:wasm && yarn workspace cast next build",
"build:embed": "yarn build:wasm && yarn workspace embed next build",
"build:ensu": "yarn build:wasm && yarn workspace ensu next build",
+ "build:memories": "yarn build:wasm && yarn workspace memories next build && yarn workspace memories build:post",
+ "build:locker": "yarn build:wasm && yarn workspace locker next build",
"build:paste": "yarn build:wasm && yarn workspace paste next build && yarn workspace paste build:post",
"build:payments": "yarn workspace payments build",
"build:photos": "yarn build:wasm && yarn workspace photos next build",
@@@ -26,7 -27,7 +28,8 @@@
"dev:cast": "yarn build:wasm && yarn workspace cast next dev -p 3004",
"dev:embed": "yarn build:wasm && yarn workspace embed next dev -p 3006",
"dev:ensu": "yarn build:wasm && yarn workspace ensu next dev -p 3007",
- "dev:memories": "yarn build:wasm && yarn workspace memories next dev -p 3007",
+ "dev:locker": "yarn build:wasm && yarn workspace locker next dev -p 3009",
++ "dev:memories": "yarn build:wasm && yarn workspace memories next dev -p 3010",
"dev:paste": "yarn build:wasm && yarn workspace paste next dev -p 3008",
"dev:payments": "yarn workspace payments dev",
"dev:photos": "yarn build:wasm && yarn workspace photos next dev -p 3000",
diff --cc web/packages/gallery/services/download.ts
index a6b9016658,7cfed9c48a..1e0f524768
--- a/web/packages/gallery/services/download.ts
+++ b/web/packages/gallery/services/download.ts
@@@ -19,12 -19,8 +19,13 @@@ import type { EnteFile } from "ente-med
import { fileFileName } from "ente-media/file-metadata";
import { FileType } from "ente-media/file-type";
import { decodeLivePhoto } from "ente-media/live-photo";
+import {
+ authenticatedPublicMemoryRequestHeaders,
+ type PublicMemoryCredentials,
+} from "ente-new/albums/services/public-memory";
+ import { detectFileTypeInfoFromChunk } from "../utils/detect-type";
import { playableVideoURL, renderableImageBlob } from "./convert";
+import { hlsPlaylistDataForFile, type HLSPlaylistDataForFile } from "./video";
/**
* URL(s) for the original image or video, alongwith with potential conversions