Skip to content

armgit / fuobe

Public Imported from GitHub
0

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.

Public sign-up: Sign out for accounts; the demo card only for the owner

Adarsh837c5af58a72
diff --git a/src/components/get-started.tsx b/src/components/get-started.tsx
index a24ccae3..3c50a0ec 100644
--- a/src/components/get-started.tsx
+++ b/src/components/get-started.tsx
@@ -171,6 +171,8 @@ export function GetStarted({
/>
</GuideCard>
)}
+ {/* The owner's demo: not in the first paint (a visitor of a public studio never sees it). */}
+ {status && !status.viewer && (
<GuideCard icon={Sparkles} title="Just try it" cost="Free: no keys, no GPU">
<p className="text-[13px] leading-relaxed text-muted-foreground">Click through every studio with clearly labelled placeholder results. You can connect a model later in Settings.</p>
<Button
@@ -184,6 +186,7 @@ export function GetStarted({
Try the demo
</Button>
</GuideCard>
+ )}
</div>
{intents && (
diff --git a/src/components/gpu/account-gpu-section.tsx b/src/components/gpu/account-gpu-section.tsx
index 363d535c..7eb0d3e8 100644
--- a/src/components/gpu/account-gpu-section.tsx
+++ b/src/components/gpu/account-gpu-section.tsx
@@ -1,9 +1,11 @@
"use client";
+import { LogOut } from "lucide-react";
import { YourGpu } from "@/components/gpu/your-gpu";
+import { Button } from "@/components/ui/button";
import { useViewer } from "@/lib/api";
-/** Settings for an account (public sign-up): "Your GPU", at the top of the page. Nothing for the owner or a guest. */
+/** Settings for an account (public sign-up): "Your GPU", at the top of the page, and signing out. Nothing for the owner or a guest. */
export function AccountGpuSection() {
const account = useViewer().data?.account;
if (!account) return null;
@@ -14,6 +16,17 @@ export function AccountGpuSection() {
Your GPU
</h2>
<p className="mt-1 text-[13px] text-muted-foreground">Signed in as {account.email}. Connect your own ComfyUI to run open-source models.</p>
+ <Button
+ size="sm"
+ variant="ghost"
+ className="mt-2 -ml-2 h-7 text-muted-foreground"
+ onClick={async () => {
+ await fetch("/api/auth/logout", { method: "POST" });
+ window.location.reload();
+ }}
+ >
+ <LogOut /> Sign out
+ </Button>
</div>
<YourGpu />
</section>