aboutsummaryrefslogtreecommitdiffstats
path: root/web/src/js/components/TrafficTable.react.js
blob: d6a4f200e0405517bf3fa37e25fabd26eb0f0939 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/** @jsx React.DOM */

var TrafficTable = React.createClass({
    getInitialState: function(){
        return {
            flows: []
        };
    },
    componentDidMount(){
        //this.flowStore = FlowStore.getView();
        //this.flowStore.addListener("change",this.onFlowChange);
    },
    componentWillUnmount(){
        //this.flowStore.removeListener("change",this.onFlowChange);
        //this.flowStore.close();
    },
    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>;
   }
});