support for ComfyUI new UI

This commit is contained in:
刘雪峰
2024-08-08 18:08:46 +08:00
parent 5266c2bb14
commit 3c134e21fc
4 changed files with 11 additions and 4 deletions
+6
View File
@@ -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)菜单。
- 复制工作流
+1 -1
View File
@@ -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"]
+2 -1
View File
@@ -1,2 +1,3 @@
segment_anything
simple_lama_inpainting
simple_lama_inpainting
insightface
+2 -2
View File
@@ -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);