The open creative studio on ComfyUI: images, video, 3D and audio on open weights, on your own GPU or the cloud. Camera motions, effects, apps, Cinema, Layers, Image to 3D and an AI agent.
TypeScript ai-videocomfyuicreative-toolsgenerative-aiideogramimage-generationimage-to-3dimage-to-videoltx-videominimax-h3nextjsopen-sourceopen-weightsqwen-imagetext-to-imagevideo-generationwan
Sharing: the public share page lives with its /s routes, so the studio keeps one <main>
Claude1897ae1751f2
diff --git a/src/app/s/[token]/not-found.tsx b/src/app/s/[token]/not-found.tsxindex a88aa61f..a72d5219 100644--- a/src/app/s/[token]/not-found.tsx+++ b/src/app/s/[token]/not-found.tsx@@ -1,4 +1,4 @@-import { ShareGone } from "@/components/share/share-page";+import { ShareGone } from "../share-page";export default function NotFound() {return <ShareGone />;diff --git a/src/app/s/[token]/page.tsx b/src/app/s/[token]/page.tsxindex 9b5479f9..53a081b1 100644--- a/src/app/s/[token]/page.tsx+++ b/src/app/s/[token]/page.tsx@@ -3,7 +3,7 @@ import { cookies } from "next/headers";import { notFound } from "next/navigation";import { connection } from "next/server";import { cache, Suspense } from "react";-import { SharePage, ShareSkeleton } from "@/components/share/share-page";+import { SharePage, ShareSkeleton } from "../share-page";import { authEnabled, SESSION_COOKIE, validSession } from "@/server/auth";import { findShare } from "@/server/share-access";import { buildPublicShare, recordView } from "@/server/shares";diff --git a/src/app/s/gone/page.tsx b/src/app/s/gone/page.tsxindex 5102c5b2..0661c773 100644--- a/src/app/s/gone/page.tsx+++ b/src/app/s/gone/page.tsx@@ -1,5 +1,5 @@import type { Metadata } from "next";-import { ShareGone } from "@/components/share/share-page";+import { ShareGone } from "../share-page";export const metadata: Metadata = { title: { absolute: "Link unavailable · Fuobe" }, robots: { index: false, follow: false }, referrer: "no-referrer" };diff --git a/src/components/share/share-page.tsx b/src/app/s/share-page.tsxsimilarity index 97%rename from src/components/share/share-page.tsxrename to src/app/s/share-page.tsxindex 09d09f97..3ee73334 100644--- a/src/components/share/share-page.tsx+++ b/src/app/s/share-page.tsx@@ -1,13 +1,14 @@import { Box, Download, EyeOff, FileText, Link2Off } from "lucide-react";import { orderForLayout, pieces, type PublicItem, type PublicMedia, type PublicShare } from "@/lib/share";import { cn } from "@/lib/utils";-import { Carousel, RecreateButton } from "./share-client";+import { Carousel, RecreateButton } from "@/components/share/share-client";/*** The public page of a share link (/s/<token>): what was shared, its title, model and — when the* owner shares prompts — each prompt with "Recreate in your Fuobe". Server-rendered from* PublicShare (src/server/shares.ts); every file URL is share-scoped. No app chrome, no links into- * the studio: a visitor has nothing else to open.+ * the studio: a visitor has nothing else to open. It lives with the /s routes, outside the studio+ * frame, so its <main> is the page's only one (the studio's is SidebarInset).*/export function SharePage({ share }: { share: PublicShare }) {const items = orderForLayout(share.items, share.layout, share.coverKey);diff --git a/tests/share-links.test.ts b/tests/share-links.test.tsindex 7029fbf0..2d2fb3be 100644--- a/tests/share-links.test.ts+++ b/tests/share-links.test.ts@@ -31,7 +31,7 @@ const { proxy } = await import("@/proxy");const fileRoute = await import("@/app/s/[token]/f/[...path]/route");const listRoute = await import("@/app/api/shares/route");const idRoute = await import("@/app/api/shares/[id]/route");-const { SharePage } = await import("@/components/share/share-page");+const { SharePage } = await import("@/app/s/share-page");afterAll(() => fs.rmSync(dir, { recursive: true, force: true }));afterEach(() => {