New custom nodes manager (#744)
* new custom nodes manager * fix loading * replace build-in sha1 with md5 * better description link * fix the update button disappears if open dialog again * fix restart required status if open dialog again * merge with main branch * add trust icon for author * fixed grid theme for Comfy.ColorPalette * fix get_unresolved * remove useless file * supports better theme with comfyui color palette * add extensions column * fixed conflicts
This commit is contained in:
@@ -11,8 +11,7 @@ import {
|
||||
showYouMLShareDialog
|
||||
} from "./comfyui-share-common.js";
|
||||
import { OpenArtShareDialog } from "./comfyui-share-openart.js";
|
||||
import { CustomNodesInstaller } from "./custom-nodes-downloader.js";
|
||||
import { AlternativesInstaller } from "./a1111-alter-downloader.js";
|
||||
import { CustomNodesManager } from "./custom-nodes-manager.js";
|
||||
import { SnapshotManager } from "./snapshot.js";
|
||||
import { ModelInstaller } from "./model-downloader.js";
|
||||
import { manager_instance, setManagerInstance, install_via_git_url, install_pip, rebootAPI, free_models, show_message } from "./common.js";
|
||||
@@ -568,10 +567,10 @@ async function fetchUpdates(update_check_checkbox) {
|
||||
async function() {
|
||||
app.ui.dialog.close();
|
||||
|
||||
if(!CustomNodesInstaller.instance)
|
||||
CustomNodesInstaller.instance = new CustomNodesInstaller(app, self);
|
||||
|
||||
await CustomNodesInstaller.instance.show(CustomNodesInstaller.ShowMode.UPDATE);
|
||||
if(!CustomNodesManager.instance) {
|
||||
CustomNodesManager.instance = new CustomNodesManager(app, self);
|
||||
}
|
||||
await CustomNodesManager.instance.show(CustomNodesManager.ShowMode.UPDATE);
|
||||
}
|
||||
);
|
||||
|
||||
@@ -714,12 +713,13 @@ class ManagerMenuDialog extends ComfyDialog {
|
||||
[
|
||||
$el("button.cm-button", {
|
||||
type: "button",
|
||||
textContent: "Install Custom Nodes",
|
||||
textContent: "Custom Nodes Manager",
|
||||
onclick:
|
||||
() => {
|
||||
if(!CustomNodesInstaller.instance)
|
||||
CustomNodesInstaller.instance = new CustomNodesInstaller(app, self);
|
||||
CustomNodesInstaller.instance.show(CustomNodesInstaller.ShowMode.NORMAL);
|
||||
if(!CustomNodesManager.instance) {
|
||||
CustomNodesManager.instance = new CustomNodesManager(app, self);
|
||||
}
|
||||
CustomNodesManager.instance.show(CustomNodesManager.ShowMode.NORMAL);
|
||||
}
|
||||
}),
|
||||
|
||||
@@ -728,9 +728,10 @@ class ManagerMenuDialog extends ComfyDialog {
|
||||
textContent: "Install Missing Custom Nodes",
|
||||
onclick:
|
||||
() => {
|
||||
if(!CustomNodesInstaller.instance)
|
||||
CustomNodesInstaller.instance = new CustomNodesInstaller(app, self);
|
||||
CustomNodesInstaller.instance.show(CustomNodesInstaller.ShowMode.MISSING_NODES);
|
||||
if(!CustomNodesManager.instance) {
|
||||
CustomNodesManager.instance = new CustomNodesManager(app, self);
|
||||
}
|
||||
CustomNodesManager.instance.show(CustomNodesManager.ShowMode.MISSING);
|
||||
}
|
||||
}),
|
||||
|
||||
@@ -768,9 +769,10 @@ class ManagerMenuDialog extends ComfyDialog {
|
||||
textContent: "Alternatives of A1111",
|
||||
onclick:
|
||||
() => {
|
||||
if(!AlternativesInstaller.instance)
|
||||
AlternativesInstaller.instance = new AlternativesInstaller(app, self);
|
||||
AlternativesInstaller.instance.show();
|
||||
if(!CustomNodesManager.instance) {
|
||||
CustomNodesManager.instance = new CustomNodesManager(app, self);
|
||||
}
|
||||
CustomNodesManager.instance.show(CustomNodesManager.ShowMode.ALTERNATIVES);
|
||||
}
|
||||
}),
|
||||
|
||||
|
||||
Reference in New Issue
Block a user