From 3c134e21fcbc945577bbc4f60ca2b19dcc41d606 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E9=9B=AA=E5=B3=B0?= Date: Thu, 8 Aug 2024 18:08:46 +0800 Subject: [PATCH] support for ComfyUI new UI --- README.md | 6 ++++++ pyproject.toml | 2 +- requirements.txt | 3 ++- static/js/workflows.js | 4 ++-- 4 files changed, 11 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 0b5119c..089014e 100644 --- a/README.md +++ b/README.md @@ -51,6 +51,12 @@ Tips: base64格式字符串比较长,会导致界面卡顿,接口请求带 ### [示例](example/example.png) ![save api extended](docs/example_note.png) +## 更新记录 +### 2024-08-08 +- 菜单适配ComfyUI前端新界面 + + ![save api extended](docs/menu_new_ui.gif) + ## 功能 - 扩展Save(Api Format)菜单。 - 复制工作流 diff --git a/pyproject.toml b/pyproject.toml index 9960543..348d007 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,7 +1,7 @@ [project] name = "comfyui-easyapi-nodes" description = "Provides some features and nodes related to API calls." -version = "1.0.0" +version = "1.0.1" license = { file = "LICENSE" } dependencies = ["segment_anything", "simple_lama_inpainting", "insightface"] diff --git a/requirements.txt b/requirements.txt index 156036f..54e5bb8 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,2 +1,3 @@ segment_anything -simple_lama_inpainting \ No newline at end of file +simple_lama_inpainting +insightface \ No newline at end of file diff --git a/static/js/workflows.js b/static/js/workflows.js index fd7838a..15ff4a7 100644 --- a/static/js/workflows.js +++ b/static/js/workflows.js @@ -258,7 +258,7 @@ class EasyApiWorkflows { new ComfyButton({ icon: "api", content: "Copy to Base64 (API Format)", - tooltip: "Copy the current workflow as JSON for use with the ComfyUI API, replace input and output image nodes with base64 nodes", + tooltip: "Copy the current workflow as JSON for use with the ComfyUI API (Replace LoadImage to Base64Image, PreviewImage/SaveImage to ImageToBase64, LoadImageMask to Base64ToMask)", action: async () => { app.graphToPrompt().then(p => { const apiObj = p.output; @@ -278,7 +278,7 @@ class EasyApiWorkflows { let exportEasyApiButton = new ComfyButton({ icon: "api", content: "Export to Base64 (API Format)", - tooltip: "Export the current workflow as JSON for use with the ComfyUI API, replace input and output image nodes with base64 nodes", + tooltip: "Export the current workflow as JSON for use with the ComfyUI API (Replace LoadImage to Base64Image, PreviewImage/SaveImage to ImageToBase64, LoadImageMask to Base64ToMask)", action: async () => { let filename = "workflow_api(base64).json"; filename = prompt("Export workflow API (Replace LoadImage to Base64Image, PreviewImage/SaveImage to ImageToBase64) as:", filename);