diff options
Diffstat (limited to 'web/src/js/components/TrafficTable.react.js')
-rw-r--r-- | web/src/js/components/TrafficTable.react.js | 29 |
1 files changed, 16 insertions, 13 deletions
diff --git a/web/src/js/components/TrafficTable.react.js b/web/src/js/components/TrafficTable.react.js index d6a4f200..7e9e26e3 100644 --- a/web/src/js/components/TrafficTable.react.js +++ b/web/src/js/components/TrafficTable.react.js @@ -1,31 +1,34 @@ /** @jsx React.DOM */ var TrafficTable = React.createClass({ - getInitialState: function(){ + getInitialState() { return { flows: [] }; }, - componentDidMount(){ + componentDidMount() { //this.flowStore = FlowStore.getView(); //this.flowStore.addListener("change",this.onFlowChange); }, - componentWillUnmount(){ + componentWillUnmount() { //this.flowStore.removeListener("change",this.onFlowChange); //this.flowStore.close(); }, - onFlowChange(){ + onFlowChange() { this.setState({ //flows: this.flowStore.getAll() }); }, - render: function () { - /*var flows = this.state.flows.map(function(flow){ - return <div>{flow.request.method} {flow.request.scheme}://{flow.request.host}{flow.request.path}</div>; - }); *//**/ - x = "Flow"; - i = 12; - while(i--) x += x; - return <div><pre>{x}</pre></div>; - } + render() { + /*var flows = this.state.flows.map(function(flow){ + return <div>{flow.request.method} {flow.request.scheme}://{flow.request.host}{flow.request.path}</div>; + }); */ + //Dummy Text for layout testing + x = "Flow"; + i = 12; + while (i--) x += x; + return ( + <div><pre> { x } </pre></div> + ); + } });
\ No newline at end of file |