Folder structure #398
147 changed files with 61 additions and 61 deletions
client
actions
api
app.jschannels
client.jscomponents
ActiveStatusBar
AssetPreview
ExpandingTextArea
GAListener
InactiveStatusBar
Logo
NavBarChannelOptionsDropdown
ProgressBar
PublishPreview
PublishUrlMiddleDisplay
SEO
constants
asset_display_states.jschannel_action_types.jspublish_action_types.jspublish_channel_select_states.jspublish_claim_states.jsshow_action_types.jsshow_request_types.js
containers
AssetDisplay
AssetInfo
AssetTitle
ChannelClaimsDisplay
ChannelCreateForm
ChannelLoginForm
ChannelSelect
Dropzone
FourOhFourPage
NavBar
PublishDetails
PublishDisabledMessage
PublishMetadataInputs
PublishStatus
PublishThumbnailInput
PublishTitleInput
PublishTool
PublishUrlInput
ShowAssetDetails
ShowAssetLite
ShowChannel
pages
AboutPage
ErrorPage
HomePage
LoginPage
ShowPage
reducers
sagas
selectors
utils
|
@ -2,7 +2,7 @@ import React from 'react';
|
|||
import { Route, Switch } from 'react-router-dom';
|
||||
import HomePage from 'pages/HomePage'; // or use the provided local homepage
|
||||
import AboutPage from 'pages/AboutPage';
|
||||
import LoginPage from 'containers/LoginPage';
|
||||
import LoginPage from 'pages/LoginPage';
|
||||
import ShowPage from 'pages/ShowPage';
|
||||
import FourOhFourPage from 'containers/FourOhFourPage';
|
||||
|
|
@ -21,19 +21,20 @@ const sagaMiddleware = createSagaMiddleware();
|
|||
const middleware = applyMiddleware(sagaMiddleware);
|
||||
const reduxMiddleware = window.__REDUX_DEVTOOLS_EXTENSION__ ? compose(middleware, window.__REDUX_DEVTOOLS_EXTENSION__()) : middleware;
|
||||
|
||||
// create teh store
|
||||
let store;
|
||||
if (preloadedState) {
|
||||
const SpeechClient = () => {
|
||||
// create teh store
|
||||
let store;
|
||||
if (preloadedState) {
|
||||
store = createStore(Reducer, preloadedState, reduxMiddleware);
|
||||
} else {
|
||||
} else {
|
||||
store = createStore(Reducer, reduxMiddleware);
|
||||
}
|
||||
}
|
||||
|
||||
// run the saga middlweare
|
||||
sagaMiddleware.run(rootSaga);
|
||||
// run the saga middlweare
|
||||
sagaMiddleware.run(rootSaga);
|
||||
|
||||
// render the app
|
||||
hydrate(
|
||||
// render the app
|
||||
hydrate(
|
||||
<Provider store={store}>
|
||||
<BrowserRouter>
|
||||
<GAListener>
|
||||
|
@ -42,4 +43,7 @@ hydrate(
|
|||
</BrowserRouter>
|
||||
</Provider>,
|
||||
document.getElementById('react-app')
|
||||
);
|
||||
);
|
||||
};
|
||||
|
||||
module.exports = SpeechClient;
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Reference in a new issue