diff options
author | Maximilian Hils <git@maximilianhils.com> | 2014-09-18 21:13:50 +0200 |
---|---|---|
committer | Maximilian Hils <git@maximilianhils.com> | 2014-09-18 21:13:50 +0200 |
commit | d1ba150ea79689a55898efa760f7d77ca5ed601c (patch) | |
tree | 3b92ea9bae396fe1ab0b60310f4aa473c1194d0f /web/src/js/components/proxyapp.jsx.js | |
parent | 01da54f1c306a5d595046bd39bf2be8bbc86c132 (diff) | |
download | mitmproxy-d1ba150ea79689a55898efa760f7d77ca5ed601c.tar.gz mitmproxy-d1ba150ea79689a55898efa760f7d77ca5ed601c.tar.bz2 mitmproxy-d1ba150ea79689a55898efa760f7d77ca5ed601c.zip |
web: detailpane impl
Diffstat (limited to 'web/src/js/components/proxyapp.jsx.js')
-rw-r--r-- | web/src/js/components/proxyapp.jsx.js | 25 |
1 files changed, 16 insertions, 9 deletions
diff --git a/web/src/js/components/proxyapp.jsx.js b/web/src/js/components/proxyapp.jsx.js index 486e723f..6895b852 100644 --- a/web/src/js/components/proxyapp.jsx.js +++ b/web/src/js/components/proxyapp.jsx.js @@ -26,7 +26,7 @@ var ProxyAppMain = React.createClass({ return ( <div id="container"> <Header settings={this.state.settings}/> - <this.props.activeRouteHandler/> + <this.props.activeRouteHandler settings={this.state.settings}/> {this.state.settings.showEventLog ? <EventLog/> : null} <Footer settings={this.state.settings}/> </div> @@ -35,12 +35,19 @@ var ProxyAppMain = React.createClass({ }); +var Routes = ReactRouter.Routes; +var Route = ReactRouter.Route; +var Redirect = ReactRouter.Redirect; +var DefaultRoute = ReactRouter.DefaultRoute; +var NotFoundRoute = ReactRouter.NotFoundRoute; + + var ProxyApp = ( - <ReactRouter.Routes location="hash"> - <ReactRouter.Route name="app" path="/" handler={ProxyAppMain}> - <ReactRouter.Route name="main" handler={FlowTable}/> - <ReactRouter.Route name="reports" handler={Reports}/> - <ReactRouter.Redirect to="main"/> - </ReactRouter.Route> - </ReactRouter.Routes> - ); + <Routes location="hash"> + <Route path="/" handler={ProxyAppMain}> + <Route name="flows" path="flows" handler={MainView}/> + <Route name="flow" path="flows/:flowId/:detailTab" handler={MainView}/> + <Route name="reports" handler={Reports}/> + </Route> + </Routes> + );
\ No newline at end of file |