aboutsummaryrefslogtreecommitdiffstats
path: root/web/src/js/components/TrafficTable.react.js
blob: 7e9e26e3b07770947f6dfe7e3eebd13d38441d7f (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
32
33
34
/** @jsx React.DOM */

var TrafficTable = React.createClass({
    getInitialState() {
        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() {
        /*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> 
        );
    }
});