[#181] cleanup to prep draft PR for PR

This commit is contained in:
Robin Scholtes 2023-05-10 23:08:14 +12:00
parent a7a76ec7ef
commit 9fbef2c163
6 changed files with 7 additions and 7 deletions

View file

@ -7,7 +7,8 @@
*/
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 loglevelMessagePrefix from "loglevel-message-prefix";

View file

@ -4,7 +4,7 @@
* @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 OperationError from "./errors/OperationError.mjs";
import Operation from "./Operation.mjs";

View file

@ -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 Utils, { isWorkerEnvironment } from "../Utils.mjs";
import Recipe from "../Recipe.mjs";

View file

@ -60,7 +60,6 @@ class App {
document.dispatchEvent(this.manager.appstart);
this.initialiseUI();
this.setCompileMessage();
this.loadLocalStorage();
this.populateOperationsList();
this.manager.setup();
@ -472,8 +471,9 @@ class App {
this.saveFavourites(favourites);
this.loadFavourites();
this.populateOperationsList();
this.manager.recipe.updateSelectedOperations();
this.manager.recipe.initialiseOperationDragNDrop();
this.manager.recipe.updateSelectedOperations();
}
/**
@ -875,6 +875,7 @@ class App {
*/
setDesktopUI(minimise) {
$("[data-toggle=tooltip]").tooltip("enable");
this.setCompileMessage();
this.setDesktopSplitter(minimise);
this.adjustComponentSizes();
this.populateOperationsList();

View file

@ -204,7 +204,6 @@ class Manager {
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("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));
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);

View file

@ -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
*/
class OperationsWaiter {