Converted the core to ES modules

This commit is contained in:
n1474335 2018-03-26 23:14:23 +01:00
parent c1bb93eec1
commit 9b4fc3d3aa
154 changed files with 1901 additions and 2223 deletions

View file

@ -1,4 +1,4 @@
import Utils from "../core/Utils.js";
import Utils from "../core/Utils";
import Manager from "./Manager.js";
import HTMLCategory from "./HTMLCategory.js";
import HTMLOperation from "./HTMLOperation.js";
@ -24,7 +24,7 @@ const App = function(categories, operations, defaultFavourites, defaultOptions)
this.operations = operations;
this.dfavourites = defaultFavourites;
this.doptions = defaultOptions;
this.options = Utils.extend({}, defaultOptions);
this.options = Object.assign({}, defaultOptions);
this.manager = new Manager(this);

0
src/web/BindingsWaiter.js Normal file → Executable file
View file

View file

@ -1,4 +1,4 @@
import Utils from "../core/Utils.js";
import Utils from "../core/Utils";
/**

View file

@ -1,5 +1,5 @@
import LoaderWorker from "worker-loader?inline&fallback=false!./LoaderWorker.js";
import Utils from "../core/Utils.js";
import Utils from "../core/Utils";
/**

0
src/web/LoaderWorker.js Normal file → Executable file
View file

View file

@ -1,4 +1,4 @@
import Utils from "../core/Utils.js";
import Utils from "../core/Utils";
import FileSaver from "file-saver";

View file

@ -1,6 +1,6 @@
import HTMLOperation from "./HTMLOperation.js";
import Sortable from "sortablejs";
import Utils from "../core/Utils.js";
import Utils from "../core/Utils";
/**

0
src/web/WorkerWaiter.js Normal file → Executable file
View file

View file

@ -13,12 +13,12 @@ import "bootstrap";
import "bootstrap-switch";
import "bootstrap-colorpicker";
import moment from "moment-timezone";
import CanvasComponents from "../core/lib/canvascomponents.js";
import CanvasComponents from "../core/vendor/canvascomponents.js";
// CyberChef
import App from "./App.js";
import Categories from "../core/config/Categories.js";
import OperationConfig from "../core/config/MetaConfig.js";
import OperationConfig from "../core/config/OperationConfig.json";
/**

0
src/web/static/ga.html Normal file → Executable file
View file

0
src/web/static/images/file-128x128.png Normal file → Executable file
View file

Before

Width:  |  Height:  |  Size: 19 KiB

After

Width:  |  Height:  |  Size: 19 KiB

Before After
Before After

0
src/web/static/images/file-32x32.png Normal file → Executable file
View file

Before

Width:  |  Height:  |  Size: 1.9 KiB

After

Width:  |  Height:  |  Size: 1.9 KiB

Before After
Before After

View file

@ -1,5 +1,5 @@
import sm from "sitemap";
import OperationConfig from "../../core/config/MetaConfig.js";
import OperationConfig from "../../core/config/OperationConfig.json";
/**

0
src/web/static/structuredData.json Normal file → Executable file
View file

0
src/web/stylesheets/components/_alert.css Normal file → Executable file
View file

0
src/web/stylesheets/components/_button.css Normal file → Executable file
View file

0
src/web/stylesheets/components/_list.css Normal file → Executable file
View file

0
src/web/stylesheets/components/_operation.css Normal file → Executable file
View file

0
src/web/stylesheets/components/_pane.css Normal file → Executable file
View file

0
src/web/stylesheets/index.css Normal file → Executable file
View file

0
src/web/stylesheets/index.js Normal file → Executable file
View file

0
src/web/stylesheets/layout/_banner.css Normal file → Executable file
View file

0
src/web/stylesheets/layout/_controls.css Normal file → Executable file
View file

0
src/web/stylesheets/layout/_io.css Normal file → Executable file
View file

0
src/web/stylesheets/layout/_modals.css Normal file → Executable file
View file

0
src/web/stylesheets/layout/_operations.css Normal file → Executable file
View file

0
src/web/stylesheets/layout/_recipe.css Normal file → Executable file
View file

0
src/web/stylesheets/layout/_structure.css Normal file → Executable file
View file

0
src/web/stylesheets/preloader.css Normal file → Executable file
View file

0
src/web/stylesheets/themes/_dark.css Normal file → Executable file
View file

0
src/web/stylesheets/vendors/bootstrap.less vendored Normal file → Executable file
View file