rebuild jsx pages
This commit is contained in:
parent
18eaf81579
commit
05822c393c
4 changed files with 10 additions and 4 deletions
|
@ -27,11 +27,13 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|||
*/
|
||||
var siteConfig = require('../../../config/siteConfig.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)(siteConfig);
|
||||
var MyApp = (0, _spee.App)(viewsConfig);
|
||||
var MyGAListener = (0, _spee.GAListener)(siteConfig); // create a new Redux store instance
|
||||
|
||||
var store = (0, _redux.createStore)(MyReducers); // render component to a string
|
||||
|
|
|
@ -31,6 +31,8 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|||
*/
|
||||
var siteConfig = require('../../../config/siteConfig.js');
|
||||
|
||||
var viewsConfig = require('../../../config/viewsConfig.js');
|
||||
|
||||
var returnSagaWithParams = function returnSagaWithParams(saga, params) {
|
||||
return (
|
||||
/*#__PURE__*/
|
||||
|
@ -56,7 +58,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)(siteConfig);
|
||||
var MyApp = (0, _spee.App)(viewsConfig);
|
||||
var MyGAListener = (0, _spee.GAListener)(siteConfig); // create and apply middleware
|
||||
|
||||
var sagaMiddleware = (0, _reduxSaga.default)();
|
||||
|
|
|
@ -15,13 +15,14 @@ import renderFullPage from '../renderFullPage.js';
|
|||
import Helmet from 'react-helmet';
|
||||
|
||||
const siteConfig = require('../../../config/siteConfig.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(siteConfig);
|
||||
const MyApp = App(viewsConfig);
|
||||
const MyGAListener = GAListener(siteConfig);
|
||||
|
||||
// create a new Redux store instance
|
||||
|
|
|
@ -17,6 +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 returnSagaWithParams = (saga, params) => {
|
||||
return function * () {
|
||||
|
@ -29,7 +30,7 @@ module.exports = (req, res) => {
|
|||
|
||||
// configure the reducers by passing initial state configs
|
||||
const MyReducers = Reducers(siteConfig);
|
||||
const MyApp = App(siteConfig);
|
||||
const MyApp = App(viewsConfig);
|
||||
const MyGAListener = GAListener(siteConfig);
|
||||
|
||||
// create and apply middleware
|
||||
|
|
Loading…
Reference in a new issue