auto-save 2026-05-12 22:13 (~2)
This commit is contained in:
@@ -363,6 +363,13 @@
|
||||
"message": "auto-save 2026-05-12 22:01 (~1)",
|
||||
"hash": "1fc0ae9",
|
||||
"files_changed": 1
|
||||
},
|
||||
{
|
||||
"ts": "2026-05-12T22:07:48+08:00",
|
||||
"type": "commit",
|
||||
"message": "auto-save 2026-05-12 22:07 (~1)",
|
||||
"hash": "9591713",
|
||||
"files_changed": 1
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -200,13 +200,12 @@ export function InputNode({ data, selected }: NodeProps<{ data: NodeData }> | an
|
||||
selected={selected}
|
||||
hasTarget={false}
|
||||
>
|
||||
{/* 未下载:URL + 上传入口 */}
|
||||
{!hasVideo && (
|
||||
<>
|
||||
{/* URL + 上传入口 — 一直显示(即使已有视频,也可以继续加新的) */}
|
||||
<>
|
||||
<input
|
||||
value={url}
|
||||
onChange={(e) => setUrl(e.target.value)}
|
||||
placeholder="粘贴 TikTok 链接"
|
||||
placeholder={hasVideo ? "再加一个 TK 链接" : "粘贴 TikTok 链接"}
|
||||
disabled={inputLocked}
|
||||
className="w-full text-[12px] px-2.5 py-2 rounded-md bg-white/60 dark:bg-black/40 border border-black/10 dark:border-white/10 outline-none text-[var(--text-strong)] placeholder:text-[var(--text-faint)] focus:ring-2 focus:ring-[var(--ring)] disabled:opacity-40"
|
||||
/>
|
||||
@@ -214,11 +213,11 @@ export function InputNode({ data, selected }: NodeProps<{ data: NodeData }> | an
|
||||
<button
|
||||
type="button"
|
||||
disabled={inputLocked || !url.trim()}
|
||||
onClick={() => d.onSubmitUrl(url.trim())}
|
||||
onClick={() => { d.onSubmitUrl(url.trim()); setUrl("") }}
|
||||
className="flex-1 text-[11.5px] py-1.5 rounded-md bg-black text-white dark:bg-white dark:text-black hover:opacity-90 disabled:opacity-30 disabled:cursor-not-allowed flex items-center justify-center gap-1"
|
||||
>
|
||||
{(d.submitting || isDownloading) ? <Loader2 className="h-3 w-3 animate-spin" /> : null}
|
||||
{isDownloading ? "下载中…" : "提交链接"}
|
||||
{isDownloading ? "下载中…" : hasVideo ? "+ 加链接" : "提交链接"}
|
||||
</button>
|
||||
<button
|
||||
type="button"
|
||||
@@ -226,7 +225,7 @@ export function InputNode({ data, selected }: NodeProps<{ data: NodeData }> | an
|
||||
onClick={() => fileRef.current?.click()}
|
||||
className="text-[11.5px] px-2.5 py-1.5 rounded-md bg-white/60 dark:bg-white/[0.06] border border-black/10 dark:border-white/15 hover:bg-white/80 dark:hover:bg-white/[0.12] inline-flex items-center gap-1 disabled:opacity-30"
|
||||
>
|
||||
<Upload className="h-3 w-3" /> 上传
|
||||
<Upload className="h-3 w-3" /> {hasVideo ? "再传一个" : "上传"}
|
||||
</button>
|
||||
<input
|
||||
ref={fileRef}
|
||||
@@ -241,7 +240,6 @@ export function InputNode({ data, selected }: NodeProps<{ data: NodeData }> | an
|
||||
/>
|
||||
</div>
|
||||
</>
|
||||
)}
|
||||
|
||||
{/* 已下载:仅元数据(视频缩略图浮在节点上方,点击进 lightbox) */}
|
||||
{hasVideo && job && (
|
||||
|
||||
Reference in New Issue
Block a user