Skip to content

Commit

Permalink
trust mark for author
Browse files Browse the repository at this point in the history
  • Loading branch information
ltdrdata committed Jun 9, 2024
1 parent 1db1ca5 commit b9f38f0
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 3 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
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, 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__), '..'))
Expand Down
2 changes: 2 additions & 0 deletions glob/manager_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down
10 changes: 9 additions & 1 deletion js/custom-nodes-downloader.js
Original file line number Diff line number Diff line change
Expand Up @@ -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";
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.36.1"
version = "2.37"
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 b9f38f0

Please sign in to comment.