From f2794c43347d06b8fac7c282bc96ed6b0e728e13 Mon Sep 17 00:00:00 2001 From: bill bittner Date: Sun, 13 May 2018 11:47:57 -0700 Subject: [PATCH] removed passing of custom views --- server/render/build/handlePageRender.js | 5 ++--- server/render/build/handleShowRender.js | 5 ++--- server/render/src/handlePageRender.jsx | 4 ++-- server/render/src/handleShowRender.jsx | 4 ++-- 4 files changed, 8 insertions(+), 10 deletions(-) diff --git a/server/render/build/handlePageRender.js b/server/render/build/handlePageRender.js index cbc803b9..3ae51f13 100644 --- a/server/render/build/handlePageRender.js +++ b/server/render/build/handlePageRender.js @@ -25,15 +25,14 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de the bundle sent to the server? there might also be issues if this package uses a different version of spee.ch-components than www.spee.ch does? */ -var siteConfig = require('../../../config/siteConfig.js'); +var siteConfig = require('../../../config/siteConfig.js'); // const viewsConfig = require('../../../config/viewsConfig.js'); -var viewsConfig = require('../../../config/viewsConfig.js'); module.exports = function (req, res) { var context = {}; // customize the reducer by passing in intial state configs var MyReducers = (0, _spee.Reducers)(siteConfig); - var MyApp = (0, _spee.App)(viewsConfig); + var MyApp = _spee.App; var MyGAListener = (0, _spee.GAListener)(siteConfig); // create a new Redux store instance var store = (0, _redux.createStore)(MyReducers); // render component to a string diff --git a/server/render/build/handleShowRender.js b/server/render/build/handleShowRender.js index cb7511a1..45a6e308 100644 --- a/server/render/build/handleShowRender.js +++ b/server/render/build/handleShowRender.js @@ -29,9 +29,8 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de the bundle sent to the server? there might also be issues if this package uses a different version of spee.ch-components than www.spee.ch does? */ -var siteConfig = require('../../../config/siteConfig.js'); +var siteConfig = require('../../../config/siteConfig.js'); // const viewsConfig = require('../../../config/viewsConfig.js'); -var viewsConfig = require('../../../config/viewsConfig.js'); var returnSagaWithParams = function returnSagaWithParams(saga, params) { return ( @@ -58,7 +57,7 @@ module.exports = function (req, res) { var context = {}; // configure the reducers by passing initial state configs var MyReducers = (0, _spee.Reducers)(siteConfig); - var MyApp = (0, _spee.App)(viewsConfig); + var MyApp = _spee.App; var MyGAListener = (0, _spee.GAListener)(siteConfig); // create and apply middleware var sagaMiddleware = (0, _reduxSaga.default)(); diff --git a/server/render/src/handlePageRender.jsx b/server/render/src/handlePageRender.jsx index 6479a808..01f81a73 100644 --- a/server/render/src/handlePageRender.jsx +++ b/server/render/src/handlePageRender.jsx @@ -15,14 +15,14 @@ import renderFullPage from '../renderFullPage.js'; import Helmet from 'react-helmet'; const siteConfig = require('../../../config/siteConfig.js'); -const viewsConfig = require('../../../config/viewsConfig.js'); +// const viewsConfig = require('../../../config/viewsConfig.js'); module.exports = (req, res) => { let context = {}; // customize the reducer by passing in intial state configs const MyReducers = Reducers(siteConfig); - const MyApp = App(viewsConfig); + const MyApp = App; const MyGAListener = GAListener(siteConfig); // create a new Redux store instance diff --git a/server/render/src/handleShowRender.jsx b/server/render/src/handleShowRender.jsx index 568ad877..243dd28a 100644 --- a/server/render/src/handleShowRender.jsx +++ b/server/render/src/handleShowRender.jsx @@ -17,7 +17,7 @@ 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 viewsConfig = require('../../../config/viewsConfig.js'); const returnSagaWithParams = (saga, params) => { return function * () { @@ -30,7 +30,7 @@ module.exports = (req, res) => { // configure the reducers by passing initial state configs const MyReducers = Reducers(siteConfig); - const MyApp = App(viewsConfig); + const MyApp = App; const MyGAListener = GAListener(siteConfig); // create and apply middleware