Converted all modules from CommonJS to ES6

This commit is contained in:
n1474335 2017-03-23 17:52:20 +00:00
parent 0f2a5014be
commit 131b3a83c1
75 changed files with 395 additions and 282 deletions

View file

@ -1,4 +1,4 @@
var HTMLIngredient = require("./HTMLIngredient.js");
import HTMLIngredient from "./HTMLIngredient.js";
/**
@ -11,10 +11,10 @@ var HTMLIngredient = require("./HTMLIngredient.js");
* @constructor
* @param {string} name - The name of the 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.
*/
var HTMLOperation = module.exports = function(name, config, app, manager) {
var HTMLOperation = function(name, config, app, manager) {
this.app = app;
this.manager = manager;
@ -115,3 +115,5 @@ HTMLOperation.prototype.highlightSearchString = function(searchStr, namePos, des
this.description.slice(descPos + searchStr.length);
}
};
export default HTMLOperation;