update IDENode

+ Implemented features save, rename, remove file code
+ Implemented checking save filename and extensions
+ Update visual style buttons and structure
+ Other smaller feature
+ Update version
This commit is contained in:
AlekPet
2026-05-07 13:15:59 +03:00
parent f874f96e9d
commit 7d76521a01
7 changed files with 26 additions and 5 deletions
+1 -2
View File
@@ -1,4 +1,3 @@
__pycache__
settings_nodes/
web_alekpet_nodes/lib/idenode/**/*.json
!web_alekpet_nodes/lib/idenode/**/add.json
web_alekpet_nodes/lib/idenode/**/*.json
+22
View File
@@ -44,3 +44,25 @@ Workflow link: [Workflow ai_translate_opus-mt_idenode_workflow.json](https://git
**Updated version IDENode load code**
![Screenshot IDE Node Load Code](https://github.com/AlekPet/ComfyUI_Custom_Nodes_AlekPet/raw/master/IDENode/IDENode_load_code.png)
**Note:** There are two folders `python` and `javascipt` along the path `..\custom_nodes\ComfyUI_Custom_Nodes_AlekPet\web_alekpet_nodes\lib\idenode\codes` where the json files with the codes are saved. There are also test files `add.json.example` (remove `.example` for them to work).
**Format JSON codes:**
```json
{
"language": "python",
"inputs": [
{ "name": "a", "type": "*" },
{ "name": "b", "type": "*" }
],
"outputs": [{ "name": "result", "type": "*" }],
"code": "result = a + b"
}
```
**Properties:**
_language_ - python or javascript
_inputs_ - inputs (name and type)
_outputs_ - outputs (name and type)
_code_ - the code itself
+1 -1
View File
@@ -1,7 +1,7 @@
[project]
name = "comfyui_custom_nodes_alekpet"
description = "Nodes: PoseNode, PainterNode, TranslateTextNode, TranslateCLIPTextEncodeNode, DeepTranslatorTextNode, DeepTranslatorCLIPTextEncodeNode, ArgosTranslateTextNode, ArgosTranslateCLIPTextEncodeNode, ChatGLM4TranslateCLIPTextEncodeNode, ChatGLM4TranslateTextNode, ChatGLM4InstructNode, ChatGLM4InstructMediaNode, ChatGLMImageGenerateNode, ChatGLMVideoGenerateNode, PreviewTextNode, HexToHueNode, ColorsCorrectNode, IDENode."
version = "1.1.5"
version = "1.1.6"
license = { file = "LICENSE" }
[project.urls]
@@ -1,6 +1,6 @@
.ide_node_controls {
padding: 0;
margin: -4px 0;
margin: 0;
display: grid;
gap: 10px;
grid-template-areas:
+1 -1
View File
@@ -197,7 +197,7 @@ app.registerExtension({
PYCODE: async (node, inputName, inputData, app) => {
// Wrapper and codeElement
const codeElementWrapper = makeElement("div", {
style: { height: "100%", marginTop: "-15px" },
style: { height: "100%", margin: "-10px 0 10px 0" },
});
const codeElement = makeElement("pre", {