Prompt serializer and test fixes

This commit is contained in:
space-nuko
2023-05-20 21:42:38 -05:00
parent 8d031120f7
commit 09e806bd3e
17 changed files with 196 additions and 106 deletions

View File

@@ -3,7 +3,11 @@ import type { SerializedAppState } from "./components/ComfyApp"
const blankGraph: SerializedAppState = {
createdBy: "ComfyBox",
version: 1,
workflowName: "New Workflow",
attrs: {
title: "New Workflow",
queuePromptButtonName: "Queue Prompt",
queuePromptButtonRunWorkflow: true
},
workflow: {
last_node_id: 0,
last_link_id: 0,
@@ -17,10 +21,10 @@ const blankGraph: SerializedAppState = {
layout: {
root: null,
allItems: {},
attrs: {
queuePromptButtonName: "Queue Prompt",
queuePromptButtonRunWorkflow: true
}
},
canvas: {
offset: [0, 0],
scale: 1
}
}