aboutsummaryrefslogtreecommitdiffstats
path: root/web/src/js/components/ProxyApp.react.js
diff options
context:
space:
mode:
Diffstat (limited to 'web/src/js/components/ProxyApp.react.js')
-rw-r--r--web/src/js/components/ProxyApp.react.js46
1 files changed, 23 insertions, 23 deletions
diff --git a/web/src/js/components/ProxyApp.react.js b/web/src/js/components/ProxyApp.react.js
index fc21ecd8..01adb089 100644
--- a/web/src/js/components/ProxyApp.react.js
+++ b/web/src/js/components/ProxyApp.react.js
@@ -2,46 +2,46 @@
//TODO: Move out of here, just a stub.
var Reports = React.createClass({
- render(){
- return (<div>Report Editor</div>);
- }
+ render(){
+ return <div>Report Editor</div>;
+ }
});
var ProxyAppMain = React.createClass({
getInitialState(){
- return { settings: SettingsStore.getAll() };
+ return { settings: SettingsStore.getAll() };
},
componentDidMount(){
- SettingsStore.addListener("change", this.onSettingsChange);
+ SettingsStore.addListener("change", this.onSettingsChange);
},
componentWillUnmount(){
- SettingsStore.removeListener("change", this.onSettingsChange);
+ SettingsStore.removeListener("change", this.onSettingsChange);
},
onSettingsChange(){
- console.log("onSettingsChange");
- this.setState({settings: SettingsStore.getAll()});
+ 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/>
- </div>
- );
+ return (
+ <div id="container">
+ <Header settings={this.state.settings}/>
+ <div id="main"><this.props.activeRouteHandler/></div>
+ {this.state.settings.showEventLog ? <EventLog/> : null}
+ <Footer/>
+ </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>
+ <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>
);