From 276f5e71fb1215109d64f2bbe3db655960ee45df Mon Sep 17 00:00:00 2001 From: anthony Date: Mon, 11 Jun 2018 20:46:08 -0700 Subject: [PATCH] adding new functions for functions lib files --- dev/app.scss | 4 +-- .../{slideshow.js.off => slideshow.js} | 0 setup/renderer.js | 26 +++++-------------- 3 files changed, 8 insertions(+), 22 deletions(-) rename dev/custom/slideshow/{slideshow.js.off => slideshow.js} (100%) diff --git a/dev/app.scss b/dev/app.scss index fbe3b01..c447ceb 100644 --- a/dev/app.scss +++ b/dev/app.scss @@ -14,13 +14,13 @@ /*Custom Modules */ @import "custom/sidebar/sidebar"; -//@import "custom/slideshow/slideshow"; +@import "custom/slideshow/slideshow"; @import "custom/gravity-forms/gravity-forms"; @import "custom/weather/weather"; @import "custom/nextgen/nextgen"; @import "custom/glma/glm-member-db"; //@import "custom/glma/glm-member-db-events"; -//@import "custom/blocks/glm-blocks"; +@import "custom/blocks/glm-blocks"; @import "custom/action-items/action-items"; @import "custom/svg-map/svg-map"; @import "custom/woocommerce/woocommerce"; \ No newline at end of file diff --git a/dev/custom/slideshow/slideshow.js.off b/dev/custom/slideshow/slideshow.js similarity index 100% rename from dev/custom/slideshow/slideshow.js.off rename to dev/custom/slideshow/slideshow.js diff --git a/setup/renderer.js b/setup/renderer.js index 45014c2..f33d4c9 100644 --- a/setup/renderer.js +++ b/setup/renderer.js @@ -13,25 +13,19 @@ var lineReader = require('readline').createInterface({ String.prototype.stripSlashes = function(){ return this.replace(/\\(.)/mg, "$1"); } -function getFolders(dir) { - return fs.readdirSync(dir) - .filter(function(file) { - return fs.statSync(path.join(dir, file)).isDirectory(); - }); - } -function sliceAtSpace(str) { - return str.split(' ')[1]; -} + // Display Active and In-Active Modules -let moduleObjs = []; -let modStorage = {}; let modName = ''; - function readLines(mode, state){ if(mode === 'parse'){ lineReader.on('line', function (line) { parseModules(this, line); }); + // activate or deactivate the JS files for each module + functionsFileReader.on('line', function (line) { + parsePhpLibs(this, line) + }); + // functionsFileReader.on('line', function (line) { // parseModules(this, line); // }); @@ -99,14 +93,6 @@ function scanModules(parse, edit, state){ scanModules(true, false, false); -let allModules = JSON.parse(localStorage.getItem("modules")) -// activate or deactivate the JS files for each module -const modPaths = ['dev/core/', 'dev/custom/']; - -functionsFileReader.on('line', function (line) { - parsePhpLibs(this, line) -}); - // On Click Set Mod State $(document).on("click", ".module-item", function(){ let _ = $(this); -- 2.17.1