auto-save 2026-05-13 09:25 (~2)

This commit is contained in:
2026-05-13 09:26:08 +08:00
parent 0599cd8081
commit e1143a5f52
2 changed files with 798 additions and 809 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -1,7 +1,7 @@
"use client" "use client"
import { useEffect, useState } from "react" import { useEffect, useState } from "react"
import { createPortal } from "react-dom" import { createPortal } from "react-dom"
import { X, ChevronLeft, ChevronRight, Check, Sparkles, Wand2, Loader2, Eye, RefreshCw, Copy } from "lucide-react" import { X, ChevronLeft, ChevronRight, Check, Sparkles, Wand2, Loader2, Eye, RefreshCw } from "lucide-react"
import { frameUrl, describeFrame, type KeyFrame, type Job } from "@/lib/api" import { frameUrl, describeFrame, type KeyFrame, type Job } from "@/lib/api"
import { toast } from "sonner" import { toast } from "sonner"
@@ -63,10 +63,6 @@ export function FrameLightbox({ jobId, frames, activeIndex, selected, onClose, o
} }
} }
const copyText = (text: string) => {
navigator.clipboard.writeText(text).then(() => toast.success("已复制"))
}
const content = ( const content = (
<div <div
onClick={(e) => e.stopPropagation()} onClick={(e) => e.stopPropagation()}
@@ -212,20 +208,6 @@ export function FrameLightbox({ jobId, frames, activeIndex, selected, onClose, o
</div> </div>
</div> </div>
)} )}
{desc.suggested_prompt && (
<div className="rounded-md bg-emerald-500/10 border border-emerald-400/25 px-2.5 py-2">
<div className="flex items-center justify-between mb-1">
<div className="text-[9.5px] uppercase tracking-widest text-emerald-300"> Prompt</div>
<button
onClick={() => copyText(desc.suggested_prompt!)}
className="text-[9.5px] text-white/60 hover:text-white inline-flex items-center gap-0.5"
>
<Copy className="h-2.5 w-2.5" />
</button>
</div>
<div className="text-white text-[10.5px] font-mono leading-relaxed">{desc.suggested_prompt}</div>
</div>
)}
</div> </div>
)} )}
</section> </section>