Skip to content

armgit / ente

Public Imported from GitHub
0

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

Try import

Manav Rathi4881f0879036
diff --git a/web/packages/new/photos/components/.gitignore b/web/packages/new/photos/components/.gitignore
new file mode 100644
index 0000000000..cbf1262ae4
--- /dev/null
+++ b/web/packages/new/photos/components/.gitignore
@@ -0,0 +1,2 @@
+# TODO(PS): Remove me once PS5 is integrated
+ps5
diff --git a/web/packages/new/photos/components/FileViewer5.tsx b/web/packages/new/photos/components/FileViewer5.tsx
index f2cca4a5f7..ad2a3c4ef1 100644
--- a/web/packages/new/photos/components/FileViewer5.tsx
+++ b/web/packages/new/photos/components/FileViewer5.tsx
@@ -1,6 +1,8 @@
// TODO(PS): WIP gallery using upstream photoswipe
//
-// Needs yarn workspace gallery add photoswipe@^5.4.4 (not committed yet).
+// Needs (not committed yet):
+// yarn workspace gallery add photoswipe@^5.4.4
+// mv node_modules/photoswipe packages/new/photos/components/ps5
if (process.env.NEXT_PUBLIC_ENTE_WIP_PS5) {
console.warn("Using WIP upstream photoswipe");
@@ -9,8 +11,12 @@ if (process.env.NEXT_PUBLIC_ENTE_WIP_PS5) {
}
import { Button } from "@mui/material";
+// eslint-disable-next-line @typescript-eslint/ban-ts-comment
+// @ts-ignore
+import PhotoSwipeLightBox from "./ps5/dist/photoswipe-lightbox.esm.js";
const FileViewer: React.FC = () => {
+ console.log(PhotoSwipeLightBox);
return (
<div>
Hello<Button>Test</Button>