Skip to content

Commit

Permalink
fix: add target='_blank' for linnk in notice board
Browse files Browse the repository at this point in the history
update DB
  • Loading branch information
ltdrdata committed Jun 18, 2024
1 parent 0e4f171 commit ae0e901
Show file tree
Hide file tree
Showing 8 changed files with 80 additions and 9 deletions.
11 changes: 11 additions & 0 deletions custom-node-list.json
Original file line number Diff line number Diff line change
Expand Up @@ -10461,6 +10461,17 @@
"install_type": "git-clone",
"description": "Unofficial Luma API-ComfyUI version.[w/WARN: This project is for learning purpose only!]"
},
{
"author": "chris-the-wiz",
"title": "EmbeddingsCurveEditor_ComfyUI",
"id": "embeddings-curve-editor",
"reference": "https://github.com/chris-the-wiz/EmbeddingsCurveEditor_ComfyUI",
"files": [
"https://github.com/chris-the-wiz/EmbeddingsCurveEditor_ComfyUI"
],
"install_type": "git-clone",
"description": "Edit embeddings with a curve. Actually should work on any 1D input tensor. Tested with IPAdapter-Plus."
},



Expand Down
21 changes: 18 additions & 3 deletions extension-node-map.json
Original file line number Diff line number Diff line change
Expand Up @@ -2254,6 +2254,7 @@
"https://github.com/JayLyu/ComfyUI_BaiKong_Node": [
[
"BK_ColorSelector",
"BK_GradientImage",
"BK_Img2Color"
],
{
Expand Down Expand Up @@ -5935,9 +5936,9 @@
"https://github.com/badayvedat/ComfyUI-fal-Connector": [
[
"BooleanInput_fal",
"ComboInput_fal",
"FloatInput_fal",
"IntegerInput_fal",
"SaveImage_fal",
"StringInput_fal"
],
{
Expand Down Expand Up @@ -7223,6 +7224,14 @@
"title_aux": "Comfy-Topaz"
}
],
"https://github.com/chris-the-wiz/EmbeddingsCurveEditor_ComfyUI": [
[
"Embeddings Curve Editor"
],
{
"title_aux": "EmbeddingsCurveEditor_ComfyUI"
}
],
"https://github.com/chrisfreilich/virtuoso-nodes": [
[
"BlackAndWhite",
Expand Down Expand Up @@ -8520,12 +8529,18 @@
],
"https://github.com/exdysa/comfyui-selector": [
[
"Fork",
"ForkClip",
"Recourse",
"Selector"
"Recourse+/-",
"RecourseCkpt",
"RecourseImage",
"Selector",
"Unite"
],
{
"author": "\"\u02f6\ud835\udfa2\u292c\u2ad2\u2d56s\u143c\u02f6\"",
"description": "\"Selector and Recourse for exdysa workflow. Preset aspect ratios, general settings, fallback switches.\"",
"description": "\"EXDYSA. Selector and Recourse. Presets & failsafes. Work flow.\"",
"nickname": "\"Selector\"",
"title": "\"Selector\"",
"title_aux": "comfyui-selector"
Expand Down
5 changes: 5 additions & 0 deletions github-stats.json
Original file line number Diff line number Diff line change
Expand Up @@ -2249,6 +2249,11 @@
"last_update": "2024-06-14 10:59:30",
"author_account_age_days": 5517
},
"https://github.com/chris-the-wiz/EmbeddingsCurveEditor_ComfyUI": {
"stars": 0,
"last_update": "2024-06-18 15:50:52",
"author_account_age_days": 1791
},
"https://github.com/chrisfreilich/virtuoso-nodes": {
"stars": 48,
"last_update": "2024-05-23 01:15:43",
Expand Down
2 changes: 1 addition & 1 deletion glob/manager_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
import cm_global
from manager_util import *

version = [2, 38, 1]
version = [2, 38, 2]
version_str = f"V{version[0]}.{version[1]}" + (f'.{version[2]}' if len(version) > 2 else '')

comfyui_manager_path = os.path.abspath(os.path.join(os.path.dirname(__file__), '..'))
Expand Down
15 changes: 15 additions & 0 deletions glob/manager_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -1128,6 +1128,19 @@ async def channel_url_list(request):
return web.Response(status=200)


def add_target_blank(html_text):
pattern = r'(<a\s+href="[^"]*"\s*[^>]*)(>)'

def add_target(match):
if 'target=' not in match.group(1):
return match.group(1) + ' target="_blank"' + match.group(2)
return match.group(0)

modified_html = re.sub(pattern, add_target, html_text)

return modified_html


@PromptServer.instance.routes.get("/manager/notice")
async def get_notice(request):
url = "github.com"
Expand All @@ -1148,6 +1161,8 @@ async def get_notice(request):
# markdown_content += f"<BR>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;()"
markdown_content += f"<BR>Manager: {core.version_str}"

markdown_content = add_target_blank(markdown_content)

try:
if core.comfy_ui_required_commit_datetime.date() > core.comfy_ui_commit_datetime.date():
markdown_content = f'<P style="text-align: center; color:red; background-color:white; font-weight:bold">Your ComfyUI is too OUTDATED!!!</P>' + markdown_content
Expand Down
12 changes: 11 additions & 1 deletion node_db/new/custom-node-list.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,17 @@




{
"author": "chris-the-wiz",
"title": "EmbeddingsCurveEditor_ComfyUI",
"id": "embeddings-curve-editor",
"reference": "https://github.com/chris-the-wiz/EmbeddingsCurveEditor_ComfyUI",
"files": [
"https://github.com/chris-the-wiz/EmbeddingsCurveEditor_ComfyUI"
],
"install_type": "git-clone",
"description": "Edit embeddings with a curve. Actually should work on any 1D input tensor. Tested with IPAdapter-Plus."
},
{
"author": "AustinMroz",
"title": "ComfyUI-WorkflowCheckpointing",
Expand Down
21 changes: 18 additions & 3 deletions node_db/new/extension-node-map.json
Original file line number Diff line number Diff line change
Expand Up @@ -2254,6 +2254,7 @@
"https://github.com/JayLyu/ComfyUI_BaiKong_Node": [
[
"BK_ColorSelector",
"BK_GradientImage",
"BK_Img2Color"
],
{
Expand Down Expand Up @@ -5935,9 +5936,9 @@
"https://github.com/badayvedat/ComfyUI-fal-Connector": [
[
"BooleanInput_fal",
"ComboInput_fal",
"FloatInput_fal",
"IntegerInput_fal",
"SaveImage_fal",
"StringInput_fal"
],
{
Expand Down Expand Up @@ -7223,6 +7224,14 @@
"title_aux": "Comfy-Topaz"
}
],
"https://github.com/chris-the-wiz/EmbeddingsCurveEditor_ComfyUI": [
[
"Embeddings Curve Editor"
],
{
"title_aux": "EmbeddingsCurveEditor_ComfyUI"
}
],
"https://github.com/chrisfreilich/virtuoso-nodes": [
[
"BlackAndWhite",
Expand Down Expand Up @@ -8520,12 +8529,18 @@
],
"https://github.com/exdysa/comfyui-selector": [
[
"Fork",
"ForkClip",
"Recourse",
"Selector"
"Recourse+/-",
"RecourseCkpt",
"RecourseImage",
"Selector",
"Unite"
],
{
"author": "\"\u02f6\ud835\udfa2\u292c\u2ad2\u2d56s\u143c\u02f6\"",
"description": "\"Selector and Recourse for exdysa workflow. Preset aspect ratios, general settings, fallback switches.\"",
"description": "\"EXDYSA. Selector and Recourse. Presets & failsafes. Work flow.\"",
"nickname": "\"Selector\"",
"title": "\"Selector\"",
"title_aux": "comfyui-selector"
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 = "comfyui-manager"
description = "ComfyUI-Manager provides features to install and manage custom nodes for ComfyUI, as well as various functionalities to assist with ComfyUI."
version = "2.38.1"
version = "2.38.2"
license = "LICENSE"
dependencies = ["GitPython", "PyGithub", "matrix-client==0.4.0", "transformers", "huggingface-hub>0.20", "typer", "rich", "typing-extensions"]

Expand Down

0 comments on commit ae0e901

Please sign in to comment.