From b9f38f0d9c3b9a13f469ddd497cb4b7e67673e6d Mon Sep 17 00:00:00 2001 From: "Dr.Lt.Data" Date: Sun, 9 Jun 2024 17:20:15 +0900 Subject: [PATCH] trust mark for author --- README.md | 1 + glob/manager_core.py | 2 +- glob/manager_server.py | 2 ++ js/custom-nodes-downloader.js | 10 +++++++++- pyproject.toml | 2 +- 5 files changed, 14 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 313a5199..cfc983bd 100644 --- a/README.md +++ b/README.md @@ -5,6 +5,7 @@ ![menu](misc/menu.jpg) ## NOTICE +* V2.37 Show a ✅ mark to accounts that have been active on GitHub for more than six months. * V2.33 Security policy is applied. * V2.21 [cm-cli](docs/en/cm-cli.md) tool is added. * V2.18 to V2.18.3 is not functioning due to a severe bug. Users on these versions are advised to promptly update to V2.18.4. Please navigate to the `ComfyUI/custom_nodes/ComfyUI-Manager` directory and execute `git pull` to update. diff --git a/glob/manager_core.py b/glob/manager_core.py index af37172d..8c967b5a 100644 --- a/glob/manager_core.py +++ b/glob/manager_core.py @@ -23,7 +23,7 @@ import cm_global from manager_util import * -version = [2, 36, 1] +version = [2, 37] 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__), '..')) diff --git a/glob/manager_server.py b/glob/manager_server.py index 3ad9b862..b2704f7f 100644 --- a/glob/manager_server.py +++ b/glob/manager_server.py @@ -208,9 +208,11 @@ async def populate_github_stats(json_obj, json_obj_github): if url in json_obj_github: json_obj['custom_nodes'][i]['stars'] = json_obj_github[url]['stars'] json_obj['custom_nodes'][i]['last_update'] = json_obj_github[url]['last_update'] + json_obj['custom_nodes'][i]['trust'] = json_obj_github[url]['author_account_age_days'] > 180 else: json_obj['custom_nodes'][i]['stars'] = -1 json_obj['custom_nodes'][i]['last_update'] = -1 + json_obj['custom_nodes'][i]['trust'] = False return json_obj diff --git a/js/custom-nodes-downloader.js b/js/custom-nodes-downloader.js index e60cde7e..0b3c62c0 100644 --- a/js/custom-nodes-downloader.js +++ b/js/custom-nodes-downloader.js @@ -563,9 +563,17 @@ export class CustomNodesInstaller extends ComfyDialog { data1.innerHTML = i+1; var data2 = document.createElement('td'); - data2.style.maxWidth = "100px"; + data2.style.maxWidth = "120px"; data2.className = "cm-node-author" data2.textContent = ` ${data.author}`; + + if(data.trust) { + data2.textContent = `1${data.author}`; + } + else { + data2.textContent = ` ${data.author}`; + } + data2.style.whiteSpace = "nowrap"; data2.style.overflow = "hidden"; data2.style.textOverflow = "ellipsis"; diff --git a/pyproject.toml b/pyproject.toml index 0909d9f8..814b0444 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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.36.1" +version = "2.37" license = "LICENSE" dependencies = ["GitPython", "PyGithub", "matrix-client==0.4.0", "transformers", "huggingface-hub>0.20", "typer", "rich", "typing-extensions"]