feat: add create workflow run error server action catch, redirect workflow parse error, add key revoked col

This commit is contained in:
BennyKok
2023-12-16 14:55:30 +08:00
parent 0cf6d97f2f
commit 21a17cb753
16 changed files with 839 additions and 188 deletions
+5 -3
View File
@@ -5,7 +5,7 @@ import { ComfyWidgets, LGraphNode } from "./widgets.js";
/** @typedef {import('../../../web/types/comfy.js').ComfyExtension} ComfyExtension*/
/** @type {ComfyExtension} */
const ext = {
name: "BennyKok.ComfyDeploy",
name: "BennyKok.ComfyUIDeploy",
init(app) {
addButton();
@@ -65,7 +65,7 @@ const ext = {
// Load default visibility
LiteGraph.registerNodeType(
"Comfy Deploy",
"ComfyDeploy",
Object.assign(ComfyDeploy, {
title_mode: LiteGraph.NORMAL_TITLE,
title: "Comfy Deploy",
@@ -112,7 +112,7 @@ function addButton() {
/** @type {LGraph} */
const graph = app.graph;
const deployMeta = graph.findNodesByType("Comfy Deploy");
const deployMeta = graph.findNodesByType("ComfyDeploy");
const deployMetaNode = deployMeta[0];
console.log(deployMetaNode);
@@ -137,6 +137,8 @@ function addButton() {
deploy.textContent = "Deploying...";
deploy.style.color = "orange";
console.log(prompt);
const apiRoute = endpoint + "/api/upload"
// const userId = apiKey
try {