Compare commits
14
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3ed9729960 | ||
|
|
9147ddd2e1 | ||
|
|
4c4fcc09c0 | ||
|
|
dee5c9e071 | ||
|
|
0539464d62 | ||
|
|
e5d3f66296 | ||
|
|
8962549393 | ||
|
|
1a78c04cba | ||
|
|
4fdfe7c18a | ||
|
|
19e175c571 | ||
|
|
de5a1791d4 | ||
|
|
ab265cf3ec | ||
|
|
1a8519b5d4 | ||
|
|
10b84ab722 |
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
[project]
|
[project]
|
||||||
name = "comfyui-deploy"
|
name = "comfyui-deploy"
|
||||||
description = "Open source comfyui deployment platform, a vercel for generative workflow infra."
|
description = "Open source comfyui deployment platform, a vercel for generative workflow infra."
|
||||||
version = "2.3.2"
|
version = "2.3.0"
|
||||||
license = { file = "LICENSE" }
|
license = { file = "LICENSE" }
|
||||||
dependencies = ["aiofiles", "pydantic", "opencv-python", "imageio-ffmpeg", "tabulate", "brotli"]
|
dependencies = ["aiofiles", "pydantic", "opencv-python", "imageio-ffmpeg", "tabulate", "brotli"]
|
||||||
|
|
||||||
|
|||||||
+153
-869
File diff suppressed because it is too large
Load Diff
@@ -1475,7 +1475,7 @@ window.applySyncChanges = async function (machineId) {
|
|||||||
// Close the dialog
|
// Close the dialog
|
||||||
closeSyncDialog();
|
closeSyncDialog();
|
||||||
|
|
||||||
if (response.id) {
|
if (response.ok) {
|
||||||
window.app.extensionManager.toast.add({
|
window.app.extensionManager.toast.add({
|
||||||
severity: "success",
|
severity: "success",
|
||||||
summary: "Machine updated successfully",
|
summary: "Machine updated successfully",
|
||||||
|
|||||||
@@ -49,7 +49,6 @@ async function fetchWorkflows(getData, offset = 0, limit = 20, search = "") {
|
|||||||
|
|
||||||
function createWorkflowItem(workflow, getTimeAgo, getData) {
|
function createWorkflowItem(workflow, getTimeAgo, getData) {
|
||||||
const li = document.createElement("li");
|
const li = document.createElement("li");
|
||||||
let loadingToast = null;
|
|
||||||
li.style.cssText = `
|
li.style.cssText = `
|
||||||
border-bottom: 1px solid #444;
|
border-bottom: 1px solid #444;
|
||||||
background: transparent;
|
background: transparent;
|
||||||
@@ -75,7 +74,7 @@ function createWorkflowItem(workflow, getTimeAgo, getData) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Show loading toast
|
// Show loading toast
|
||||||
loadingToast = window.app.extensionManager.toast.add({
|
const loadingToast = window.app.extensionManager.toast.add({
|
||||||
severity: "info",
|
severity: "info",
|
||||||
summary: "Loading workflow...",
|
summary: "Loading workflow...",
|
||||||
detail: `Loading "${workflow.name}"`,
|
detail: `Loading "${workflow.name}"`,
|
||||||
@@ -109,33 +108,6 @@ function createWorkflowItem(workflow, getTimeAgo, getData) {
|
|||||||
// Load the workflow
|
// Load the workflow
|
||||||
window.app.loadGraphData(latestVersion.workflow);
|
window.app.loadGraphData(latestVersion.workflow);
|
||||||
|
|
||||||
// Wait a bit for the graph to fully load before checking for ComfyDeploy node
|
|
||||||
await new Promise((resolve) => setTimeout(resolve, 100));
|
|
||||||
|
|
||||||
// Check if ComfyDeploy node exists, if not add it back
|
|
||||||
const graph = window.app.graph;
|
|
||||||
let deployMeta = graph.findNodesByType("ComfyDeploy");
|
|
||||||
|
|
||||||
if (deployMeta.length === 0) {
|
|
||||||
// Add ComfyDeploy node with workflow metadata
|
|
||||||
graph.beforeChange();
|
|
||||||
const node = LiteGraph.createNode("ComfyDeploy");
|
|
||||||
node.configure({
|
|
||||||
widgets_values: [
|
|
||||||
workflow.name, // workflow_name
|
|
||||||
workflow.id, // workflow_id
|
|
||||||
latestVersion.version, // version
|
|
||||||
],
|
|
||||||
});
|
|
||||||
node.pos = [0, 0];
|
|
||||||
graph.add(node);
|
|
||||||
graph.afterChange();
|
|
||||||
|
|
||||||
console.log(
|
|
||||||
`Added ComfyDeploy node with: name="${workflow.name}", id="${workflow.id}", version="${latestVersion.version}"`
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Show success toast
|
// Show success toast
|
||||||
window.app.extensionManager.toast.add({
|
window.app.extensionManager.toast.add({
|
||||||
severity: "success",
|
severity: "success",
|
||||||
@@ -155,9 +127,7 @@ function createWorkflowItem(workflow, getTimeAgo, getData) {
|
|||||||
life: 5000,
|
life: 5000,
|
||||||
});
|
});
|
||||||
} finally {
|
} finally {
|
||||||
if (loadingToast) {
|
loadingToast.close();
|
||||||
loadingToast.close();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user