mirror of
https://github.com/gchq/CyberChef.git
synced 2025-05-08 15:25:01 -04:00
[#181] cleanup to prep draft PR for PR
This commit is contained in:
parent
a7a76ec7ef
commit
9fbef2c163
6 changed files with 7 additions and 7 deletions
|
@ -7,7 +7,8 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import Chef from "./Chef.mjs";
|
import Chef from "./Chef.mjs";
|
||||||
import OperationConfig from "./config/OperationConfig.json" assert {type: "json"};
|
// @TODO dolphin: import OperationConfig from "./config/OperationConfig.json" assert {type: "json"};
|
||||||
|
import OperationConfig from "./config/OperationConfig.json";
|
||||||
import OpModules from "./config/modules/OpModules.mjs";
|
import OpModules from "./config/modules/OpModules.mjs";
|
||||||
import loglevelMessagePrefix from "loglevel-message-prefix";
|
import loglevelMessagePrefix from "loglevel-message-prefix";
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
* @license Apache-2.0
|
* @license Apache-2.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// import OperationConfig from "./config/OperationConfig.json" assert {type: "json"};
|
// @TODO dolphin: import OperationConfig from "./config/OperationConfig.json" assert {type: "json"};
|
||||||
import OperationConfig from "./config/OperationConfig.json";
|
import OperationConfig from "./config/OperationConfig.json";
|
||||||
import OperationError from "./errors/OperationError.mjs";
|
import OperationError from "./errors/OperationError.mjs";
|
||||||
import Operation from "./Operation.mjs";
|
import Operation from "./Operation.mjs";
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// import OperationConfig from "../config/OperationConfig.json" assert {type: "json"};
|
// @TODO dolphin: import OperationConfig from "../config/OperationConfig.json" assert {type: "json"};
|
||||||
import OperationConfig from "../config/OperationConfig.json";
|
import OperationConfig from "../config/OperationConfig.json";
|
||||||
import Utils, { isWorkerEnvironment } from "../Utils.mjs";
|
import Utils, { isWorkerEnvironment } from "../Utils.mjs";
|
||||||
import Recipe from "../Recipe.mjs";
|
import Recipe from "../Recipe.mjs";
|
||||||
|
|
|
@ -60,7 +60,6 @@ class App {
|
||||||
document.dispatchEvent(this.manager.appstart);
|
document.dispatchEvent(this.manager.appstart);
|
||||||
|
|
||||||
this.initialiseUI();
|
this.initialiseUI();
|
||||||
this.setCompileMessage();
|
|
||||||
this.loadLocalStorage();
|
this.loadLocalStorage();
|
||||||
this.populateOperationsList();
|
this.populateOperationsList();
|
||||||
this.manager.setup();
|
this.manager.setup();
|
||||||
|
@ -472,8 +471,9 @@ class App {
|
||||||
this.saveFavourites(favourites);
|
this.saveFavourites(favourites);
|
||||||
this.loadFavourites();
|
this.loadFavourites();
|
||||||
this.populateOperationsList();
|
this.populateOperationsList();
|
||||||
this.manager.recipe.updateSelectedOperations();
|
|
||||||
this.manager.recipe.initialiseOperationDragNDrop();
|
this.manager.recipe.initialiseOperationDragNDrop();
|
||||||
|
this.manager.recipe.updateSelectedOperations();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -875,6 +875,7 @@ class App {
|
||||||
*/
|
*/
|
||||||
setDesktopUI(minimise) {
|
setDesktopUI(minimise) {
|
||||||
$("[data-toggle=tooltip]").tooltip("enable");
|
$("[data-toggle=tooltip]").tooltip("enable");
|
||||||
|
this.setCompileMessage();
|
||||||
this.setDesktopSplitter(minimise);
|
this.setDesktopSplitter(minimise);
|
||||||
this.adjustComponentSizes();
|
this.adjustComponentSizes();
|
||||||
this.populateOperationsList();
|
this.populateOperationsList();
|
||||||
|
|
|
@ -204,7 +204,6 @@ class Manager {
|
||||||
document.getElementById("save-all-to-file").addEventListener("click", this.output.saveAllClick.bind(this.output));
|
document.getElementById("save-all-to-file").addEventListener("click", this.output.saveAllClick.bind(this.output));
|
||||||
document.getElementById("copy-output").addEventListener("click", this.output.copyClick.bind(this.output));
|
document.getElementById("copy-output").addEventListener("click", this.output.copyClick.bind(this.output));
|
||||||
document.getElementById("switch").addEventListener("click", this.output.switchClick.bind(this.output));
|
document.getElementById("switch").addEventListener("click", this.output.switchClick.bind(this.output));
|
||||||
// document.getElementById("maximise-output").addEventListener("click", this.output.maximiseOutputClick.bind(this.output));
|
|
||||||
document.getElementById("magic").addEventListener("click", this.output.magicClick.bind(this.output));
|
document.getElementById("magic").addEventListener("click", this.output.magicClick.bind(this.output));
|
||||||
this.addDynamicListener(".extract-file,.extract-file i", "click", this.output.extractFileClick, this.output);
|
this.addDynamicListener(".extract-file,.extract-file i", "click", this.output.extractFileClick, this.output);
|
||||||
this.addDynamicListener("#output-tabs-wrapper #output-tabs li .output-tab-content", "click", this.output.changeTabClick, this.output);
|
this.addDynamicListener("#output-tabs-wrapper #output-tabs li .output-tab-content", "click", this.output.changeTabClick, this.output);
|
||||||
|
|
|
@ -11,7 +11,6 @@ import {fuzzyMatch, calcMatchRanges} from "../../core/lib/FuzzyMatch.mjs";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Waiter to handle events related to the operations.
|
* Waiter to handle events related to the operations.
|
||||||
* Waiter to handle events related to the operations
|
|
||||||
*/
|
*/
|
||||||
class OperationsWaiter {
|
class OperationsWaiter {
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue