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:
+1
-2
@@ -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
|
||||
@@ -44,3 +44,25 @@ Workflow link: [Workflow ai_translate_opus-mt_idenode_workflow.json](https://git
|
||||
|
||||
**Updated version IDENode load code**
|
||||

|
||||
|
||||
**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
@@ -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:
|
||||
|
||||
@@ -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", {
|
||||
|
||||
Reference in New Issue
Block a user