-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* start of demo page work for stocks * Adjustments and preparations for demo
- Loading branch information
Showing
36 changed files
with
142 additions
and
26,196 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,7 @@ lib/ | |
node_modules/ | ||
npm-debug.log | ||
npm-debug.log* | ||
/build | ||
/dist | ||
.npmrc | ||
.DS_Store | ||
dist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import ReactDOM from 'react-dom'; | ||
import React from 'react'; | ||
import { createStore, applyMiddleware, compose, combineReducers } from 'redux'; | ||
import { Provider } from 'redux-synapse'; | ||
import thunkMiddleware from 'redux-thunk'; | ||
import reducers from './reducers'; | ||
import App from './components/App'; | ||
|
||
const composeEnhancers = typeof window !== 'undefined' | ||
&& window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ ? | ||
window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ | ||
: compose; | ||
|
||
const createStoreWithMiddleware = composeEnhancers(applyMiddleware(thunkMiddleware))(createStore); | ||
const store = createStoreWithMiddleware(combineReducers(reducers)); | ||
|
||
ReactDOM.render( | ||
<Provider store={store}> | ||
<App /> | ||
</Provider>, | ||
document.getElementById('app') | ||
); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import ReactDOM from 'react-dom'; | ||
import React from 'react'; | ||
import { createStore, applyMiddleware, compose, combineReducers } from 'redux'; | ||
import { Provider } from 'redux-synapse'; | ||
import thunkMiddleware from 'redux-thunk'; | ||
import reducers from './stock/reducers'; | ||
import StockApp from './stock/components/StockApp'; | ||
|
||
const composeEnhancers = typeof window !== 'undefined' | ||
&& window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ ? | ||
window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ | ||
: compose; | ||
|
||
const createStoreWithMiddleware = composeEnhancers(applyMiddleware(thunkMiddleware))(createStore); | ||
const store = createStoreWithMiddleware(combineReducers(reducers)); | ||
|
||
ReactDOM.render( | ||
<Provider store={store}> | ||
<StockApp /> | ||
</Provider>, | ||
document.getElementById('app') | ||
); | ||
|
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
const webpack = require('webpack'); | ||
const path = require('path'); | ||
|
||
const config = { | ||
devServer: { | ||
open: true, // Open in browser | ||
contentBase: __dirname, | ||
}, | ||
entry: { | ||
app: __dirname + '/index.js', | ||
}, | ||
module: { | ||
rules: [ | ||
{ | ||
test: /\.js$/, // Check for all js files | ||
use: [{ | ||
loader: 'babel-loader', | ||
options: { presets: ['stage-0'] }, | ||
}], | ||
}, | ||
{ | ||
test: /\.(sass|scss)$/, // Check for sass or scss file names | ||
use: [ | ||
'style-loader', | ||
'css-loader', | ||
'sass-loader', | ||
], | ||
}, | ||
], | ||
}, | ||
output: { | ||
path: __dirname + '/stock/dist', | ||
filename: '[name].bundle.js', | ||
}, | ||
resolve: { | ||
alias: { | ||
'redux-synapse': path.resolve(__dirname, '../src/index.js'), | ||
}, | ||
}, | ||
}; | ||
|
||
module.exports = config; |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.