mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-23 07:50:15 +00:00
Format everything (#211)
This commit is contained in:
@@ -13,8 +13,14 @@ async function setup() {
|
||||
resp.on("end", () => {
|
||||
// Modify the response data to add some checkpoints
|
||||
const objectInfo = JSON.parse(data);
|
||||
objectInfo.CheckpointLoaderSimple.input.required.ckpt_name[0] = ["model1.safetensors", "model2.ckpt"];
|
||||
objectInfo.VAELoader.input.required.vae_name[0] = ["vae1.safetensors", "vae2.ckpt"];
|
||||
objectInfo.CheckpointLoaderSimple.input.required.ckpt_name[0] = [
|
||||
"model1.safetensors",
|
||||
"model2.ckpt",
|
||||
];
|
||||
objectInfo.VAELoader.input.required.vae_name[0] = [
|
||||
"vae1.safetensors",
|
||||
"vae2.ckpt",
|
||||
];
|
||||
|
||||
data = JSON.stringify(objectInfo, undefined, "\t");
|
||||
|
||||
@@ -24,7 +30,9 @@ async function setup() {
|
||||
}
|
||||
|
||||
const outPath = resolve(outDir, "object_info.json");
|
||||
console.log(`Writing ${Object.keys(objectInfo).length} nodes to ${outPath}`);
|
||||
console.log(
|
||||
`Writing ${Object.keys(objectInfo).length} nodes to ${outPath}`
|
||||
);
|
||||
writeFileSync(outPath, data, {
|
||||
encoding: "utf8",
|
||||
});
|
||||
@@ -35,4 +43,4 @@ async function setup() {
|
||||
});
|
||||
}
|
||||
|
||||
setup();
|
||||
setup();
|
||||
|
||||
Reference in New Issue
Block a user