mirror of
https://github.com/gchq/CyberChef.git
synced 2025-06-17 11:45:07 -04:00
Converted all modules from CommonJS to ES6
This commit is contained in:
parent
0f2a5014be
commit
131b3a83c1
75 changed files with 395 additions and 282 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue