removed passing of custom views
This commit is contained in:
parent
15ccccb63d
commit
f2794c4334
4 changed files with 8 additions and 10 deletions
|
@ -25,15 +25,14 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
||||||
the bundle sent to the server?
|
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?
|
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) {
|
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)(viewsConfig);
|
var MyApp = _spee.App;
|
||||||
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
|
||||||
|
|
|
@ -29,9 +29,8 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
||||||
the bundle sent to the server?
|
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?
|
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) {
|
var returnSagaWithParams = function returnSagaWithParams(saga, params) {
|
||||||
return (
|
return (
|
||||||
|
@ -58,7 +57,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)(viewsConfig);
|
var MyApp = _spee.App;
|
||||||
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)();
|
||||||
|
|
|
@ -15,14 +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');
|
// 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(viewsConfig);
|
const MyApp = App;
|
||||||
const MyGAListener = GAListener(siteConfig);
|
const MyGAListener = GAListener(siteConfig);
|
||||||
|
|
||||||
// create a new Redux store instance
|
// create a new Redux store instance
|
||||||
|
|
|
@ -17,7 +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 viewsConfig = require('../../../config/viewsConfig.js');
|
||||||
|
|
||||||
const returnSagaWithParams = (saga, params) => {
|
const returnSagaWithParams = (saga, params) => {
|
||||||
return function * () {
|
return function * () {
|
||||||
|
@ -30,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(viewsConfig);
|
const MyApp = App;
|
||||||
const MyGAListener = GAListener(siteConfig);
|
const MyGAListener = GAListener(siteConfig);
|
||||||
|
|
||||||
// create and apply middleware
|
// create and apply middleware
|
||||||
|
|
Loading…
Reference in a new issue