diff options
author | Maximilian Hils <git@maximilianhils.com> | 2014-09-17 02:13:37 +0200 |
---|---|---|
committer | Maximilian Hils <git@maximilianhils.com> | 2014-09-17 02:13:37 +0200 |
commit | 51db9a5612f0899ed61751dbee3f4e4b19a74ea4 (patch) | |
tree | b1c7f9950f496c8216050b57b1f0e06c6eeb5424 /web/src/js/components/proxyapp.jsx | |
parent | d998790c2f12594e6d0edc5a98e908677b60b31f (diff) | |
download | mitmproxy-51db9a5612f0899ed61751dbee3f4e4b19a74ea4.tar.gz mitmproxy-51db9a5612f0899ed61751dbee3f4e4b19a74ea4.tar.bz2 mitmproxy-51db9a5612f0899ed61751dbee3f4e4b19a74ea4.zip |
formatting
Diffstat (limited to 'web/src/js/components/proxyapp.jsx')
-rw-r--r-- | web/src/js/components/proxyapp.jsx | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/web/src/js/components/proxyapp.jsx b/web/src/js/components/proxyapp.jsx index 14c338e3..fff1d8d0 100644 --- a/web/src/js/components/proxyapp.jsx +++ b/web/src/js/components/proxyapp.jsx @@ -2,27 +2,27 @@ //TODO: Move out of here, just a stub. var Reports = React.createClass({ - render: function(){ - return <div>Report Editor</div>; + render: function () { + return <div>ReportEditor</div>; } }); var ProxyAppMain = React.createClass({ - getInitialState: function(){ + getInitialState: function () { return { settings: SettingsStore.getAll() }; }, - componentDidMount: function(){ + componentDidMount: function () { SettingsStore.addListener("change", this.onSettingsChange); }, - componentWillUnmount: function(){ + componentWillUnmount: function () { SettingsStore.removeListener("change", this.onSettingsChange); }, - onSettingsChange: function(){ + onSettingsChange: function () { console.log("onSettingsChange"); this.setState({settings: SettingsStore.getAll()}); }, - render: function() { + render: function () { return ( <div id="container"> <Header settings={this.state.settings}/> @@ -30,7 +30,7 @@ var ProxyAppMain = React.createClass({ {this.state.settings.showEventLog ? <EventLog/> : null} <Footer settings={this.state.settings}/> </div> - ); + ); } }); @@ -43,4 +43,4 @@ var ProxyApp = ( <ReactRouter.Redirect to="main"/> </ReactRouter.Route> </ReactRouter.Routes> -); + ); |