removed the viewsConfig

This commit is contained in:
bill bittner 2018-05-13 22:39:08 -07:00
parent 4afd0c7de0
commit b37f03ca9d
4 changed files with 1 additions and 22 deletions

View file

@ -1,17 +0,0 @@
function ViewsConfig () {
this.components = {};
this.containers = {};
this.pages = {};
this.update = (config) => {
if (!config) {
return console.log('No components config received.');
}
const { components, containers, pages } = config;
console.log('Configuring custom components ...');
this.components = components;
this.containers = containers;
this.pages = pages;
};
}
module.exports = new ViewsConfig();

View file

@ -13,14 +13,12 @@ const loggerConfig = require('./config/loggerConfig.js');
const mysqlConfig = require('./config/mysqlConfig.js'); const mysqlConfig = require('./config/mysqlConfig.js');
const siteConfig = require('./config/siteConfig.js'); const siteConfig = require('./config/siteConfig.js');
const slackConfig = require('./config/slackConfig.js'); const slackConfig = require('./config/slackConfig.js');
const viewsConfig = require('./config/viewsConfig.js');
function Server () { function Server () {
this.configureLogger = loggerConfig.update; this.configureLogger = loggerConfig.update;
this.configureMysql = mysqlConfig.update; this.configureMysql = mysqlConfig.update;
this.configureSite = siteConfig.update; this.configureSite = siteConfig.update;
this.configureSlack = slackConfig.update; this.configureSlack = slackConfig.update;
this.configureViews = viewsConfig.update;
this.createApp = () => { this.createApp = () => {
// create an Express application // create an Express application
const app = express(); const app = express();

View file

@ -22,8 +22,7 @@ var _reactHelmet = _interopRequireDefault(require("react-helmet"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
var siteConfig = require('../../../config/siteConfig.js'); // const viewsConfig = require('../../../config/viewsConfig.js'); var siteConfig = require('../../../config/siteConfig.js');
var returnSagaWithParams = function returnSagaWithParams(saga, params) { var returnSagaWithParams = function returnSagaWithParams(saga, params) {
return ( return (

View file

@ -10,7 +10,6 @@ import { Reducers, GAListener, App, Sagas, Actions } from 'spee.ch-components';
import Helmet from 'react-helmet'; import Helmet from 'react-helmet';
const siteConfig = require('../../../config/siteConfig.js'); const siteConfig = require('../../../config/siteConfig.js');
// const viewsConfig = require('../../../config/viewsConfig.js');
const returnSagaWithParams = (saga, params) => { const returnSagaWithParams = (saga, params) => {
return function * () { return function * () {