diff options
author | Jason <jason.daurus@gmail.com> | 2016-06-09 17:46:14 +0800 |
---|---|---|
committer | Jason <jason.daurus@gmail.com> | 2016-06-09 17:52:30 +0800 |
commit | f306cfa8b6445dd04c5f7188d1a5022bcb747a62 (patch) | |
tree | 8b229ee951b4e4756c3596b66cefee632bfb8870 /web/src/js/app.js | |
parent | 52754f40c29b95b8355627036660f7e182007e74 (diff) | |
download | mitmproxy-f306cfa8b6445dd04c5f7188d1a5022bcb747a62.tar.gz mitmproxy-f306cfa8b6445dd04c5f7188d1a5022bcb747a62.tar.bz2 mitmproxy-f306cfa8b6445dd04c5f7188d1a5022bcb747a62.zip |
[web] separate flowtable to multiple files
Diffstat (limited to 'web/src/js/app.js')
-rw-r--r-- | web/src/js/app.js | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/web/src/js/app.js b/web/src/js/app.js deleted file mode 100644 index 8fa52a00..00000000 --- a/web/src/js/app.js +++ /dev/null @@ -1,41 +0,0 @@ -import React from "react" -import { render } from 'react-dom' -import { applyMiddleware, createStore } from 'redux' -import { Provider } from 'react-redux' -import createLogger from 'redux-logger' -import thunkMiddleware from 'redux-thunk' -import { Route, Router as ReactRouter, hashHistory, Redirect } from "react-router" - -import Connection from "./connection" -import ProxyApp from "./components/ProxyApp" -import MainView from './components/MainView' -import rootReducer from './ducks/index' -import { addLogEntry } from "./ducks/eventLog" - -// logger must be last -const store = createStore( - rootReducer, - applyMiddleware(thunkMiddleware, createLogger()) -) - -window.addEventListener('error', msg => { - store.dispatch(addLogEntry(msg)) -}) - -// @todo remove this -document.addEventListener('DOMContentLoaded', () => { - window.ws = new Connection("/updates", store.dispatch) - - render( - <Provider store={store}> - <ReactRouter history={hashHistory}> - <Redirect from="/" to="/flows" /> - <Route path="/" component={ProxyApp}> - <Route path="flows" component={MainView}/> - <Route path="flows/:flowId/:detailTab" component={MainView}/> - </Route> - </ReactRouter> - </Provider>, - document.getElementById("mitmproxy") - ) -}) |