rebuild jsx pages

This commit is contained in:
bill bittner 2018-05-02 11:52:19 -07:00
parent 18eaf81579
commit 05822c393c
4 changed files with 10 additions and 4 deletions

View file

@ -27,11 +27,13 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
*/ */
var siteConfig = require('../../../config/siteConfig.js'); var siteConfig = require('../../../config/siteConfig.js');
var viewsConfig = require('../../../config/viewsConfig.js');
module.exports = function (req, res) { module.exports = function (req, res) {
var context = {}; // customize the reducer by passing in intial state configs var context = {}; // customize the reducer by passing in intial state configs
var MyReducers = (0, _spee.Reducers)(siteConfig); var MyReducers = (0, _spee.Reducers)(siteConfig);
var MyApp = (0, _spee.App)(siteConfig); var MyApp = (0, _spee.App)(viewsConfig);
var MyGAListener = (0, _spee.GAListener)(siteConfig); // create a new Redux store instance var MyGAListener = (0, _spee.GAListener)(siteConfig); // create a new Redux store instance
var store = (0, _redux.createStore)(MyReducers); // render component to a string var store = (0, _redux.createStore)(MyReducers); // render component to a string

View file

@ -31,6 +31,8 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
*/ */
var siteConfig = require('../../../config/siteConfig.js'); var siteConfig = require('../../../config/siteConfig.js');
var viewsConfig = require('../../../config/viewsConfig.js');
var returnSagaWithParams = function returnSagaWithParams(saga, params) { var returnSagaWithParams = function returnSagaWithParams(saga, params) {
return ( return (
/*#__PURE__*/ /*#__PURE__*/
@ -56,7 +58,7 @@ module.exports = function (req, res) {
var context = {}; // configure the reducers by passing initial state configs var context = {}; // configure the reducers by passing initial state configs
var MyReducers = (0, _spee.Reducers)(siteConfig); var MyReducers = (0, _spee.Reducers)(siteConfig);
var MyApp = (0, _spee.App)(siteConfig); var MyApp = (0, _spee.App)(viewsConfig);
var MyGAListener = (0, _spee.GAListener)(siteConfig); // create and apply middleware var MyGAListener = (0, _spee.GAListener)(siteConfig); // create and apply middleware
var sagaMiddleware = (0, _reduxSaga.default)(); var sagaMiddleware = (0, _reduxSaga.default)();

View file

@ -15,13 +15,14 @@ import renderFullPage from '../renderFullPage.js';
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');
module.exports = (req, res) => { module.exports = (req, res) => {
let context = {}; let context = {};
// customize the reducer by passing in intial state configs // customize the reducer by passing in intial state configs
const MyReducers = Reducers(siteConfig); const MyReducers = Reducers(siteConfig);
const MyApp = App(siteConfig); const MyApp = App(viewsConfig);
const MyGAListener = GAListener(siteConfig); const MyGAListener = GAListener(siteConfig);
// create a new Redux store instance // create a new Redux store instance

View file

@ -17,6 +17,7 @@ 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 * () {
@ -29,7 +30,7 @@ module.exports = (req, res) => {
// configure the reducers by passing initial state configs // configure the reducers by passing initial state configs
const MyReducers = Reducers(siteConfig); const MyReducers = Reducers(siteConfig);
const MyApp = App(siteConfig); const MyApp = App(viewsConfig);
const MyGAListener = GAListener(siteConfig); const MyGAListener = GAListener(siteConfig);
// create and apply middleware // create and apply middleware