diff --git a/.gitignore b/.gitignore index a1a4d77..1162af3 100644 --- a/.gitignore +++ b/.gitignore @@ -33,3 +33,5 @@ pitch/ # OpenDeploy-only build with hardcoded public proxy URL — local, never commit # (a public fork would route image traffic through our Cloudflare Worker). Dockerfile.opendeploy + +piolium/ diff --git a/app/page.tsx b/app/page.tsx index 256b514..2fe8e1a 100644 --- a/app/page.tsx +++ b/app/page.tsx @@ -1666,7 +1666,7 @@ export default function HomePage() { > - setAuthModalOpen(true)} /> + diff --git a/app/play/page.tsx b/app/play/page.tsx index 1854890..45acb3e 100644 --- a/app/play/page.tsx +++ b/app/play/page.tsx @@ -2574,7 +2574,7 @@ function PlayInner() { · {String(beatCount).padStart(3, "0")} · 拍 - setAuthModalOpen(true)} /> + diff --git a/components/UserChip.tsx b/components/UserChip.tsx index a06b969..817b844 100644 --- a/components/UserChip.tsx +++ b/components/UserChip.tsx @@ -5,11 +5,7 @@ import { AUTH_ENABLED } from "@/lib/supabase/config"; import { createClient } from "@/lib/supabase/client"; import type { AuthChangeEvent, Session, User } from "@supabase/supabase-js"; -export function UserChip({ - onLoginClick, -}: { - onLoginClick: () => void; -}) { +export function UserChip() { const [user, setUser] = useState(null); const [menuOpen, setMenuOpen] = useState(false); @@ -32,20 +28,7 @@ export function UserChip({ setMenuOpen(false); }, []); - if (!AUTH_ENABLED) return null; - - if (!user) { - return ( - - ); - } + if (!AUTH_ENABLED || !user) return null; const label = user.user_metadata?.full_name ?? diff --git a/lib/ai-client/image.ts b/lib/ai-client/image.ts index c2cb1c5..1d4e5e2 100644 --- a/lib/ai-client/image.ts +++ b/lib/ai-client/image.ts @@ -329,7 +329,7 @@ async function generateImageRunware( CFGScale: 3.5, numberResults: 1, outputType: "URL", - outputFormat: "PNG", + outputFormat: "WEBP", includeCost: false, };