blob: 442f8da25ad0165da03ad7d8328a528747fa2656 (
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
35
36
37
38
|
/** @jsx React.DOM */
var TrafficTable = React.createClass({
/*getInitialState: function(){
return {
flows: []
};
},*/
componentDidMount: function () {
/*var flowStore = new DummyFlowStore([]);
this.setState({flowStore: flowStore});
flowStore.addChangeListener(this.onFlowsChange);
$.getJSON("/flows.json").success(function (flows) {
flows.forEach(function (flow, i) {
window.setTimeout(function () {
flowStore.addFlow(flow);
}, _.random(i*400,i*400+1000));
});
}.bind(this));*/
},
componentWillUnmount: function(){
//this.state.flowStore.close();
},
onFlowsChange: function(event, flows){
//this.setState({flows: flows.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 = "WTF";
i = 12;
while(i--) x += x;
return <div><pre>{x}</pre></div>;
}
});
|