feat: standalone image/video studio windows + generation tasks page (HEL-612)
- /image and /video pages (a3/a4): three-column layout — params (connection, workflow, upload slots driven by declared inputs, prompt/negative/seed/ size/duration fields, dynamic params), current-task card with live SSE progress + cancel, result grid with zoom/send-to-img2img/download, video player with custom amber controls + first/last-frame strip, right history with retry/delete and failure reasons - /tasks page: both task classes summarized with source labels (独立生图/独立生视频/Playground/创作流程), filters, retry/cancel/delete - nav: 生图/生视频/生成任务 real pages with active-jobs badge (进行数徽章) - playground generate accepts source (studio-image/studio-video) for origin labeling; api.ts types follow - parseDbTs helper: UTC-naive backend timestamps parse as UTC so elapsed/ ETA/duration math is offset-correct - backend tests: full-chain fake-ComfyUI server — image chain, video chain with frame uploads, retry-after-failure, delete-removes-outputs, tasks listing; i18n zh/en/es/fr/de/ja/ko complete Co-authored-by: multica-agent <github@multica.ai>
This commit is contained in:
co-authored by
multica-agent
parent
1cf9188955
commit
df84c22143
@@ -450,7 +450,14 @@ export interface PlaygroundUploadListItem {
|
||||
export const playgroundApi = {
|
||||
project: () => api<Project>('/api/playground/project'),
|
||||
jobs: () => api<Job[]>('/api/playground/jobs'),
|
||||
generate: (payload: { workflow_id: number; input_values?: Record<string, unknown> }) =>
|
||||
generate: (payload: {
|
||||
workflow_id: number;
|
||||
input_values?: Record<string, unknown>;
|
||||
/** Target connection; omitted → workflow binding → active (backend). */
|
||||
endpoint_id?: string | null;
|
||||
/** Origin recorded on the job payload (tasks page labels). */
|
||||
source?: 'playground' | 'studio-image' | 'studio-video';
|
||||
}) =>
|
||||
api<{ ok: boolean; job: Job }>('/api/playground/generate', {
|
||||
method: 'POST',
|
||||
body: JSON.stringify(payload),
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
import LanguageSwitcher from '$lib/components/LanguageSwitcher.svelte';
|
||||
import Icon from '$lib/components/ui/Icon.svelte';
|
||||
import type { IconName } from '$lib/components/ui/icons';
|
||||
import { settings } from '$lib/api';
|
||||
import { settings, jobsApi } from '$lib/api';
|
||||
import { t } from '$lib/i18n.svelte';
|
||||
|
||||
/**
|
||||
@@ -39,9 +39,9 @@
|
||||
const NAV: NavItem[] = [
|
||||
{ id: 'projects', labelKey: 'shell.navProjects', icon: 'home', href: '/' },
|
||||
{ id: 'workbench', labelKey: 'shell.navWorkbench', icon: 'story', href: '/canvas' },
|
||||
{ id: 'image', labelKey: 'shell.navImage', icon: 'image', wip: true },
|
||||
{ id: 'video', labelKey: 'shell.navVideo', icon: 'film', wip: true },
|
||||
{ id: 'tasks', labelKey: 'shell.navTasks', icon: 'queue', wip: true },
|
||||
{ id: 'image', labelKey: 'shell.navImage', icon: 'image', href: '/image' },
|
||||
{ id: 'video', labelKey: 'shell.navVideo', icon: 'film', href: '/video' },
|
||||
{ id: 'tasks', labelKey: 'shell.navTasks', icon: 'queue', href: '/tasks' },
|
||||
{ id: 'agents', labelKey: 'shell.navAgents', icon: 'sparkle', href: '/agents' },
|
||||
{ id: 'connections', labelKey: 'shell.navConnections', icon: 'link', href: '/connections' },
|
||||
{ id: 'models', labelKey: 'shell.navModels', icon: 'assets', href: '/models' },
|
||||
@@ -67,6 +67,20 @@
|
||||
staleTime: 60_000,
|
||||
});
|
||||
|
||||
// 生成任务 badge: how many jobs are queued or running right now
|
||||
// (spec §3 — 进行数徽章). Polled lightly; SSE-driven pages keep
|
||||
// their own faster cadence.
|
||||
const activeJobsQuery = createQuery({
|
||||
queryKey: ['jobs', 'active-count'],
|
||||
queryFn: () => jobsApi.list(),
|
||||
refetchInterval: 8_000,
|
||||
staleTime: 5_000,
|
||||
});
|
||||
const activeJobs = $derived(
|
||||
($activeJobsQuery.data ?? []).filter((j) => j.status === 'pending' || j.status === 'running')
|
||||
.length,
|
||||
);
|
||||
|
||||
// The ACTIVE ComfyUI connection from settings (HEL-611). The dot stays
|
||||
// neutral — a passing test is only claimed on the connections page,
|
||||
// where it comes from a real server-side probe.
|
||||
@@ -115,9 +129,12 @@
|
||||
href={item.href}
|
||||
aria-current={active === item.id ? 'page' : undefined}
|
||||
>
|
||||
<span class="nav-icon"><Icon name={item.icon} size={17} /></span>
|
||||
<span class="nav-label">{t(item.labelKey)}</span>
|
||||
</a>
|
||||
<span class="nav-icon"><Icon name={item.icon} size={17} /></span>
|
||||
<span class="nav-label">{t(item.labelKey)}</span>
|
||||
{#if item.id === 'tasks' && activeJobs > 0}
|
||||
<span class="nav-badge">{activeJobs}</span>
|
||||
{/if}
|
||||
</a>
|
||||
{:else}
|
||||
<span class="nav-item disabled" title={t('shell.wipHint')} aria-disabled="true">
|
||||
<span class="nav-icon"><Icon name={item.icon} size={17} /></span>
|
||||
@@ -275,6 +292,21 @@
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
/* 进行数徽章 (spec §3): accent-dim capsule with amber count */
|
||||
.nav-badge {
|
||||
margin-left: auto;
|
||||
min-width: 20px;
|
||||
padding: 1px 7px;
|
||||
border-radius: 999px;
|
||||
background: var(--accent-dim);
|
||||
color: var(--accent);
|
||||
font-size: 10.5px;
|
||||
font-weight: 600;
|
||||
font-variant-numeric: tabular-nums;
|
||||
text-align: center;
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
.side-foot {
|
||||
margin-top: auto;
|
||||
display: flex;
|
||||
@@ -410,6 +442,23 @@
|
||||
.wip-pill {
|
||||
display: none;
|
||||
}
|
||||
/* icon-only rail: the tasks badge collapses to a small amber dot */
|
||||
.nav-item {
|
||||
position: relative;
|
||||
}
|
||||
.nav-badge {
|
||||
position: absolute;
|
||||
top: 3px;
|
||||
right: 5px;
|
||||
min-width: 6px;
|
||||
width: 6px;
|
||||
height: 6px;
|
||||
padding: 0;
|
||||
border-radius: 50%;
|
||||
background: var(--accent);
|
||||
font-size: 0;
|
||||
line-height: 0;
|
||||
}
|
||||
/* icon-only rail: a small dot marks unbuilt entries */
|
||||
.nav-item.disabled .nav-icon {
|
||||
position: relative;
|
||||
|
||||
@@ -0,0 +1,345 @@
|
||||
<script lang="ts">
|
||||
import Icon from '$lib/components/ui/Icon.svelte';
|
||||
import Spinner from '$lib/components/ui/Spinner.svelte';
|
||||
import { assetUrl } from '$lib/api';
|
||||
import { t } from '$lib/i18n.svelte';
|
||||
|
||||
/**
|
||||
* A-style media upload slot (spec-v2 §5 上传槽): empty = 1.5px dashed
|
||||
* border + "click or drop", drag-hover = amber dashed, filled = solid
|
||||
* border + thumbnail + mono name + ✕, error = red border + red reason.
|
||||
*/
|
||||
interface Props {
|
||||
label: string;
|
||||
/** Extra hint under the label, e.g. 可从生图结果送入. */
|
||||
hint?: string;
|
||||
/** Current value: a server-side path ('' = empty). */
|
||||
value: string;
|
||||
kind: 'image' | 'video' | 'audio';
|
||||
/** Thumb aspect: wide = 16:9 (first/last frame slots). */
|
||||
aspect?: 'square' | 'wide';
|
||||
uploading?: boolean;
|
||||
uploadName?: string;
|
||||
error?: string;
|
||||
/** Show the "pick from image results" link (video-page image slots). */
|
||||
allowFromResults?: boolean;
|
||||
onFile: (file: File) => void;
|
||||
onFromResults?: () => void;
|
||||
onClear: () => void;
|
||||
}
|
||||
|
||||
let {
|
||||
label,
|
||||
hint,
|
||||
value,
|
||||
kind,
|
||||
aspect = 'square',
|
||||
uploading = false,
|
||||
uploadName,
|
||||
error,
|
||||
allowFromResults = false,
|
||||
onFile,
|
||||
onFromResults,
|
||||
onClear,
|
||||
}: Props = $props();
|
||||
|
||||
let fileInput = $state<HTMLInputElement | null>(null);
|
||||
let dragDepth = $state(0);
|
||||
let broken = $state(false);
|
||||
$effect(() => {
|
||||
void value;
|
||||
broken = false;
|
||||
});
|
||||
|
||||
function accept(): string {
|
||||
if (kind === 'video') return 'video/*,.mp4,.webm,.mov,.mkv';
|
||||
if (kind === 'audio') return 'audio/*';
|
||||
return 'image/*';
|
||||
}
|
||||
|
||||
function baseName(p: string): string {
|
||||
const raw = p.split(/[/\\]/).pop() ?? p;
|
||||
// strip uuid8- prefix the upload endpoint writes
|
||||
return /^[0-9a-f]{8}-/.test(raw) ? raw.slice(9) : raw;
|
||||
}
|
||||
|
||||
function pick() {
|
||||
if (uploading || !fileInput) return;
|
||||
fileInput.value = '';
|
||||
fileInput.click();
|
||||
}
|
||||
|
||||
function onDrop(e: DragEvent) {
|
||||
e.preventDefault();
|
||||
dragDepth = 0;
|
||||
if (uploading) return;
|
||||
const file = e.dataTransfer?.files?.[0];
|
||||
if (file) onFile(file);
|
||||
}
|
||||
</script>
|
||||
|
||||
<div class="media-slot" class:wide={aspect === 'wide'}>
|
||||
<div class="slot-label">
|
||||
<span class="lbl">{label}</span>
|
||||
{#if hint}<span class="slot-hint">{hint}</span>{/if}
|
||||
</div>
|
||||
|
||||
<input
|
||||
bind:this={fileInput}
|
||||
type="file"
|
||||
class="sr-file"
|
||||
tabindex="-1"
|
||||
aria-hidden="true"
|
||||
accept={accept()}
|
||||
onchange={(e) => {
|
||||
const f = e.currentTarget.files?.[0];
|
||||
if (f) onFile(f);
|
||||
}}
|
||||
/>
|
||||
|
||||
{#if value && !broken}
|
||||
<div class="slot-filled" class:invalid={!!error}>
|
||||
<div class="slot-thumb">
|
||||
{#if kind === 'image'}
|
||||
<img src={assetUrl(value)} alt={label} onerror={() => (broken = true)} />
|
||||
{:else if kind === 'video'}
|
||||
<video src={assetUrl(value)} preload="metadata" muted></video>
|
||||
<span class="kind-badge" aria-hidden="true"><Icon name="film" size={12} /></span>
|
||||
{:else}
|
||||
<span class="kind-badge" aria-hidden="true"><Icon name="music" size={12} /></span>
|
||||
{/if}
|
||||
</div>
|
||||
<div class="slot-meta">
|
||||
<span class="mono name" title={baseName(value)}>{baseName(value)}</span>
|
||||
<div class="slot-actions">
|
||||
{#if allowFromResults && onFromResults}
|
||||
<button type="button" class="mini-link" onclick={onFromResults}>
|
||||
{t('studio.slotFromResults')}
|
||||
</button>
|
||||
{/if}
|
||||
<button
|
||||
type="button"
|
||||
class="slot-clear"
|
||||
aria-label={t('studio.deleteBtn')}
|
||||
onclick={onClear}
|
||||
>
|
||||
<Icon name="close" size={13} />
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{:else}
|
||||
<button
|
||||
type="button"
|
||||
class="slot-empty"
|
||||
class:drag={dragDepth > 0}
|
||||
class:invalid={!!error}
|
||||
class:wide={aspect === 'wide'}
|
||||
disabled={uploading}
|
||||
aria-busy={uploading || undefined}
|
||||
onclick={pick}
|
||||
ondragenter={(e) => {
|
||||
e.preventDefault();
|
||||
dragDepth += 1;
|
||||
}}
|
||||
ondragleave={() => (dragDepth = Math.max(0, dragDepth - 1))}
|
||||
ondragover={(e) => e.preventDefault()}
|
||||
ondrop={onDrop}
|
||||
>
|
||||
{#if uploading}
|
||||
<Spinner size="sm" />
|
||||
<span class="pick-text">{uploadName ?? t('studio.slotPick')}</span>
|
||||
{:else}
|
||||
<Icon name={kind === 'video' ? 'film' : kind === 'audio' ? 'music' : 'image'} size={16} />
|
||||
<span class="pick-text">{t('studio.slotPick')}</span>
|
||||
{/if}
|
||||
</button>
|
||||
{#if allowFromResults && onFromResults}
|
||||
<button type="button" class="from-results-link" onclick={onFromResults}>
|
||||
{t('studio.slotFromResults')}
|
||||
</button>
|
||||
{/if}
|
||||
{/if}
|
||||
{#if error}<span class="slot-error" role="alert">{error}</span>{/if}
|
||||
</div>
|
||||
|
||||
<style>
|
||||
.media-slot {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 5px;
|
||||
min-width: 0;
|
||||
}
|
||||
.slot-label {
|
||||
display: flex;
|
||||
align-items: baseline;
|
||||
justify-content: space-between;
|
||||
gap: 8px;
|
||||
}
|
||||
.lbl {
|
||||
font-size: 12px;
|
||||
font-weight: 600;
|
||||
color: var(--text-2);
|
||||
}
|
||||
.slot-hint {
|
||||
font-size: 10.5px;
|
||||
color: var(--text-3);
|
||||
white-space: nowrap;
|
||||
}
|
||||
.sr-file {
|
||||
position: absolute;
|
||||
width: 1px;
|
||||
height: 1px;
|
||||
overflow: hidden;
|
||||
clip: rect(0 0 0 0);
|
||||
white-space: nowrap;
|
||||
border: 0;
|
||||
}
|
||||
.slot-empty {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 6px;
|
||||
min-height: 86px;
|
||||
border: 1.5px dashed var(--border-strong);
|
||||
border-radius: 8px;
|
||||
background: var(--surface-2);
|
||||
color: var(--text-3);
|
||||
font-family: inherit;
|
||||
font-size: 11.5px;
|
||||
cursor: pointer;
|
||||
transition:
|
||||
border-color 150ms,
|
||||
color 150ms;
|
||||
}
|
||||
.media-slot.wide .slot-empty {
|
||||
aspect-ratio: 16 / 9;
|
||||
min-height: 0;
|
||||
width: 100%;
|
||||
}
|
||||
.slot-empty:hover:not(:disabled) {
|
||||
color: var(--text-2);
|
||||
border-color: rgba(255, 255, 255, 0.28);
|
||||
}
|
||||
.slot-empty.drag {
|
||||
border-color: var(--accent);
|
||||
color: var(--accent);
|
||||
}
|
||||
.slot-empty.invalid {
|
||||
border-color: rgba(229, 72, 77, 0.65);
|
||||
}
|
||||
.slot-empty:disabled {
|
||||
cursor: default;
|
||||
opacity: 0.7;
|
||||
}
|
||||
.pick-text {
|
||||
font-size: 11px;
|
||||
}
|
||||
.from-results-link {
|
||||
align-self: flex-end;
|
||||
background: none;
|
||||
border: none;
|
||||
padding: 0;
|
||||
font-family: inherit;
|
||||
font-size: 11px;
|
||||
color: var(--accent);
|
||||
cursor: pointer;
|
||||
}
|
||||
.from-results-link:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
.slot-filled {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 6px;
|
||||
border: 1px solid var(--border-strong);
|
||||
border-radius: 8px;
|
||||
background: var(--surface-2);
|
||||
padding: 8px;
|
||||
}
|
||||
.slot-filled.invalid {
|
||||
border-color: rgba(229, 72, 77, 0.65);
|
||||
}
|
||||
.slot-thumb {
|
||||
border-radius: 7px;
|
||||
overflow: hidden;
|
||||
background: var(--bg);
|
||||
border: 1px solid var(--border);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
position: relative;
|
||||
}
|
||||
.slot-thumb img,
|
||||
.slot-thumb video {
|
||||
display: block;
|
||||
width: 100%;
|
||||
max-height: 140px;
|
||||
object-fit: cover;
|
||||
}
|
||||
.media-slot.wide .slot-thumb {
|
||||
aspect-ratio: 16 / 9;
|
||||
}
|
||||
.media-slot.wide .slot-thumb img,
|
||||
.media-slot.wide .slot-thumb video {
|
||||
max-height: none;
|
||||
height: 100%;
|
||||
}
|
||||
.slot-thumb .kind-badge {
|
||||
color: var(--text-3);
|
||||
}
|
||||
.slot-meta {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
min-width: 0;
|
||||
}
|
||||
.name {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
font-size: 10.5px;
|
||||
color: var(--text-3);
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
.slot-actions {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
.mini-link {
|
||||
background: none;
|
||||
border: none;
|
||||
padding: 0;
|
||||
font-family: inherit;
|
||||
font-size: 10.5px;
|
||||
color: var(--accent);
|
||||
cursor: pointer;
|
||||
}
|
||||
.mini-link:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
.slot-clear {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 22px;
|
||||
height: 22px;
|
||||
border: none;
|
||||
border-radius: 6px;
|
||||
background: transparent;
|
||||
color: var(--text-3);
|
||||
cursor: pointer;
|
||||
}
|
||||
.slot-clear:hover {
|
||||
color: var(--error);
|
||||
background: var(--error-dim);
|
||||
}
|
||||
.slot-error {
|
||||
font-size: 11.5px;
|
||||
color: var(--error);
|
||||
}
|
||||
</style>
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,12 @@
|
||||
/**
|
||||
* Backend timestamps are SQLite UTC-naive strings ("2026-09-28 01:44:28").
|
||||
* `Date.parse` treats those as LOCAL time, shifting every elapsed/duration
|
||||
* computation by the local UTC offset. Parse them as UTC instead; strings
|
||||
* that already carry a timezone marker pass through unchanged.
|
||||
*/
|
||||
export function parseDbTs(raw: string | null | undefined): number {
|
||||
if (!raw) return NaN;
|
||||
const s = raw.trim();
|
||||
if (/[zZ]$|[+-]\d{2}:?\d{2}$/.test(s)) return Date.parse(s);
|
||||
return Date.parse(s.endsWith('Z') ? s : `${s.replace(' ', 'T')}Z`);
|
||||
}
|
||||
@@ -1365,4 +1365,129 @@ export const de: Dict = {
|
||||
'conn.wfDeleted': 'Workflow gelöscht',
|
||||
'conn.missingMaterial': 'Ein dediziertes Qwen Image 2.1-Workflow-JSON fehlt noch im Repo: aus ComfyUI exportieren und hier importieren — der generische Importweg steht bereit.',
|
||||
|
||||
// --- Eigenständige Bild-/Videogenerierung (a3/a4, HEL-612) ---
|
||||
'studio.image.title': 'Bild',
|
||||
'studio.image.subtitle': 'Bilder mit importierten Workflows erzeugen · Verbindungen & Warteschlange gemeinsam mit ComfyUI-Verbindungen',
|
||||
'studio.video.title': 'Video',
|
||||
'studio.video.subtitle': 'Videos mit importierten Workflows erzeugen · Verbindungen & Warteschlange gemeinsam mit ComfyUI-Verbindungen',
|
||||
'studio.kindImageText': 'Bild',
|
||||
'studio.kindVideoText': 'Video',
|
||||
'studio.loading': 'Lädt…',
|
||||
'studio.connLabel': 'Verbindung',
|
||||
'studio.connQueue': 'Warteschlange {n}',
|
||||
'studio.connUntested': 'Ungetestet',
|
||||
'studio.connOk': 'Letzter Test OK · {ms} ms',
|
||||
'studio.connFail': 'Letzter Test fehlgeschlagen',
|
||||
'studio.connManage': 'Verbindungen verwalten',
|
||||
'studio.wfLabel': 'Workflow',
|
||||
'studio.wfParams': '{n} ausfüllbare Parameter',
|
||||
'studio.wfBindTo': 'Gebunden an {name}',
|
||||
'studio.wfFollowActive': 'Folgt der Standardverbindung',
|
||||
'studio.promptLabel': 'Positiver Prompt',
|
||||
'studio.promptPh': 'Bild beschreiben: Motiv, Umgebung, Licht, Stil…',
|
||||
'studio.negLabel': 'Negativer Prompt',
|
||||
'studio.seedLabel': 'Seed',
|
||||
'studio.sizeLabel': 'Größe',
|
||||
'studio.batchLabel': 'Stapel',
|
||||
'studio.durationLabel': 'Dauer (s)',
|
||||
'studio.fpsLabel': 'Bildrate',
|
||||
'studio.stepsLabel': 'Schritte',
|
||||
'studio.cfgLabel': 'CFG',
|
||||
'studio.paramsTitle': 'Workflow-Parameter',
|
||||
'studio.chars': '{n} Zeichen',
|
||||
'studio.insertStyle': 'Stilwörter einfügen',
|
||||
'studio.styleSoon': 'Die Skill-Bibliothek kommt mit dem Agenten-Feature',
|
||||
'studio.generateN': 'Generieren · {n} Bilder',
|
||||
'studio.generate': 'Generieren',
|
||||
'studio.submitting': 'Übermitteln…',
|
||||
'studio.etaHint': 'Die tatsächliche Zeit hängt von Zielverbindung und Workflow ab',
|
||||
'studio.errNoConn': 'Zuerst eine Generierungsverbindung wählen',
|
||||
'studio.errConnDown': 'Diese Verbindung ist nicht verfügbar (letzter Test fehlgeschlagen um {time}); wechseln oder unter ComfyUI-Verbindungen reparieren',
|
||||
'studio.errPrompt': 'Bitte den Prompt ausfüllen',
|
||||
'studio.errPromptLong': 'Prompt überschreitet 2000 Zeichen — bitte kürzen',
|
||||
'studio.errRefImage': 'Bild-zu-Bild braucht ein Referenzbild',
|
||||
'studio.errFirstLast': 'Erster/letzter Frame braucht beide Frames',
|
||||
'studio.errUpload': 'Bitte {label} hochladen',
|
||||
'studio.errFill': 'Bitte {label} ausfüllen',
|
||||
'studio.slotRef': 'Referenzbild',
|
||||
'studio.slotRefN': 'Referenz {n}',
|
||||
'studio.slotMask': 'Maske',
|
||||
'studio.slotFirst': 'Erster Frame',
|
||||
'studio.slotLast': 'Letzter Frame',
|
||||
'studio.slotRefVideo': 'Referenzvideo',
|
||||
'studio.slotAudio': 'Referenzaudio',
|
||||
'studio.slotPick': 'Klicken oder Datei ziehen',
|
||||
'studio.slotFromResults': 'Aus Bildergebnissen wählen',
|
||||
'studio.taskCurrent': 'Aktuelle Aufgabe',
|
||||
'studio.taskQueued': 'In Warteschlange',
|
||||
'studio.taskRunning': 'Generiert',
|
||||
'studio.taskCancel': 'Aufgabe abbrechen',
|
||||
'studio.queuedBehind': '{n} Aufgabe(n) davor',
|
||||
'studio.stepsShort': 'Schritte {v}',
|
||||
'studio.usedShort': 'Verstrichen {v}',
|
||||
'studio.etaShort': 'Restzeit {v}',
|
||||
'studio.targetShort': 'Ziel {name}',
|
||||
'studio.renderFrames': 'Frame {done}/{total}',
|
||||
'studio.noActiveTask': 'Keine aktive Aufgabe · links Parameter setzen und Generieren drücken',
|
||||
'studio.resultsTitle': 'Neueste Ergebnisse',
|
||||
'studio.selectHint': 'Ausgewählt',
|
||||
'studio.sendToImg2Img': 'Zu img2img senden',
|
||||
'studio.zoom': 'Vergrößern',
|
||||
'studio.download': 'Herunterladen',
|
||||
'studio.downloadMp4': 'MP4 herunterladen',
|
||||
'studio.copyPrompt': 'Prompt kopieren',
|
||||
'studio.copiedToast': 'Kopiert — in Bild-/Videogenerierung einfügen',
|
||||
'studio.sentToImg2ImgToast': 'Als Referenzbild eingetragen — Parameter prüfen und generieren',
|
||||
'studio.noImg2ImgWf': 'Noch kein Bild-Workflow mit Referenzbild-Eingabe — zuerst einen img2img-Workflow in ComfyUI-Verbindungen importieren',
|
||||
'studio.videoRefStrip': 'Referenz erster / letzter Frame',
|
||||
'studio.historyTitle': 'Verlauf',
|
||||
'studio.historyEmptyImage': 'Noch keine Bildgenerierungen — links Parameter setzen und Generieren drücken',
|
||||
'studio.historyEmptyVideo': 'Noch keine Videogenerierungen — links Parameter setzen und Generieren drücken',
|
||||
'studio.jobName': 'Aufgabe #{id}',
|
||||
'studio.retryLink': 'Erneut versuchen',
|
||||
'studio.retryQueuedToast': 'Aufgabe wieder eingereiht',
|
||||
'studio.retryFailedToast': 'Erneut Einreihen fehlgeschlagen: {detail}',
|
||||
'studio.cancelToast': 'Abbruch angefordert',
|
||||
'studio.deleteBtn': 'Löschen',
|
||||
'studio.delTitle': 'Aufgabeneintrag löschen',
|
||||
'studio.delConfirm': 'Die Ergebnisdateien werden mitgelöscht. Löschen?',
|
||||
'studio.wfEmptyTitle': 'Noch keine {kind}-Workflows',
|
||||
'studio.wfEmptyBody': 'Entwicklermodus in ComfyUI aktivieren, Workflow als API-JSON exportieren und auf der Seite ComfyUI-Verbindungen als {kind} importieren.',
|
||||
'studio.wfEmptyGo': 'In ComfyUI-Verbindungen importieren',
|
||||
'studio.missingQwen': 'Dedizierte Qwen-Image-2.1-JSONs (t2i / img2img / Maske) fehlen noch — der generische Importweg steht bereit; aus ComfyUI exportieren und importieren.',
|
||||
'studio.missingFirstLast': 'Das dedizierte MiniMax-H3-JSON für ersten/letzten Frame fehlt noch — die mitgelieferten t2v-/r2v-Beispiele können inzwischen importiert werden.',
|
||||
'studio.pickerTitle': 'Bildergebnis wählen',
|
||||
'studio.pickerEmpty': 'Noch keine Bildergebnisse verfügbar',
|
||||
'studio.pickerPick': 'Verwenden',
|
||||
'studio.uploadFailedToast': 'Upload fehlgeschlagen: {detail}',
|
||||
'studio.playAria': 'Wiedergabe',
|
||||
'studio.pauseAria': 'Pause',
|
||||
'studio.fullscreenAria': 'Vollbild',
|
||||
|
||||
// --- Generierungsaufgaben-Seite (HEL-612) ---
|
||||
'tasks.title': 'Generierungsaufgaben',
|
||||
'tasks.subtitle': 'Alle Bild-/Videoaufgaben — eigenständige Fenster und Kreativfluss',
|
||||
'tasks.filterAll': 'Alle',
|
||||
'tasks.filterImage': 'Bilder',
|
||||
'tasks.filterVideo': 'Videos',
|
||||
'tasks.count': '{n} Aufgaben · {m} aktiv',
|
||||
'tasks.empty': 'Noch keine Aufgaben. Reiche die erste in Bild oder Video ein.',
|
||||
'tasks.goGenerate': 'Bild öffnen',
|
||||
'tasks.sourceStudioImage': 'Eigenständiges Bild',
|
||||
'tasks.sourceStudioVideo': 'Eigenständiges Video',
|
||||
'tasks.sourcePlayground': 'Playground',
|
||||
'tasks.sourceFlow': 'Kreativfluss',
|
||||
'tasks.sourceOther': 'Generierung',
|
||||
'tasks.queued': 'Warteschlange',
|
||||
'tasks.running': 'Läuft',
|
||||
'tasks.done': 'Fertig',
|
||||
'tasks.failed': 'Fehlgeschlagen',
|
||||
'tasks.retry': 'Erneut',
|
||||
'tasks.cancel': 'Abbrechen',
|
||||
'tasks.delete': 'Löschen',
|
||||
'tasks.delTitle': 'Aufgabe löschen',
|
||||
'tasks.delConfirm': 'Die Ergebnisdateien werden mitgelöscht. Löschen?',
|
||||
'tasks.outputs': '{n} Ergebnisse',
|
||||
|
||||
|
||||
};
|
||||
|
||||
@@ -1364,6 +1364,131 @@ export const en = {
|
||||
'conn.wfJsonPh': 'Paste the ComfyUI API-format JSON here, or pick a file',
|
||||
'conn.wfDeleted': 'Workflow deleted',
|
||||
'conn.missingMaterial': 'A dedicated Qwen Image 2.1 workflow JSON is not in the repo yet: export it from ComfyUI and import it here — the generic import path is ready.',
|
||||
// --- Standalone image / video generation (a3/a4, HEL-612) ---
|
||||
'studio.image.title': 'Image',
|
||||
'studio.image.subtitle': 'Generate images with imported workflows · shares connections & queue with ComfyUI Connections',
|
||||
'studio.video.title': 'Video',
|
||||
'studio.video.subtitle': 'Generate videos with imported workflows · shares connections & queue with ComfyUI Connections',
|
||||
'studio.kindImageText': 'image',
|
||||
'studio.kindVideoText': 'video',
|
||||
'studio.loading': 'Loading…',
|
||||
'studio.connLabel': 'Connection',
|
||||
'studio.connQueue': 'Queue {n}',
|
||||
'studio.connUntested': 'Untested',
|
||||
'studio.connOk': 'Last test passed · {ms} ms',
|
||||
'studio.connFail': 'Last test failed',
|
||||
'studio.connManage': 'Manage connections',
|
||||
'studio.wfLabel': 'Workflow',
|
||||
'studio.wfParams': '{n} fillable params',
|
||||
'studio.wfBindTo': 'Bound to {name}',
|
||||
'studio.wfFollowActive': 'Follows the default connection',
|
||||
'studio.promptLabel': 'Positive prompt',
|
||||
'studio.promptPh': 'Describe the shot: subject, setting, light, style…',
|
||||
'studio.negLabel': 'Negative prompt',
|
||||
'studio.seedLabel': 'Seed',
|
||||
'studio.sizeLabel': 'Size',
|
||||
'studio.batchLabel': 'Batch',
|
||||
'studio.durationLabel': 'Duration (s)',
|
||||
'studio.fpsLabel': 'Frame rate',
|
||||
'studio.stepsLabel': 'Steps',
|
||||
'studio.cfgLabel': 'CFG',
|
||||
'studio.paramsTitle': 'Workflow params',
|
||||
'studio.chars': '{n} chars',
|
||||
'studio.insertStyle': 'Insert style words',
|
||||
'studio.styleSoon': 'Skill word library arrives with the Agents feature',
|
||||
'studio.generateN': 'Generate · {n} images',
|
||||
'studio.generate': 'Generate',
|
||||
'studio.submitting': 'Submitting…',
|
||||
'studio.etaHint': 'Actual time depends on the target connection and workflow',
|
||||
'studio.errNoConn': 'Select a generation connection first',
|
||||
'studio.errConnDown': "This connection is unavailable (last test failed at {time}) — switch to another or fix it in ComfyUI Connections",
|
||||
'studio.errPrompt': 'Please fill in the prompt',
|
||||
'studio.errPromptLong': 'Prompt exceeds 2000 characters — please trim it',
|
||||
'studio.errRefImage': 'Image-to-image needs a reference image',
|
||||
'studio.errFirstLast': 'First/last-frame video needs both the first and the last frame',
|
||||
'studio.errUpload': 'Please upload {label}',
|
||||
'studio.errFill': 'Please fill in {label}',
|
||||
'studio.slotRef': 'Reference image',
|
||||
'studio.slotRefN': 'Reference {n}',
|
||||
'studio.slotMask': 'Mask',
|
||||
'studio.slotFirst': 'First frame',
|
||||
'studio.slotLast': 'Last frame',
|
||||
'studio.slotRefVideo': 'Reference video',
|
||||
'studio.slotAudio': 'Reference audio',
|
||||
'studio.slotPick': 'Click or drop a file',
|
||||
'studio.slotFromResults': 'Pick from image results',
|
||||
'studio.taskCurrent': 'Current task',
|
||||
'studio.taskQueued': 'Queued',
|
||||
'studio.taskRunning': 'Generating',
|
||||
'studio.taskCancel': 'Cancel task',
|
||||
'studio.queuedBehind': '{n} task(s) ahead',
|
||||
'studio.stepsShort': 'Steps {v}',
|
||||
'studio.usedShort': 'Elapsed {v}',
|
||||
'studio.etaShort': 'ETA {v}',
|
||||
'studio.targetShort': 'Target {name}',
|
||||
'studio.renderFrames': 'Frame {done}/{total}',
|
||||
'studio.noActiveTask': 'No active task · set the parameters on the left and press Generate',
|
||||
'studio.resultsTitle': 'Recent results',
|
||||
'studio.selectHint': 'Selected',
|
||||
'studio.sendToImg2Img': 'Send to img2img',
|
||||
'studio.zoom': 'Zoom',
|
||||
'studio.download': 'Download',
|
||||
'studio.downloadMp4': 'Download MP4',
|
||||
'studio.copyPrompt': 'Copy prompt',
|
||||
'studio.copiedToast': 'Copied — paste it into image/video generation',
|
||||
'studio.sentToImg2ImgToast': 'Filled in as the reference image — check the params and generate',
|
||||
'studio.noImg2ImgWf': 'No image workflow declares a reference-image input yet — import an img2img workflow in ComfyUI Connections first',
|
||||
'studio.videoRefStrip': 'First / last frame reference',
|
||||
'studio.historyTitle': 'History',
|
||||
'studio.historyEmptyImage': 'No image generations yet — set the parameters on the left and press Generate',
|
||||
'studio.historyEmptyVideo': 'No video generations yet — set the parameters on the left and press Generate',
|
||||
'studio.jobName': 'Task #{id}',
|
||||
'studio.retryLink': 'Retry',
|
||||
'studio.retryQueuedToast': 'Task re-queued',
|
||||
'studio.retryFailedToast': 'Re-queue failed: {detail}',
|
||||
'studio.cancelToast': 'Cancel requested',
|
||||
'studio.deleteBtn': 'Delete',
|
||||
'studio.delTitle': 'Delete task record',
|
||||
'studio.delConfirm': 'The result files will be removed together with the record. Delete it?',
|
||||
'studio.wfEmptyTitle': 'No {kind} workflows yet',
|
||||
'studio.wfEmptyBody': "Enable ComfyUI's developer mode, export the workflow as API JSON, then import it on the ComfyUI Connections page as {kind}.",
|
||||
'studio.wfEmptyGo': 'Import in ComfyUI Connections',
|
||||
'studio.missingQwen': 'Dedicated Qwen Image 2.1 (t2i / img2img / mask) JSONs are still missing — the generic import path is ready; export from ComfyUI and import.',
|
||||
'studio.missingFirstLast': 'The dedicated MiniMax H3 first/last-frame JSON is still missing — the bundled t2v / reference-to-video examples can be imported meanwhile.',
|
||||
'studio.pickerTitle': 'Pick an image result',
|
||||
'studio.pickerEmpty': 'No image results available yet',
|
||||
'studio.pickerPick': 'Use',
|
||||
'studio.uploadFailedToast': 'Upload failed: {detail}',
|
||||
'studio.playAria': 'Play',
|
||||
'studio.pauseAria': 'Pause',
|
||||
'studio.fullscreenAria': 'Fullscreen',
|
||||
|
||||
// --- Generation tasks page (HEL-612) ---
|
||||
'tasks.title': 'Generation tasks',
|
||||
'tasks.subtitle': 'All image / video tasks — standalone windows and the creation flow',
|
||||
'tasks.filterAll': 'All',
|
||||
'tasks.filterImage': 'Images',
|
||||
'tasks.filterVideo': 'Videos',
|
||||
'tasks.count': '{n} tasks · {m} active',
|
||||
'tasks.empty': 'No generation tasks yet. Submit the first one in Image or Video.',
|
||||
'tasks.goGenerate': 'Open Image',
|
||||
'tasks.sourceStudioImage': 'Standalone image',
|
||||
'tasks.sourceStudioVideo': 'Standalone video',
|
||||
'tasks.sourcePlayground': 'Playground',
|
||||
'tasks.sourceFlow': 'Creation flow',
|
||||
'tasks.sourceOther': 'Generation',
|
||||
'tasks.queued': 'Queued',
|
||||
'tasks.running': 'Running',
|
||||
'tasks.done': 'Done',
|
||||
'tasks.failed': 'Failed',
|
||||
'tasks.retry': 'Retry',
|
||||
'tasks.cancel': 'Cancel',
|
||||
'tasks.delete': 'Delete',
|
||||
'tasks.delTitle': 'Delete task',
|
||||
'tasks.delConfirm': 'The result files will be removed together with the task. Delete it?',
|
||||
'tasks.outputs': '{n} outputs',
|
||||
|
||||
|
||||
};
|
||||
|
||||
export type Dict = typeof en;
|
||||
|
||||
@@ -1365,4 +1365,129 @@ export const es: Dict = {
|
||||
'conn.wfDeleted': 'Flujo eliminado',
|
||||
'conn.missingMaterial': 'Aún falta en el repo un JSON dedicado de Qwen Image 2.1: expórtalo desde ComfyUI e impórtalo aquí; la vía genérica ya está lista.',
|
||||
|
||||
// --- Generación independiente de imagen / vídeo (a3/a4, HEL-612) ---
|
||||
'studio.image.title': 'Imagen',
|
||||
'studio.image.subtitle': 'Genera imágenes con flujos importados · conexiones y cola compartidas con Conexiones ComfyUI',
|
||||
'studio.video.title': 'Vídeo',
|
||||
'studio.video.subtitle': 'Genera vídeos con flujos importados · conexiones y cola compartidas con Conexiones ComfyUI',
|
||||
'studio.kindImageText': 'imagen',
|
||||
'studio.kindVideoText': 'vídeo',
|
||||
'studio.loading': 'Cargando…',
|
||||
'studio.connLabel': 'Conexión',
|
||||
'studio.connQueue': 'Cola {n}',
|
||||
'studio.connUntested': 'Sin probar',
|
||||
'studio.connOk': 'Última prueba OK · {ms} ms',
|
||||
'studio.connFail': 'Última prueba fallida',
|
||||
'studio.connManage': 'Gestionar conexiones',
|
||||
'studio.wfLabel': 'Flujo',
|
||||
'studio.wfParams': '{n} parámetros rellenables',
|
||||
'studio.wfBindTo': 'Vinculado a {name}',
|
||||
'studio.wfFollowActive': 'Sigue la conexión por defecto',
|
||||
'studio.promptLabel': 'Prompt positivo',
|
||||
'studio.promptPh': 'Describe la imagen: sujeto, entorno, luz, estilo…',
|
||||
'studio.negLabel': 'Prompt negativo',
|
||||
'studio.seedLabel': 'Semilla',
|
||||
'studio.sizeLabel': 'Tamaño',
|
||||
'studio.batchLabel': 'Lote',
|
||||
'studio.durationLabel': 'Duración (s)',
|
||||
'studio.fpsLabel': 'Fotogramas/s',
|
||||
'studio.stepsLabel': 'Pasos',
|
||||
'studio.cfgLabel': 'CFG',
|
||||
'studio.paramsTitle': 'Parámetros del flujo',
|
||||
'studio.chars': '{n} car.',
|
||||
'studio.insertStyle': 'Insertar palabras de estilo',
|
||||
'studio.styleSoon': 'La biblioteca de Skills llegará con la función Agentes',
|
||||
'studio.generateN': 'Generar · {n} imágenes',
|
||||
'studio.generate': 'Generar',
|
||||
'studio.submitting': 'Enviando…',
|
||||
'studio.etaHint': 'El tiempo real depende de la conexión y del flujo',
|
||||
'studio.errNoConn': 'Selecciona primero una conexión de generación',
|
||||
'studio.errConnDown': 'Esta conexión no está disponible (última prueba fallida a las {time}); cambia de conexión o arréglala en Conexiones ComfyUI',
|
||||
'studio.errPrompt': 'Rellena el prompt',
|
||||
'studio.errPromptLong': 'El prompt supera los 2000 caracteres; recórtalo',
|
||||
'studio.errRefImage': 'Imagen-a-imagen necesita una imagen de referencia',
|
||||
'studio.errFirstLast': 'El vídeo primer/último fotograma necesita ambos fotogramas',
|
||||
'studio.errUpload': 'Sube {label}',
|
||||
'studio.errFill': 'Rellena {label}',
|
||||
'studio.slotRef': 'Imagen de referencia',
|
||||
'studio.slotRefN': 'Referencia {n}',
|
||||
'studio.slotMask': 'Máscara',
|
||||
'studio.slotFirst': 'Primer fotograma',
|
||||
'studio.slotLast': 'Último fotograma',
|
||||
'studio.slotRefVideo': 'Vídeo de referencia',
|
||||
'studio.slotAudio': 'Audio de referencia',
|
||||
'studio.slotPick': 'Haz clic o arrastra',
|
||||
'studio.slotFromResults': 'Elegir de resultados de imagen',
|
||||
'studio.taskCurrent': 'Tarea actual',
|
||||
'studio.taskQueued': 'En cola',
|
||||
'studio.taskRunning': 'Generando',
|
||||
'studio.taskCancel': 'Cancelar tarea',
|
||||
'studio.queuedBehind': '{n} tarea(s) por delante',
|
||||
'studio.stepsShort': 'Pasos {v}',
|
||||
'studio.usedShort': 'Transcurrido {v}',
|
||||
'studio.etaShort': 'Restante {v}',
|
||||
'studio.targetShort': 'Destino {name}',
|
||||
'studio.renderFrames': 'Fotograma {done}/{total}',
|
||||
'studio.noActiveTask': 'Sin tarea activa · ajusta los parámetros y pulsa Generar',
|
||||
'studio.resultsTitle': 'Resultados recientes',
|
||||
'studio.selectHint': 'Elegida',
|
||||
'studio.sendToImg2Img': 'Enviar a img2img',
|
||||
'studio.zoom': 'Ampliar',
|
||||
'studio.download': 'Descargar',
|
||||
'studio.downloadMp4': 'Descargar MP4',
|
||||
'studio.copyPrompt': 'Copiar prompt',
|
||||
'studio.copiedToast': 'Copiado; pégalo en generación de imagen/vídeo',
|
||||
'studio.sentToImg2ImgToast': 'Añadido como referencia; revisa los parámetros y genera',
|
||||
'studio.noImg2ImgWf': 'Ningún flujo de imagen declara una entrada de referencia todavía; importa antes un flujo img2img en Conexiones ComfyUI',
|
||||
'studio.videoRefStrip': 'Referencia primer / último fotograma',
|
||||
'studio.historyTitle': 'Historial',
|
||||
'studio.historyEmptyImage': 'Aún no hay generaciones de imagen; ajusta los parámetros y pulsa Generar',
|
||||
'studio.historyEmptyVideo': 'Aún no hay generaciones de vídeo; ajusta los parámetros y pulsa Generar',
|
||||
'studio.jobName': 'Tarea #{id}',
|
||||
'studio.retryLink': 'Reintentar',
|
||||
'studio.retryQueuedToast': 'Tarea vuelta a la cola',
|
||||
'studio.retryFailedToast': 'Error al reencolar: {detail}',
|
||||
'studio.cancelToast': 'Cancelación solicitada',
|
||||
'studio.deleteBtn': 'Eliminar',
|
||||
'studio.delTitle': 'Eliminar registro de tarea',
|
||||
'studio.delConfirm': 'Los archivos de resultados se eliminarán junto con el registro. ¿Eliminar?',
|
||||
'studio.wfEmptyTitle': 'Aún no hay flujos de {kind}',
|
||||
'studio.wfEmptyBody': 'Activa el modo desarrollador de ComfyUI, exporta el flujo como JSON API e impórtalo en Conexiones ComfyUI como {kind}.',
|
||||
'studio.wfEmptyGo': 'Importar en Conexiones ComfyUI',
|
||||
'studio.missingQwen': 'Faltan los JSON dedicados de Qwen Image 2.1 (t2i / img2img / máscara): la vía de importación genérica está lista; expórtalos desde ComfyUI.',
|
||||
'studio.missingFirstLast': 'Falta el JSON dedicado de MiniMax H3 primer/último fotograma; los ejemplos incluidos de t2v / r2v pueden usarse mientras tanto.',
|
||||
'studio.pickerTitle': 'Elige un resultado de imagen',
|
||||
'studio.pickerEmpty': 'Aún no hay resultados de imagen',
|
||||
'studio.pickerPick': 'Usar',
|
||||
'studio.uploadFailedToast': 'Subida fallida: {detail}',
|
||||
'studio.playAria': 'Reproducir',
|
||||
'studio.pauseAria': 'Pausar',
|
||||
'studio.fullscreenAria': 'Pantalla completa',
|
||||
|
||||
// --- Página de tareas de generación (HEL-612) ---
|
||||
'tasks.title': 'Tareas de generación',
|
||||
'tasks.subtitle': 'Todas las tareas de imagen / vídeo: ventanas independientes y flujo de creación',
|
||||
'tasks.filterAll': 'Todas',
|
||||
'tasks.filterImage': 'Imágenes',
|
||||
'tasks.filterVideo': 'Vídeos',
|
||||
'tasks.count': '{n} tareas · {m} activas',
|
||||
'tasks.empty': 'Aún no hay tareas. Envía la primera en Imagen o Vídeo.',
|
||||
'tasks.goGenerate': 'Abrir Imagen',
|
||||
'tasks.sourceStudioImage': 'Imagen independiente',
|
||||
'tasks.sourceStudioVideo': 'Vídeo independiente',
|
||||
'tasks.sourcePlayground': 'Playground',
|
||||
'tasks.sourceFlow': 'Flujo de creación',
|
||||
'tasks.sourceOther': 'Generación',
|
||||
'tasks.queued': 'En cola',
|
||||
'tasks.running': 'Ejecutando',
|
||||
'tasks.done': 'Hecho',
|
||||
'tasks.failed': 'Fallido',
|
||||
'tasks.retry': 'Reintentar',
|
||||
'tasks.cancel': 'Cancelar',
|
||||
'tasks.delete': 'Eliminar',
|
||||
'tasks.delTitle': 'Eliminar tarea',
|
||||
'tasks.delConfirm': 'Los archivos de resultados se eliminarán junto con la tarea. ¿Eliminar?',
|
||||
'tasks.outputs': '{n} resultados',
|
||||
|
||||
|
||||
};
|
||||
|
||||
@@ -1365,4 +1365,129 @@ export const fr: Dict = {
|
||||
'conn.wfDeleted': 'Workflow supprimé',
|
||||
'conn.missingMaterial': 'Un JSON de workflow Qwen Image 2.1 dédié manque encore au dépôt : exportez-le depuis ComfyUI et importez-le ici — le chemin d\'import générique est prêt.',
|
||||
|
||||
// --- Génération indépendante image / vidéo (a3/a4, HEL-612) ---
|
||||
'studio.image.title': 'Image',
|
||||
'studio.image.subtitle': 'Générez des images avec les workflows importés · connexions et file partagées avec Connexions ComfyUI',
|
||||
'studio.video.title': 'Vidéo',
|
||||
'studio.video.subtitle': 'Générez des vidéos avec les workflows importés · connexions et file partagées avec Connexions ComfyUI',
|
||||
'studio.kindImageText': 'image',
|
||||
'studio.kindVideoText': 'vidéo',
|
||||
'studio.loading': 'Chargement…',
|
||||
'studio.connLabel': 'Connexion',
|
||||
'studio.connQueue': 'File {n}',
|
||||
'studio.connUntested': 'Non testée',
|
||||
'studio.connOk': 'Dernier test OK · {ms} ms',
|
||||
'studio.connFail': 'Dernier test échoué',
|
||||
'studio.connManage': 'Gérer les connexions',
|
||||
'studio.wfLabel': 'Workflow',
|
||||
'studio.wfParams': '{n} paramètres remplissables',
|
||||
'studio.wfBindTo': 'Lié à {name}',
|
||||
'studio.wfFollowActive': 'Suit la connexion par défaut',
|
||||
'studio.promptLabel': 'Prompt positif',
|
||||
'studio.promptPh': 'Décrivez l’image : sujet, décor, lumière, style…',
|
||||
'studio.negLabel': 'Prompt négatif',
|
||||
'studio.seedLabel': 'Graine',
|
||||
'studio.sizeLabel': 'Dimensions',
|
||||
'studio.batchLabel': 'Lot',
|
||||
'studio.durationLabel': 'Durée (s)',
|
||||
'studio.fpsLabel': 'Images/s',
|
||||
'studio.stepsLabel': 'Étapes',
|
||||
'studio.cfgLabel': 'CFG',
|
||||
'studio.paramsTitle': 'Paramètres du workflow',
|
||||
'studio.chars': '{n} car.',
|
||||
'studio.insertStyle': 'Insérer des mots de style',
|
||||
'studio.styleSoon': 'La bibliothèque de Skills arrivera avec la fonction Agents',
|
||||
'studio.generateN': 'Générer · {n} images',
|
||||
'studio.generate': 'Générer',
|
||||
'studio.submitting': 'Envoi…',
|
||||
'studio.etaHint': 'Le temps réel dépend de la connexion et du workflow',
|
||||
'studio.errNoConn': 'Sélectionnez d’abord une connexion de génération',
|
||||
'studio.errConnDown': 'Cette connexion est indisponible (dernier test échoué à {time}) ; changez de connexion ou corrigez-la dans Connexions ComfyUI',
|
||||
'studio.errPrompt': 'Remplissez le prompt',
|
||||
'studio.errPromptLong': 'Le prompt dépasse 2000 caractères ; raccourcissez-le',
|
||||
'studio.errRefImage': 'Image-vers-image nécessite une image de référence',
|
||||
'studio.errFirstLast': 'La vidéo premier/dernier cadre exige les deux cadres',
|
||||
'studio.errUpload': 'Téléversez {label}',
|
||||
'studio.errFill': 'Remplissez {label}',
|
||||
'studio.slotRef': 'Image de référence',
|
||||
'studio.slotRefN': 'Référence {n}',
|
||||
'studio.slotMask': 'Masque',
|
||||
'studio.slotFirst': 'Premier cadre',
|
||||
'studio.slotLast': 'Dernier cadre',
|
||||
'studio.slotRefVideo': 'Vidéo de référence',
|
||||
'studio.slotAudio': 'Audio de référence',
|
||||
'studio.slotPick': 'Cliquez ou déposez',
|
||||
'studio.slotFromResults': 'Choisir parmi les résultats d’image',
|
||||
'studio.taskCurrent': 'Tâche en cours',
|
||||
'studio.taskQueued': 'En file',
|
||||
'studio.taskRunning': 'Génération',
|
||||
'studio.taskCancel': 'Annuler la tâche',
|
||||
'studio.queuedBehind': '{n} tâche(s) devant',
|
||||
'studio.stepsShort': 'Étapes {v}',
|
||||
'studio.usedShort': 'Écoulé {v}',
|
||||
'studio.etaShort': 'Restant {v}',
|
||||
'studio.targetShort': 'Cible {name}',
|
||||
'studio.renderFrames': 'Frame {done}/{total}',
|
||||
'studio.noActiveTask': 'Aucune tâche active · réglez les paramètres puis lancez Générer',
|
||||
'studio.resultsTitle': 'Résultats récents',
|
||||
'studio.selectHint': 'Choisie',
|
||||
'studio.sendToImg2Img': 'Envoyer vers img2img',
|
||||
'studio.zoom': 'Agrandir',
|
||||
'studio.download': 'Télécharger',
|
||||
'studio.downloadMp4': 'Télécharger MP4',
|
||||
'studio.copyPrompt': 'Copier le prompt',
|
||||
'studio.copiedToast': 'Copié ; collez-le dans la génération image/vidéo',
|
||||
'studio.sentToImg2ImgToast': 'Ajouté comme référence ; vérifiez les paramètres et lancez',
|
||||
'studio.noImg2ImgWf': 'Aucun workflow image ne déclare d’entrée de référence ; importez d’abord un workflow img2img dans Connexions ComfyUI',
|
||||
'studio.videoRefStrip': 'Référence premier / dernier cadre',
|
||||
'studio.historyTitle': 'Historique',
|
||||
'studio.historyEmptyImage': 'Aucune génération d’image ; réglez les paramètres puis lancez Générer',
|
||||
'studio.historyEmptyVideo': 'Aucune génération de vidéo ; réglez les paramètres puis lancez Générer',
|
||||
'studio.jobName': 'Tâche #{id}',
|
||||
'studio.retryLink': 'Réessayer',
|
||||
'studio.retryQueuedToast': 'Tâche remise en file',
|
||||
'studio.retryFailedToast': 'Échec de la remise en file : {detail}',
|
||||
'studio.cancelToast': 'Annulation demandée',
|
||||
'studio.deleteBtn': 'Supprimer',
|
||||
'studio.delTitle': 'Supprimer la tâche',
|
||||
'studio.delConfirm': 'Les fichiers de résultats seront supprimés avec la tâche. Supprimer ?',
|
||||
'studio.wfEmptyTitle': 'Pas encore de workflows {kind}',
|
||||
'studio.wfEmptyBody': 'Activez le mode développeur de ComfyUI, exportez le workflow en JSON API, puis importez-le dans Connexions ComfyUI comme {kind}.',
|
||||
'studio.wfEmptyGo': 'Importer dans Connexions ComfyUI',
|
||||
'studio.missingQwen': 'Les JSON dédiés Qwen Image 2.1 (t2i / img2img / masque) manquent encore ; la voie d’import générique est prête — exportez-les depuis ComfyUI.',
|
||||
'studio.missingFirstLast': 'Le JSON dédié MiniMax H3 premier/dernier cadre manque encore ; les exemples t2v / r2v fournis peuvent être importés en attendant.',
|
||||
'studio.pickerTitle': 'Choisir un résultat d’image',
|
||||
'studio.pickerEmpty': 'Aucun résultat d’image disponible',
|
||||
'studio.pickerPick': 'Utiliser',
|
||||
'studio.uploadFailedToast': 'Échec du téléversement : {detail}',
|
||||
'studio.playAria': 'Lecture',
|
||||
'studio.pauseAria': 'Pause',
|
||||
'studio.fullscreenAria': 'Plein écran',
|
||||
|
||||
// --- Page des tâches de génération (HEL-612) ---
|
||||
'tasks.title': 'Tâches de génération',
|
||||
'tasks.subtitle': 'Toutes les tâches image / vidéo : fenêtres indépendantes et flux de création',
|
||||
'tasks.filterAll': 'Toutes',
|
||||
'tasks.filterImage': 'Images',
|
||||
'tasks.filterVideo': 'Vidéos',
|
||||
'tasks.count': '{n} tâches · {m} actives',
|
||||
'tasks.empty': 'Aucune tâche. Lancez la première dans Image ou Vidéo.',
|
||||
'tasks.goGenerate': 'Ouvrir Image',
|
||||
'tasks.sourceStudioImage': 'Image indépendante',
|
||||
'tasks.sourceStudioVideo': 'Vidéo indépendante',
|
||||
'tasks.sourcePlayground': 'Playground',
|
||||
'tasks.sourceFlow': 'Flux de création',
|
||||
'tasks.sourceOther': 'Génération',
|
||||
'tasks.queued': 'En file',
|
||||
'tasks.running': 'En cours',
|
||||
'tasks.done': 'Terminé',
|
||||
'tasks.failed': 'Échec',
|
||||
'tasks.retry': 'Réessayer',
|
||||
'tasks.cancel': 'Annuler',
|
||||
'tasks.delete': 'Supprimer',
|
||||
'tasks.delTitle': 'Supprimer la tâche',
|
||||
'tasks.delConfirm': 'Les fichiers de résultats seront supprimés avec la tâche. Supprimer ?',
|
||||
'tasks.outputs': '{n} résultats',
|
||||
|
||||
|
||||
};
|
||||
|
||||
@@ -1365,4 +1365,129 @@ export const ja: Dict = {
|
||||
'conn.wfDeleted': 'ワークフローを削除しました',
|
||||
'conn.missingMaterial': 'Qwen Image 2.1 専用のワークフロー JSON はまだリポジトリにありません。ComfyUI から書き出してここで取り込んでください。汎用の取り込み経路は用意済みです。',
|
||||
|
||||
// --- 独立画像/動画生成(a3/a4、HEL-612)---
|
||||
'studio.image.title': '画像生成',
|
||||
'studio.image.subtitle': '取り込んだ画像ワークフローで生成 · 接続とキューは「ComfyUI 接続」と共通',
|
||||
'studio.video.title': '動画生成',
|
||||
'studio.video.subtitle': '取り込んだ動画ワークフローで生成 · 接続とキューは「ComfyUI 接続」と共通',
|
||||
'studio.kindImageText': '画像',
|
||||
'studio.kindVideoText': '動画',
|
||||
'studio.loading': '読み込み中…',
|
||||
'studio.connLabel': '生成接続',
|
||||
'studio.connQueue': 'キュー {n}',
|
||||
'studio.connUntested': '未テスト',
|
||||
'studio.connOk': '前回テスト成功 · {ms} ms',
|
||||
'studio.connFail': '前回テスト失敗',
|
||||
'studio.connManage': '接続を管理',
|
||||
'studio.wfLabel': 'ワークフロー',
|
||||
'studio.wfParams': '入力可能パラメータ {n} 件',
|
||||
'studio.wfBindTo': '{name} にバインド済み',
|
||||
'studio.wfFollowActive': 'デフォルト接続に従う',
|
||||
'studio.promptLabel': 'ポジティブプロンプト',
|
||||
'studio.promptPh': '被写体・環境・光・スタイルを記述…',
|
||||
'studio.negLabel': 'ネガティブプロンプト',
|
||||
'studio.seedLabel': 'シード',
|
||||
'studio.sizeLabel': 'サイズ',
|
||||
'studio.batchLabel': 'バッチ',
|
||||
'studio.durationLabel': '長さ(秒)',
|
||||
'studio.fpsLabel': 'フレームレート',
|
||||
'studio.stepsLabel': 'ステップ',
|
||||
'studio.cfgLabel': 'CFG',
|
||||
'studio.paramsTitle': 'ワークフローパラメータ',
|
||||
'studio.chars': '{n} 字',
|
||||
'studio.insertStyle': 'スタイル語を挿入',
|
||||
'studio.styleSoon': 'スキル語彙は「エージェント」機能とともに提供予定',
|
||||
'studio.generateN': '生成開始 · {n} 枚',
|
||||
'studio.generate': '生成開始',
|
||||
'studio.submitting': '送信中…',
|
||||
'studio.etaHint': '実際の所要時間は接続とワークフロー次第',
|
||||
'studio.errNoConn': '生成接続を先に選んでください',
|
||||
'studio.errConnDown': 'この接続は利用できません(前回 {time} にテスト失敗)。切り替えるか「ComfyUI 接続」で修復してください',
|
||||
'studio.errPrompt': 'プロンプトを入力してください',
|
||||
'studio.errPromptLong': 'プロンプトが 2000 字を超えています。短くしてください',
|
||||
'studio.errRefImage': 'img2img には参照画像が必要です',
|
||||
'studio.errFirstLast': '始端/終端フレーム生成には両方のフレームが必要です',
|
||||
'studio.errUpload': '{label} をアップロードしてください',
|
||||
'studio.errFill': '{label} を入力してください',
|
||||
'studio.slotRef': '参照画像',
|
||||
'studio.slotRefN': '参照 {n}',
|
||||
'studio.slotMask': 'マスク',
|
||||
'studio.slotFirst': '始端フレーム',
|
||||
'studio.slotLast': '終端フレーム',
|
||||
'studio.slotRefVideo': '参照動画',
|
||||
'studio.slotAudio': '参照音声',
|
||||
'studio.slotPick': 'クリックまたはドロップ',
|
||||
'studio.slotFromResults': '画像結果から選ぶ',
|
||||
'studio.taskCurrent': '現在のタスク',
|
||||
'studio.taskQueued': '待機中',
|
||||
'studio.taskRunning': '生成中',
|
||||
'studio.taskCancel': 'タスクをキャンセル',
|
||||
'studio.queuedBehind': '前に {n} 件',
|
||||
'studio.stepsShort': 'ステップ {v}',
|
||||
'studio.usedShort': '経過 {v}',
|
||||
'studio.etaShort': '残り {v}',
|
||||
'studio.targetShort': '接続先 {name}',
|
||||
'studio.renderFrames': 'フレーム {done}/{total}',
|
||||
'studio.noActiveTask': '実行中のタスクはありません · 左でパラメータを設定して生成開始',
|
||||
'studio.resultsTitle': '最近の結果',
|
||||
'studio.selectHint': '選択中',
|
||||
'studio.sendToImg2Img': 'img2img へ送る',
|
||||
'studio.zoom': '拡大',
|
||||
'studio.download': 'ダウンロード',
|
||||
'studio.downloadMp4': 'MP4 をダウンロード',
|
||||
'studio.copyPrompt': 'プロンプトをコピー',
|
||||
'studio.copiedToast': 'コピーしました。画像/動画生成に貼り付けできます',
|
||||
'studio.sentToImg2ImgToast': '参照画像として設定しました。パラメータを確認して生成してください',
|
||||
'studio.noImg2ImgWf': '参照画像入力を持つ画像ワークフローがまだありません。先に「ComfyUI 接続」で img2img を取り込んでください',
|
||||
'studio.videoRefStrip': '始端 / 終端フレーム参照',
|
||||
'studio.historyTitle': '履歴',
|
||||
'studio.historyEmptyImage': '画像生成の記録がありません。左でパラメータを設定して生成開始',
|
||||
'studio.historyEmptyVideo': '動画生成の記録がありません。左でパラメータを設定して生成開始',
|
||||
'studio.jobName': 'タスク #{id}',
|
||||
'studio.retryLink': '再試行',
|
||||
'studio.retryQueuedToast': 'タスクを再びキューに入れました',
|
||||
'studio.retryFailedToast': '再キュー失敗:{detail}',
|
||||
'studio.cancelToast': 'キャンセルを要求しました',
|
||||
'studio.deleteBtn': '削除',
|
||||
'studio.delTitle': 'タスク記録を削除',
|
||||
'studio.delConfirm': '結果ファイルも一緒に削除され、履歴は復元できません。削除しますか?',
|
||||
'studio.wfEmptyTitle': '{kind}ワークフローがまだありません',
|
||||
'studio.wfEmptyBody': 'ComfyUI の開発者モードで API 形式 JSON を書き出し、「ComfyUI 接続」ページで{kind}として取り込んでください。',
|
||||
'studio.wfEmptyGo': '「ComfyUI 接続」で取り込む',
|
||||
'studio.missingQwen': 'Qwen Image 2.1(t2i / img2img / マスク)専用 JSON はまだありません。汎用取り込みは利用可能なので、ComfyUI から書き出して取り込んでください。',
|
||||
'studio.missingFirstLast': 'MiniMax H3 始端/終端フレーム専用 JSON はまだありません。同梱の t2v / 参照動画サンプルを先用できます。',
|
||||
'studio.pickerTitle': '画像結果を選ぶ',
|
||||
'studio.pickerEmpty': '利用できる画像結果がまだありません',
|
||||
'studio.pickerPick': '使用する',
|
||||
'studio.uploadFailedToast': 'アップロード失敗:{detail}',
|
||||
'studio.playAria': '再生',
|
||||
'studio.pauseAria': '一時停止',
|
||||
'studio.fullscreenAria': '全画面',
|
||||
|
||||
// --- 生成タスクページ(HEL-612)---
|
||||
'tasks.title': '生成タスク',
|
||||
'tasks.subtitle': '独立画像・独立動画・創作フロー内の画像/動画タスクをまとめて表示',
|
||||
'tasks.filterAll': 'すべて',
|
||||
'tasks.filterImage': '画像',
|
||||
'tasks.filterVideo': '動画',
|
||||
'tasks.count': '{n} 件 · 実行中 {m} 件',
|
||||
'tasks.empty': '生成タスクがまだありません。「画像生成」「動画生成」から最初のタスクを送信してください。',
|
||||
'tasks.goGenerate': '画像生成を開く',
|
||||
'tasks.sourceStudioImage': '独立画像',
|
||||
'tasks.sourceStudioVideo': '独立動画',
|
||||
'tasks.sourcePlayground': 'Playground',
|
||||
'tasks.sourceFlow': '創作フロー',
|
||||
'tasks.sourceOther': '生成',
|
||||
'tasks.queued': '待機',
|
||||
'tasks.running': '実行中',
|
||||
'tasks.done': '完了',
|
||||
'tasks.failed': '失敗',
|
||||
'tasks.retry': '再試行',
|
||||
'tasks.cancel': 'キャンセル',
|
||||
'tasks.delete': '削除',
|
||||
'tasks.delTitle': 'タスクを削除',
|
||||
'tasks.delConfirm': '結果ファイルも一緒に削除されます。削除しますか?',
|
||||
'tasks.outputs': '結果 {n} 件',
|
||||
|
||||
|
||||
};
|
||||
|
||||
@@ -1365,4 +1365,129 @@ export const ko: Dict = {
|
||||
'conn.wfDeleted': '워크플로가 삭제되었습니다',
|
||||
'conn.missingMaterial': 'Qwen Image 2.1 전용 워크플로 JSON이 아직 저장소에 없습니다. ComfyUI에서 내보내 여기서 가져오세요. 범용 가져오기 경로는 준비되어 있습니다.',
|
||||
|
||||
// --- 독립 이미지/비디오 생성 (a3/a4, HEL-612) ---
|
||||
'studio.image.title': '이미지 생성',
|
||||
'studio.image.subtitle': '가져온 이미지 워크플로로 생성 · 연결과 큐는 ComfyUI 연결과 공유',
|
||||
'studio.video.title': '비디오 생성',
|
||||
'studio.video.subtitle': '가져온 비디오 워크플로로 생성 · 연결과 큐는 ComfyUI 연결과 공유',
|
||||
'studio.kindImageText': '이미지',
|
||||
'studio.kindVideoText': '비디오',
|
||||
'studio.loading': '불러오는 중…',
|
||||
'studio.connLabel': '생성 연결',
|
||||
'studio.connQueue': '대기열 {n}',
|
||||
'studio.connUntested': '미테스트',
|
||||
'studio.connOk': '마지막 테스트 통과 · {ms} ms',
|
||||
'studio.connFail': '마지막 테스트 실패',
|
||||
'studio.connManage': '연결 관리',
|
||||
'studio.wfLabel': '워크플로',
|
||||
'studio.wfParams': '채울 수 있는 매개변수 {n}개',
|
||||
'studio.wfBindTo': '{name}에 바인딩됨',
|
||||
'studio.wfFollowActive': '기본 연결을 따름',
|
||||
'studio.promptLabel': '긍정 프롬프트',
|
||||
'studio.promptPh': '피사체·환경·빛·스타일을 묘사…',
|
||||
'studio.negLabel': '부정 프롬프트',
|
||||
'studio.seedLabel': '시드',
|
||||
'studio.sizeLabel': '크기',
|
||||
'studio.batchLabel': '배치',
|
||||
'studio.durationLabel': '길이(초)',
|
||||
'studio.fpsLabel': '프레임 레이트',
|
||||
'studio.stepsLabel': '스텝',
|
||||
'studio.cfgLabel': 'CFG',
|
||||
'studio.paramsTitle': '워크플로 매개변수',
|
||||
'studio.chars': '{n}자',
|
||||
'studio.insertStyle': '스타일 단어 삽입',
|
||||
'studio.styleSoon': 'Skill 단어장은 에이전트 기능과 함께 제공됩니다',
|
||||
'studio.generateN': '생성 시작 · {n}장',
|
||||
'studio.generate': '생성 시작',
|
||||
'studio.submitting': '제출 중…',
|
||||
'studio.etaHint': '실제 소요 시간은 대상 연결과 워크플로에 따라 다릅니다',
|
||||
'studio.errNoConn': '먼저 생성 연결을 선택하세요',
|
||||
'studio.errConnDown': '이 연결을 사용할 수 없습니다(마지막 테스트 {time} 실패). 다른 연결로 바꾸거나 ComfyUI 연결에서 수정하세요',
|
||||
'studio.errPrompt': '프롬프트를 입력하세요',
|
||||
'studio.errPromptLong': '프롬프트가 2000자를 넘습니다. 줄여 주세요',
|
||||
'studio.errRefImage': 'img2img에는 참조 이미지가 필요합니다',
|
||||
'studio.errFirstLast': '첫/마지막 프레임 생성에는 두 프레임이 모두 필요합니다',
|
||||
'studio.errUpload': '{label}을(를) 업로드하세요',
|
||||
'studio.errFill': '{label}을(를) 입력하세요',
|
||||
'studio.slotRef': '참조 이미지',
|
||||
'studio.slotRefN': '참조 {n}',
|
||||
'studio.slotMask': '마스크',
|
||||
'studio.slotFirst': '첫 프레임',
|
||||
'studio.slotLast': '마지막 프레임',
|
||||
'studio.slotRefVideo': '참조 비디오',
|
||||
'studio.slotAudio': '참조 오디오',
|
||||
'studio.slotPick': '클릭하거나 끌어다 놓기',
|
||||
'studio.slotFromResults': '이미지 결과에서 선택',
|
||||
'studio.taskCurrent': '현재 작업',
|
||||
'studio.taskQueued': '대기 중',
|
||||
'studio.taskRunning': '생성 중',
|
||||
'studio.taskCancel': '작업 취소',
|
||||
'studio.queuedBehind': '앞에 {n}건',
|
||||
'studio.stepsShort': '스텝 {v}',
|
||||
'studio.usedShort': '경과 {v}',
|
||||
'studio.etaShort': '남음 {v}',
|
||||
'studio.targetShort': '대상 {name}',
|
||||
'studio.renderFrames': '프레임 {done}/{total}',
|
||||
'studio.noActiveTask': '진행 중인 작업 없음 · 왼쪽에서 매개변수를 설정하고 생성 시작',
|
||||
'studio.resultsTitle': '최근 결과',
|
||||
'studio.selectHint': '선택됨',
|
||||
'studio.sendToImg2Img': 'img2img로 보내기',
|
||||
'studio.zoom': '확대',
|
||||
'studio.download': '다운로드',
|
||||
'studio.downloadMp4': 'MP4 다운로드',
|
||||
'studio.copyPrompt': '프롬프트 복사',
|
||||
'studio.copiedToast': '복사됨 — 이미지/비디오 생성에 붙여넣으세요',
|
||||
'studio.sentToImg2ImgToast': '참조 이미지로 채웠습니다 — 매개변수를 확인하고 생성하세요',
|
||||
'studio.noImg2ImgWf': '참조 이미지 입력을 선언한 이미지 워크플로가 아직 없습니다. 먼저 ComfyUI 연결에서 img2img 워크플로를 가져오세요',
|
||||
'studio.videoRefStrip': '첫 / 마지막 프레임 참조',
|
||||
'studio.historyTitle': '기록',
|
||||
'studio.historyEmptyImage': '이미지 생성 기록이 없습니다. 왼쪽에서 매개변수를 설정하고 생성 시작',
|
||||
'studio.historyEmptyVideo': '비디오 생성 기록이 없습니다. 왼쪽에서 매개변수를 설정하고 생성 시작',
|
||||
'studio.jobName': '작업 #{id}',
|
||||
'studio.retryLink': '재시도',
|
||||
'studio.retryQueuedToast': '작업이 다시 대기열에 들어갔습니다',
|
||||
'studio.retryFailedToast': '재대기열 실패: {detail}',
|
||||
'studio.cancelToast': '취소를 요청했습니다',
|
||||
'studio.deleteBtn': '삭제',
|
||||
'studio.delTitle': '작업 기록 삭제',
|
||||
'studio.delConfirm': '결과 파일도 함께 삭제되며 기록은 복구할 수 없습니다. 삭제할까요?',
|
||||
'studio.wfEmptyTitle': '{kind} 워크플로가 아직 없습니다',
|
||||
'studio.wfEmptyBody': 'ComfyUI 개발자 모드를 켜고 API 형식 JSON으로 내보낸 뒤, ComfyUI 연결 페이지에서 {kind}(으)로 가져오세요.',
|
||||
'studio.wfEmptyGo': 'ComfyUI 연결에서 가져오기',
|
||||
'studio.missingQwen': 'Qwen Image 2.1(t2i / img2img / 마스크) 전용 JSON이 아직 없습니다. 범용 가져오기 경로는 준비되어 있으니 ComfyUI에서 내보내 가져오세요.',
|
||||
'studio.missingFirstLast': 'MiniMax H3 첫/마지막 프레임 전용 JSON이 아직 없습니다. 함께 제공되는 t2v / 참조 비디오 예제를 먼저 사용할 수 있습니다.',
|
||||
'studio.pickerTitle': '이미지 결과 선택',
|
||||
'studio.pickerEmpty': '사용할 수 있는 이미지 결과가 아직 없습니다',
|
||||
'studio.pickerPick': '사용',
|
||||
'studio.uploadFailedToast': '업로드 실패: {detail}',
|
||||
'studio.playAria': '재생',
|
||||
'studio.pauseAria': '일시정지',
|
||||
'studio.fullscreenAria': '전체 화면',
|
||||
|
||||
// --- 생성 작업 페이지 (HEL-612) ---
|
||||
'tasks.title': '생성 작업',
|
||||
'tasks.subtitle': '독립 이미지·독립 비디오·창작 흐름의 이미지/비디오 작업 모아 보기',
|
||||
'tasks.filterAll': '전체',
|
||||
'tasks.filterImage': '이미지',
|
||||
'tasks.filterVideo': '비디오',
|
||||
'tasks.count': '{n}건 · 진행 중 {m}건',
|
||||
'tasks.empty': '생성 작업이 아직 없습니다. 이미지/비디오 생성에서 첫 작업을 제출하세요.',
|
||||
'tasks.goGenerate': '이미지 생성 열기',
|
||||
'tasks.sourceStudioImage': '독립 이미지',
|
||||
'tasks.sourceStudioVideo': '독립 비디오',
|
||||
'tasks.sourcePlayground': 'Playground',
|
||||
'tasks.sourceFlow': '창작 흐름',
|
||||
'tasks.sourceOther': '생성',
|
||||
'tasks.queued': '대기',
|
||||
'tasks.running': '진행 중',
|
||||
'tasks.done': '완료',
|
||||
'tasks.failed': '실패',
|
||||
'tasks.retry': '재시도',
|
||||
'tasks.cancel': '취소',
|
||||
'tasks.delete': '삭제',
|
||||
'tasks.delTitle': '작업 삭제',
|
||||
'tasks.delConfirm': '결과 파일도 함께 삭제됩니다. 삭제할까요?',
|
||||
'tasks.outputs': '결과 {n}개',
|
||||
|
||||
|
||||
};
|
||||
|
||||
@@ -1364,4 +1364,129 @@ export const zh: Dict = {
|
||||
'conn.wfJsonPh': '在此粘贴 ComfyUI 导出的 API 格式 JSON,或点右侧按钮选择文件',
|
||||
'conn.wfDeleted': '工作流已删除',
|
||||
'conn.missingMaterial': 'Qwen Image 2.1 的专用工作流 JSON 仓库中暂缺:请从 ComfyUI 导出后在此导入,通用导入通道已就绪。',
|
||||
// --- 独立生图 / 生视频(a3/a4,HEL-612)---
|
||||
'studio.image.title': '生图',
|
||||
'studio.image.subtitle': '用已导入的图片工作流生成图片 · 连接与队列和「ComfyUI 连接」共用',
|
||||
'studio.video.title': '生视频',
|
||||
'studio.video.subtitle': '用已导入的视频工作流生成视频 · 连接与队列和「ComfyUI 连接」共用',
|
||||
'studio.kindImageText': '图片',
|
||||
'studio.kindVideoText': '视频',
|
||||
'studio.loading': '正在加载…',
|
||||
'studio.connLabel': '生成连接',
|
||||
'studio.connQueue': '队列 {n}',
|
||||
'studio.connUntested': '未测试',
|
||||
'studio.connOk': '上次测试通过 · {ms} ms',
|
||||
'studio.connFail': '上次测试失败',
|
||||
'studio.connManage': '管理连接',
|
||||
'studio.wfLabel': '工作流',
|
||||
'studio.wfParams': '{n} 个可填参数',
|
||||
'studio.wfBindTo': '已绑定 {name}',
|
||||
'studio.wfFollowActive': '跟随默认连接',
|
||||
'studio.promptLabel': '正向提示词',
|
||||
'studio.promptPh': '描述画面:主体、环境、光线、风格…',
|
||||
'studio.negLabel': '负面提示词',
|
||||
'studio.seedLabel': '种子',
|
||||
'studio.sizeLabel': '尺寸',
|
||||
'studio.batchLabel': '批次',
|
||||
'studio.durationLabel': '时长(秒)',
|
||||
'studio.fpsLabel': '帧率',
|
||||
'studio.stepsLabel': '步数',
|
||||
'studio.cfgLabel': '引导 CFG',
|
||||
'studio.paramsTitle': '工作流参数',
|
||||
'studio.chars': '{n} 字',
|
||||
'studio.insertStyle': '插入风格词',
|
||||
'studio.styleSoon': 'Skill 词库将随「智能体」功能开放后接入',
|
||||
'studio.generateN': '开始生成 · {n} 张',
|
||||
'studio.generate': '开始生成',
|
||||
'studio.submitting': '提交中…',
|
||||
'studio.etaHint': '实际耗时以目标连接与工作流为准',
|
||||
'studio.errNoConn': '请先选择生成连接',
|
||||
'studio.errConnDown': '该连接当前不可用(最后测试 {time} 失败),请更换或到「ComfyUI 连接」修复',
|
||||
'studio.errPrompt': '请填写提示词',
|
||||
'studio.errPromptLong': '提示词超出 2000 字,请精简',
|
||||
'studio.errRefImage': '图生图需要上传参考图',
|
||||
'studio.errFirstLast': '首尾帧生视频需要同时上传首帧和尾帧',
|
||||
'studio.errUpload': '请上传{label}',
|
||||
'studio.errFill': '请填写{label}',
|
||||
'studio.slotRef': '参考图',
|
||||
'studio.slotRefN': '参考图 {n}',
|
||||
'studio.slotMask': '遮罩',
|
||||
'studio.slotFirst': '首帧',
|
||||
'studio.slotLast': '尾帧',
|
||||
'studio.slotRefVideo': '参考视频',
|
||||
'studio.slotAudio': '参考音频',
|
||||
'studio.slotPick': '点击或拖入',
|
||||
'studio.slotFromResults': '从生图结果选择',
|
||||
'studio.taskCurrent': '当前任务',
|
||||
'studio.taskQueued': '排队中',
|
||||
'studio.taskRunning': '生成中',
|
||||
'studio.taskCancel': '取消任务',
|
||||
'studio.queuedBehind': '前面还有 {n} 个任务',
|
||||
'studio.stepsShort': '步数 {v}',
|
||||
'studio.usedShort': '已用 {v}',
|
||||
'studio.etaShort': '预计剩余 {v}',
|
||||
'studio.targetShort': '目标 {name}',
|
||||
'studio.renderFrames': '渲染帧 {done}/{total}',
|
||||
'studio.noActiveTask': '没有进行中的任务 · 填好左侧参数点「开始生成」',
|
||||
'studio.resultsTitle': '最近结果',
|
||||
'studio.selectHint': '已选',
|
||||
'studio.sendToImg2Img': '发送到图生图',
|
||||
'studio.zoom': '放大',
|
||||
'studio.download': '下载',
|
||||
'studio.downloadMp4': '下载 MP4',
|
||||
'studio.copyPrompt': '复制提示词',
|
||||
'studio.copiedToast': '已复制,可直接粘贴到生图/生视频',
|
||||
'studio.sentToImg2ImgToast': '已填入为参考图,请检查参数后生成',
|
||||
'studio.noImg2ImgWf': '还没有声明参考图输入的图片工作流,请先在「ComfyUI 连接」导入图生图工作流',
|
||||
'studio.videoRefStrip': '首帧 / 尾帧参考',
|
||||
'studio.historyTitle': '历史',
|
||||
'studio.historyEmptyImage': '还没有生图记录,从左边填好参数点「开始生成」',
|
||||
'studio.historyEmptyVideo': '还没有生视频记录,从左边填好参数点「开始生成」',
|
||||
'studio.jobName': '任务 #{id}',
|
||||
'studio.retryLink': '重试',
|
||||
'studio.retryQueuedToast': '任务已重新排队',
|
||||
'studio.retryFailedToast': '重新排队失败:{detail}',
|
||||
'studio.cancelToast': '已发送取消请求',
|
||||
'studio.deleteBtn': '删除',
|
||||
'studio.delTitle': '删除任务记录',
|
||||
'studio.delConfirm': '删除后该任务的结果文件会一并移除,历史不可恢复。确定删除?',
|
||||
'studio.wfEmptyTitle': '还没有{kind}工作流',
|
||||
'studio.wfEmptyBody': '在 ComfyUI 里启用开发者模式,用「导出(API 格式)」得到 JSON,再到「ComfyUI 连接」页导入并分类为{kind}。',
|
||||
'studio.wfEmptyGo': '去「ComfyUI 连接」导入',
|
||||
'studio.missingQwen': 'Qwen Image 2.1 文生图 / 图生图 / 遮罩专用 JSON 暂缺:通用导入通道已就绪,请从 ComfyUI 导出后导入。',
|
||||
'studio.missingFirstLast': 'MiniMax H3 首尾帧生视频专用 JSON 暂缺:仓库自带文生视频 / 参考生视频示例,可先导入使用。',
|
||||
'studio.pickerTitle': '选择生图结果',
|
||||
'studio.pickerEmpty': '还没有可用的生图结果',
|
||||
'studio.pickerPick': '选用',
|
||||
'studio.uploadFailedToast': '上传失败:{detail}',
|
||||
'studio.playAria': '播放',
|
||||
'studio.pauseAria': '暂停',
|
||||
'studio.fullscreenAria': '全屏',
|
||||
|
||||
// --- 生成任务页(HEL-612)---
|
||||
'tasks.title': '生成任务',
|
||||
'tasks.subtitle': '汇总独立生图、独立生视频与创作流程内的图片 / 视频任务',
|
||||
'tasks.filterAll': '全部',
|
||||
'tasks.filterImage': '图片',
|
||||
'tasks.filterVideo': '视频',
|
||||
'tasks.count': '{n} 个任务 · {m} 个进行中',
|
||||
'tasks.empty': '还没有生成任务。到「生图」「生视频」提交第一个任务。',
|
||||
'tasks.goGenerate': '去生图',
|
||||
'tasks.sourceStudioImage': '独立生图',
|
||||
'tasks.sourceStudioVideo': '独立生视频',
|
||||
'tasks.sourcePlayground': 'Playground',
|
||||
'tasks.sourceFlow': '创作流程',
|
||||
'tasks.sourceOther': '生成任务',
|
||||
'tasks.queued': '排队',
|
||||
'tasks.running': '生成中',
|
||||
'tasks.done': '完成',
|
||||
'tasks.failed': '失败',
|
||||
'tasks.retry': '重试',
|
||||
'tasks.cancel': '取消',
|
||||
'tasks.delete': '删除',
|
||||
'tasks.delTitle': '删除任务',
|
||||
'tasks.delConfirm': '删除后该任务的结果文件会一并移除。确定删除?',
|
||||
'tasks.outputs': '{n} 个结果',
|
||||
|
||||
|
||||
};
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
<script lang="ts">
|
||||
import AppShell from '$lib/components/shell/AppShell.svelte';
|
||||
import StudioGenerate from '$lib/components/studio/StudioGenerate.svelte';
|
||||
import { t } from '$lib/i18n.svelte';
|
||||
</script>
|
||||
|
||||
<AppShell active="image" title={t('studio.image.title')} subtitle={t('studio.image.subtitle')}>
|
||||
<StudioGenerate kind="image" />
|
||||
</AppShell>
|
||||
@@ -0,0 +1,516 @@
|
||||
<script lang="ts">
|
||||
import { createQuery, useQueryClient } from '@tanstack/svelte-query';
|
||||
import AppShell from '$lib/components/shell/AppShell.svelte';
|
||||
import Button from '$lib/components/ui/Button.svelte';
|
||||
import ConfirmDialog from '$lib/components/ui/ConfirmDialog.svelte';
|
||||
import Icon from '$lib/components/ui/Icon.svelte';
|
||||
import {
|
||||
assetUrl,
|
||||
jobsApi,
|
||||
playgroundApi,
|
||||
workflows,
|
||||
type Job,
|
||||
} from '$lib/api';
|
||||
import { connectEvents } from '$lib/events';
|
||||
import { parseDbTs } from '$lib/dbtime';
|
||||
import { handleJobEvent, progressFor } from '$lib/jobProgress';
|
||||
import { toast } from '$lib/toast';
|
||||
import { t } from '$lib/i18n.svelte';
|
||||
|
||||
/**
|
||||
* 生成任务页 (spec-v2 §3 nav item, HEL-612): one table summing both
|
||||
* task classes — image and video — from standalone windows, the
|
||||
* creation flow, and Playground, with retry / cancel / delete.
|
||||
*/
|
||||
const client = useQueryClient();
|
||||
|
||||
const jobsQuery = createQuery({
|
||||
queryKey: ['jobs'],
|
||||
queryFn: () => jobsApi.list(),
|
||||
refetchInterval: 5_000,
|
||||
});
|
||||
const workflowsQuery = createQuery({ queryKey: ['workflows'], queryFn: workflows.list });
|
||||
|
||||
$effect(() => {
|
||||
const off = connectEvents((ev) => {
|
||||
handleJobEvent(ev);
|
||||
if (ev.type.startsWith('job.') || ev.type === 'events.resync') {
|
||||
void client.invalidateQueries({ queryKey: ['jobs'] });
|
||||
void client.invalidateQueries({ queryKey: ['playground-jobs'] });
|
||||
}
|
||||
});
|
||||
return off;
|
||||
});
|
||||
|
||||
type Filter = 'all' | 'image' | 'video';
|
||||
let filter = $state<Filter>('all');
|
||||
|
||||
const genJobs = $derived(
|
||||
($jobsQuery.data ?? []).filter((j) => j.kind === 'image' || j.kind === 'video'),
|
||||
);
|
||||
const shown = $derived(filter === 'all' ? genJobs : genJobs.filter((j) => j.kind === filter));
|
||||
const activeCount = $derived(genJobs.filter((j) => j.status === 'pending' || j.status === 'running').length);
|
||||
|
||||
function sourceLabel(job: Job): string {
|
||||
const src = job.payload?.source;
|
||||
if (src === 'studio-image') return t('tasks.sourceStudioImage');
|
||||
if (src === 'studio-video') return t('tasks.sourceStudioVideo');
|
||||
if (src === 'playground') return t('tasks.sourcePlayground');
|
||||
if (job.scene_id || job.clip_id) return t('tasks.sourceFlow');
|
||||
if (!src) return t('tasks.sourceFlow');
|
||||
return t('tasks.sourceOther');
|
||||
}
|
||||
|
||||
function wfName(job: Job): string {
|
||||
return (
|
||||
($workflowsQuery.data ?? []).find((w) => w.id === job.workflow_id)?.name ??
|
||||
t('studio.jobName', { id: job.id })
|
||||
);
|
||||
}
|
||||
|
||||
function timeOf(job: Job): string {
|
||||
const ts = parseDbTs(job.created_at);
|
||||
if (!Number.isFinite(ts)) return '—';
|
||||
const d = new Date(ts);
|
||||
const p = (n: number) => String(n).padStart(2, '0');
|
||||
return `${p(d.getMonth() + 1)}-${p(d.getDate())} ${p(d.getHours())}:${p(d.getMinutes())}`;
|
||||
}
|
||||
|
||||
function stInfo(job: Job): { cls: string; label: string; mono?: boolean } {
|
||||
switch (job.status) {
|
||||
case 'done':
|
||||
return { cls: 'ok', label: t('tasks.done') };
|
||||
case 'running':
|
||||
return { cls: 'run', label: `${Math.round(progressFor(job.id)?.progress ?? 3)}%`, mono: true };
|
||||
case 'pending':
|
||||
return { cls: 'queue', label: t('tasks.queued') };
|
||||
default:
|
||||
return { cls: 'fail', label: t('tasks.failed') };
|
||||
}
|
||||
}
|
||||
|
||||
let busyId = $state<number | null>(null);
|
||||
async function retry(job: Job) {
|
||||
if (busyId != null) return;
|
||||
busyId = job.id;
|
||||
try {
|
||||
await jobsApi.retry(job.id);
|
||||
toast.success(t('studio.retryQueuedToast'));
|
||||
await client.invalidateQueries({ queryKey: ['jobs'] });
|
||||
} catch (err) {
|
||||
toast.error(t('studio.retryFailedToast', { detail: err instanceof Error ? err.message : String(err) }));
|
||||
} finally {
|
||||
busyId = null;
|
||||
}
|
||||
}
|
||||
|
||||
async function cancel(job: Job) {
|
||||
if (busyId != null) return;
|
||||
busyId = job.id;
|
||||
try {
|
||||
await jobsApi.cancel(job.id);
|
||||
toast.info(t('studio.cancelToast'));
|
||||
await client.invalidateQueries({ queryKey: ['jobs'] });
|
||||
} catch (err) {
|
||||
toast.error(err instanceof Error ? err.message : String(err));
|
||||
} finally {
|
||||
busyId = null;
|
||||
}
|
||||
}
|
||||
|
||||
let deleteOpen = $state(false);
|
||||
let deleteJobId = $state<number | null>(null);
|
||||
const deleteTarget = $derived(genJobs.find((j) => j.id === deleteJobId) ?? null);
|
||||
async function doDelete() {
|
||||
if (!deleteJobId) return;
|
||||
try {
|
||||
await playgroundApi.deleteJob(deleteJobId);
|
||||
await client.invalidateQueries({ queryKey: ['jobs'] });
|
||||
await client.invalidateQueries({ queryKey: ['playground-jobs'] });
|
||||
} catch (err) {
|
||||
toast.error(err instanceof Error ? err.message : String(err));
|
||||
} finally {
|
||||
deleteJobId = null;
|
||||
deleteOpen = false;
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<AppShell active="tasks" title={t('tasks.title')} subtitle={t('tasks.subtitle')}>
|
||||
{#snippet actions()}
|
||||
<span class="status-chip">{t('tasks.count', { n: genJobs.length, m: activeCount })}</span>
|
||||
{/snippet}
|
||||
|
||||
<div class="tasks-page">
|
||||
<div class="seg" role="radiogroup" aria-label={t('tasks.title')}>
|
||||
{#each [['all', t('tasks.filterAll')], ['image', t('tasks.filterImage')], ['video', t('tasks.filterVideo')]] as [value, label] (value)}
|
||||
<button
|
||||
type="button"
|
||||
class="seg-item"
|
||||
class:selected={filter === value}
|
||||
aria-pressed={filter === value}
|
||||
onclick={() => (filter = value as Filter)}
|
||||
>
|
||||
{label}
|
||||
</button>
|
||||
{/each}
|
||||
</div>
|
||||
|
||||
{#if !shown.length}
|
||||
<div class="empty-card">
|
||||
<Icon name="queue" size={22} />
|
||||
<p>{t('tasks.empty')}</p>
|
||||
<a class="a-btn primary" href="/image">{t('tasks.goGenerate')}</a>
|
||||
</div>
|
||||
{:else}
|
||||
<div class="task-table">
|
||||
{#each shown as job (job.id)}
|
||||
{@const st = stInfo(job)}
|
||||
<div class="trow" class:failed={job.status === 'failed'}>
|
||||
<span class="tkind {job.kind}">
|
||||
<Icon name={job.kind === 'image' ? 'image' : 'film'} size={14} />
|
||||
</span>
|
||||
<div class="tthumb">
|
||||
{#if job.output_paths?.[0]}
|
||||
{#if job.kind === 'image'}
|
||||
<img src={assetUrl(job.output_paths[0])} alt={wfName(job)} loading="lazy" />
|
||||
{:else}
|
||||
<video src={assetUrl(job.output_paths[0])} preload="metadata" muted></video>
|
||||
{/if}
|
||||
{/if}
|
||||
</div>
|
||||
<div class="tmain">
|
||||
<div class="tname" title={wfName(job)}>{wfName(job)}</div>
|
||||
<div class="tmeta mono">
|
||||
{sourceLabel(job)} · {timeOf(job)}
|
||||
{#if (job.output_paths?.length ?? 0) > 0}
|
||||
· {t('tasks.outputs', { n: job.output_paths.length })}
|
||||
{/if}
|
||||
</div>
|
||||
{#if job.status === 'failed' && job.error}
|
||||
<div class="terror">{job.error}</div>
|
||||
{/if}
|
||||
</div>
|
||||
<div class="tout">
|
||||
{#if job.output_paths?.length}
|
||||
<div class="tout-thumbs">
|
||||
{#each job.output_paths.slice(0, 3) as p (p)}
|
||||
<a href={assetUrl(p)} target="_blank" rel="noreferrer" title={p.split(/[/\\]/).pop()}>
|
||||
{#if job.kind === 'image'}
|
||||
<img src={assetUrl(p)} alt="" loading="lazy" />
|
||||
{:else}
|
||||
<video src={assetUrl(p)} preload="metadata" muted></video>
|
||||
{/if}
|
||||
</a>
|
||||
{/each}
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
<span class="tst {st.cls}" class:mono={st.mono}>{st.label}</span>
|
||||
<span class="tactions">
|
||||
{#if job.status === 'failed'}
|
||||
<button type="button" class="link-accent" disabled={busyId === job.id} onclick={() => retry(job)}>
|
||||
{t('tasks.retry')}
|
||||
</button>
|
||||
{/if}
|
||||
{#if job.status === 'pending' || job.status === 'running'}
|
||||
<button type="button" class="link-danger" disabled={busyId === job.id} onclick={() => cancel(job)}>
|
||||
{t('tasks.cancel')}
|
||||
</button>
|
||||
{/if}
|
||||
{#if job.payload?.source === 'studio-image' || job.payload?.source === 'studio-video' || job.payload?.source === 'playground'}
|
||||
<button
|
||||
type="button"
|
||||
class="link-danger"
|
||||
title={t('tasks.delete')}
|
||||
onclick={() => {
|
||||
deleteJobId = job.id;
|
||||
deleteOpen = true;
|
||||
}}
|
||||
>
|
||||
<Icon name="trash" size={13} />
|
||||
</button>
|
||||
{/if}
|
||||
</span>
|
||||
</div>
|
||||
{/each}
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
</AppShell>
|
||||
|
||||
<ConfirmDialog
|
||||
bind:open={deleteOpen}
|
||||
title={t('tasks.delTitle')}
|
||||
message={t('tasks.delConfirm')}
|
||||
confirmLabel={t('tasks.delete')}
|
||||
danger
|
||||
onconfirm={doDelete}
|
||||
oncancel={() => {
|
||||
deleteJobId = null;
|
||||
deleteOpen = false;
|
||||
}}
|
||||
/>
|
||||
|
||||
<style>
|
||||
.tasks-page {
|
||||
padding: 20px 28px 40px;
|
||||
max-width: 1560px;
|
||||
width: 100%;
|
||||
box-sizing: border-box;
|
||||
margin: 0 auto;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 18px;
|
||||
}
|
||||
|
||||
.status-chip {
|
||||
padding: 5px 12px;
|
||||
border-radius: 999px;
|
||||
background: var(--surface-3);
|
||||
color: var(--text-2);
|
||||
font-size: 11.5px;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.seg {
|
||||
display: flex;
|
||||
gap: 6px;
|
||||
width: fit-content;
|
||||
}
|
||||
.seg-item {
|
||||
padding: 7px 18px;
|
||||
border-radius: 7px;
|
||||
border: 1px solid var(--border);
|
||||
background: var(--surface-2);
|
||||
font-size: 12px;
|
||||
color: var(--text-2);
|
||||
cursor: pointer;
|
||||
font-family: inherit;
|
||||
}
|
||||
.seg-item.selected {
|
||||
border-color: var(--accent);
|
||||
color: var(--accent);
|
||||
background: var(--accent-dim);
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.empty-card {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
padding: 56px 24px;
|
||||
border: 1.5px dashed var(--border-strong);
|
||||
border-radius: 10px;
|
||||
color: var(--text-3);
|
||||
}
|
||||
.empty-card p {
|
||||
margin: 0;
|
||||
font-size: 13px;
|
||||
line-height: 1.7;
|
||||
}
|
||||
|
||||
.task-table {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 4px;
|
||||
}
|
||||
.trow {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
padding: 10px 12px;
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 10px;
|
||||
background: var(--surface);
|
||||
min-height: 56px;
|
||||
}
|
||||
.trow.failed {
|
||||
border-color: rgba(229, 72, 77, 0.35);
|
||||
}
|
||||
|
||||
.tkind {
|
||||
width: 28px;
|
||||
height: 28px;
|
||||
border-radius: 7px;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
.tkind.image {
|
||||
color: var(--info);
|
||||
background: var(--info-dim);
|
||||
}
|
||||
.tkind.video {
|
||||
color: var(--accent);
|
||||
background: var(--accent-dim);
|
||||
}
|
||||
|
||||
.tthumb {
|
||||
width: 48px;
|
||||
height: 32px;
|
||||
border-radius: 6px;
|
||||
overflow: hidden;
|
||||
border: 1px solid var(--border);
|
||||
background: var(--surface-2);
|
||||
flex-shrink: 0;
|
||||
}
|
||||
.tthumb img,
|
||||
.tthumb video {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: cover;
|
||||
display: block;
|
||||
}
|
||||
|
||||
.tmain {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
}
|
||||
.tname {
|
||||
font-size: 13px;
|
||||
font-weight: 600;
|
||||
color: var(--text);
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
.tmeta {
|
||||
font-size: 10.5px;
|
||||
color: var(--text-3);
|
||||
margin-top: 1px;
|
||||
}
|
||||
.terror {
|
||||
margin-top: 3px;
|
||||
font-size: 11px;
|
||||
color: var(--error);
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
.tout {
|
||||
flex-shrink: 0;
|
||||
}
|
||||
.tout-thumbs {
|
||||
display: flex;
|
||||
gap: 4px;
|
||||
}
|
||||
.tout-thumbs a {
|
||||
width: 44px;
|
||||
height: 30px;
|
||||
border-radius: 5px;
|
||||
overflow: hidden;
|
||||
border: 1px solid var(--border);
|
||||
display: block;
|
||||
}
|
||||
.tout-thumbs img,
|
||||
.tout-thumbs video {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: cover;
|
||||
display: block;
|
||||
}
|
||||
|
||||
.tst {
|
||||
width: 52px;
|
||||
text-align: right;
|
||||
font-size: 11.5px;
|
||||
font-weight: 600;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
.tst.ok {
|
||||
color: var(--success);
|
||||
}
|
||||
.tst.run {
|
||||
color: var(--accent);
|
||||
}
|
||||
.tst.queue {
|
||||
color: var(--text-3);
|
||||
font-weight: 400;
|
||||
}
|
||||
.tst.fail {
|
||||
color: var(--error);
|
||||
}
|
||||
|
||||
.tactions {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
.link-accent {
|
||||
background: none;
|
||||
border: none;
|
||||
padding: 4px 6px;
|
||||
font-family: inherit;
|
||||
font-size: 12px;
|
||||
color: var(--accent);
|
||||
cursor: pointer;
|
||||
}
|
||||
.link-accent:hover:not(:disabled) {
|
||||
text-decoration: underline;
|
||||
}
|
||||
.link-accent:disabled {
|
||||
opacity: 0.5;
|
||||
cursor: default;
|
||||
}
|
||||
.link-danger {
|
||||
background: none;
|
||||
border: none;
|
||||
padding: 4px 6px;
|
||||
font-family: inherit;
|
||||
font-size: 12px;
|
||||
color: var(--error);
|
||||
cursor: pointer;
|
||||
border-radius: 6px;
|
||||
opacity: 0.85;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
}
|
||||
.link-danger:hover:not(:disabled) {
|
||||
opacity: 1;
|
||||
background: var(--error-dim);
|
||||
}
|
||||
.link-danger:disabled {
|
||||
opacity: 0.35;
|
||||
cursor: default;
|
||||
}
|
||||
|
||||
.a-btn {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
min-height: 34px;
|
||||
padding: 0 16px;
|
||||
border-radius: 8px;
|
||||
font-family: inherit;
|
||||
font-size: 13px;
|
||||
font-weight: 600;
|
||||
cursor: pointer;
|
||||
border: 1px solid transparent;
|
||||
text-decoration: none;
|
||||
}
|
||||
.a-btn.primary {
|
||||
background: var(--accent);
|
||||
color: var(--accent-contrast);
|
||||
}
|
||||
.a-btn.primary:hover {
|
||||
background: var(--accent-hover);
|
||||
}
|
||||
|
||||
@media (max-width: 1023px) {
|
||||
.tasks-page {
|
||||
padding: 14px 16px 32px;
|
||||
}
|
||||
.tout {
|
||||
display: none;
|
||||
}
|
||||
.trow {
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
.tactions {
|
||||
margin-left: auto;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
@@ -0,0 +1,9 @@
|
||||
<script lang="ts">
|
||||
import AppShell from '$lib/components/shell/AppShell.svelte';
|
||||
import StudioGenerate from '$lib/components/studio/StudioGenerate.svelte';
|
||||
import { t } from '$lib/i18n.svelte';
|
||||
</script>
|
||||
|
||||
<AppShell active="video" title={t('studio.video.title')} subtitle={t('studio.video.subtitle')}>
|
||||
<StudioGenerate kind="video" />
|
||||
</AppShell>
|
||||
Reference in New Issue
Block a user