diff options
author | Aldo Cortesi <aldo@nullcube.com> | 2014-09-16 16:26:16 +1200 |
---|---|---|
committer | Aldo Cortesi <aldo@nullcube.com> | 2014-09-16 16:27:09 +1200 |
commit | 6efe1aa6a92ce7f9f264903e9d27fb5cf6c32bfe (patch) | |
tree | e654b27eeb7a44c61c0e1a43850966735aefb3cd /web/src/js/components/ProxyApp.react.js | |
parent | 6bac1540bd9383c4e6e0510d9b75db34346187ed (diff) | |
download | mitmproxy-6efe1aa6a92ce7f9f264903e9d27fb5cf6c32bfe.tar.gz mitmproxy-6efe1aa6a92ce7f9f264903e9d27fb5cf6c32bfe.tar.bz2 mitmproxy-6efe1aa6a92ce7f9f264903e9d27fb5cf6c32bfe.zip |
We're not ready for ES6
Lets re-evaluate in June next year when it's actually released
Diffstat (limited to 'web/src/js/components/ProxyApp.react.js')
-rw-r--r-- | web/src/js/components/ProxyApp.react.js | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/web/src/js/components/ProxyApp.react.js b/web/src/js/components/ProxyApp.react.js deleted file mode 100644 index 07d66440..00000000 --- a/web/src/js/components/ProxyApp.react.js +++ /dev/null @@ -1,46 +0,0 @@ -/** @jsx React.DOM */ - -//TODO: Move out of here, just a stub. -var Reports = React.createClass({ - render(){ - return <div>Report Editor</div>; - } -}); - - -var ProxyAppMain = React.createClass({ - getInitialState(){ - return { settings: SettingsStore.getAll() }; - }, - componentDidMount(){ - SettingsStore.addListener("change", this.onSettingsChange); - }, - componentWillUnmount(){ - SettingsStore.removeListener("change", this.onSettingsChange); - }, - onSettingsChange(){ - console.log("onSettingsChange"); - this.setState({settings: SettingsStore.getAll()}); - }, - render() { - return ( - <div id="container"> - <Header settings={this.state.settings}/> - <div id="main"><this.props.activeRouteHandler/></div> - {this.state.settings.showEventLog ? <EventLog/> : null} - <Footer settings={this.state.settings}/> - </div> - ); - } -}); - - -var ProxyApp = ( - <ReactRouter.Routes location="hash"> - <ReactRouter.Route name="app" path="/" handler={ProxyAppMain}> - <ReactRouter.Route name="main" handler={TrafficTable}/> - <ReactRouter.Route name="reports" handler={Reports}/> - <ReactRouter.Redirect to="main"/> - </ReactRouter.Route> - </ReactRouter.Routes> -); |