Skip to content

Commit

Permalink
import change for chromium tab crash
Browse files Browse the repository at this point in the history
added ComfyUI default "tooltips" as last fallback for help docs
  • Loading branch information
Amorano committed Sep 4, 2024
1 parent d89adc3 commit 090a32d
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 9 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,11 @@ If those nodes have descriptions written in HTML or Markdown, they will be conve

## UPDATES

**2024/09/04**:
* Import change for chromium tab crash
* Added ComfyUI default "tooltips" as last fallback for help docs
* Supports ComfyUI 0.2.1+, frontend 1.2.45+

**2024/09/03**:
* New `QUEUE TOO` Node focused on efficient image media loading.
* Better reporting in `AKASHIC` Node for core ComfyUI types.
Expand Down
13 changes: 9 additions & 4 deletions __init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -365,10 +365,14 @@ def _parse(cls, node: dict, node_cls: object) -> dict:
continue
for k, v in entry.items():
widget_data = v[1] if isinstance(v, (tuple, list,)) and len(v) > 1 else {}
# jovimetrix
if (tip := widget_data.get("tooltips", None)) is None:
# cached
if (tip := cls._tooltipsDB.get(k), None) is None:
logger.warning(f"no {k}")
continue
# comfyui standard
if (tip := widget_data.get("tooltip", None)) is None:
logger.warning(f"no {k}")
continue
if cat == "outputs":
data["outputs"][k] = tip
else:
Expand Down Expand Up @@ -957,8 +961,9 @@ def __init__(self, *arg, **kw) -> None:
try:
shutil.copy2(JOV_DEFAULT, JOV_CONFIG_FILE)
logger.warning("---> DEFAULT CONFIGURATION <---")
except:
raise Exception("MAJOR 😿😰😬🥟 BLUNDERCATS 🥟😬😰😿")
except Exception as e:
logger.error("MAJOR 😿😰😬🥟 BLUNDERCATS 🥟😬😰😿")
logger.error(e)

if JOV_IGNORE_NODE.exists():
JOV_IGNORE_NODE = configLoad(JOV_IGNORE_NODE, False)
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[project]
name = "jovimetrix"
description = "Integrates Webcam, MIDI, Spout and GLSL shader support. Animation via tick. Parameter manipulation with wave generator. Math operations with Unary and Binary support. Value conversion for all major types (int, string, list, dict, Image, Mask). Shape mask generation, image stacking and channel ops, batch splitting, merging and randomizing, load images and video from anywhere, dynamic bus routing with a single node, export support for GIPHY, save output anywhere! flatten, crop, transform; check colorblindness, make stereogram or stereoscopic images, or liner interpolate values and more."
version = "1.2.33"
version = "1.2.34"
license = { file = "LICENSE" }
dependencies = [
"aenum>=3.1.15,<4",
Expand Down
13 changes: 9 additions & 4 deletions web/core/core_cozy_fields.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ app.registerExtension({
g_color_style = val;
},
});


id = "color 🎨.thickness"
app.ui.settings.addSetting({
id: `JOVIMETRIX 🔺🟩🔵.${id}`,
Expand All @@ -41,10 +43,12 @@ app.registerExtension({
tooltip: "Line thickness around widgets in Round or Line Highlight Mode.",
defaultValue: 1,
onChange: function(val) {
util_config.setting_store(id, val);
setting_store(id, val);
g_thickness = val;
},
});


id = "color 🎨.highlight"
app.ui.settings.addSetting({
id: `JOVIMETRIX 🔺🟩🔵.${id}`,
Expand All @@ -53,7 +57,7 @@ app.registerExtension({
tooltip: "Color Highlight if Round or Line mode enabled. Hex code entry #FFF. The default will use the node base color.",
defaultValue: "",
onChange: function(val) {
util_config.setting_store(id, val);
setting_store(id, val);
g_highlight = val;
},
});
Expand Down Expand Up @@ -120,5 +124,6 @@ app.registerExtension({
}
return me;
}
},
})
}
*/
})

0 comments on commit 090a32d

Please sign in to comment.