mirror of
https://github.com/gchq/CyberChef
synced 2025-12-31 07:33:28 +00:00
Added code argtype
This commit is contained in:
@@ -27,7 +27,7 @@ class YaraRules extends Operation {
|
||||
this.outputType = "string";
|
||||
this.args = [{
|
||||
name: "Rules",
|
||||
type: "string",
|
||||
type: "code",
|
||||
value: ""
|
||||
}];
|
||||
}
|
||||
|
||||
@@ -42,6 +42,16 @@ class HTMLIngredient {
|
||||
i, m;
|
||||
|
||||
switch (this.type) {
|
||||
case "code":
|
||||
html+= `<div class="form-group">
|
||||
<label for="${this.id}" class="bmd-label-floating">${this.name}</label>
|
||||
<textarea class="form-control arg"
|
||||
id="${this.id}"
|
||||
arg-name="${this.name}"
|
||||
value="${this.value}"
|
||||
${this.disabled ? "disabled" : ""}></textarea>
|
||||
${this.hint ? "<span class='bmd-help'>" + this.hint + "</span>" : ""}`;
|
||||
break;
|
||||
case "string":
|
||||
case "binaryString":
|
||||
case "byteArray":
|
||||
|
||||
Reference in New Issue
Block a user