removed the viewsConfig
This commit is contained in:
parent
4afd0c7de0
commit
b37f03ca9d
4 changed files with 1 additions and 22 deletions
|
@ -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();
|
2
index.js
2
index.js
|
@ -13,14 +13,12 @@ const loggerConfig = require('./config/loggerConfig.js');
|
|||
const mysqlConfig = require('./config/mysqlConfig.js');
|
||||
const siteConfig = require('./config/siteConfig.js');
|
||||
const slackConfig = require('./config/slackConfig.js');
|
||||
const viewsConfig = require('./config/viewsConfig.js');
|
||||
|
||||
function Server () {
|
||||
this.configureLogger = loggerConfig.update;
|
||||
this.configureMysql = mysqlConfig.update;
|
||||
this.configureSite = siteConfig.update;
|
||||
this.configureSlack = slackConfig.update;
|
||||
this.configureViews = viewsConfig.update;
|
||||
this.createApp = () => {
|
||||
// create an Express application
|
||||
const app = express();
|
||||
|
|
|
@ -22,8 +22,7 @@ var _reactHelmet = _interopRequireDefault(require("react-helmet"));
|
|||
|
||||
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) {
|
||||
return (
|
||||
|
|
|
@ -10,7 +10,6 @@ import { Reducers, GAListener, App, Sagas, Actions } from 'spee.ch-components';
|
|||
import Helmet from 'react-helmet';
|
||||
|
||||
const siteConfig = require('../../../config/siteConfig.js');
|
||||
// const viewsConfig = require('../../../config/viewsConfig.js');
|
||||
|
||||
const returnSagaWithParams = (saga, params) => {
|
||||
return function * () {
|
||||
|
|
Loading…
Reference in a new issue