UNPKG

overflow-scanner

Version:

Vulnerability scanning using graphs!

15 lines (14 loc) 483 B
import { LGraphNode, LiteGraph } from "litegraph.js"; export class ConstList extends LGraphNode { constructor() { super(); this.addProperty("str", "", "text"); this.addWidget("text", "List of targets", "", "str", { multiline: true }); this.addOutput("Targets", LiteGraph.EVENT); } title = "Constant list"; serialize_widgets = true; onExecute() { this.triggerSlot(0, this.properties.str.split("\n").filter(x => x)); } }