From 38fe8dfa2b660c8e095c46b71b0c059739c0a886 Mon Sep 17 00:00:00 2001 From: Luis Fernando Molina Date: Tue, 29 May 2018 19:07:11 +0200 Subject: [PATCH] PreLoading functionality complete. --- Scripts/AppLoader.js | 6 ++ Server/CloudScripts.js | 14 +-- index.html | 4 - server.js | 200 +++++++++++++++++++++++------------------ 4 files changed, 128 insertions(+), 96 deletions(-) diff --git a/Scripts/AppLoader.js b/Scripts/AppLoader.js index 02ee1f8de..8c904a74a 100644 --- a/Scripts/AppLoader.js +++ b/Scripts/AppLoader.js @@ -15,6 +15,12 @@ let modulesArray = [ + /* CloudWebScripts */ + + /* Plotters */ + + /* PlotterPanels */ + "Panels/TimeControlPanel.js", "Panels/ProductsPanel.js", diff --git a/Server/CloudScripts.js b/Server/CloudScripts.js index d8554a9c8..ecd9976ce 100644 --- a/Server/CloudScripts.js +++ b/Server/CloudScripts.js @@ -101,7 +101,7 @@ modulesRetrieved++; if (modulesRetrieved === pCloudWebConfig.webModules.length) { - createHTML(callBackfunction); + createJS(callBackfunction); } } @@ -125,21 +125,21 @@ } } - function createHTML(callBackfunction) { + function createJS(callBackfunction) { - let links = ""; - let htmlLine = '' + '\n' + ' ' + let lines = ""; + let jsLine = '' + '\n' + ' "AACloud/@module@",' for (let i = 0; i < pCloudWebConfig.webModules.length; i++) { let webModule = pCloudWebConfig.webModules[i].name + '.js'; - let htmlLineCopy = htmlLine; + let htmlLineCopy = jsLine; let newLink = htmlLineCopy.replace('@module@', webModule); - links = links + newLink; + lines = lines + newLink; } - callBackfunction(links); + callBackfunction(lines); } } diff --git a/index.html b/index.html index c91eb2dba..894ba6760 100644 --- a/index.html +++ b/index.html @@ -7,10 +7,6 @@ - - - -