Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ba9c71ffa4 | ||
|
|
21b6c6569c |
@@ -42,7 +42,7 @@ import manager_downloader
|
|||||||
from node_package import InstalledNodePackage
|
from node_package import InstalledNodePackage
|
||||||
|
|
||||||
|
|
||||||
version_code = [3, 17]
|
version_code = [3, 17, 2]
|
||||||
version_str = f"V{version_code[0]}.{version_code[1]}" + (f'.{version_code[2]}' if len(version_code) > 2 else '')
|
version_str = f"V{version_code[0]}.{version_code[1]}" + (f'.{version_code[2]}' if len(version_code) > 2 else '')
|
||||||
|
|
||||||
|
|
||||||
@@ -2432,7 +2432,7 @@ def check_state_of_git_node_pack_single(item, do_fetch=False, do_update_check=Tr
|
|||||||
|
|
||||||
def get_installed_pip_packages():
|
def get_installed_pip_packages():
|
||||||
# extract pip package infos
|
# extract pip package infos
|
||||||
cmd = manager_util.make_pip_cmd(['pip', 'freeze'])
|
cmd = manager_util.make_pip_cmd(['freeze'])
|
||||||
pips = subprocess.check_output(cmd, text=True).split('\n')
|
pips = subprocess.check_output(cmd, text=True).split('\n')
|
||||||
|
|
||||||
res = {}
|
res = {}
|
||||||
|
|||||||
@@ -400,6 +400,7 @@ export class CustomNodesManager {
|
|||||||
this.init();
|
this.init();
|
||||||
|
|
||||||
api.addEventListener("cm-queue-status", this.onQueueStatus);
|
api.addEventListener("cm-queue-status", this.onQueueStatus);
|
||||||
|
api.addEventListener('reconnected', this.onReconnected);
|
||||||
}
|
}
|
||||||
|
|
||||||
init() {
|
init() {
|
||||||
@@ -762,10 +763,9 @@ export class CustomNodesManager {
|
|||||||
|
|
||||||
".cn-manager-restart": {
|
".cn-manager-restart": {
|
||||||
click: () => {
|
click: () => {
|
||||||
if(rebootAPI()) {
|
this.close();
|
||||||
this.close();
|
this.manager_dialog.close();
|
||||||
this.manager_dialog.close();
|
rebootAPI();
|
||||||
}
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
@@ -1385,19 +1385,14 @@ export class CustomNodesManager {
|
|||||||
|
|
||||||
this.install_context = {btn: btn, targets: target_items};
|
this.install_context = {btn: btn, targets: target_items};
|
||||||
|
|
||||||
for(let k in target_items) {
|
|
||||||
let item = this.install_context.targets[k];
|
|
||||||
this.grid.updateCell(item, "action");
|
|
||||||
}
|
|
||||||
|
|
||||||
if(errorMsg) {
|
if(errorMsg) {
|
||||||
this.showError(errorMsg);
|
this.showError(errorMsg);
|
||||||
show_message("Installation Error:\n"+errorMsg);
|
show_message("Installation Error:\n"+errorMsg);
|
||||||
|
|
||||||
// reset
|
// reset
|
||||||
for (const hash of list) {
|
for(let k in target_items) {
|
||||||
const item = this.grid.getRowItemBy("hash", hash);
|
let item = this.install_context.targets[k];
|
||||||
self.grid.updateCell(item, "action");
|
this.grid.updateCell(item, "action");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
@@ -1406,6 +1401,21 @@ export class CustomNodesManager {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
async onReconnected(event) {
|
||||||
|
let self = CustomNodesManager.instance;
|
||||||
|
|
||||||
|
if(self.need_restart) {
|
||||||
|
self.need_restart = false;
|
||||||
|
|
||||||
|
const confirmed = await customConfirm("To apply the changes to the node pack's installation status, you need to refresh the browser. Would you like to refresh?");
|
||||||
|
if (!confirmed) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
window.location.reload(true);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
async onQueueStatus(event) {
|
async onQueueStatus(event) {
|
||||||
let self = CustomNodesManager.instance;
|
let self = CustomNodesManager.instance;
|
||||||
if(event.detail.status == 'in_progress' && event.detail.ui_target == 'nodepack_manager') {
|
if(event.detail.status == 'in_progress' && event.detail.ui_target == 'nodepack_manager') {
|
||||||
@@ -1879,6 +1889,7 @@ export class CustomNodesManager {
|
|||||||
|
|
||||||
showRestart() {
|
showRestart() {
|
||||||
this.element.querySelector(".cn-manager-restart").style.display = "block";
|
this.element.querySelector(".cn-manager-restart").style.display = "block";
|
||||||
|
this.need_restart = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
showStop() {
|
showStop() {
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
[project]
|
[project]
|
||||||
name = "comfyui-manager"
|
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."
|
description = "ComfyUI-Manager provides features to install and manage custom nodes for ComfyUI, as well as various functionalities to assist with ComfyUI."
|
||||||
version = "3.17"
|
version = "3.17.2"
|
||||||
license = { file = "LICENSE.txt" }
|
license = { file = "LICENSE.txt" }
|
||||||
dependencies = ["GitPython", "PyGithub", "matrix-client==0.4.0", "transformers", "huggingface-hub>0.20", "typer", "rich", "typing-extensions"]
|
dependencies = ["GitPython", "PyGithub", "matrix-client==0.4.0", "transformers", "huggingface-hub>0.20", "typer", "rich", "typing-extensions"]
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user