mirror of
https://github.com/gchq/CyberChef.git
synced 2025-05-10 08:15:00 -04:00
- fix swappable typo
This commit is contained in:
parent
431175f195
commit
51b5efbae7
8 changed files with 14 additions and 14 deletions
|
@ -24,7 +24,7 @@ class Operation {
|
||||||
this._disabled = false;
|
this._disabled = false;
|
||||||
this._flowControl = false;
|
this._flowControl = false;
|
||||||
this._manualBake = false;
|
this._manualBake = false;
|
||||||
this._inputSwapable = false;
|
this._inputSwappable = false;
|
||||||
this._ingList = [];
|
this._ingList = [];
|
||||||
|
|
||||||
// Public fields
|
// Public fields
|
||||||
|
@ -318,12 +318,12 @@ class Operation {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns true if this Operation has swapable input values.
|
* Returns true if this Operation has swappable input values.
|
||||||
*
|
*
|
||||||
* @returns {boolean}
|
* @returns {boolean}
|
||||||
*/
|
*/
|
||||||
get inputSwapable() {
|
get inputSwappable() {
|
||||||
return this._inputSwapable;
|
return this._inputSwappable;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -332,8 +332,8 @@ class Operation {
|
||||||
*
|
*
|
||||||
* @param {boolean} value
|
* @param {boolean} value
|
||||||
*/
|
*/
|
||||||
set inputSwapable(value) {
|
set inputSwappable(value) {
|
||||||
this._inputSwapable = !!value;
|
this._inputSwappable = !!value;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -41,7 +41,7 @@ for (const opObj in Ops) {
|
||||||
inputType: op.inputType,
|
inputType: op.inputType,
|
||||||
outputType: op.presentType,
|
outputType: op.presentType,
|
||||||
flowControl: op.flowControl,
|
flowControl: op.flowControl,
|
||||||
inputSwapable: op.inputSwapable,
|
inputSwappable: op.inputSwappable,
|
||||||
manualBake: op.manualBake,
|
manualBake: op.manualBake,
|
||||||
args: op.args
|
args: op.args
|
||||||
};
|
};
|
||||||
|
|
|
@ -77,7 +77,7 @@ If your operation does not rely on a library, just leave this blank and it will
|
||||||
required: true,
|
required: true,
|
||||||
message: `The output type should be one of: ${ioTypes.join(", ")}.`
|
message: `The output type should be one of: ${ioTypes.join(", ")}.`
|
||||||
},
|
},
|
||||||
inputSwapable: {
|
inputSwappable: {
|
||||||
description: "Input swappable option shows an icon that can swap input values of two ingredients.",
|
description: "Input swappable option shows an icon that can swap input values of two ingredients.",
|
||||||
example: "true/false",
|
example: "true/false",
|
||||||
prompt: "Show input swaping",
|
prompt: "Show input swaping",
|
||||||
|
@ -158,7 +158,7 @@ class ${moduleName} extends Operation {
|
||||||
this.infoURL = "${result.infoURL}";
|
this.infoURL = "${result.infoURL}";
|
||||||
this.inputType = "${result.inputType}";
|
this.inputType = "${result.inputType}";
|
||||||
this.outputType = "${result.outputType}";
|
this.outputType = "${result.outputType}";
|
||||||
this.inputSwapable = "${result.inputSwapable}";
|
this.inputSwappable = "${result.inputSwappable}";
|
||||||
this.args = [
|
this.args = [
|
||||||
/* Example arguments. See the project wiki for full details.
|
/* Example arguments. See the project wiki for full details.
|
||||||
{
|
{
|
||||||
|
|
|
@ -23,7 +23,7 @@ class ConvertArea extends Operation {
|
||||||
this.infoURL = "https://wikipedia.org/wiki/Orders_of_magnitude_(area)";
|
this.infoURL = "https://wikipedia.org/wiki/Orders_of_magnitude_(area)";
|
||||||
this.inputType = "BigNumber";
|
this.inputType = "BigNumber";
|
||||||
this.outputType = "BigNumber";
|
this.outputType = "BigNumber";
|
||||||
this.inputSwapable = true;
|
this.inputSwappable = true;
|
||||||
this.args = [
|
this.args = [
|
||||||
{
|
{
|
||||||
"name": "Input units",
|
"name": "Input units",
|
||||||
|
|
|
@ -23,7 +23,7 @@ class ConvertDataUnits extends Operation {
|
||||||
this.infoURL = "https://wikipedia.org/wiki/Orders_of_magnitude_(data)";
|
this.infoURL = "https://wikipedia.org/wiki/Orders_of_magnitude_(data)";
|
||||||
this.inputType = "BigNumber";
|
this.inputType = "BigNumber";
|
||||||
this.outputType = "BigNumber";
|
this.outputType = "BigNumber";
|
||||||
this.inputSwapable = true;
|
this.inputSwappable = true;
|
||||||
this.args = [
|
this.args = [
|
||||||
{
|
{
|
||||||
"name": "Input units",
|
"name": "Input units",
|
||||||
|
|
|
@ -23,7 +23,7 @@ class ConvertDistance extends Operation {
|
||||||
this.infoURL = "https://wikipedia.org/wiki/Orders_of_magnitude_(length)";
|
this.infoURL = "https://wikipedia.org/wiki/Orders_of_magnitude_(length)";
|
||||||
this.inputType = "BigNumber";
|
this.inputType = "BigNumber";
|
||||||
this.outputType = "BigNumber";
|
this.outputType = "BigNumber";
|
||||||
this.inputSwapable = true;
|
this.inputSwappable = true;
|
||||||
this.args = [
|
this.args = [
|
||||||
{
|
{
|
||||||
"name": "Input units",
|
"name": "Input units",
|
||||||
|
|
|
@ -23,7 +23,7 @@ class ConvertMass extends Operation {
|
||||||
this.infoURL = "https://wikipedia.org/wiki/Orders_of_magnitude_(mass)";
|
this.infoURL = "https://wikipedia.org/wiki/Orders_of_magnitude_(mass)";
|
||||||
this.inputType = "BigNumber";
|
this.inputType = "BigNumber";
|
||||||
this.outputType = "BigNumber";
|
this.outputType = "BigNumber";
|
||||||
this.inputSwapable = true;
|
this.inputSwappable = true;
|
||||||
this.args = [
|
this.args = [
|
||||||
{
|
{
|
||||||
"name": "Input units",
|
"name": "Input units",
|
||||||
|
|
|
@ -23,7 +23,7 @@ class ConvertSpeed extends Operation {
|
||||||
this.infoURL = "https://wikipedia.org/wiki/Orders_of_magnitude_(speed)";
|
this.infoURL = "https://wikipedia.org/wiki/Orders_of_magnitude_(speed)";
|
||||||
this.inputType = "BigNumber";
|
this.inputType = "BigNumber";
|
||||||
this.outputType = "BigNumber";
|
this.outputType = "BigNumber";
|
||||||
this.inputSwapable = true;
|
this.inputSwappable = true;
|
||||||
this.args = [
|
this.args = [
|
||||||
{
|
{
|
||||||
"name": "Input units",
|
"name": "Input units",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue