From 0b5101b387d6bdb3e16f5c48fd614f98b3421d35 Mon Sep 17 00:00:00 2001 From: Unknown Date: Thu, 28 Feb 2019 14:55:27 +0100 Subject: [PATCH] Events module integration --- Ecosystem.js | 12 ++++++++---- Scripts/AppLoader.js | 7 +++++-- 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/Ecosystem.js b/Ecosystem.js index 3685fd45a..d15fbc62b 100644 --- a/Ecosystem.js +++ b/Ecosystem.js @@ -1,4 +1,4 @@ - + function newEcosystem() { let thisObject = { @@ -13,10 +13,11 @@ function newEcosystem() { getPlotter: getPlotter, getPlotterModule: getPlotterModule, getStoragePermissions: getStoragePermissions, + setEvent: setEvent, initialize: initialize } - - const ECOSYSTEM = "@ecosystem.json@"; + + let ECOSYSTEM = "@ecosystem.json@"; return thisObject; @@ -25,6 +26,10 @@ function newEcosystem() { } + function setEvent(input) { + ECOSYSTEM.hosts = input; + } + function getStoragePermissions() { return ECOSYSTEM.STORAGE_PERMISSIONS; @@ -140,4 +145,3 @@ function newEcosystem() { return false; } - diff --git a/Scripts/AppLoader.js b/Scripts/AppLoader.js index df91d25a9..007516279 100644 --- a/Scripts/AppLoader.js +++ b/Scripts/AppLoader.js @@ -1,4 +1,6 @@ -function newAppLoader() { +let dashboard; + +function newAppLoader() { const MODULE_NAME = "App Loader"; const INFO_LOG = false; @@ -36,6 +38,7 @@ "BottomSpace/PlayStopButton.js", "TopSpace/CompanyLogo.js", + "TopSpace/CurrentEvent.js", "TopSpace/CurrentStartMode.js", "TopSpace/CurrentProcess.js", "TopSpace/CurrentBot.js", @@ -140,7 +143,7 @@ if (INFO_LOG === true) { logger.write("[INFO] loadModules -> onRequired -> Starting Advanced Algos Platform."); } - let dashboard = newDashboard(); + dashboard = newDashboard(); dashboard.start(); }