chore: commit workspace updates
This commit is contained in:
@@ -11,7 +11,7 @@ import { useConfigStore, type AiConfig, type RunningHubCapability, type Workflow
|
||||
import type { ReferenceImage } from "@/types/image";
|
||||
import type { ReferenceAudio, ReferenceVideo } from "@/types/media";
|
||||
|
||||
type WorkflowProvider = "runninghub" | "comfyui";
|
||||
type WorkflowProvider = "runninghub";
|
||||
type MediaKind = "image" | "video" | "audio";
|
||||
type Point = { x: number; y: number };
|
||||
type NodePositionMap = Record<string, Point>;
|
||||
@@ -192,7 +192,7 @@ export function WorkflowTestWorkbench({ provider, workflowId, workflowKind = "wo
|
||||
<div className="min-w-0">
|
||||
<strong>{title || workflowId || "未选择工作流"}</strong>
|
||||
<span>
|
||||
{provider === "runninghub" ? "RunningHub" : "ComfyUI Bridge"} · {capabilityName(capability)}工作流 · 测试值不会覆盖保存配置
|
||||
RunningHub · {capabilityName(capability)}工作流 · 测试值不会覆盖保存配置
|
||||
</span>
|
||||
</div>
|
||||
<div className="workflow-test-toolbar-actions">
|
||||
@@ -411,8 +411,6 @@ function buildTestConfig(config: AiConfig, provider: WorkflowProvider, workflowI
|
||||
selectedKind: workflowKind,
|
||||
workflows: config.runningHub.workflows.map((item) => (item.workflowId.trim() === workflowId.trim() && (item.kind === "app" ? "app" : "workflow") === workflowKind ? { ...item, fields: patchedFields } : item)),
|
||||
};
|
||||
} else {
|
||||
next.comfyBridge = { ...config.comfyBridge, enabled: true, workflowId, workflows: config.comfyBridge.workflows.map((item) => (item.workflowId.trim() === workflowId.trim() ? { ...item, fields: patchedFields } : item)) };
|
||||
}
|
||||
return next;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user