-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathapp.js
39 lines (39 loc) · 1.52 KB
/
app.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
// //ref: https://note.com/nyaoki_board/n/na7c54c9ae2a5
//
// import { app } from "/scripts/app.js";
//
// app.registerExtension({
// name: "Comfy.🧩 Auto-Prompt-LLM.Auto-LLM-Text-Vision",
// async beforeRegisterNodeDef(nodeType, nodeData, app) {
// if (nodeData.name === "Batch String") {
// nodeType.prototype.onNodeCreated = function () {
// this.getExtraMenuOptions = function(_, options) {
// options.unshift(
// {
// content: "add input",
// callback: () => {
// var index = 1;
// if (this.inputs != undefined){
// index += this.inputs.length;
// }
// this.addInput("text" + index, "STRING", {"multiline": true});
// },
// },
// {
// content: "remove input",
// callback: () => {
// if (this.inputs != undefined){
// this.removeInput(this.inputs.length - 1);
// }
// },
// },
// );
// }
// }
// }
// },
// loadedGraphNode(node, _) {
// if (node.type === "Batch String") {
// }
// },
// });