feat: Install via git url

This commit is contained in:
Dr.Lt.Data
2023-11-08 13:24:26 +09:00
parent 78183e009d
commit 84979f6438
4 changed files with 73 additions and 4 deletions

View File

@@ -5,7 +5,7 @@ import { CustomNodesInstaller } from "./custom-nodes-downloader.js";
import { AlternativesInstaller } from "./a1111-alter-downloader.js";
import { SnapshotManager } from "./snapshot.js";
import { ModelInstaller } from "./model-downloader.js";
import { manager_instance, setManagerInstance } from "./common.js";
import { manager_instance, setManagerInstance, install_via_git_url } from "./common.js";
var style = document.createElement('style');
style.innerHTML = `
@@ -372,6 +372,17 @@ class ManagerMenuDialog extends ComfyDialog {
SnapshotManager.instance.show();
}
}),
$el("button", {
type: "button",
textContent: "Install via Git URL",
onclick: () => {
var url = prompt("Please enter the URL of the Git repository to install", "");
if (url !== null) {
install_via_git_url(url);
}
}
}),
];
}