added App to bundle
This commit is contained in:
parent
1ad7c60b1a
commit
747fd0afaf
5 changed files with 9843 additions and 544 deletions
|
@ -1,11 +1,12 @@
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { Route, Switch } from 'react-router-dom';
|
import { Route, Switch } from 'react-router-dom';
|
||||||
import { dynamicImport } from 'utils/dynamicImport';
|
import HomePage from 'pages/HomePage';
|
||||||
import AboutPage from 'pages/AboutPage';
|
import AboutPage from 'pages/AboutPage';
|
||||||
import LoginPage from 'pages/LoginPage';
|
import LoginPage from 'pages/LoginPage';
|
||||||
import ShowPage from 'pages/ShowPage';
|
import ShowPage from 'pages/ShowPage';
|
||||||
import FourOhFourPage from 'containers/FourOhFourPage';
|
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 = () => {
|
const App = () => {
|
||||||
return (
|
return (
|
||||||
|
|
10372
index.js
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
|
@ -1,7 +1,7 @@
|
||||||
const passport = require('passport');
|
const passport = require('passport');
|
||||||
const localLoginStrategy = require('./local-login.js');
|
const localLoginStrategy = require('./local-login.js');
|
||||||
const localSignupStrategy = require('./local-signup.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.deserializeUser(deserializeSpeechUser);
|
||||||
passport.serializeUser(serializeSpeechUser);
|
passport.serializeUser(serializeSpeechUser);
|
||||||
|
|
|
@ -1,16 +1,16 @@
|
||||||
const api = require('./server/routes/api/');
|
const api = require('./server/routes/api/');
|
||||||
const asset = require('./server/routes/asset/');
|
const asset = require('./server/routes/asset/');
|
||||||
const auth = require('./server/routes/auth/');
|
const auth = require('./server/routes/auth/');
|
||||||
const fallback = require('./server/routes/fallback');
|
|
||||||
const logger = require('./config/loggerConfig.js');
|
const logger = require('./config/loggerConfig.js');
|
||||||
const mysql = require('./config/mysqlConfig');
|
const mysql = require('./config/mysqlConfig');
|
||||||
const site = require('./config/siteConfig');
|
const site = require('./config/siteConfig');
|
||||||
const slack = require('./config/slackConfig.js');
|
const slack = require('./config/slackConfig.js');
|
||||||
const passport = require('./server/passport/');
|
const passport = require('./server/passport/');
|
||||||
const models = require('./server/models/');
|
const models = require('./server/models/');
|
||||||
// const Components = require('./client/components');
|
const App = require('./client/app');
|
||||||
|
|
||||||
const exports = {
|
const exports = {
|
||||||
|
App,
|
||||||
logger,
|
logger,
|
||||||
models,
|
models,
|
||||||
mysql,
|
mysql,
|
||||||
|
@ -21,9 +21,7 @@ const exports = {
|
||||||
api,
|
api,
|
||||||
asset,
|
asset,
|
||||||
auth,
|
auth,
|
||||||
fallback,
|
|
||||||
},
|
},
|
||||||
// Components,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
module.exports = exports;
|
module.exports = exports;
|
||||||
|
|
Loading…
Reference in a new issue