From 88965fa70d898a3550e124f5c7e26abc42a7378b Mon Sep 17 00:00:00 2001 From: leefer Date: Thu, 22 Oct 2026 02:57:22 +0800 Subject: [PATCH] fix(lists): key 48 loops with verified identity or positional semantics Co-authored-by: multica-agent --- .../src/lib/components/AttachToProject.svelte | 8 ++++---- .../src/lib/components/ComfyDynamicForm.svelte | 9 ++++++--- .../src/lib/components/LanguageSwitcher.svelte | 2 +- .../src/lib/components/desk/Artboard.svelte | 6 ++++-- .../lib/components/desk/DeskWorkflowRail.svelte | 4 ++-- .../src/lib/components/desk/StudioDesk.svelte | 6 +++--- .../src/lib/components/desk/WorkflowBay.svelte | 8 ++++---- .../src/lib/components/generate/Composer.svelte | 6 +++--- .../src/lib/components/manage/CloudModels.svelte | 2 +- .../src/lib/components/shell/AppShell.svelte | 4 ++-- .../src/lib/components/shell/ThemeChoices.svelte | 2 +- .../lib/components/video/SceneScriptDrawer.svelte | 2 +- .../lib/components/workbench/StageStepper.svelte | 2 +- .../components/workflows/WorkflowLibrary.svelte | 14 +++++++------- calliope-web/src/routes/+page.svelte | 2 +- calliope-web/src/routes/agents/+page.svelte | 10 +++++----- calliope-web/src/routes/connections/+page.svelte | 2 +- calliope-web/src/routes/library/+page.svelte | 2 +- calliope-web/src/routes/settings/+page.svelte | 4 ++-- calliope-web/src/routes/tasks/+page.svelte | 7 ++++--- 20 files changed, 54 insertions(+), 48 deletions(-) diff --git a/calliope-web/src/lib/components/AttachToProject.svelte b/calliope-web/src/lib/components/AttachToProject.svelte index 2a6e35da..9ff1cda2 100644 --- a/calliope-web/src/lib/components/AttachToProject.svelte +++ b/calliope-web/src/lib/components/AttachToProject.svelte @@ -171,7 +171,7 @@ {t('attach.projectField')} @@ -192,7 +192,7 @@ {t('attach.characterField')} @@ -205,7 +205,7 @@ {t('attach.locationField')} @@ -230,7 +230,7 @@ {t('attach.sceneField')} diff --git a/calliope-web/src/lib/components/ComfyDynamicForm.svelte b/calliope-web/src/lib/components/ComfyDynamicForm.svelte index 7c46b7cc..4c0e4e78 100644 --- a/calliope-web/src/lib/components/ComfyDynamicForm.svelte +++ b/calliope-web/src/lib/components/ComfyDynamicForm.svelte @@ -382,7 +382,8 @@ }} > - {#each assetOptions as opt} + + {#each assetOptions as opt, i (i)} {/each} @@ -423,7 +424,8 @@ }} > - {#each assetOptions as opt} + + {#each assetOptions as opt, i (i)} {/each} @@ -454,7 +456,8 @@ }} > - {#each assetOptions as opt} + + {#each assetOptions as opt, i (i)} {/each} diff --git a/calliope-web/src/lib/components/LanguageSwitcher.svelte b/calliope-web/src/lib/components/LanguageSwitcher.svelte index c6492659..f4ac7eb2 100644 --- a/calliope-web/src/lib/components/LanguageSwitcher.svelte +++ b/calliope-web/src/lib/components/LanguageSwitcher.svelte @@ -14,7 +14,7 @@ {#if segmented}
- {#each languages as [code, label]}{/if}
- {#each spec as s}{s.label} · {s.value} + {#each spec as s, i (i)}{s.label} · {s.value}{/each}{#if endpoint}{endpoint}{/if}
{#if inputs.length || prompt} diff --git a/calliope-web/src/lib/components/desk/DeskWorkflowRail.svelte b/calliope-web/src/lib/components/desk/DeskWorkflowRail.svelte index de70ee13..3f7efbd9 100644 --- a/calliope-web/src/lib/components/desk/DeskWorkflowRail.svelte +++ b/calliope-web/src/lib/components/desk/DeskWorkflowRail.svelte @@ -206,7 +206,7 @@ - {#each usages as u}{/each} @@ -222,7 +222,7 @@ - {#each families as f}{/each} diff --git a/calliope-web/src/lib/components/desk/StudioDesk.svelte b/calliope-web/src/lib/components/desk/StudioDesk.svelte index 4fca08f5..3e810c5f 100644 --- a/calliope-web/src/lib/components/desk/StudioDesk.svelte +++ b/calliope-web/src/lib/components/desk/StudioDesk.svelte @@ -1356,9 +1356,9 @@
    {#if inputs.prompt}
  • 画面描述 · {inputs.prompt.required ? '必填' : '可选'} -
  • {/if}{#each inputs.slots as slot}
  • +
  • {/if}{#each inputs.slots as slot (slot.inp.nodeId)}
  • {slot.label} · {slot.inp.required ? '必填' : '可选'} -
  • {/each}{#each inputs.lists as list}
  • +
  • {/each}{#each inputs.lists as list (list.nodeId)}
  • {list.label} · {list.required ? '必填' : '可选'}{list.max ? ',最多 ' + list.max + ' 个' : ''} @@ -1449,7 +1449,7 @@ id="comfy-endpoint" bind:value={paramEndpoint} >{#if !endpoints.length}{/if}{#each endpoints as ep}{/if}{#each endpoints as ep (ep.id)}{/each}配置或检查连接 ↗
diff --git a/calliope-web/src/lib/components/desk/WorkflowBay.svelte b/calliope-web/src/lib/components/desk/WorkflowBay.svelte index 465e3247..99502ccf 100644 --- a/calliope-web/src/lib/components/desk/WorkflowBay.svelte +++ b/calliope-web/src/lib/components/desk/WorkflowBay.svelte @@ -174,7 +174,7 @@ recentOnly = false; }}>全部工具{metas.length} - {#each categories as cat}{#each commonInputs .filter((i) => i !== ds.height) - .slice(0, 3) as inp} - {#each [["image", "图片生成"], ["video", "视频生成"]] as [value, label]} + {#each [["image", "图片生成"], ["video", "视频生成"]] as [value, label] (value)} {/each} - {#each categories.filter((c) => c !== "image" && c !== "video") as c} - {#each families as f}{#each applicableSkills.filter((s) => (skillLabel(s.dir) + s.description) .toLowerCase() - .includes(skillSearch.toLowerCase())) as skill}{#each $settingsQuery.data?.llm_profiles ?? [] as model}

任务队列 规则说明

- {#each QUEUE_FIELDS.filter((f) => f.key === "queue_concurrency" || f.key === "queue_poll_timeout_sec") as f}
f.key === "queue_concurrency" || f.key === "queue_poll_timeout_sec") as f (f.key)}
@@ -480,7 +480,7 @@

队列高级选项

- {#each QUEUE_FIELDS.filter((f) => f.key !== "queue_concurrency" && f.key !== "queue_poll_timeout_sec") as f}{@render numberField( + {#each QUEUE_FIELDS.filter((f) => f.key !== "queue_concurrency" && f.key !== "queue_poll_timeout_sec") as f (f.key)}{@render numberField( s, f, )}{/each} diff --git a/calliope-web/src/routes/tasks/+page.svelte b/calliope-web/src/routes/tasks/+page.svelte index bce7b670..4469a925 100644 --- a/calliope-web/src/routes/tasks/+page.svelte +++ b/calliope-web/src/routes/tasks/+page.svelte @@ -187,7 +187,7 @@ {#snippet tools()}
- {#each [["all", "全部"], ["active", "进行中"], ["failed", "失败"], ["image", "图片"], ["video", "视频"]] as [value, label]}
{#if job.output_paths?.length}

产出 · {job.output_paths.length}

- {#each job.output_paths as path}
+ + {#each job.output_paths as path, i (i)}
{#if job.kind === "image"}