From 4945d29e525a9c52edd9588c5276365203b2deaa Mon Sep 17 00:00:00 2001 From: shigongyuan-agent <4846a27a-ba87-49c9-939d-7275f63efcc7@multica.agent> Date: Sun, 27 Sep 2026 21:42:06 +0800 Subject: [PATCH] feat: A darkroom shell + projects overview home, models page into the shell (HEL-608) Co-authored-by: multica-agent --- .../lib/components/home/AProjectCard.svelte | 469 +++++++++ .../src/lib/components/shell/AppShell.svelte | 458 ++++++++ calliope-web/src/lib/i18n/de.ts | 60 ++ calliope-web/src/lib/i18n/en.ts | 60 ++ calliope-web/src/lib/i18n/es.ts | 60 ++ calliope-web/src/lib/i18n/fr.ts | 60 ++ calliope-web/src/lib/i18n/ja.ts | 60 ++ calliope-web/src/lib/i18n/ko.ts | 60 ++ calliope-web/src/lib/i18n/zh.ts | 60 ++ calliope-web/src/routes/+page.svelte | 978 +++++++++++++++++- calliope-web/src/routes/+page.ts | 5 +- calliope-web/src/routes/models/+page.svelte | 107 +- 12 files changed, 2359 insertions(+), 78 deletions(-) create mode 100644 calliope-web/src/lib/components/home/AProjectCard.svelte create mode 100644 calliope-web/src/lib/components/shell/AppShell.svelte diff --git a/calliope-web/src/lib/components/home/AProjectCard.svelte b/calliope-web/src/lib/components/home/AProjectCard.svelte new file mode 100644 index 00000000..2bb893ed --- /dev/null +++ b/calliope-web/src/lib/components/home/AProjectCard.svelte @@ -0,0 +1,469 @@ + + +
+ + + +
+ + +
{ + e.preventDefault(); + submitRename(); + }} + > + +
+ {#snippet footer()} + + + {/snippet} +
+ + $deleteMutation.mutate()} +/> + + diff --git a/calliope-web/src/lib/components/shell/AppShell.svelte b/calliope-web/src/lib/components/shell/AppShell.svelte new file mode 100644 index 00000000..0337dc67 --- /dev/null +++ b/calliope-web/src/lib/components/shell/AppShell.svelte @@ -0,0 +1,458 @@ + + + + {title} · {t('shell.brand')} + + +
+ +
+ +

{t('shell.mobileNotice')}

+
+ +
+ + +
+
+
+

{title}

+ {#if subtitle}

{subtitle}

{/if} +
+ {#if actions} +
+ {@render actions()} +
+ {/if} +
+
+ {@render children?.()} +
+
+
+
+ + diff --git a/calliope-web/src/lib/i18n/de.ts b/calliope-web/src/lib/i18n/de.ts index f146968d..172f4814 100644 --- a/calliope-web/src/lib/i18n/de.ts +++ b/calliope-web/src/lib/i18n/de.ts @@ -1222,4 +1222,64 @@ export const de: Dict = { 'models.loading': 'Lädt…', 'models.loadFailed': 'Einstellungen konnten nicht geladen werden', 'models.idleFormHint': '„Bearbeiten“ auf einer Karte wählen oder oben „Modell hinzufügen“ klicken', + + // --- A shell + projects overview (HEL-608) --- + 'shell.brand': 'Film-Atelier', + 'shell.brandHome': 'Zur Projektübersicht', + 'shell.navAria': 'Hauptnavigation', + 'shell.navProjects': 'Projekte', + 'shell.navWorkbench': 'Werkstatt', + 'shell.navImage': 'Bilderzeugen', + 'shell.navVideo': 'Videoerzeugen', + 'shell.navTasks': 'Aufträge', + 'shell.navAgents': 'Agenten', + 'shell.navConnections': 'ComfyUI-Verbindungen', + 'shell.navModels': 'Modelle', + 'shell.navSettings': 'Einstellungen', + 'shell.wip': 'In Entwicklung', + 'shell.wipHint': 'Diese Seite ist noch im Bau und folgt später', + 'shell.comfyAt': 'ComfyUI · {host}', + 'shell.comfyUnset': 'ComfyUI · nicht konfiguriert', + 'shell.comfyManage': 'ComfyUI-Adresse in den Einstellungen pflegen', + 'shell.mobileNotice': 'Bitte öffne diese Werkbank in einem Desktop-Browser (mindestens 768px breit); Handys werden noch nicht unterstützt.', + 'home.title': 'Projektübersicht', + 'home.subtitle': 'Verwalte deine Projekte — starte mit einer Idee oder einem fertigen Drehbuch.', + 'home.projectCount': '{n} Projekte · {m} in Arbeit', + 'home.startIdea': 'Mit einer Idee starten', + 'home.importScript': 'Drehbuch importieren', + 'home.entryIdeaTitle': 'Mit einer Idee starten', + 'home.entryIdeaBody': 'Beschreibe eine Idee; die Agenten führen sie Schritt für Schritt durch Story, Storyboard und Clips.', + 'home.entryScriptTitle': 'Drehbuch importieren', + 'home.entryScriptBody': 'Schon ein Drehbuch? Einfügen, Projekt anlegen und der Drehbuch-Agent zerlegt es in geordnete Szenen.', + 'home.ideaPlaceholder': 'Ein regnerischer kleiner Hafen, in dem der Leuchtfeuerwärter …', + 'home.scriptField': 'Vollständiges Drehbuch', + 'home.scriptPlaceholder': 'Das vollständige Drehbuch hier einfügen …', + 'home.scriptHint': 'Nach dem Anlegen öffnet sich die Agenten-Seite; der Drehbuch-Agent macht aus dem Text geordnete Szenen.', + 'home.errTitle': 'Bitte gib dem Projekt einen Titel', + 'home.errScript': 'Bitte füge das vollständige Drehbuch ein', + 'home.myProjects': 'Meine Projekte', + 'home.myProjectsHint': 'Projekt anklicken, um weiterzuarbeiten', + 'home.emptyProjects': 'Noch keine Projekte. Lege oben über „Mit einer Idee starten“ oder „Drehbuch importieren“ das erste an.', + 'home.noIdea': 'Noch keine Ideenbeschreibung', + 'home.statScenes': '{n} Szenen', + 'home.statCharacters': '{n} Figuren', + 'home.statAssets': 'Assets {ready}/{total}', + 'home.statusDraft': 'Entwurf', + 'home.statusProgress': 'In Arbeit', + 'home.statusDone': 'Abgeschlossen', + 'home.tasksTitle': 'Aufträge', + 'home.activeJobs': '{n} aktiv', + 'home.emptyJobs': 'Noch keine Generierungsaufträge', + 'home.emptyJobsSub': 'Aufträge aus Projekten oder der Werkstatt erscheinen hier.', + 'home.tasksNote': 'Die eigenständige Auftragsseite ist in Entwicklung; die vollständige Historie liegt derzeit in jedem Projekt.', + 'home.kindImage': 'Bild', + 'home.kindVideo': 'Video', + 'home.kindExport': 'Film', + 'home.jobDone': 'fertig', + 'home.jobRunning': 'läuft', + 'home.jobQueued': 'wartet', + 'home.jobFailed': 'fehlgeschlagen', + 'home.jobRequeued': 'Auftrag erneut eingereiht', + 'home.jobRetryFailed': 'Erneutes Einreihen fehlgeschlagen', + 'home.jobProject': 'Projekt #{id}', }; diff --git a/calliope-web/src/lib/i18n/en.ts b/calliope-web/src/lib/i18n/en.ts index b4cecdf6..24e63572 100644 --- a/calliope-web/src/lib/i18n/en.ts +++ b/calliope-web/src/lib/i18n/en.ts @@ -1222,5 +1222,65 @@ export const en = { 'models.loading': 'Loading…', 'models.loadFailed': 'Failed to load settings', 'models.idleFormHint': 'Pick "Edit" on a card, or click "Add model" above', + + // --- A shell + projects overview (HEL-608) --- + 'shell.brand': 'Film Atelier', + 'shell.brandHome': 'Back to project overview', + 'shell.navAria': 'Primary', + 'shell.navProjects': 'Projects', + 'shell.navWorkbench': 'Workbench', + 'shell.navImage': 'Image Gen', + 'shell.navVideo': 'Video Gen', + 'shell.navTasks': 'Jobs', + 'shell.navAgents': 'Agents', + 'shell.navConnections': 'ComfyUI Connections', + 'shell.navModels': 'Models', + 'shell.navSettings': 'Settings', + 'shell.wip': 'In development', + 'shell.wipHint': 'This page is under construction and will open later', + 'shell.comfyAt': 'ComfyUI · {host}', + 'shell.comfyUnset': 'ComfyUI · not configured', + 'shell.comfyManage': 'Configure the ComfyUI address in Settings', + 'shell.mobileNotice': 'Please open this workbench in a desktop browser (at least 768px wide). Phones are not supported yet.', + 'home.title': 'Projects overview', + 'home.subtitle': 'Manage your projects — start from an idea or a ready-made script.', + 'home.projectCount': '{n} projects · {m} in progress', + 'home.startIdea': 'Start from an idea', + 'home.importScript': 'Import a script', + 'home.entryIdeaTitle': 'Start from an idea', + 'home.entryIdeaBody': 'Describe an idea once; the agents take it through story, boards and clips step by step.', + 'home.entryScriptTitle': 'Import a script', + 'home.entryScriptBody': 'Already have a script? Paste it in, create the project, and let the script agent break it into ordered scenes.', + 'home.ideaPlaceholder': 'A rainy little harbor where the lighthouse keeper finds…', + 'home.scriptField': 'Full script', + 'home.scriptPlaceholder': 'Paste the complete script here…', + 'home.scriptHint': 'After creating, the Agents page opens and the script agent turns the pasted script into ordered scenes.', + 'home.errTitle': 'Please give the project a title', + 'home.errScript': 'Please paste the full script', + 'home.myProjects': 'My projects', + 'home.myProjectsHint': 'Click a project to continue working', + 'home.emptyProjects': 'No projects yet. Use “Start from an idea” or “Import a script” above to create the first one.', + 'home.noIdea': 'No idea description yet', + 'home.statScenes': '{n} scenes', + 'home.statCharacters': '{n} characters', + 'home.statAssets': 'assets {ready}/{total}', + 'home.statusDraft': 'Draft', + 'home.statusProgress': 'In progress', + 'home.statusDone': 'Completed', + 'home.tasksTitle': 'Jobs', + 'home.activeJobs': '{n} active', + 'home.emptyJobs': 'No generation jobs yet', + 'home.emptyJobsSub': 'Jobs started from a project or the workbench will show up here.', + 'home.tasksNote': 'The standalone Jobs page is under development; for now full job history lives inside each project.', + 'home.kindImage': 'image', + 'home.kindVideo': 'video', + 'home.kindExport': 'film', + 'home.jobDone': 'done', + 'home.jobRunning': 'running', + 'home.jobQueued': 'queued', + 'home.jobFailed': 'failed', + 'home.jobRequeued': 'Job requeued', + 'home.jobRetryFailed': 'Could not requeue the job', + 'home.jobProject': 'Project #{id}', }; export type Dict = typeof en; diff --git a/calliope-web/src/lib/i18n/es.ts b/calliope-web/src/lib/i18n/es.ts index 56016785..8fd48c59 100644 --- a/calliope-web/src/lib/i18n/es.ts +++ b/calliope-web/src/lib/i18n/es.ts @@ -1222,4 +1222,64 @@ export const es: Dict = { 'models.loading': 'Cargando…', 'models.loadFailed': 'No se pudieron cargar los ajustes', 'models.idleFormHint': 'Pulsa «Editar» en una tarjeta o «Añadir modelo» arriba', + + // --- A shell + projects overview (HEL-608) --- + 'shell.brand': 'Atelier de Cine', + 'shell.brandHome': 'Volver al resumen de proyectos', + 'shell.navAria': 'Navegación principal', + 'shell.navProjects': 'Proyectos', + 'shell.navWorkbench': 'Taller', + 'shell.navImage': 'Generar imagen', + 'shell.navVideo': 'Generar vídeo', + 'shell.navTasks': 'Tareas', + 'shell.navAgents': 'Agentes', + 'shell.navConnections': 'Conexiones ComfyUI', + 'shell.navModels': 'Modelos', + 'shell.navSettings': 'Ajustes', + 'shell.wip': 'En desarrollo', + 'shell.wipHint': 'Esta página está en construcción y llegará más adelante', + 'shell.comfyAt': 'ComfyUI · {host}', + 'shell.comfyUnset': 'ComfyUI · sin configurar', + 'shell.comfyManage': 'Configura la dirección de ComfyUI en Ajustes', + 'shell.mobileNotice': 'Abre este banco de trabajo en un navegador de escritorio (mínimo 768 px); los móviles aún no se admiten.', + 'home.title': 'Resumen de proyectos', + 'home.subtitle': 'Gestiona tus proyectos: empieza con una idea o un guion terminado.', + 'home.projectCount': '{n} proyectos · {m} en curso', + 'home.startIdea': 'Empezar con una idea', + 'home.importScript': 'Importar guion', + 'home.entryIdeaTitle': 'Empezar con una idea', + 'home.entryIdeaBody': 'Describe una idea; los agentes la llevan por historia, storyboard y clips paso a paso.', + 'home.entryScriptTitle': 'Importar guion', + 'home.entryScriptBody': '¿Ya tienes guion? Pégalo, crea el proyecto y el agente de guion lo dividirá en escenas ordenadas.', + 'home.ideaPlaceholder': 'Un pequeño puerto lluvioso donde el farero descubre…', + 'home.scriptField': 'Guion completo', + 'home.scriptPlaceholder': 'Pega aquí el guion completo…', + 'home.scriptHint': 'Al crearlo se abre la página de Agentes; el agente de guion convierte el texto en escenas ordenadas.', + 'home.errTitle': 'Ponle un título al proyecto', + 'home.errScript': 'Pega el guion completo', + 'home.myProjects': 'Mis proyectos', + 'home.myProjectsHint': 'Haz clic en un proyecto para continuar', + 'home.emptyProjects': 'Aún no hay proyectos. Crea el primero con «Empezar con una idea» o «Importar guion».', + 'home.noIdea': 'Sin descripción de la idea', + 'home.statScenes': '{n} escenas', + 'home.statCharacters': '{n} personajes', + 'home.statAssets': 'recursos {ready}/{total}', + 'home.statusDraft': 'Borrador', + 'home.statusProgress': 'En curso', + 'home.statusDone': 'Terminado', + 'home.tasksTitle': 'Tareas', + 'home.activeJobs': '{n} activas', + 'home.emptyJobs': 'Aún no hay tareas de generación', + 'home.emptyJobsSub': 'Las tareas iniciadas en un proyecto o en el taller aparecerán aquí.', + 'home.tasksNote': 'La página independiente de tareas está en desarrollo; el historial completo vive por ahora en cada proyecto.', + 'home.kindImage': 'imagen', + 'home.kindVideo': 'vídeo', + 'home.kindExport': 'película', + 'home.jobDone': 'lista', + 'home.jobRunning': 'en curso', + 'home.jobQueued': 'en cola', + 'home.jobFailed': 'fallida', + 'home.jobRequeued': 'Tarea reencolada', + 'home.jobRetryFailed': 'No se pudo reencolar la tarea', + 'home.jobProject': 'Proyecto #{id}', }; diff --git a/calliope-web/src/lib/i18n/fr.ts b/calliope-web/src/lib/i18n/fr.ts index b576fefe..cc4a2597 100644 --- a/calliope-web/src/lib/i18n/fr.ts +++ b/calliope-web/src/lib/i18n/fr.ts @@ -1222,4 +1222,64 @@ export const fr: Dict = { 'models.loading': 'Chargement…', 'models.loadFailed': 'Impossible de charger les paramètres', 'models.idleFormHint': 'Cliquez « Modifier » sur une carte ou « Ajouter un modèle » ci-dessus', + + // --- A shell + projects overview (HEL-608) --- + 'shell.brand': 'Atelier Cinéma', + 'shell.brandHome': 'Retour à l\'aperçu des projets', + 'shell.navAria': 'Navigation principale', + 'shell.navProjects': 'Projets', + 'shell.navWorkbench': 'Atelier', + 'shell.navImage': 'Génération d\'image', + 'shell.navVideo': 'Génération vidéo', + 'shell.navTasks': 'Tâches', + 'shell.navAgents': 'Agents', + 'shell.navConnections': 'Connexions ComfyUI', + 'shell.navModels': 'Modèles', + 'shell.navSettings': 'Réglages', + 'shell.wip': 'En développement', + 'shell.wipHint': 'Cette page est en construction et arrivera plus tard', + 'shell.comfyAt': 'ComfyUI · {host}', + 'shell.comfyUnset': 'ComfyUI · non configuré', + 'shell.comfyManage': 'Configurez l\'adresse ComfyUI dans les Réglages', + 'shell.mobileNotice': 'Ouvrez cet atelier dans un navigateur de bureau (largeur minimum 768 px) ; les téléphones ne sont pas encore pris en charge.', + 'home.title': 'Aperçu des projets', + 'home.subtitle': 'Gérez vos projets — commencez avec une idée ou un scénario prêt.', + 'home.projectCount': '{n} projets · {m} en cours', + 'home.startIdea': 'Commencer avec une idée', + 'home.importScript': 'Importer un scénario', + 'home.entryIdeaTitle': 'Commencer avec une idée', + 'home.entryIdeaBody': 'Décrivez une idée ; les agents la mènent étape par étape à travers l\'histoire, le storyboard et les plans.', + 'home.entryScriptTitle': 'Importer un scénario', + 'home.entryScriptBody': 'Vous avez déjà un scénario ? Collez-le, créez le projet et l\'agent scénario le découpe en scènes ordonnées.', + 'home.ideaPlaceholder': 'Un petit port pluvieux où le gardien de phare découvre…', + 'home.scriptField': 'Scénario complet', + 'home.scriptPlaceholder': 'Collez ici le scénario complet…', + 'home.scriptHint': 'Après création, la page Agents s\'ouvre et l\'agent scénario transforme le texte en scènes ordonnées.', + 'home.errTitle': 'Donnez un titre au projet', + 'home.errScript': 'Collez le scénario complet', + 'home.myProjects': 'Mes projets', + 'home.myProjectsHint': 'Cliquez sur un projet pour continuer', + 'home.emptyProjects': 'Aucun projet pour le moment. Créez le premier avec « Commencer avec une idée » ou « Importer un scénario ».', + 'home.noIdea': 'Pas encore de description', + 'home.statScenes': '{n} scènes', + 'home.statCharacters': '{n} personnages', + 'home.statAssets': 'ressources {ready}/{total}', + 'home.statusDraft': 'Brouillon', + 'home.statusProgress': 'En cours', + 'home.statusDone': 'Terminé', + 'home.tasksTitle': 'Tâches', + 'home.activeJobs': '{n} actives', + 'home.emptyJobs': 'Aucune tâche de génération', + 'home.emptyJobsSub': 'Les tâches lancées depuis un projet ou l\'atelier s\'afficheront ici.', + 'home.tasksNote': 'La page Tâches autonome est en développement ; l\'historique complet reste pour l\'instant dans chaque projet.', + 'home.kindImage': 'image', + 'home.kindVideo': 'vidéo', + 'home.kindExport': 'film', + 'home.jobDone': 'terminée', + 'home.jobRunning': 'en cours', + 'home.jobQueued': 'en attente', + 'home.jobFailed': 'échouée', + 'home.jobRequeued': 'Tâche remise en file', + 'home.jobRetryFailed': 'Impossible de remettre la tâche en file', + 'home.jobProject': 'Projet #{id}', }; diff --git a/calliope-web/src/lib/i18n/ja.ts b/calliope-web/src/lib/i18n/ja.ts index 109a99d2..8797046e 100644 --- a/calliope-web/src/lib/i18n/ja.ts +++ b/calliope-web/src/lib/i18n/ja.ts @@ -1222,4 +1222,64 @@ export const ja: Dict = { 'models.loading': '読み込み中…', 'models.loadFailed': '設定の読み込みに失敗しました', 'models.idleFormHint': 'カードの「編集」を選ぶか、上の「モデルを追加」をクリックしてください', + + // --- A shell + projects overview (HEL-608) --- + 'shell.brand': '映画工房', + 'shell.brandHome': 'プロジェクト概要へ戻る', + 'shell.navAria': 'メインナビゲーション', + 'shell.navProjects': 'プロジェクト', + 'shell.navWorkbench': '制作ワークベンチ', + 'shell.navImage': '画像生成', + 'shell.navVideo': '動画生成', + 'shell.navTasks': '生成タスク', + 'shell.navAgents': 'エージェント', + 'shell.navConnections': 'ComfyUI 接続', + 'shell.navModels': 'モデル設定', + 'shell.navSettings': '設定', + 'shell.wip': '開発中', + 'shell.wipHint': 'このページは準備中です。後ほど公開されます', + 'shell.comfyAt': 'ComfyUI · {host}', + 'shell.comfyUnset': 'ComfyUI · 未設定', + 'shell.comfyManage': '「設定」で ComfyUI のアドレスを設定できます', + 'shell.mobileNotice': 'このワークベンチはデスクトップブラウザ(幅 768px 以上)で開いてください。スマートフォンには未対応です。', + 'home.title': 'プロジェクト概要', + 'home.subtitle': '創作プロジェクトを管理 — アイデアでも完成台本でも始められます。', + 'home.projectCount': 'プロジェクト {n} 件 · 進行中 {m} 件', + 'home.startIdea': 'アイデアから始める', + 'home.importScript': '台本を取り込む', + 'home.entryIdeaTitle': 'アイデアから始める', + 'home.entryIdeaBody': 'アイデアを書くと、エージェントが物語・絵コンテ・クリップへ順を追って仕上げます。', + 'home.entryScriptTitle': '台本を取り込む', + 'home.entryScriptBody': '完成した台本があれば貼り付けてプロジェクトを作成。台本エージェントが順序立ったシーンに整理します。', + 'home.ideaPlaceholder': '雨の夜の小さな港で、灯台守が見つけたものは……', + 'home.scriptField': '台本全文', + 'home.scriptPlaceholder': '台本の全文をここに貼り付けてください……', + 'home.scriptHint': '作成後「エージェント」ページが開き、台本エージェントが順序立ったシーンに整理します。', + 'home.errTitle': 'プロジェクトにタイトルを付けてください', + 'home.errScript': '台本の全文を貼り付けてください', + 'home.myProjects': 'マイプロジェクト', + 'home.myProjectsHint': 'プロジェクトをクリックして作業を続ける', + 'home.emptyProjects': 'まだプロジェクトがありません。上の「アイデアから始める」か「台本を取り込む」で最初のプロジェクトを作成しましょう。', + 'home.noIdea': 'アイデアの説明はまだありません', + 'home.statScenes': 'シーン {n}', + 'home.statCharacters': '登場人物 {n}', + 'home.statAssets': '素材 {ready}/{total}', + 'home.statusDraft': '下書き', + 'home.statusProgress': '進行中', + 'home.statusDone': '完了', + 'home.tasksTitle': '生成タスク', + 'home.activeJobs': '{n} 件実行中', + 'home.emptyJobs': '生成タスクはまだありません', + 'home.emptyJobsSub': 'プロジェクトやワークベンチから生成を開始すると、ここに表示されます。', + 'home.tasksNote': '独立した「生成タスク」ページは開発中。現在は各プロジェクト内で完全な履歴を確認できます。', + 'home.kindImage': '画像', + 'home.kindVideo': '動画', + 'home.kindExport': '映画', + 'home.jobDone': '完了', + 'home.jobRunning': '実行中', + 'home.jobQueued': '待機中', + 'home.jobFailed': '失敗', + 'home.jobRequeued': 'タスクを再び待機列に入れました', + 'home.jobRetryFailed': 'タスクを再待機できませんでした', + 'home.jobProject': 'プロジェクト #{id}', }; diff --git a/calliope-web/src/lib/i18n/ko.ts b/calliope-web/src/lib/i18n/ko.ts index c3855c1f..bae99a46 100644 --- a/calliope-web/src/lib/i18n/ko.ts +++ b/calliope-web/src/lib/i18n/ko.ts @@ -1222,4 +1222,64 @@ export const ko: Dict = { 'models.loading': '불러오는 중…', 'models.loadFailed': '설정을 불러오지 못했습니다', 'models.idleFormHint': '카드의 «편집»을 누르거나 위의 «모델 추가»를 클릭하세요', + + // --- A shell + projects overview (HEL-608) --- + 'shell.brand': '영화 공작소', + 'shell.brandHome': '프로젝트 개요로 돌아가기', + 'shell.navAria': '주요 탐색', + 'shell.navProjects': '프로젝트', + 'shell.navWorkbench': '창작 워크벤치', + 'shell.navImage': '이미지 생성', + 'shell.navVideo': '영상 생성', + 'shell.navTasks': '생성 작업', + 'shell.navAgents': '에이전트', + 'shell.navConnections': 'ComfyUI 연결', + 'shell.navModels': '모델 설정', + 'shell.navSettings': '설정', + 'shell.wip': '개발 중', + 'shell.wipHint': '이 페이지는 준비 중이며 곧 열립니다', + 'shell.comfyAt': 'ComfyUI · {host}', + 'shell.comfyUnset': 'ComfyUI · 미설정', + 'shell.comfyManage': '「설정」에서 ComfyUI 주소를 설정하세요', + 'shell.mobileNotice': '이 워크벤치는 데스크톱 브라우저(폭 768px 이상)에서 열어 주세요. 휴대폰은 아직 지원되지 않습니다.', + 'home.title': '프로젝트 개요', + 'home.subtitle': '창작 프로젝트를 관리하세요 — 아이디어나 완성된 대본으로 시작할 수 있습니다.', + 'home.projectCount': '프로젝트 {n}개 · 진행 중 {m}개', + 'home.startIdea': '아이디어로 시작', + 'home.importScript': '대본 가져오기', + 'home.entryIdeaTitle': '아이디어로 시작', + 'home.entryIdeaBody': '아이디어를 적으면 에이전트가 이야기·스토리보드·클립을 단계별로 완성합니다.', + 'home.entryScriptTitle': '대본 가져오기', + 'home.entryScriptBody': '이미 대본이 있나요? 붙여넣어 프로젝트를 만들면 대본 에이전트가 순서 있는 장면으로 정리합니다.', + 'home.ideaPlaceholder': '비 내리는 밤의 작은 항구, 등대지기가 발견한 것은……', + 'home.scriptField': '대본 전문', + 'home.scriptPlaceholder': '대본 전문을 여기에 붙여넣으세요……', + 'home.scriptHint': '만들면 「에이전트」 페이지가 열리고 대본 에이전트가 순서 있는 장면으로 정리합니다.', + 'home.errTitle': '프로젝트 제목을 입력하세요', + 'home.errScript': '대본 전문을 붙여넣으세요', + 'home.myProjects': '내 프로젝트', + 'home.myProjectsHint': '프로젝트를 클릭해 이어서 작업', + 'home.emptyProjects': '아직 프로젝트가 없습니다. 위의 「아이디어로 시작」 또는 「대본 가져오기」로 첫 프로젝트를 만들어 보세요.', + 'home.noIdea': '아이디어 설명이 아직 없습니다', + 'home.statScenes': '장면 {n}', + 'home.statCharacters': '등장인물 {n}', + 'home.statAssets': '소재 {ready}/{total}', + 'home.statusDraft': '초안', + 'home.statusProgress': '진행 중', + 'home.statusDone': '완료', + 'home.tasksTitle': '생성 작업', + 'home.activeJobs': '{n}개 실행 중', + 'home.emptyJobs': '아직 생성 작업이 없습니다', + 'home.emptyJobsSub': '프로젝트나 워크벤치에서 생성을 시작하면 여기에 표시됩니다.', + 'home.tasksNote': '독립적인 「생성 작업」 페이지는 개발 중입니다. 현재는 각 프로젝트에서 전체 기록을 볼 수 있습니다.', + 'home.kindImage': '이미지', + 'home.kindVideo': '영상', + 'home.kindExport': '필름', + 'home.jobDone': '완료', + 'home.jobRunning': '실행 중', + 'home.jobQueued': '대기 중', + 'home.jobFailed': '실패', + 'home.jobRequeued': '작업이 다시 대기열에 추가되었습니다', + 'home.jobRetryFailed': '작업을 다시 대기열에 넣지 못했습니다', + 'home.jobProject': '프로젝트 #{id}', }; diff --git a/calliope-web/src/lib/i18n/zh.ts b/calliope-web/src/lib/i18n/zh.ts index 675e1895..47ef693e 100644 --- a/calliope-web/src/lib/i18n/zh.ts +++ b/calliope-web/src/lib/i18n/zh.ts @@ -1222,4 +1222,64 @@ export const zh: Dict = { 'models.loading': '加载中…', 'models.loadFailed': '设置加载失败', 'models.idleFormHint': '从左侧选择「编辑」,或点上方「添加模型」新增配置', + + // --- A shell + projects overview (HEL-608) --- + 'shell.brand': '影工坊', + 'shell.brandHome': '返回项目总览', + 'shell.navAria': '主导航', + 'shell.navProjects': '项目', + 'shell.navWorkbench': '创作工作台', + 'shell.navImage': '生图', + 'shell.navVideo': '生视频', + 'shell.navTasks': '生成任务', + 'shell.navAgents': '智能体', + 'shell.navConnections': 'ComfyUI 连接', + 'shell.navModels': '模型设置', + 'shell.navSettings': '设置', + 'shell.wip': '开发中', + 'shell.wipHint': '该页面正在开发中,稍后开放', + 'shell.comfyAt': 'ComfyUI · {host}', + 'shell.comfyUnset': 'ComfyUI · 未配置', + 'shell.comfyManage': '在「设置」中配置 ComfyUI 地址', + 'shell.mobileNotice': '请用桌面浏览器(宽 768px 以上)打开影工坊,手机端暂不适配。', + 'home.title': '项目总览', + 'home.subtitle': '管理创作项目,从一个创意或一份现成剧本开始。', + 'home.projectCount': '{n} 个项目 · {m} 个进行中', + 'home.startIdea': '从创意开始', + 'home.importScript': '导入剧本', + 'home.entryIdeaTitle': '从创意开始', + 'home.entryIdeaBody': '填一个想法,交给智能体逐步完成故事、分镜与成片。', + 'home.entryScriptTitle': '导入剧本', + 'home.entryScriptBody': '已有现成剧本?粘贴进来创建项目,交给剧本智能体整理为有序场景。', + 'home.ideaPlaceholder': '一个雨夜的小港,灯塔看守人发现了……', + 'home.scriptField': '剧本全文', + 'home.scriptPlaceholder': '把完整剧本粘贴到这里……', + 'home.scriptHint': '创建后会打开「智能体」,由剧本智能体把剧本整理成有序场景。', + 'home.errTitle': '请给项目起个标题', + 'home.errScript': '请粘贴剧本全文', + 'home.myProjects': '我的项目', + 'home.myProjectsHint': '点击项目继续创作', + 'home.emptyProjects': '还没有项目。从上方「从创意开始」或「导入剧本」创建第一个项目。', + 'home.noIdea': '暂无创意描述', + 'home.statScenes': '场景 {n}', + 'home.statCharacters': '角色 {n}', + 'home.statAssets': '素材 {ready}/{total}', + 'home.statusDraft': '待开始', + 'home.statusProgress': '进行中', + 'home.statusDone': '已完成', + 'home.tasksTitle': '生成任务', + 'home.activeJobs': '{n} 进行中', + 'home.emptyJobs': '还没有生成任务', + 'home.emptyJobsSub': '进入项目或创作工作台发起生成后,任务会显示在这里。', + 'home.tasksNote': '独立「生成任务」页开发中;当前可在各项目内查看完整任务。', + 'home.kindImage': '图片', + 'home.kindVideo': '视频', + 'home.kindExport': '成片', + 'home.jobDone': '完成', + 'home.jobRunning': '进行中', + 'home.jobQueued': '排队', + 'home.jobFailed': '失败', + 'home.jobRequeued': '任务已重新排队', + 'home.jobRetryFailed': '重新排队失败', + 'home.jobProject': '项目 #{id}', }; diff --git a/calliope-web/src/routes/+page.svelte b/calliope-web/src/routes/+page.svelte index 14dc68fa..1dfeae4c 100644 --- a/calliope-web/src/routes/+page.svelte +++ b/calliope-web/src/routes/+page.svelte @@ -1,5 +1,977 @@ + + + {#snippet actions()} + {t('home.projectCount', { n: allProjects.length, m: inProgressCount })} + + {/snippet} + +
+
+ {#if entryMode === 'none'} +
+
+ +

{t('home.entryIdeaTitle')}

+

{t('home.entryIdeaBody')}

+ +
+
+ +

{t('home.entryScriptTitle')}

+

{t('home.entryScriptBody')}

+ +
+
+ {:else if entryMode === 'idea'} +
+
+

{t('home.entryIdeaTitle')}

+ +
+ + +
+ + + +
+
+ + +
+
+ {:else} +
+
+

{t('home.entryScriptTitle')}

+ +
+ + +
+ + +
+
+ {/if} + +
+

{t('home.myProjects')}

+ {#if allProjects.length > 0} + {t('home.myProjectsHint')} + {/if} +
+ + {#if $projectsQuery.isLoading} +
+ {#each [1, 2, 3] as n (n)} +
+ +
+ + + +
+
+ {/each} +
+ {:else if $projectsQuery.isError} +
+ +

{t('projects.loadError')}

+ +
+ {:else if allProjects.length === 0} +
+ +

{t('home.emptyProjects')}

+
+ {:else} +
+ {#each allProjects as project (project.id)} + + {/each} +
+ {/if} +
+ + +
+
+ + diff --git a/calliope-web/src/routes/+page.ts b/calliope-web/src/routes/+page.ts index ac074acf..dbfefcae 100644 --- a/calliope-web/src/routes/+page.ts +++ b/calliope-web/src/routes/+page.ts @@ -1,8 +1,7 @@ -import { redirect } from '@sveltejs/kit'; - export const prerender = false; export const ssr = false; +// The root route is the A「片场暗房」项目总览 (HEL-608) — no redirect. export function load() { - redirect(302, '/agents'); + return {}; } diff --git a/calliope-web/src/routes/models/+page.svelte b/calliope-web/src/routes/models/+page.svelte index 3e4939c9..37c36d0f 100644 --- a/calliope-web/src/routes/models/+page.svelte +++ b/calliope-web/src/routes/models/+page.svelte @@ -1,7 +1,7 @@ - - {t('models.title')} - + + {#snippet actions()} + {#if !$settingsQuery.isLoading && $settingsQuery.data} + {@const profiles = $settingsQuery.data.llm_profiles} + {@const availableCount = profiles.filter((p) => tests[p.id]?.ok).length} + + {t('models.statusCount', { n: profiles.length, m: availableCount })} + + {/if} + + {/snippet} -
- -
+
{#if $settingsQuery.isLoading}

{t('models.loading')}

{:else if !$settingsQuery.data} @@ -483,23 +500,6 @@ {@const s = $settingsQuery.data} {@const profiles = s.llm_profiles} {@const activeId = s.llm_active_id ?? profiles[0]?.id ?? ''} - {@const availableCount = profiles.filter((p) => tests[p.id]?.ok).length} - -
-
-

{t('models.title')}

-

{t('models.subtitle')}

-
-
- - {t('models.statusCount', { n: profiles.length, m: availableCount })} - - -
-
@@ -644,7 +644,9 @@ {#each profiles as p (p.id)} {/each} @@ -831,7 +833,7 @@
{/if}
-
+