Converted all modules from CommonJS to ES6
This commit is contained in:
parent
0f2a5014be
commit
131b3a83c1
3
.babelrc
3
.babelrc
@ -5,7 +5,8 @@
|
|||||||
"chrome": 40,
|
"chrome": 40,
|
||||||
"firefox": 35,
|
"firefox": 35,
|
||||||
"edge": 14
|
"edge": 14
|
||||||
}
|
},
|
||||||
|
"modules": false
|
||||||
}]
|
}]
|
||||||
]
|
]
|
||||||
}
|
}
|
@ -3,12 +3,12 @@
|
|||||||
"ecmaVersion": 6,
|
"ecmaVersion": 6,
|
||||||
"ecmaFeatures": {
|
"ecmaFeatures": {
|
||||||
"impliedStrict": true
|
"impliedStrict": true
|
||||||
}
|
},
|
||||||
|
"sourceType": "module"
|
||||||
},
|
},
|
||||||
"env": {
|
"env": {
|
||||||
"browser": true,
|
"browser": true,
|
||||||
"es6": true,
|
"es6": true,
|
||||||
"commonjs": true,
|
|
||||||
"node": true
|
"node": true
|
||||||
},
|
},
|
||||||
"extends": "eslint:recommended",
|
"extends": "eslint:recommended",
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
var Dish = require("./Dish.js"),
|
import Dish from "./Dish.js";
|
||||||
Recipe = require("./Recipe.js");
|
import Recipe from "./Recipe.js";
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -11,7 +11,7 @@ var Dish = require("./Dish.js"),
|
|||||||
*
|
*
|
||||||
* @class
|
* @class
|
||||||
*/
|
*/
|
||||||
var Chef = module.exports = function() {
|
var Chef = function() {
|
||||||
this.dish = new Dish();
|
this.dish = new Dish();
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -122,3 +122,5 @@ Chef.prototype.silentBake = function(recipeConfig) {
|
|||||||
}
|
}
|
||||||
return new Date().getTime() - startTime;
|
return new Date().getTime() - startTime;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export default Chef;
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
var Utils = require("./Utils.js");
|
import Utils from "./Utils.js";
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -12,7 +12,7 @@ var Utils = require("./Utils.js");
|
|||||||
* @param {byteArray|string|number} value - The value of the input data.
|
* @param {byteArray|string|number} value - The value of the input data.
|
||||||
* @param {number} type - The data type of value, see Dish enums.
|
* @param {number} type - The data type of value, see Dish enums.
|
||||||
*/
|
*/
|
||||||
var Dish = module.exports = function(value, type) {
|
var Dish = function(value, type) {
|
||||||
this.value = value || typeof value == "string" ? value : null;
|
this.value = value || typeof value == "string" ? value : null;
|
||||||
this.type = type || Dish.BYTE_ARRAY;
|
this.type = type || Dish.BYTE_ARRAY;
|
||||||
};
|
};
|
||||||
@ -203,3 +203,5 @@ Dish.prototype.valid = function() {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export default Dish;
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
var Recipe = require("./Recipe.js"),
|
import Recipe from "./Recipe.js";
|
||||||
Dish = require("./Dish.js");
|
import Dish from "./Dish.js";
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -11,7 +11,7 @@ var Recipe = require("./Recipe.js"),
|
|||||||
*
|
*
|
||||||
* @namespace
|
* @namespace
|
||||||
*/
|
*/
|
||||||
var FlowControl = module.exports = {
|
const FlowControl = {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @constant
|
* @constant
|
||||||
@ -186,3 +186,5 @@ var FlowControl = module.exports = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export default FlowControl;
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
var Utils = require("./Utils.js");
|
import Utils from "./Utils.js";
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -11,7 +11,7 @@ var Utils = require("./Utils.js");
|
|||||||
* @class
|
* @class
|
||||||
* @param {Object} ingredientConfig
|
* @param {Object} ingredientConfig
|
||||||
*/
|
*/
|
||||||
var Ingredient = module.exports = function(ingredientConfig) {
|
var Ingredient = function(ingredientConfig) {
|
||||||
this.name = "";
|
this.name = "";
|
||||||
this.type = "";
|
this.type = "";
|
||||||
this.value = null;
|
this.value = null;
|
||||||
@ -86,3 +86,5 @@ Ingredient.prepare = function(data, type) {
|
|||||||
return data;
|
return data;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export default Ingredient;
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
var Dish = require("./Dish.js"),
|
import Dish from "./Dish.js";
|
||||||
Ingredient = require("./Ingredient.js");
|
import Ingredient from "./Ingredient.js";
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -13,7 +13,7 @@ var Dish = require("./Dish.js"),
|
|||||||
* @param {string} operationName
|
* @param {string} operationName
|
||||||
* @param {Object} operationConfig
|
* @param {Object} operationConfig
|
||||||
*/
|
*/
|
||||||
var Operation = module.exports = function(operationName, operationConfig) {
|
var Operation = function(operationName, operationConfig) {
|
||||||
this.name = operationName;
|
this.name = operationName;
|
||||||
this.description = "";
|
this.description = "";
|
||||||
this.inputType = -1;
|
this.inputType = -1;
|
||||||
@ -159,3 +159,5 @@ Operation.prototype.isDisabled = function() {
|
|||||||
Operation.prototype.isFlowControl = function() {
|
Operation.prototype.isFlowControl = function() {
|
||||||
return this.flowControl;
|
return this.flowControl;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export default Operation;
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
var Operation = require("./Operation.js");
|
import Operation from "./Operation.js";
|
||||||
// OperationConfig required at the bottom of this file to prevent circular dependency errors
|
import OperationConfig from "./config/OperationConfig.js";
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -12,7 +12,7 @@ var Operation = require("./Operation.js");
|
|||||||
* @class
|
* @class
|
||||||
* @param {Object} recipeConfig
|
* @param {Object} recipeConfig
|
||||||
*/
|
*/
|
||||||
var Recipe = module.exports = function(recipeConfig) {
|
var Recipe = function(recipeConfig) {
|
||||||
this.opList = [];
|
this.opList = [];
|
||||||
|
|
||||||
if (recipeConfig) {
|
if (recipeConfig) {
|
||||||
@ -217,7 +217,4 @@ Recipe.prototype.fromString = function(recipeStr) {
|
|||||||
this._parseConfig(recipeConfig);
|
this._parseConfig(recipeConfig);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export default Recipe;
|
||||||
// Required here to prevent circular dependency where Recipe returns an empty object
|
|
||||||
// See http://stackoverflow.com/a/30390378
|
|
||||||
var OperationConfig = require("./config/OperationConfig.js");
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
var CryptoJS = require("crypto-js");
|
import CryptoJS from "crypto-js";
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -10,7 +10,7 @@ var CryptoJS = require("crypto-js");
|
|||||||
*
|
*
|
||||||
* @namespace
|
* @namespace
|
||||||
*/
|
*/
|
||||||
var Utils = module.exports = {
|
const Utils = {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Translates an ordinal into a character.
|
* Translates an ordinal into a character.
|
||||||
@ -1169,6 +1169,8 @@ var Utils = module.exports = {
|
|||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export default Utils;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Removes all duplicates from an array.
|
* Removes all duplicates from an array.
|
||||||
|
@ -17,7 +17,7 @@
|
|||||||
* @constant
|
* @constant
|
||||||
* @type {CatConf[]}
|
* @type {CatConf[]}
|
||||||
*/
|
*/
|
||||||
var Categories = module.exports = [
|
const Categories = [
|
||||||
{
|
{
|
||||||
name: "Favourites",
|
name: "Favourites",
|
||||||
ops: []
|
ops: []
|
||||||
@ -291,3 +291,5 @@ var Categories = module.exports = [
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
|
export default Categories;
|
||||||
|
@ -1,41 +1,41 @@
|
|||||||
var FlowControl = require("../FlowControl.js"),
|
import FlowControl from "../FlowControl.js";
|
||||||
Base = require("../operations/Base.js"),
|
import Base from "../operations/Base.js";
|
||||||
Base58 = require("../operations/Base58.js"),
|
import Base58 from "../operations/Base58.js";
|
||||||
Base64 = require("../operations/Base64.js"),
|
import Base64 from "../operations/Base64.js";
|
||||||
BitwiseOp = require("../operations/BitwiseOp.js"),
|
import BitwiseOp from "../operations/BitwiseOp.js";
|
||||||
ByteRepr = require("../operations/ByteRepr.js"),
|
import ByteRepr from "../operations/ByteRepr.js";
|
||||||
CharEnc = require("../operations/CharEnc.js"),
|
import CharEnc from "../operations/CharEnc.js";
|
||||||
Checksum = require("../operations/Checksum.js"),
|
import Checksum from "../operations/Checksum.js";
|
||||||
Cipher = require("../operations/Cipher.js"),
|
import Cipher from "../operations/Cipher.js";
|
||||||
Code = require("../operations/Code.js"),
|
import Code from "../operations/Code.js";
|
||||||
Compress = require("../operations/Compress.js"),
|
import Compress from "../operations/Compress.js";
|
||||||
Convert = require("../operations/Convert.js"),
|
import Convert from "../operations/Convert.js";
|
||||||
DateTime = require("../operations/DateTime.js"),
|
import DateTime from "../operations/DateTime.js";
|
||||||
Endian = require("../operations/Endian.js"),
|
import Endian from "../operations/Endian.js";
|
||||||
Entropy = require("../operations/Entropy.js"),
|
import Entropy from "../operations/Entropy.js";
|
||||||
Extract = require("../operations/Extract.js"),
|
import Extract from "../operations/Extract.js";
|
||||||
FileType = require("../operations/FileType.js"),
|
import FileType from "../operations/FileType.js";
|
||||||
Hash = require("../operations/Hash.js"),
|
import Hash from "../operations/Hash.js";
|
||||||
Hexdump = require("../operations/Hexdump.js"),
|
import Hexdump from "../operations/Hexdump.js";
|
||||||
HTML = require("../operations/HTML.js"),
|
import HTML from "../operations/HTML.js";
|
||||||
HTTP = require("../operations/HTTP.js"),
|
import HTTP from "../operations/HTTP.js";
|
||||||
IP = require("../operations/IP.js"),
|
import IP from "../operations/IP.js";
|
||||||
JS = require("../operations/JS.js"),
|
import JS from "../operations/JS.js";
|
||||||
MAC = require("../operations/MAC.js"),
|
import MAC from "../operations/MAC.js";
|
||||||
MorseCode = require("../operations/MorseCode.js"),
|
import MorseCode from "../operations/MorseCode.js";
|
||||||
NetBIOS = require("../operations/NetBIOS.js"),
|
import NetBIOS from "../operations/NetBIOS.js";
|
||||||
Numberwang = require("../operations/Numberwang.js"),
|
import Numberwang from "../operations/Numberwang.js";
|
||||||
OS = require("../operations/OS.js"),
|
import OS from "../operations/OS.js";
|
||||||
PublicKey = require("../operations/PublicKey.js"),
|
import PublicKey from "../operations/PublicKey.js";
|
||||||
Punycode = require("../operations/Punycode.js"),
|
import Punycode from "../operations/Punycode.js";
|
||||||
QuotedPrintable = require("../operations/QuotedPrintable.js"),
|
import QuotedPrintable from "../operations/QuotedPrintable.js";
|
||||||
Rotate = require("../operations/Rotate.js"),
|
import Rotate from "../operations/Rotate.js";
|
||||||
SeqUtils = require("../operations/SeqUtils.js"),
|
import SeqUtils from "../operations/SeqUtils.js";
|
||||||
StrUtils = require("../operations/StrUtils.js"),
|
import StrUtils from "../operations/StrUtils.js";
|
||||||
Tidy = require("../operations/Tidy.js"),
|
import Tidy from "../operations/Tidy.js";
|
||||||
Unicode = require("../operations/Unicode.js"),
|
import Unicode from "../operations/Unicode.js";
|
||||||
URL_ = require("../operations/URL.js"),
|
import URL_ from "../operations/URL.js";
|
||||||
UUID = require("../operations/UUID.js");
|
import UUID from "../operations/UUID.js";
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -78,7 +78,7 @@ var FlowControl = require("../FlowControl.js"),
|
|||||||
* @constant
|
* @constant
|
||||||
* @type {Object.<string, OpConf>}
|
* @type {Object.<string, OpConf>}
|
||||||
*/
|
*/
|
||||||
var OperationConfig = module.exports = {
|
const OperationConfig = {
|
||||||
"Fork": {
|
"Fork": {
|
||||||
description: "Split the input data up based on the specified delimiter and run all subsequent operations on each branch separately.<br><br>For example, to decode multiple Base64 strings, enter them all on separate lines then add the 'Fork' and 'From Base64' operations to the recipe. Each string will be decoded separately.",
|
description: "Split the input data up based on the specified delimiter and run all subsequent operations on each branch separately.<br><br>For example, to decode multiple Base64 strings, enter them all on separate lines then add the 'Fork' and 'From Base64' operations to the recipe. Each string will be decoded separately.",
|
||||||
run: FlowControl.runFork,
|
run: FlowControl.runFork,
|
||||||
@ -3168,3 +3168,5 @@ var OperationConfig = module.exports = {
|
|||||||
]
|
]
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export default OperationConfig;
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
* @constant
|
* @constant
|
||||||
* @namespace
|
* @namespace
|
||||||
*/
|
*/
|
||||||
var CanvasComponents = module.exports = {
|
const CanvasComponents = {
|
||||||
|
|
||||||
drawLine: function(ctx, startX, startY, endX, endY) {
|
drawLine: function(ctx, startX, startY, endX, endY) {
|
||||||
ctx.beginPath();
|
ctx.beginPath();
|
||||||
@ -182,3 +182,5 @@ var CanvasComponents = module.exports = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export default CanvasComponents;
|
||||||
|
@ -24,11 +24,10 @@
|
|||||||
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||||
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||||
*/
|
*/
|
||||||
"use strict";
|
|
||||||
|
|
||||||
var Utils = require("../Utils.js");
|
import Utils from "../Utils.js";
|
||||||
|
|
||||||
var UAS_parser = {
|
const UAS_parser = {
|
||||||
|
|
||||||
parse: function (userAgent) {
|
parse: function (userAgent) {
|
||||||
var result = {
|
var result = {
|
||||||
@ -135,7 +134,7 @@ var UAS_parser = {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
var UAS_cache = {
|
const UAS_cache = {
|
||||||
version: '20131025-01',
|
version: '20131025-01',
|
||||||
robots: {
|
robots: {
|
||||||
'3': {
|
'3': {
|
||||||
@ -25816,4 +25815,7 @@ var UAS_cache = {
|
|||||||
'35'
|
'35'
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export {UAS_parser, UAS_cache};
|
||||||
|
export default UAS_parser;
|
@ -7,7 +7,7 @@
|
|||||||
*
|
*
|
||||||
* @namespace
|
* @namespace
|
||||||
*/
|
*/
|
||||||
var Base = module.exports = {
|
const Base = {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @constant
|
* @constant
|
||||||
@ -50,3 +50,5 @@ var Base = module.exports = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export default Base;
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
var Utils = require("../Utils.js");
|
import Utils from "../Utils.js";
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -10,7 +10,7 @@ var Utils = require("../Utils.js");
|
|||||||
*
|
*
|
||||||
* @namespace
|
* @namespace
|
||||||
*/
|
*/
|
||||||
var Base58 = module.exports = {
|
const Base58 = {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @constant
|
* @constant
|
||||||
@ -133,3 +133,5 @@ var Base58 = module.exports = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export default Base58;
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
var Utils = require("../Utils.js");
|
import Utils from "../Utils.js";
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -10,7 +10,7 @@ var Utils = require("../Utils.js");
|
|||||||
*
|
*
|
||||||
* @namespace
|
* @namespace
|
||||||
*/
|
*/
|
||||||
var Base64 = module.exports = {
|
const Base64 = {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @constant
|
* @constant
|
||||||
@ -342,3 +342,5 @@ var Base64 = module.exports = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export default Base64;
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
var Utils = require("../Utils.js"),
|
import Utils from "../Utils.js";
|
||||||
CryptoJS = require("crypto-js");
|
import CryptoJS from "crypto-js";
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -11,7 +11,7 @@ var Utils = require("../Utils.js"),
|
|||||||
*
|
*
|
||||||
* @namespace
|
* @namespace
|
||||||
*/
|
*/
|
||||||
var BitwiseOp = module.exports = {
|
const BitwiseOp = {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Runs bitwise operations across the input data.
|
* Runs bitwise operations across the input data.
|
||||||
@ -306,3 +306,5 @@ var BitwiseOp = module.exports = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export default BitwiseOp;
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/* globals app */
|
/* globals app */
|
||||||
var Utils = require("../Utils.js");
|
import Utils from "../Utils.js";
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -11,7 +11,7 @@ var Utils = require("../Utils.js");
|
|||||||
*
|
*
|
||||||
* @namespace
|
* @namespace
|
||||||
*/
|
*/
|
||||||
var ByteRepr = module.exports = {
|
const ByteRepr = {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @constant
|
* @constant
|
||||||
@ -394,3 +394,5 @@ var ByteRepr = module.exports = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export default ByteRepr;
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
var Utils = require("../Utils.js"),
|
import Utils from "../Utils.js";
|
||||||
CryptoJS = require("crypto-js");
|
import CryptoJS from "crypto-js";
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -11,7 +11,7 @@ var Utils = require("../Utils.js"),
|
|||||||
*
|
*
|
||||||
* @namespace
|
* @namespace
|
||||||
*/
|
*/
|
||||||
var CharEnc = module.exports = {
|
const CharEnc = {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @constant
|
* @constant
|
||||||
@ -46,3 +46,5 @@ var CharEnc = module.exports = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export default CharEnc;
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
var Utils = require("../Utils.js");
|
import Utils from "../Utils.js";
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -10,7 +10,7 @@ var Utils = require("../Utils.js");
|
|||||||
*
|
*
|
||||||
* @namespace
|
* @namespace
|
||||||
*/
|
*/
|
||||||
var Checksum = module.exports = {
|
const Checksum = {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Fletcher-8 Checksum operation.
|
* Fletcher-8 Checksum operation.
|
||||||
@ -191,3 +191,5 @@ var Checksum = module.exports = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export default Checksum;
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
var Utils = require("../Utils.js"),
|
import Utils from "../Utils.js";
|
||||||
CryptoJS = require("crypto-js"),
|
import CryptoJS from "crypto-js";
|
||||||
Blowfish = require("sladex-blowfish");
|
import {blowfish as Blowfish} from "sladex-blowfish";
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -12,7 +12,7 @@ var Utils = require("../Utils.js"),
|
|||||||
*
|
*
|
||||||
* @namespace
|
* @namespace
|
||||||
*/
|
*/
|
||||||
var Cipher = module.exports = {
|
const Cipher = {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @constant
|
* @constant
|
||||||
@ -617,6 +617,8 @@ var Cipher = module.exports = {
|
|||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export default Cipher;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Overwriting the CryptoJS OpenSSL key derivation function so that it is possible to not pass a
|
* Overwriting the CryptoJS OpenSSL key derivation function so that it is possible to not pass a
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
var Utils = require("../Utils.js"),
|
import Utils from "../Utils.js";
|
||||||
VKbeautify = require("vkbeautify"),
|
import vkbeautify from "vkbeautify";
|
||||||
dom = require("xmldom").DOMParser,
|
import {DOMParser as dom} from "xmldom";
|
||||||
xpath = require("xpath"),
|
import xpath from "xpath";
|
||||||
prettyPrintOne = require("exports-loader?prettyPrintOne!google-code-prettify/bin/prettify.min.js");
|
import prettyPrintOne from "exports-loader?prettyPrintOne!google-code-prettify/bin/prettify.min.js";
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -14,7 +14,7 @@ var Utils = require("../Utils.js"),
|
|||||||
*
|
*
|
||||||
* @namespace
|
* @namespace
|
||||||
*/
|
*/
|
||||||
var Code = module.exports = {
|
const Code = {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @constant
|
* @constant
|
||||||
@ -56,7 +56,7 @@ var Code = module.exports = {
|
|||||||
*/
|
*/
|
||||||
runXmlBeautify: function(input, args) {
|
runXmlBeautify: function(input, args) {
|
||||||
var indentStr = args[0];
|
var indentStr = args[0];
|
||||||
return VKbeautify.xml(input, indentStr);
|
return vkbeautify.xml(input, indentStr);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
@ -70,7 +70,7 @@ var Code = module.exports = {
|
|||||||
runJsonBeautify: function(input, args) {
|
runJsonBeautify: function(input, args) {
|
||||||
var indentStr = args[0];
|
var indentStr = args[0];
|
||||||
if (!input) return "";
|
if (!input) return "";
|
||||||
return VKbeautify.json(input, indentStr);
|
return vkbeautify.json(input, indentStr);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
@ -83,7 +83,7 @@ var Code = module.exports = {
|
|||||||
*/
|
*/
|
||||||
runCssBeautify: function(input, args) {
|
runCssBeautify: function(input, args) {
|
||||||
var indentStr = args[0];
|
var indentStr = args[0];
|
||||||
return VKbeautify.css(input, indentStr);
|
return vkbeautify.css(input, indentStr);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
@ -96,7 +96,7 @@ var Code = module.exports = {
|
|||||||
*/
|
*/
|
||||||
runSqlBeautify: function(input, args) {
|
runSqlBeautify: function(input, args) {
|
||||||
var indentStr = args[0];
|
var indentStr = args[0];
|
||||||
return VKbeautify.sql(input, indentStr);
|
return vkbeautify.sql(input, indentStr);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
@ -115,7 +115,7 @@ var Code = module.exports = {
|
|||||||
*/
|
*/
|
||||||
runXmlMinify: function(input, args) {
|
runXmlMinify: function(input, args) {
|
||||||
var preserveComments = args[0];
|
var preserveComments = args[0];
|
||||||
return VKbeautify.xmlmin(input, preserveComments);
|
return vkbeautify.xmlmin(input, preserveComments);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
@ -128,7 +128,7 @@ var Code = module.exports = {
|
|||||||
*/
|
*/
|
||||||
runJsonMinify: function(input, args) {
|
runJsonMinify: function(input, args) {
|
||||||
if (!input) return "";
|
if (!input) return "";
|
||||||
return VKbeautify.jsonmin(input);
|
return vkbeautify.jsonmin(input);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
@ -141,7 +141,7 @@ var Code = module.exports = {
|
|||||||
*/
|
*/
|
||||||
runCssMinify: function(input, args) {
|
runCssMinify: function(input, args) {
|
||||||
var preserveComments = args[0];
|
var preserveComments = args[0];
|
||||||
return VKbeautify.cssmin(input, preserveComments);
|
return vkbeautify.cssmin(input, preserveComments);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
@ -153,7 +153,7 @@ var Code = module.exports = {
|
|||||||
* @returns {string}
|
* @returns {string}
|
||||||
*/
|
*/
|
||||||
runSqlMinify: function(input, args) {
|
runSqlMinify: function(input, args) {
|
||||||
return VKbeautify.sqlmin(input);
|
return vkbeautify.sqlmin(input);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
@ -423,3 +423,5 @@ var Code = module.exports = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export default Code;
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
var Utils = require("../Utils.js"),
|
import Utils from "../Utils.js";
|
||||||
rawdeflate = require("zlibjs/bin/rawdeflate.min"),
|
import rawdeflate from "zlibjs/bin/rawdeflate.min";
|
||||||
rawinflate = require("zlibjs/bin/rawinflate.min"),
|
import rawinflate from "zlibjs/bin/rawinflate.min";
|
||||||
zlibAndGzip = require("zlibjs/bin/zlib_and_gzip.min"),
|
import zlibAndGzip from "zlibjs/bin/zlib_and_gzip.min";
|
||||||
zip = require("zlibjs/bin/zip.min"),
|
import zip from "zlibjs/bin/zip.min";
|
||||||
unzip = require("zlibjs/bin/unzip.min"),
|
import unzip from "zlibjs/bin/unzip.min";
|
||||||
bzip2 = require("exports-loader?bzip2!../lib/bzip2.js");
|
import bzip2 from "exports-loader?bzip2!../lib/bzip2.js";
|
||||||
|
|
||||||
var Zlib = {
|
var Zlib = {
|
||||||
RawDeflate: rawdeflate.Zlib.RawDeflate,
|
RawDeflate: rawdeflate.Zlib.RawDeflate,
|
||||||
@ -27,7 +27,7 @@ var Zlib = {
|
|||||||
*
|
*
|
||||||
* @namespace
|
* @namespace
|
||||||
*/
|
*/
|
||||||
var Compress = module.exports = {
|
const Compress = {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @constant
|
* @constant
|
||||||
@ -569,3 +569,5 @@ var Compress = module.exports = {
|
|||||||
return Utils.displayFilesAsHTML(files);
|
return Utils.displayFilesAsHTML(files);
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export default Compress;
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
*
|
*
|
||||||
* @namespace
|
* @namespace
|
||||||
*/
|
*/
|
||||||
var Convert = module.exports = {
|
const Convert = {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @constant
|
* @constant
|
||||||
@ -410,3 +410,5 @@ var Convert = module.exports = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export default Convert;
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
*
|
*
|
||||||
* @namespace
|
* @namespace
|
||||||
*/
|
*/
|
||||||
var DateTime = module.exports = {
|
const DateTime = {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @constant
|
* @constant
|
||||||
@ -448,5 +448,6 @@ var DateTime = module.exports = {
|
|||||||
</tbody>\
|
</tbody>\
|
||||||
</table>",
|
</table>",
|
||||||
|
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export default DateTime;
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
var Utils = require("../Utils.js");
|
import Utils from "../Utils.js";
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -10,7 +10,7 @@ var Utils = require("../Utils.js");
|
|||||||
*
|
*
|
||||||
* @namespace
|
* @namespace
|
||||||
*/
|
*/
|
||||||
var Endian = module.exports = {
|
const Endian = {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @constant
|
* @constant
|
||||||
@ -95,3 +95,5 @@ var Endian = module.exports = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export default Endian;
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
var Utils = require("../Utils.js");
|
import Utils from "../Utils.js";
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -10,7 +10,7 @@ var Utils = require("../Utils.js");
|
|||||||
*
|
*
|
||||||
* @namespace
|
* @namespace
|
||||||
*/
|
*/
|
||||||
var Entropy = module.exports = {
|
const Entropy = {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @constant
|
* @constant
|
||||||
@ -167,3 +167,5 @@ var Entropy = module.exports = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export default Entropy;
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
*
|
*
|
||||||
* @namespace
|
* @namespace
|
||||||
*/
|
*/
|
||||||
var Extract = module.exports = {
|
const Extract = {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Runs search operations across the input data using regular expressions.
|
* Runs search operations across the input data using regular expressions.
|
||||||
@ -295,3 +295,5 @@ var Extract = module.exports = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export default Extract;
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
var Utils = require("../Utils.js");
|
import Utils from "../Utils.js";
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -10,7 +10,7 @@ var Utils = require("../Utils.js");
|
|||||||
*
|
*
|
||||||
* @namespace
|
* @namespace
|
||||||
*/
|
*/
|
||||||
var FileType = module.exports = {
|
const FileType = {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Detect File Type operation.
|
* Detect File Type operation.
|
||||||
@ -527,3 +527,5 @@ var FileType = module.exports = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export default FileType;
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
var Utils = require("../Utils.js");
|
import Utils from "../Utils.js";
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -10,7 +10,7 @@ var Utils = require("../Utils.js");
|
|||||||
*
|
*
|
||||||
* @namespace
|
* @namespace
|
||||||
*/
|
*/
|
||||||
var HTML = module.exports = {
|
const HTML = {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @constant
|
* @constant
|
||||||
@ -851,3 +851,5 @@ var HTML = module.exports = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export default HTML;
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
var UAParser = require("exports-loader?UAS_parser!../lib/uas_parser.js");
|
import {UAS_parser as UAParser} from "../lib/uas_parser.js";
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -10,7 +10,7 @@ var UAParser = require("exports-loader?UAS_parser!../lib/uas_parser.js");
|
|||||||
*
|
*
|
||||||
* @namespace
|
* @namespace
|
||||||
*/
|
*/
|
||||||
var HTTP = module.exports = {
|
const HTTP = {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Strip HTTP headers operation.
|
* Strip HTTP headers operation.
|
||||||
@ -52,3 +52,5 @@ var HTTP = module.exports = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export default HTTP;
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
var Utils = require("../Utils.js"),
|
import Utils from "../Utils.js";
|
||||||
CryptoJS = require("crypto-js"),
|
import CryptoJS from "crypto-js";
|
||||||
CryptoApi = require("crypto-api"),
|
import CryptoApi from "crypto-api";
|
||||||
Checksum = require("./Checksum.js");
|
import Checksum from "./Checksum.js";
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -13,7 +13,7 @@ var Utils = require("../Utils.js"),
|
|||||||
*
|
*
|
||||||
* @namespace
|
* @namespace
|
||||||
*/
|
*/
|
||||||
var Hash = module.exports = {
|
const Hash = {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* MD2 operation.
|
* MD2 operation.
|
||||||
@ -385,3 +385,5 @@ var Hash = module.exports = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export default Hash;
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/* globals app */
|
/* globals app */
|
||||||
var Utils = require("../Utils.js");
|
import Utils from "../Utils.js";
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -11,7 +11,7 @@ var Utils = require("../Utils.js");
|
|||||||
*
|
*
|
||||||
* @namespace
|
* @namespace
|
||||||
*/
|
*/
|
||||||
var Hexdump = module.exports = {
|
const Hexdump = {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @constant
|
* @constant
|
||||||
@ -198,3 +198,5 @@ var Hexdump = module.exports = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export default Hexdump;
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
var Utils = require("../Utils.js"),
|
import Utils from "../Utils.js";
|
||||||
Checksum = require("./Checksum.js"),
|
import Checksum from "./Checksum.js";
|
||||||
BigInteger = require("jsbn").BigInteger;
|
import {BigInteger} from "jsbn";
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -12,7 +12,7 @@ var Utils = require("../Utils.js"),
|
|||||||
*
|
*
|
||||||
* @namespace
|
* @namespace
|
||||||
*/
|
*/
|
||||||
var IP = module.exports = {
|
const IP = {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @constant
|
* @constant
|
||||||
@ -1060,5 +1060,6 @@ var IP = module.exports = {
|
|||||||
255: {keyword: "Reserved", protocol: ""}
|
255: {keyword: "Reserved", protocol: ""}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export default IP;
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
var esprima = require("esprima"),
|
import esprima from "esprima";
|
||||||
escodegen = require("escodegen"),
|
import escodegen from "escodegen";
|
||||||
esmangle = require("esmangle");
|
import esmangle from "esmangle";
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -12,7 +12,7 @@ var esprima = require("esprima"),
|
|||||||
*
|
*
|
||||||
* @namespace
|
* @namespace
|
||||||
*/
|
*/
|
||||||
var JS = module.exports = {
|
const JS = {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @constant
|
* @constant
|
||||||
@ -160,3 +160,5 @@ var JS = module.exports = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export default JS;
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
*
|
*
|
||||||
* @namespace
|
* @namespace
|
||||||
*/
|
*/
|
||||||
var MAC = module.exports = {
|
const MAC = {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @constant
|
* @constant
|
||||||
@ -86,3 +86,5 @@ var MAC = module.exports = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export default MAC;
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
var Utils = require("../Utils.js");
|
import Utils from "../Utils.js";
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -10,7 +10,7 @@ var Utils = require("../Utils.js");
|
|||||||
*
|
*
|
||||||
* @namespace
|
* @namespace
|
||||||
*/
|
*/
|
||||||
var MorseCode = module.exports = {
|
const MorseCode = {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @constant
|
* @constant
|
||||||
@ -186,3 +186,5 @@ var MorseCode = module.exports = {
|
|||||||
})(),
|
})(),
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export default MorseCode;
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
*
|
*
|
||||||
* @namespace
|
* @namespace
|
||||||
*/
|
*/
|
||||||
var NetBIOS = module.exports = {
|
const NetBIOS = {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @constant
|
* @constant
|
||||||
@ -55,3 +55,5 @@ var NetBIOS = module.exports = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export default NetBIOS;
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
* @author Unknown Male 282
|
* @author Unknown Male 282
|
||||||
* @namespace
|
* @namespace
|
||||||
*/
|
*/
|
||||||
var Numberwang = module.exports = {
|
const Numberwang = {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Numberwang operation. Remain indoors.
|
* Numberwang operation. Remain indoors.
|
||||||
@ -25,3 +25,5 @@ var Numberwang = module.exports = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export default Numberwang;
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
*
|
*
|
||||||
* @namespace
|
* @namespace
|
||||||
*/
|
*/
|
||||||
var OS = module.exports = {
|
const OS = {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Parse UNIX file permissions operation.
|
* Parse UNIX file permissions operation.
|
||||||
@ -307,3 +307,5 @@ var OS = module.exports = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export default OS;
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
var Utils = require("../Utils.js"),
|
import Utils from "../Utils.js";
|
||||||
r = require("jsrsasign");
|
import * as r from "jsrsasign";
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -11,7 +11,7 @@ var Utils = require("../Utils.js"),
|
|||||||
*
|
*
|
||||||
* @namespace
|
* @namespace
|
||||||
*/
|
*/
|
||||||
var PublicKey = module.exports = {
|
const PublicKey = {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @constant
|
* @constant
|
||||||
@ -336,6 +336,8 @@ var PublicKey = module.exports = {
|
|||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export default PublicKey;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Overwrite X509.hex2dn function so as to join RDNs with a string which can be split on without
|
* Overwrite X509.hex2dn function so as to join RDNs with a string which can be split on without
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
var punycode = require("punycode");
|
import punycode from "punycode";
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -10,7 +10,7 @@ var punycode = require("punycode");
|
|||||||
*
|
*
|
||||||
* @namespace
|
* @namespace
|
||||||
*/
|
*/
|
||||||
var Punycode = module.exports = {
|
const Punycode = {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @constant
|
* @constant
|
||||||
@ -54,3 +54,5 @@ var Punycode = module.exports = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export default Punycode;
|
||||||
|
@ -30,7 +30,7 @@
|
|||||||
*
|
*
|
||||||
* @namespace
|
* @namespace
|
||||||
*/
|
*/
|
||||||
var QuotedPrintable = module.exports = {
|
const QuotedPrintable = {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* To Quoted Printable operation.
|
* To Quoted Printable operation.
|
||||||
@ -268,3 +268,5 @@ var QuotedPrintable = module.exports = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export default QuotedPrintable;
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
*
|
*
|
||||||
* @todo Support for UTF16
|
* @todo Support for UTF16
|
||||||
*/
|
*/
|
||||||
var Rotate = module.exports = {
|
const Rotate = {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @constant
|
* @constant
|
||||||
@ -240,3 +240,5 @@ var Rotate = module.exports = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export default Rotate;
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
var Utils = require("../Utils.js");
|
import Utils from "../Utils.js";
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -10,7 +10,7 @@ var Utils = require("../Utils.js");
|
|||||||
*
|
*
|
||||||
* @namespace
|
* @namespace
|
||||||
*/
|
*/
|
||||||
var SeqUtils = module.exports = {
|
const SeqUtils = {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @constant
|
* @constant
|
||||||
@ -221,3 +221,5 @@ var SeqUtils = module.exports = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export default SeqUtils;
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
var Utils = require("../Utils.js"),
|
import Utils from "../Utils.js";
|
||||||
JsDiff = require("diff");
|
import JsDiff from "diff";
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -11,7 +11,7 @@ var Utils = require("../Utils.js"),
|
|||||||
*
|
*
|
||||||
* @namespace
|
* @namespace
|
||||||
*/
|
*/
|
||||||
var StrUtils = module.exports = {
|
const StrUtils = {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @constant
|
* @constant
|
||||||
@ -538,3 +538,5 @@ var StrUtils = module.exports = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export default StrUtils;
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
var Utils = require("../Utils.js");
|
import Utils from "../Utils.js";
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -10,7 +10,7 @@ var Utils = require("../Utils.js");
|
|||||||
*
|
*
|
||||||
* @namespace
|
* @namespace
|
||||||
*/
|
*/
|
||||||
var Tidy = module.exports = {
|
const Tidy = {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @constant
|
* @constant
|
||||||
@ -239,3 +239,5 @@ var Tidy = module.exports = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export default Tidy;
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/* globals unescape */
|
/* globals unescape */
|
||||||
var Utils = require("../Utils.js");
|
import Utils from "../Utils.js";
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -12,7 +12,7 @@ var Utils = require("../Utils.js");
|
|||||||
*
|
*
|
||||||
* @namespace
|
* @namespace
|
||||||
*/
|
*/
|
||||||
var URL_ = module.exports = {
|
const URL_ = {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @constant
|
* @constant
|
||||||
@ -130,3 +130,5 @@ var URL_ = module.exports = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export default URL_;
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
*
|
*
|
||||||
* @namespace
|
* @namespace
|
||||||
*/
|
*/
|
||||||
var UUID = module.exports = {
|
const UUID = {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Generate UUID operation.
|
* Generate UUID operation.
|
||||||
@ -37,3 +37,5 @@ var UUID = module.exports = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export default UUID;
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
var Utils = require("../Utils.js");
|
import Utils from "../Utils.js";
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -10,7 +10,7 @@ var Utils = require("../Utils.js");
|
|||||||
*
|
*
|
||||||
* @namespace
|
* @namespace
|
||||||
*/
|
*/
|
||||||
var Unicode = module.exports = {
|
const Unicode = {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @constant
|
* @constant
|
||||||
@ -63,3 +63,5 @@ var Unicode = module.exports = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export default Unicode;
|
||||||
|
@ -6,9 +6,9 @@
|
|||||||
* @license Apache-2.0
|
* @license Apache-2.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
var Chef = require("../core/Chef.js");
|
var Chef = require("../core/Chef.js").default;
|
||||||
|
|
||||||
module.exports = {
|
const CyberChef = module.exports = {
|
||||||
|
|
||||||
bake: function(input, recipeConfig) {
|
bake: function(input, recipeConfig) {
|
||||||
this.chef = new Chef();
|
this.chef = new Chef();
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
var Utils = require("../core/Utils.js"),
|
import Utils from "../core/Utils.js";
|
||||||
Chef = require("../core/Chef.js"),
|
import Chef from "../core/Chef.js";
|
||||||
Manager = require("./Manager.js"),
|
import Manager from "./Manager.js";
|
||||||
HTMLCategory = require("./HTMLCategory.js"),
|
import HTMLCategory from "./HTMLCategory.js";
|
||||||
HTMLOperation = require("./HTMLOperation.js"),
|
import HTMLOperation from "./HTMLOperation.js";
|
||||||
Split = require("split.js");
|
import Split from "split.js";
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -20,7 +20,7 @@ var Utils = require("../core/Utils.js"),
|
|||||||
* @param {String[]} defaultFavourites - A list of default favourite operations.
|
* @param {String[]} defaultFavourites - A list of default favourite operations.
|
||||||
* @param {Object} options - Default setting for app options.
|
* @param {Object} options - Default setting for app options.
|
||||||
*/
|
*/
|
||||||
var HTMLApp = module.exports = function(categories, operations, defaultFavourites, defaultOptions) {
|
var App = function(categories, operations, defaultFavourites, defaultOptions) {
|
||||||
this.categories = categories;
|
this.categories = categories;
|
||||||
this.operations = operations;
|
this.operations = operations;
|
||||||
this.dfavourites = defaultFavourites;
|
this.dfavourites = defaultFavourites;
|
||||||
@ -43,7 +43,7 @@ var HTMLApp = module.exports = function(categories, operations, defaultFavourite
|
|||||||
*
|
*
|
||||||
* @fires Manager#appstart
|
* @fires Manager#appstart
|
||||||
*/
|
*/
|
||||||
HTMLApp.prototype.setup = function() {
|
App.prototype.setup = function() {
|
||||||
document.dispatchEvent(this.manager.appstart);
|
document.dispatchEvent(this.manager.appstart);
|
||||||
this.initialiseSplitter();
|
this.initialiseSplitter();
|
||||||
this.loadLocalStorage();
|
this.loadLocalStorage();
|
||||||
@ -60,7 +60,7 @@ HTMLApp.prototype.setup = function() {
|
|||||||
*
|
*
|
||||||
* @param {Error} err
|
* @param {Error} err
|
||||||
*/
|
*/
|
||||||
HTMLApp.prototype.handleError = function(err) {
|
App.prototype.handleError = function(err) {
|
||||||
console.error(err);
|
console.error(err);
|
||||||
var msg = err.displayStr || err.toString();
|
var msg = err.displayStr || err.toString();
|
||||||
this.alert(msg, "danger", this.options.errorTimeout, !this.options.showErrors);
|
this.alert(msg, "danger", this.options.errorTimeout, !this.options.showErrors);
|
||||||
@ -73,7 +73,7 @@ HTMLApp.prototype.handleError = function(err) {
|
|||||||
* @param {boolean} [step] - Set to true if we should only execute one operation instead of the
|
* @param {boolean} [step] - Set to true if we should only execute one operation instead of the
|
||||||
* whole recipe.
|
* whole recipe.
|
||||||
*/
|
*/
|
||||||
HTMLApp.prototype.bake = function(step) {
|
App.prototype.bake = function(step) {
|
||||||
var response;
|
var response;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
@ -112,7 +112,7 @@ HTMLApp.prototype.bake = function(step) {
|
|||||||
/**
|
/**
|
||||||
* Runs Auto Bake if it is set.
|
* Runs Auto Bake if it is set.
|
||||||
*/
|
*/
|
||||||
HTMLApp.prototype.autoBake = function() {
|
App.prototype.autoBake = function() {
|
||||||
if (this.autoBake_) {
|
if (this.autoBake_) {
|
||||||
this.bake();
|
this.bake();
|
||||||
}
|
}
|
||||||
@ -128,7 +128,7 @@ HTMLApp.prototype.autoBake = function() {
|
|||||||
*
|
*
|
||||||
* @returns {number} - The number of miliseconds it took to run the silent bake.
|
* @returns {number} - The number of miliseconds it took to run the silent bake.
|
||||||
*/
|
*/
|
||||||
HTMLApp.prototype.silentBake = function() {
|
App.prototype.silentBake = function() {
|
||||||
var startTime = new Date().getTime(),
|
var startTime = new Date().getTime(),
|
||||||
recipeConfig = this.getRecipeConfig();
|
recipeConfig = this.getRecipeConfig();
|
||||||
|
|
||||||
@ -145,7 +145,7 @@ HTMLApp.prototype.silentBake = function() {
|
|||||||
*
|
*
|
||||||
* @returns {string}
|
* @returns {string}
|
||||||
*/
|
*/
|
||||||
HTMLApp.prototype.getInput = function() {
|
App.prototype.getInput = function() {
|
||||||
var input = this.manager.input.get();
|
var input = this.manager.input.get();
|
||||||
|
|
||||||
// Save to session storage in case we need to restore it later
|
// Save to session storage in case we need to restore it later
|
||||||
@ -161,7 +161,7 @@ HTMLApp.prototype.getInput = function() {
|
|||||||
*
|
*
|
||||||
* @param {string} input - The string to set the input to
|
* @param {string} input - The string to set the input to
|
||||||
*/
|
*/
|
||||||
HTMLApp.prototype.setInput = function(input) {
|
App.prototype.setInput = function(input) {
|
||||||
sessionStorage.setItem("inputLength", input.length);
|
sessionStorage.setItem("inputLength", input.length);
|
||||||
sessionStorage.setItem("input", input);
|
sessionStorage.setItem("input", input);
|
||||||
this.manager.input.set(input);
|
this.manager.input.set(input);
|
||||||
@ -174,7 +174,7 @@ HTMLApp.prototype.setInput = function(input) {
|
|||||||
*
|
*
|
||||||
* @fires Manager#oplistcreate
|
* @fires Manager#oplistcreate
|
||||||
*/
|
*/
|
||||||
HTMLApp.prototype.populateOperationsList = function() {
|
App.prototype.populateOperationsList = function() {
|
||||||
// Move edit button away before we overwrite it
|
// Move edit button away before we overwrite it
|
||||||
document.body.appendChild(document.getElementById("edit-favourites"));
|
document.body.appendChild(document.getElementById("edit-favourites"));
|
||||||
|
|
||||||
@ -210,7 +210,7 @@ HTMLApp.prototype.populateOperationsList = function() {
|
|||||||
/**
|
/**
|
||||||
* Sets up the adjustable splitter to allow the user to resize areas of the page.
|
* Sets up the adjustable splitter to allow the user to resize areas of the page.
|
||||||
*/
|
*/
|
||||||
HTMLApp.prototype.initialiseSplitter = function() {
|
App.prototype.initialiseSplitter = function() {
|
||||||
this.columnSplitter = Split(["#operations", "#recipe", "#IO"], {
|
this.columnSplitter = Split(["#operations", "#recipe", "#IO"], {
|
||||||
sizes: [20, 30, 50],
|
sizes: [20, 30, 50],
|
||||||
minSize: [240, 325, 440],
|
minSize: [240, 325, 440],
|
||||||
@ -234,7 +234,7 @@ HTMLApp.prototype.initialiseSplitter = function() {
|
|||||||
* Loads the information previously saved to the HTML5 local storage object so that user options
|
* Loads the information previously saved to the HTML5 local storage object so that user options
|
||||||
* and favourites can be restored.
|
* and favourites can be restored.
|
||||||
*/
|
*/
|
||||||
HTMLApp.prototype.loadLocalStorage = function() {
|
App.prototype.loadLocalStorage = function() {
|
||||||
// Load options
|
// Load options
|
||||||
var lOptions;
|
var lOptions;
|
||||||
if (localStorage.options !== undefined) {
|
if (localStorage.options !== undefined) {
|
||||||
@ -252,7 +252,7 @@ HTMLApp.prototype.loadLocalStorage = function() {
|
|||||||
* Favourites category with them.
|
* Favourites category with them.
|
||||||
* If the user currently has no saved favourites, the defaults from the view constructor are used.
|
* If the user currently has no saved favourites, the defaults from the view constructor are used.
|
||||||
*/
|
*/
|
||||||
HTMLApp.prototype.loadFavourites = function() {
|
App.prototype.loadFavourites = function() {
|
||||||
var favourites = localStorage.favourites &&
|
var favourites = localStorage.favourites &&
|
||||||
localStorage.favourites.length > 2 ?
|
localStorage.favourites.length > 2 ?
|
||||||
JSON.parse(localStorage.favourites) :
|
JSON.parse(localStorage.favourites) :
|
||||||
@ -283,7 +283,7 @@ HTMLApp.prototype.loadFavourites = function() {
|
|||||||
* @param {string[]} favourites - A list of the user's favourite operations
|
* @param {string[]} favourites - A list of the user's favourite operations
|
||||||
* @returns {string[]} A list of the valid favourites
|
* @returns {string[]} A list of the valid favourites
|
||||||
*/
|
*/
|
||||||
HTMLApp.prototype.validFavourites = function(favourites) {
|
App.prototype.validFavourites = function(favourites) {
|
||||||
var validFavs = [];
|
var validFavs = [];
|
||||||
for (var i = 0; i < favourites.length; i++) {
|
for (var i = 0; i < favourites.length; i++) {
|
||||||
if (this.operations.hasOwnProperty(favourites[i])) {
|
if (this.operations.hasOwnProperty(favourites[i])) {
|
||||||
@ -302,7 +302,7 @@ HTMLApp.prototype.validFavourites = function(favourites) {
|
|||||||
*
|
*
|
||||||
* @param {string[]} favourites - A list of the user's favourite operations
|
* @param {string[]} favourites - A list of the user's favourite operations
|
||||||
*/
|
*/
|
||||||
HTMLApp.prototype.saveFavourites = function(favourites) {
|
App.prototype.saveFavourites = function(favourites) {
|
||||||
localStorage.setItem("favourites", JSON.stringify(this.validFavourites(favourites)));
|
localStorage.setItem("favourites", JSON.stringify(this.validFavourites(favourites)));
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -311,7 +311,7 @@ HTMLApp.prototype.saveFavourites = function(favourites) {
|
|||||||
* Resets favourite operations back to the default as specified in the view constructor and
|
* Resets favourite operations back to the default as specified in the view constructor and
|
||||||
* refreshes the operation list.
|
* refreshes the operation list.
|
||||||
*/
|
*/
|
||||||
HTMLApp.prototype.resetFavourites = function() {
|
App.prototype.resetFavourites = function() {
|
||||||
this.saveFavourites(this.dfavourites);
|
this.saveFavourites(this.dfavourites);
|
||||||
this.loadFavourites();
|
this.loadFavourites();
|
||||||
this.populateOperationsList();
|
this.populateOperationsList();
|
||||||
@ -324,7 +324,7 @@ HTMLApp.prototype.resetFavourites = function() {
|
|||||||
*
|
*
|
||||||
* @param {string} name - The name of the operation
|
* @param {string} name - The name of the operation
|
||||||
*/
|
*/
|
||||||
HTMLApp.prototype.addFavourite = function(name) {
|
App.prototype.addFavourite = function(name) {
|
||||||
var favourites = JSON.parse(localStorage.favourites);
|
var favourites = JSON.parse(localStorage.favourites);
|
||||||
|
|
||||||
if (favourites.indexOf(name) >= 0) {
|
if (favourites.indexOf(name) >= 0) {
|
||||||
@ -343,7 +343,7 @@ HTMLApp.prototype.addFavourite = function(name) {
|
|||||||
/**
|
/**
|
||||||
* Checks for input and recipe in the URI parameters and loads them if present.
|
* Checks for input and recipe in the URI parameters and loads them if present.
|
||||||
*/
|
*/
|
||||||
HTMLApp.prototype.loadURIParams = function() {
|
App.prototype.loadURIParams = function() {
|
||||||
// Load query string from URI
|
// Load query string from URI
|
||||||
this.queryString = (function(a) {
|
this.queryString = (function(a) {
|
||||||
if (a === "") return {};
|
if (a === "") return {};
|
||||||
@ -408,7 +408,7 @@ HTMLApp.prototype.loadURIParams = function() {
|
|||||||
*
|
*
|
||||||
* @returns {number}
|
* @returns {number}
|
||||||
*/
|
*/
|
||||||
HTMLApp.prototype.nextIngId = function() {
|
App.prototype.nextIngId = function() {
|
||||||
return this.ingId++;
|
return this.ingId++;
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -418,7 +418,7 @@ HTMLApp.prototype.nextIngId = function() {
|
|||||||
*
|
*
|
||||||
* @returns {Object[]}
|
* @returns {Object[]}
|
||||||
*/
|
*/
|
||||||
HTMLApp.prototype.getRecipeConfig = function() {
|
App.prototype.getRecipeConfig = function() {
|
||||||
var recipeConfig = this.manager.recipe.getConfig();
|
var recipeConfig = this.manager.recipe.getConfig();
|
||||||
sessionStorage.setItem("recipeConfig", JSON.stringify(recipeConfig));
|
sessionStorage.setItem("recipeConfig", JSON.stringify(recipeConfig));
|
||||||
return recipeConfig;
|
return recipeConfig;
|
||||||
@ -430,7 +430,7 @@ HTMLApp.prototype.getRecipeConfig = function() {
|
|||||||
*
|
*
|
||||||
* @param {Object[]} recipeConfig - The recipe configuration
|
* @param {Object[]} recipeConfig - The recipe configuration
|
||||||
*/
|
*/
|
||||||
HTMLApp.prototype.setRecipeConfig = function(recipeConfig) {
|
App.prototype.setRecipeConfig = function(recipeConfig) {
|
||||||
sessionStorage.setItem("recipeConfig", JSON.stringify(recipeConfig));
|
sessionStorage.setItem("recipeConfig", JSON.stringify(recipeConfig));
|
||||||
document.getElementById("rec-list").innerHTML = null;
|
document.getElementById("rec-list").innerHTML = null;
|
||||||
|
|
||||||
@ -471,7 +471,7 @@ HTMLApp.prototype.setRecipeConfig = function(recipeConfig) {
|
|||||||
/**
|
/**
|
||||||
* Resets the splitter positions to default.
|
* Resets the splitter positions to default.
|
||||||
*/
|
*/
|
||||||
HTMLApp.prototype.resetLayout = function() {
|
App.prototype.resetLayout = function() {
|
||||||
this.columnSplitter.setSizes([20, 30, 50]);
|
this.columnSplitter.setSizes([20, 30, 50]);
|
||||||
this.ioSplitter.setSizes([50, 50]);
|
this.ioSplitter.setSizes([50, 50]);
|
||||||
|
|
||||||
@ -483,7 +483,7 @@ HTMLApp.prototype.resetLayout = function() {
|
|||||||
/**
|
/**
|
||||||
* Sets the compile message.
|
* Sets the compile message.
|
||||||
*/
|
*/
|
||||||
HTMLApp.prototype.setCompileMessage = function() {
|
App.prototype.setCompileMessage = function() {
|
||||||
// Display time since last build and compile message
|
// Display time since last build and compile message
|
||||||
var now = new Date(),
|
var now = new Date(),
|
||||||
timeSinceCompile = Utils.fuzzyTime(now.getTime() - window.compileTime),
|
timeSinceCompile = Utils.fuzzyTime(now.getTime() - window.compileTime),
|
||||||
@ -522,7 +522,7 @@ HTMLApp.prototype.setCompileMessage = function() {
|
|||||||
* // that will disappear after 5 seconds.
|
* // that will disappear after 5 seconds.
|
||||||
* this.alert("Happy Christmas!", "info", 5000);
|
* this.alert("Happy Christmas!", "info", 5000);
|
||||||
*/
|
*/
|
||||||
HTMLApp.prototype.alert = function(str, style, timeout, silent) {
|
App.prototype.alert = function(str, style, timeout, silent) {
|
||||||
var time = new Date();
|
var time = new Date();
|
||||||
|
|
||||||
console.log("[" + time.toLocaleString() + "] " + str);
|
console.log("[" + time.toLocaleString() + "] " + str);
|
||||||
@ -576,7 +576,7 @@ HTMLApp.prototype.alert = function(str, style, timeout, silent) {
|
|||||||
* // Pops up a box asking if the user would like a cookie. Prints the answer to the console.
|
* // Pops up a box asking if the user would like a cookie. Prints the answer to the console.
|
||||||
* this.confirm("Question", "Would you like a cookie?", function(answer) {console.log(answer);});
|
* this.confirm("Question", "Would you like a cookie?", function(answer) {console.log(answer);});
|
||||||
*/
|
*/
|
||||||
HTMLApp.prototype.confirm = function(title, body, callback, scope) {
|
App.prototype.confirm = function(title, body, callback, scope) {
|
||||||
scope = scope || this;
|
scope = scope || this;
|
||||||
document.getElementById("confirm-title").innerHTML = title;
|
document.getElementById("confirm-title").innerHTML = title;
|
||||||
document.getElementById("confirm-body").innerHTML = body;
|
document.getElementById("confirm-body").innerHTML = body;
|
||||||
@ -604,7 +604,7 @@ HTMLApp.prototype.confirm = function(title, body, callback, scope) {
|
|||||||
* Handler for the alert close button click event.
|
* Handler for the alert close button click event.
|
||||||
* Closes the alert box.
|
* Closes the alert box.
|
||||||
*/
|
*/
|
||||||
HTMLApp.prototype.alertCloseClick = function() {
|
App.prototype.alertCloseClick = function() {
|
||||||
document.getElementById("alert").style.display = "none";
|
document.getElementById("alert").style.display = "none";
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -616,7 +616,7 @@ HTMLApp.prototype.alertCloseClick = function() {
|
|||||||
* @listens Manager#statechange
|
* @listens Manager#statechange
|
||||||
* @param {event} e
|
* @param {event} e
|
||||||
*/
|
*/
|
||||||
HTMLApp.prototype.stateChange = function(e) {
|
App.prototype.stateChange = function(e) {
|
||||||
this.autoBake();
|
this.autoBake();
|
||||||
|
|
||||||
// Update the current history state (not creating a new one)
|
// Update the current history state (not creating a new one)
|
||||||
@ -633,7 +633,7 @@ HTMLApp.prototype.stateChange = function(e) {
|
|||||||
*
|
*
|
||||||
* @param {event} e
|
* @param {event} e
|
||||||
*/
|
*/
|
||||||
HTMLApp.prototype.popState = function(e) {
|
App.prototype.popState = function(e) {
|
||||||
if (window.location.href.split("#")[0] !== this.lastStateUrl) {
|
if (window.location.href.split("#")[0] !== this.lastStateUrl) {
|
||||||
this.loadURIParams();
|
this.loadURIParams();
|
||||||
}
|
}
|
||||||
@ -643,7 +643,7 @@ HTMLApp.prototype.popState = function(e) {
|
|||||||
/**
|
/**
|
||||||
* Function to call an external API from this view.
|
* Function to call an external API from this view.
|
||||||
*/
|
*/
|
||||||
HTMLApp.prototype.callApi = function(url, type, data, dataType, contentType) {
|
App.prototype.callApi = function(url, type, data, dataType, contentType) {
|
||||||
type = type || "POST";
|
type = type || "POST";
|
||||||
data = data || {};
|
data = data || {};
|
||||||
dataType = dataType || undefined;
|
dataType = dataType || undefined;
|
||||||
@ -674,3 +674,5 @@ HTMLApp.prototype.callApi = function(url, type, data, dataType, contentType) {
|
|||||||
response: response
|
response: response
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export default App;
|
@ -1,4 +1,4 @@
|
|||||||
var Utils = require("../core/Utils.js");
|
import Utils from "../core/Utils.js";
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -9,10 +9,10 @@ var Utils = require("../core/Utils.js");
|
|||||||
* @license Apache-2.0
|
* @license Apache-2.0
|
||||||
*
|
*
|
||||||
* @constructor
|
* @constructor
|
||||||
* @param {HTMLApp} app - The main view object for CyberChef.
|
* @param {App} app - The main view object for CyberChef.
|
||||||
* @param {Manager} manager - The CyberChef event manager.
|
* @param {Manager} manager - The CyberChef event manager.
|
||||||
*/
|
*/
|
||||||
var ControlsWaiter = module.exports = function(app, manager) {
|
var ControlsWaiter = function(app, manager) {
|
||||||
this.app = app;
|
this.app = app;
|
||||||
this.manager = manager;
|
this.manager = manager;
|
||||||
};
|
};
|
||||||
@ -358,3 +358,5 @@ ControlsWaiter.prototype.supportButtonClick = function() {
|
|||||||
"* User-Agent: \n" + navigator.userAgent + "\n" +
|
"* User-Agent: \n" + navigator.userAgent + "\n" +
|
||||||
"* [Link to reproduce](" + saveLink + ")\n\n";
|
"* [Link to reproduce](" + saveLink + ")\n\n";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export default ControlsWaiter;
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
* @param {string} name - The name of the category.
|
* @param {string} name - The name of the category.
|
||||||
* @param {boolean} selected - Whether this category is pre-selected or not.
|
* @param {boolean} selected - Whether this category is pre-selected or not.
|
||||||
*/
|
*/
|
||||||
var HTMLCategory = module.exports = function(name, selected) {
|
var HTMLCategory = function(name, selected) {
|
||||||
this.name = name;
|
this.name = name;
|
||||||
this.selected = selected;
|
this.selected = selected;
|
||||||
this.opList = [];
|
this.opList = [];
|
||||||
@ -48,3 +48,5 @@ HTMLCategory.prototype.toHtml = function() {
|
|||||||
html += "</ul></div></div>";
|
html += "</ul></div></div>";
|
||||||
return html;
|
return html;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export default HTMLCategory;
|
||||||
|
@ -7,10 +7,10 @@
|
|||||||
*
|
*
|
||||||
* @constructor
|
* @constructor
|
||||||
* @param {Object} config - The configuration object for this ingredient.
|
* @param {Object} config - The configuration object for this ingredient.
|
||||||
* @param {HTMLApp} app - The main view object for CyberChef.
|
* @param {App} app - The main view object for CyberChef.
|
||||||
* @param {Manager} manager - The CyberChef event manager.
|
* @param {Manager} manager - The CyberChef event manager.
|
||||||
*/
|
*/
|
||||||
var HTMLIngredient = module.exports = function(config, app, manager) {
|
var HTMLIngredient = function(config, app, manager) {
|
||||||
this.app = app;
|
this.app = app;
|
||||||
this.manager = manager;
|
this.manager = manager;
|
||||||
|
|
||||||
@ -210,3 +210,5 @@ HTMLIngredient.prototype.editableOptionChange = function(e) {
|
|||||||
|
|
||||||
this.manager.recipe.ingChange();
|
this.manager.recipe.ingChange();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export default HTMLIngredient;
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
var HTMLIngredient = require("./HTMLIngredient.js");
|
import HTMLIngredient from "./HTMLIngredient.js";
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -11,10 +11,10 @@ var HTMLIngredient = require("./HTMLIngredient.js");
|
|||||||
* @constructor
|
* @constructor
|
||||||
* @param {string} name - The name of the operation.
|
* @param {string} name - The name of the operation.
|
||||||
* @param {Object} config - The configuration object for this operation.
|
* @param {Object} config - The configuration object for this operation.
|
||||||
* @param {HTMLApp} app - The main view object for CyberChef.
|
* @param {App} app - The main view object for CyberChef.
|
||||||
* @param {Manager} manager - The CyberChef event manager.
|
* @param {Manager} manager - The CyberChef event manager.
|
||||||
*/
|
*/
|
||||||
var HTMLOperation = module.exports = function(name, config, app, manager) {
|
var HTMLOperation = function(name, config, app, manager) {
|
||||||
this.app = app;
|
this.app = app;
|
||||||
this.manager = manager;
|
this.manager = manager;
|
||||||
|
|
||||||
@ -115,3 +115,5 @@ HTMLOperation.prototype.highlightSearchString = function(searchStr, namePos, des
|
|||||||
this.description.slice(descPos + searchStr.length);
|
this.description.slice(descPos + searchStr.length);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export default HTMLOperation;
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
var Utils = require("../core/Utils.js");
|
import Utils from "../core/Utils.js";
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -9,9 +9,9 @@ var Utils = require("../core/Utils.js");
|
|||||||
* @license Apache-2.0
|
* @license Apache-2.0
|
||||||
*
|
*
|
||||||
* @constructor
|
* @constructor
|
||||||
* @param {HTMLApp} app - The main view object for CyberChef.
|
* @param {App} app - The main view object for CyberChef.
|
||||||
*/
|
*/
|
||||||
var HighlighterWaiter = module.exports = function(app) {
|
var HighlighterWaiter = function(app) {
|
||||||
this.app = app;
|
this.app = app;
|
||||||
|
|
||||||
this.mouseButtonDown = false;
|
this.mouseButtonDown = false;
|
||||||
@ -507,3 +507,5 @@ HighlighterWaiter.prototype.highlight = function(textarea, highlighter, pos) {
|
|||||||
highlighter.scrollTop = textarea.scrollTop;
|
highlighter.scrollTop = textarea.scrollTop;
|
||||||
highlighter.scrollLeft = textarea.scrollLeft;
|
highlighter.scrollLeft = textarea.scrollLeft;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export default HighlighterWaiter;
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
var Utils = require("../core/Utils.js");
|
import Utils from "../core/Utils.js";
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -9,10 +9,10 @@ var Utils = require("../core/Utils.js");
|
|||||||
* @license Apache-2.0
|
* @license Apache-2.0
|
||||||
*
|
*
|
||||||
* @constructor
|
* @constructor
|
||||||
* @param {HTMLApp} app - The main view object for CyberChef.
|
* @param {App} app - The main view object for CyberChef.
|
||||||
* @param {Manager} manager - The CyberChef event manager.
|
* @param {Manager} manager - The CyberChef event manager.
|
||||||
*/
|
*/
|
||||||
var InputWaiter = module.exports = function(app, manager) {
|
var InputWaiter = function(app, manager) {
|
||||||
this.app = app;
|
this.app = app;
|
||||||
this.manager = manager;
|
this.manager = manager;
|
||||||
|
|
||||||
@ -218,3 +218,5 @@ InputWaiter.prototype.clearIoClick = function() {
|
|||||||
document.getElementById("output-selection-info").innerHTML = "";
|
document.getElementById("output-selection-info").innerHTML = "";
|
||||||
window.dispatchEvent(this.manager.statechange);
|
window.dispatchEvent(this.manager.statechange);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export default InputWaiter;
|
||||||
|
@ -1,12 +1,12 @@
|
|||||||
var WindowWaiter = require("./WindowWaiter.js"),
|
import WindowWaiter from "./WindowWaiter.js";
|
||||||
ControlsWaiter = require("./ControlsWaiter.js"),
|
import ControlsWaiter from "./ControlsWaiter.js";
|
||||||
RecipeWaiter = require("./RecipeWaiter.js"),
|
import RecipeWaiter from "./RecipeWaiter.js";
|
||||||
OperationsWaiter = require("./OperationsWaiter.js"),
|
import OperationsWaiter from "./OperationsWaiter.js";
|
||||||
InputWaiter = require("./InputWaiter.js"),
|
import InputWaiter from "./InputWaiter.js";
|
||||||
OutputWaiter = require("./OutputWaiter.js"),
|
import OutputWaiter from "./OutputWaiter.js";
|
||||||
OptionsWaiter = require("./OptionsWaiter.js"),
|
import OptionsWaiter from "./OptionsWaiter.js";
|
||||||
HighlighterWaiter = require("./HighlighterWaiter.js"),
|
import HighlighterWaiter from "./HighlighterWaiter.js";
|
||||||
SeasonalWaiter = require("./SeasonalWaiter.js");
|
import SeasonalWaiter from "./SeasonalWaiter.js";
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -17,9 +17,9 @@ var WindowWaiter = require("./WindowWaiter.js"),
|
|||||||
* @license Apache-2.0
|
* @license Apache-2.0
|
||||||
*
|
*
|
||||||
* @constructor
|
* @constructor
|
||||||
* @param {HTMLApp} app - The main view object for CyberChef.
|
* @param {App} app - The main view object for CyberChef.
|
||||||
*/
|
*/
|
||||||
var Manager = module.exports = function(app) {
|
var Manager = function(app) {
|
||||||
this.app = app;
|
this.app = app;
|
||||||
|
|
||||||
// Define custom events
|
// Define custom events
|
||||||
@ -274,3 +274,5 @@ Manager.prototype.dynamicListenerHandler = function(e) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export default Manager;
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
var HTMLOperation = require("./HTMLOperation.js"),
|
import HTMLOperation from "./HTMLOperation.js";
|
||||||
Sortable = require("sortablejs");
|
import Sortable from "sortablejs";
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -10,10 +10,10 @@ var HTMLOperation = require("./HTMLOperation.js"),
|
|||||||
* @license Apache-2.0
|
* @license Apache-2.0
|
||||||
*
|
*
|
||||||
* @constructor
|
* @constructor
|
||||||
* @param {HTMLApp} app - The main view object for CyberChef.
|
* @param {App} app - The main view object for CyberChef.
|
||||||
* @param {Manager} manager - The CyberChef event manager.
|
* @param {Manager} manager - The CyberChef event manager.
|
||||||
*/
|
*/
|
||||||
var OperationsWaiter = module.exports = function(app, manager) {
|
var OperationsWaiter = function(app, manager) {
|
||||||
this.app = app;
|
this.app = app;
|
||||||
this.manager = manager;
|
this.manager = manager;
|
||||||
|
|
||||||
@ -283,3 +283,5 @@ OperationsWaiter.prototype.opIconMouseleave = function(e) {
|
|||||||
$(opEl).popover("show");
|
$(opEl).popover("show");
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export default OperationsWaiter;
|
||||||
|
@ -6,9 +6,9 @@
|
|||||||
* @license Apache-2.0
|
* @license Apache-2.0
|
||||||
*
|
*
|
||||||
* @constructor
|
* @constructor
|
||||||
* @param {HTMLApp} app - The main view object for CyberChef.
|
* @param {App} app - The main view object for CyberChef.
|
||||||
*/
|
*/
|
||||||
var OptionsWaiter = module.exports = function(app) {
|
var OptionsWaiter = function(app) {
|
||||||
this.app = app;
|
this.app = app;
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -130,3 +130,5 @@ OptionsWaiter.prototype.setWordWrap = function() {
|
|||||||
document.getElementById("output-highlighter").classList.add("word-wrap");
|
document.getElementById("output-highlighter").classList.add("word-wrap");
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export default OptionsWaiter;
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
var Utils = require("../core/Utils.js");
|
import Utils from "../core/Utils.js";
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -9,10 +9,10 @@ var Utils = require("../core/Utils.js");
|
|||||||
* @license Apache-2.0
|
* @license Apache-2.0
|
||||||
*
|
*
|
||||||
* @constructor
|
* @constructor
|
||||||
* @param {HTMLApp} app - The main view object for CyberChef.
|
* @param {App} app - The main view object for CyberChef.
|
||||||
* @param {Manager} manager - The CyberChef event manager.
|
* @param {Manager} manager - The CyberChef event manager.
|
||||||
*/
|
*/
|
||||||
var OutputWaiter = module.exports = function(app, manager) {
|
var OutputWaiter = function(app, manager) {
|
||||||
this.app = app;
|
this.app = app;
|
||||||
this.manager = manager;
|
this.manager = manager;
|
||||||
};
|
};
|
||||||
@ -189,3 +189,5 @@ OutputWaiter.prototype.maximiseOutputClick = function(e) {
|
|||||||
this.app.resetLayout();
|
this.app.resetLayout();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export default OutputWaiter;
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
var HTMLOperation = require("./HTMLOperation.js"),
|
import HTMLOperation from "./HTMLOperation.js";
|
||||||
Sortable = require("sortablejs");
|
import Sortable from "sortablejs";
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -10,10 +10,10 @@ var HTMLOperation = require("./HTMLOperation.js"),
|
|||||||
* @license Apache-2.0
|
* @license Apache-2.0
|
||||||
*
|
*
|
||||||
* @constructor
|
* @constructor
|
||||||
* @param {HTMLApp} app - The main view object for CyberChef.
|
* @param {App} app - The main view object for CyberChef.
|
||||||
* @param {Manager} manager - The CyberChef event manager.
|
* @param {Manager} manager - The CyberChef event manager.
|
||||||
*/
|
*/
|
||||||
var RecipeWaiter = module.exports = function(app, manager) {
|
var RecipeWaiter = function(app, manager) {
|
||||||
this.app = app;
|
this.app = app;
|
||||||
this.manager = manager;
|
this.manager = manager;
|
||||||
this.removeIntent = false;
|
this.removeIntent = false;
|
||||||
@ -424,3 +424,5 @@ RecipeWaiter.prototype.opAdd = function(e) {
|
|||||||
RecipeWaiter.prototype.opRemove = function(e) {
|
RecipeWaiter.prototype.opRemove = function(e) {
|
||||||
window.dispatchEvent(this.manager.statechange);
|
window.dispatchEvent(this.manager.statechange);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export default RecipeWaiter;
|
||||||
|
@ -6,10 +6,10 @@
|
|||||||
* @license Apache-2.0
|
* @license Apache-2.0
|
||||||
*
|
*
|
||||||
* @constructor
|
* @constructor
|
||||||
* @param {HTMLApp} app - The main view object for CyberChef.
|
* @param {App} app - The main view object for CyberChef.
|
||||||
* @param {Manager} manager - The CyberChef event manager.
|
* @param {Manager} manager - The CyberChef event manager.
|
||||||
*/
|
*/
|
||||||
var SeasonalWaiter = module.exports = function(app, manager) {
|
var SeasonalWaiter = function(app, manager) {
|
||||||
this.app = app;
|
this.app = app;
|
||||||
this.manager = manager;
|
this.manager = manager;
|
||||||
};
|
};
|
||||||
@ -150,3 +150,5 @@ SeasonalWaiter.treeWalk = (function() {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
})();
|
})();
|
||||||
|
|
||||||
|
export default SeasonalWaiter;
|
||||||
|
@ -6,9 +6,9 @@
|
|||||||
* @license Apache-2.0
|
* @license Apache-2.0
|
||||||
*
|
*
|
||||||
* @constructor
|
* @constructor
|
||||||
* @param {HTMLApp} app - The main view object for CyberChef.
|
* @param {App} app - The main view object for CyberChef.
|
||||||
*/
|
*/
|
||||||
var WindowWaiter = module.exports = function(app) {
|
var WindowWaiter = function(app) {
|
||||||
this.app = app;
|
this.app = app;
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -50,3 +50,5 @@ WindowWaiter.prototype.windowFocus = function() {
|
|||||||
this.app.silentBake();
|
this.app.silentBake();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export default WindowWaiter;
|
||||||
|
@ -6,13 +6,13 @@
|
|||||||
* @license Apache-2.0
|
* @license Apache-2.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
require("google-code-prettify/src/prettify.css");
|
import "google-code-prettify/src/prettify.css";
|
||||||
|
|
||||||
require("./lib/bootstrap.less");
|
import "./lib/bootstrap.less";
|
||||||
require("bootstrap-switch/src/less/bootstrap3/build.less");
|
import "bootstrap-switch/src/less/bootstrap3/build.less";
|
||||||
require("bootstrap-colorpicker/dist/css/bootstrap-colorpicker.css");
|
import "bootstrap-colorpicker/dist/css/bootstrap-colorpicker.css";
|
||||||
|
|
||||||
require("./structure/overrides.css");
|
import "./structure/overrides.css";
|
||||||
require("./structure/layout.css");
|
import "./structure/layout.css";
|
||||||
require("./structure/utils.css");
|
import "./structure/utils.css";
|
||||||
require("./themes/classic.css");
|
import "./themes/classic.css";
|
||||||
|
2
src/web/css/lib/bootstrap.less
vendored
2
src/web/css/lib/bootstrap.less
vendored
@ -45,7 +45,7 @@
|
|||||||
@import "~bootstrap/less/panels.less";
|
@import "~bootstrap/less/panels.less";
|
||||||
// @import "~bootstrap/less/responsive-embed.less";
|
// @import "~bootstrap/less/responsive-embed.less";
|
||||||
// @import "~bootstrap/less/wells.less";
|
// @import "~bootstrap/less/wells.less";
|
||||||
// @import "~bootstrap/less/close.less";
|
@import "~bootstrap/less/close.less";
|
||||||
|
|
||||||
// Components w/ JavaScript
|
// Components w/ JavaScript
|
||||||
@import "~bootstrap/less/modals.less";
|
@import "~bootstrap/less/modals.less";
|
||||||
|
@ -4,10 +4,10 @@
|
|||||||
* @license Apache-2.0
|
* @license Apache-2.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
var HTMLApp = require("./HTMLApp.js"),
|
import App from "./App.js";
|
||||||
Categories = require("../core/config/Categories.js"),
|
import Categories from "../core/config/Categories.js";
|
||||||
OperationConfig = require("../core/config/OperationConfig.js"),
|
import OperationConfig from "../core/config/OperationConfig.js";
|
||||||
CanvasComponents = require("../core/lib/canvascomponents.js");
|
import CanvasComponents from "../core/lib/canvascomponents.js";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Main function used to build the CyberChef web app.
|
* Main function used to build the CyberChef web app.
|
||||||
@ -38,7 +38,7 @@ var main = function() {
|
|||||||
};
|
};
|
||||||
|
|
||||||
document.removeEventListener("DOMContentLoaded", main, false);
|
document.removeEventListener("DOMContentLoaded", main, false);
|
||||||
window.app = new HTMLApp(Categories, OperationConfig, defaultFavourites, defaultOptions);
|
window.app = new App(Categories, OperationConfig, defaultFavourites, defaultOptions);
|
||||||
window.app.setup();
|
window.app.setup();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
* @copyright Crown Copyright 2017
|
* @copyright Crown Copyright 2017
|
||||||
* @license Apache-2.0
|
* @license Apache-2.0
|
||||||
*/
|
*/
|
||||||
var Chef = require("../src/core/Chef.js");
|
import Chef from "../src/core/Chef.js";
|
||||||
|
|
||||||
(function() {
|
(function() {
|
||||||
/**
|
/**
|
||||||
@ -87,5 +87,7 @@ var Chef = require("../src/core/Chef.js");
|
|||||||
|
|
||||||
// Singleton TestRegister, keeping things simple and obvious.
|
// Singleton TestRegister, keeping things simple and obvious.
|
||||||
global.TestRegister = global.TestRegister || new TestRegister();
|
global.TestRegister = global.TestRegister || new TestRegister();
|
||||||
module.exports = global.TestRegister;
|
|
||||||
})();
|
})();
|
||||||
|
|
||||||
|
export default global.TestRegister;
|
||||||
|
|
||||||
|
@ -8,25 +8,18 @@
|
|||||||
* @copyright Crown Copyright 2017
|
* @copyright Crown Copyright 2017
|
||||||
* @license Apache-2.0
|
* @license Apache-2.0
|
||||||
*/
|
*/
|
||||||
var TestRegister = require("./TestRegister.js"),
|
import TestRegister from "./TestRegister.js";
|
||||||
allTestsPassing = true,
|
import "./tests/operations/Base58.js";
|
||||||
|
import "./tests/operations/Compress.js";
|
||||||
|
import "./tests/operations/FlowControl.js";
|
||||||
|
import "./tests/operations/MorseCode.js";
|
||||||
|
import "./tests/operations/StrUtils.js";
|
||||||
|
|
||||||
|
var allTestsPassing = true,
|
||||||
testStatusCounts = {
|
testStatusCounts = {
|
||||||
total: 0,
|
total: 0,
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
|
||||||
* Requires and returns all modules that match.
|
|
||||||
*
|
|
||||||
* @param {Object} requireContext
|
|
||||||
* @returns {Object[]}
|
|
||||||
*/
|
|
||||||
function requireAll(requireContext) {
|
|
||||||
return requireContext.keys().map(requireContext);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Import all tests
|
|
||||||
requireAll(require.context("./tests", true, /.+\.js$/));
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Helper function to convert a status to an icon.
|
* Helper function to convert a status to an icon.
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
* @copyright Crown Copyright 2017
|
* @copyright Crown Copyright 2017
|
||||||
* @license Apache-2.0
|
* @license Apache-2.0
|
||||||
*/
|
*/
|
||||||
var TestRegister = require("../../TestRegister.js");
|
import TestRegister from "../../TestRegister.js";
|
||||||
|
|
||||||
TestRegister.addTests([
|
TestRegister.addTests([
|
||||||
{
|
{
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
* @copyright Crown Copyright 2017
|
* @copyright Crown Copyright 2017
|
||||||
* @license Apache-2.0
|
* @license Apache-2.0
|
||||||
*/
|
*/
|
||||||
var TestRegister = require("../../TestRegister.js");
|
import TestRegister from "../../TestRegister.js";
|
||||||
|
|
||||||
TestRegister.addTests([
|
TestRegister.addTests([
|
||||||
{
|
{
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
* @copyright Crown Copyright 2017
|
* @copyright Crown Copyright 2017
|
||||||
* @license Apache-2.0
|
* @license Apache-2.0
|
||||||
*/
|
*/
|
||||||
var TestRegister = require("../../TestRegister.js");
|
import TestRegister from "../../TestRegister.js";
|
||||||
|
|
||||||
TestRegister.addTests([
|
TestRegister.addTests([
|
||||||
{
|
{
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
* @copyright Crown Copyright 2017
|
* @copyright Crown Copyright 2017
|
||||||
* @license Apache-2.0
|
* @license Apache-2.0
|
||||||
*/
|
*/
|
||||||
var TestRegister = require("../../TestRegister.js");
|
import TestRegister from "../../TestRegister.js";
|
||||||
|
|
||||||
TestRegister.addTests([
|
TestRegister.addTests([
|
||||||
{
|
{
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
* @copyright Crown Copyright 2017
|
* @copyright Crown Copyright 2017
|
||||||
* @license Apache-2.0
|
* @license Apache-2.0
|
||||||
*/
|
*/
|
||||||
var TestRegister = require("../../TestRegister.js");
|
import TestRegister from "../../TestRegister.js";
|
||||||
|
|
||||||
TestRegister.addTests([
|
TestRegister.addTests([
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user