added App to bundle

This commit is contained in:
bill bittner 2018-03-29 10:01:01 -07:00
parent 1ad7c60b1a
commit 747fd0afaf
5 changed files with 9843 additions and 544 deletions

View file

@ -1,11 +1,12 @@
import React from 'react';
import { Route, Switch } from 'react-router-dom';
import { dynamicImport } from 'utils/dynamicImport';
import HomePage from 'pages/HomePage';
import AboutPage from 'pages/AboutPage';
import LoginPage from 'pages/LoginPage';
import ShowPage from 'pages/ShowPage';
import FourOhFourPage from 'containers/FourOhFourPage';
const HomePage = dynamicImport('pages/HomePage'); // or use the provided local homepage
// import { dynamicImport } from 'utils/dynamicImport';
// const HomePage = dynamicImport('pages/HomePage'); // or use the provided local homepage
const App = () => {
return (

10372
index.js

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -1,7 +1,7 @@
const passport = require('passport');
const localLoginStrategy = require('./local-login.js');
const localSignupStrategy = require('./local-signup.js');
const { serializeSpeechUser, deserializeSpeechUser } = require('../helpers/authHelpers.js');
const { serializeSpeechUser, deserializeSpeechUser } = require('helpers/authHelpers.js');
passport.deserializeUser(deserializeSpeechUser);
passport.serializeUser(serializeSpeechUser);

View file

@ -1,16 +1,16 @@
const api = require('./server/routes/api/');
const asset = require('./server/routes/asset/');
const auth = require('./server/routes/auth/');
const fallback = require('./server/routes/fallback');
const logger = require('./config/loggerConfig.js');
const mysql = require('./config/mysqlConfig');
const site = require('./config/siteConfig');
const slack = require('./config/slackConfig.js');
const passport = require('./server/passport/');
const models = require('./server/models/');
// const Components = require('./client/components');
const App = require('./client/app');
const exports = {
App,
logger,
models,
mysql,
@ -21,9 +21,7 @@ const exports = {
api,
asset,
auth,
fallback,
},
// Components,
};
module.exports = exports;