adding new functions for functions lib files
authoranthony <astalarico@gmail.com>
Tue, 12 Jun 2018 03:46:08 +0000 (20:46 -0700)
committeranthony <astalarico@gmail.com>
Tue, 12 Jun 2018 03:46:08 +0000 (20:46 -0700)
dev/app.scss
dev/custom/slideshow/slideshow.js [new file with mode: 0644]
dev/custom/slideshow/slideshow.js.off [deleted file]
setup/renderer.js

index fbe3b01..c447ceb 100644 (file)
 
 /*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 b/dev/custom/slideshow/slideshow.js
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/dev/custom/slideshow/slideshow.js.off b/dev/custom/slideshow/slideshow.js.off
deleted file mode 100644 (file)
index e69de29..0000000
index 45014c2..f33d4c9 100644 (file)
@@ -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);