Added module framework

This commit is contained in:
n1474335 2017-08-09 20:09:23 +01:00
parent 9f19afc943
commit a61cf6a68a
22 changed files with 762 additions and 274 deletions

View file

@ -158,12 +158,15 @@ InputWaiter.prototype.inputDrop = function(e) {
const CHUNK_SIZE = 20480; // 20KB
const setInput = function() {
this.set(inputCharcode);
this.app.autoBakePause = true;
const recipeConfig = this.app.getRecipeConfig();
if (!recipeConfig[0] || recipeConfig[0].op !== "From Hex") {
recipeConfig.unshift({op: "From Hex", args: ["Space"]});
this.app.setRecipeConfig(recipeConfig);
}
this.app.autoBakePause = false;
this.set(inputCharcode);
el.classList.remove("loadingFile");
}.bind(this);

View file

@ -17,7 +17,7 @@ import CanvasComponents from "../core/lib/canvascomponents.js";
// CyberChef
import App from "./App.js";
import Categories from "../core/config/Categories.js";
import OperationConfig from "value-loader?name=default!../core/config/MetaConfig.js";
import OperationConfig from "value-loader?name=conf!../core/config/OperationConfig.js";
/**