File tree Expand file tree Collapse file tree 14 files changed +119
-50
lines changed
Expand file tree Collapse file tree 14 files changed +119
-50
lines changed Original file line number Diff line number Diff line change 2929 "react-hot-loader" : " ^1.3.0" ,
3030 "redux-devtools" : " ^3.0.0-beta-2" ,
3131 "redux-devtools-log-monitor" : " ^1.0.0-beta-2" ,
32- "redux-devtools-dock-monitor" : " ^1.0.0-beta-1 " ,
32+ "redux-devtools-dock-monitor" : " ^1.0.0-beta-2 " ,
3333 "webpack" : " ^1.9.11" ,
3434 "webpack-dev-server" : " ^1.9.0"
3535 }
Original file line number Diff line number Diff line change 1- if ( process . env . NODE_ENV === 'development ' ) {
1+ if ( process . env . NODE_ENV === 'production ' ) {
22 module . exports = require ( './configureStore.prod' ) ;
33} else {
44 module . exports = require ( './configureStore.dev' ) ;
Original file line number Diff line number Diff line change 11# Redux DevTools TodoMVC example
22
3- ## Getting Started
3+ ## Running example
44
5- 1 . Install dependencies: ` npm i `
6- 2 . Start the development server: ` npm start `
5+ ```
6+ git clone https://github.com/gaearon/redux-devtools.git
7+ cd redux-devtools
8+ npm install
9+
10+ cd examples/todomvc
11+ npm install
12+ npm start
13+ open http://localhost:3000
14+ ```
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ import React from 'react' ;
2+ import { createDevTools } from 'redux-devtools' ;
3+ import LogMonitor from 'redux-devtools-log-monitor' ;
4+ import DockMonitor from 'redux-devtools-dock-monitor' ;
5+
6+ export default createDevTools (
7+ < DockMonitor toggleVisibilityKey = 'H'
8+ changePositionKey = 'Q' >
9+ < LogMonitor />
10+ </ DockMonitor >
11+ ) ;
Original file line number Diff line number Diff line change 1+ import React , { Component } from 'react' ;
2+ import { Provider } from 'react-redux' ;
3+ import TodoApp from './TodoApp' ;
4+ import DevTools from './DevTools' ;
5+
6+ export default class Root extends Component {
7+ render ( ) {
8+ const { store } = this . props ;
9+ return (
10+ < Provider store = { store } >
11+ < div >
12+ < TodoApp />
13+ < DevTools />
14+ </ div >
15+ </ Provider >
16+ ) ;
17+ }
18+ }
Original file line number Diff line number Diff line change 1+ if ( process . env . NODE_ENV === 'production' ) {
2+ module . exports = require ( './Root.prod' ) ;
3+ } else {
4+ module . exports = require ( './Root.dev' ) ;
5+ }
Original file line number Diff line number Diff line change 1+ import React , { Component } from 'react' ;
2+ import { Provider } from 'react-redux' ;
3+ import TodoApp from './TodoApp' ;
4+
5+ export default class Root extends Component {
6+ render ( ) {
7+ const { store } = this . props ;
8+ return (
9+ < Provider store = { store } >
10+ < TodoApp />
11+ </ Provider >
12+ ) ;
13+ }
14+ }
Original file line number Diff line number Diff line change 1- import React from 'react' ;
2- import App from './containers/App' ;
31import 'todomvc-app-css/index.css' ;
2+ import React from 'react' ;
3+ import { render } from 'react-dom' ;
4+ import configureStore from './store/configureStore' ;
5+ import Root from './containers/Root' ;
6+
7+ const store = configureStore ( ) ;
48
5- React . render (
6- < App /> ,
9+ render (
10+ < Root store = { store } /> ,
711 document . getElementById ( 'root' )
812) ;
Original file line number Diff line number Diff line change 2929 "homepage" : " https://github.com/gaearon/redux-devtools#readme" ,
3030 "dependencies" : {
3131 "classnames" : " ^2.1.2" ,
32- "react" : " ^0.13.3" ,
33- "react-redux" : " ^3.0.0" ,
32+ "react" : " ^0.14.0" ,
33+ "react-dom" : " ^0.14.0" ,
34+ "react-redux" : " ^4.0.0" ,
3435 "redux" : " ^3.0.0"
3536 },
3637 "devDependencies" : {
3940 "node-libs-browser" : " ^0.5.2" ,
4041 "raw-loader" : " ^0.5.1" ,
4142 "react-hot-loader" : " ^1.3.0" ,
43+ "redux-devtools" : " ^3.0.0-beta-2" ,
44+ "redux-devtools-log-monitor" : " ^1.0.0-beta-2" ,
45+ "redux-devtools-dock-monitor" : " ^1.0.0-beta-2" ,
4246 "style-loader" : " ^0.12.3" ,
4347 "todomvc-app-css" : " ^2.0.1" ,
4448 "webpack" : " ^1.9.11" ,
You can’t perform that action at this time.
0 commit comments