aboutsummaryrefslogtreecommitdiffstats
path: root/web/src/js/components/traffictable.jsx
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@nullcube.com>2014-09-16 16:26:16 +1200
committerAldo Cortesi <aldo@nullcube.com>2014-09-16 16:27:09 +1200
commit6efe1aa6a92ce7f9f264903e9d27fb5cf6c32bfe (patch)
treee654b27eeb7a44c61c0e1a43850966735aefb3cd /web/src/js/components/traffictable.jsx
parent6bac1540bd9383c4e6e0510d9b75db34346187ed (diff)
downloadmitmproxy-6efe1aa6a92ce7f9f264903e9d27fb5cf6c32bfe.tar.gz
mitmproxy-6efe1aa6a92ce7f9f264903e9d27fb5cf6c32bfe.tar.bz2
mitmproxy-6efe1aa6a92ce7f9f264903e9d27fb5cf6c32bfe.zip
We're not ready for ES6
Lets re-evaluate in June next year when it's actually released
Diffstat (limited to 'web/src/js/components/traffictable.jsx')
-rw-r--r--web/src/js/components/traffictable.jsx34
1 files changed, 34 insertions, 0 deletions
diff --git a/web/src/js/components/traffictable.jsx b/web/src/js/components/traffictable.jsx
new file mode 100644
index 00000000..1ed6fbc8
--- /dev/null
+++ b/web/src/js/components/traffictable.jsx
@@ -0,0 +1,34 @@
+/** @jsx React.DOM */
+
+var TrafficTable = React.createClass({
+ getInitialState: function() {
+ return {
+ flows: []
+ };
+ },
+ componentDidMount: function() {
+ //this.flowStore = FlowStore.getView();
+ //this.flowStore.addListener("change",this.onFlowChange);
+ },
+ componentWillUnmount: function() {
+ //this.flowStore.removeListener("change",this.onFlowChange);
+ //this.flowStore.close();
+ },
+ onFlowChange: function() {
+ 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>;
+ }); */
+ //Dummy Text for layout testing
+ x = "Flow";
+ i = 12;
+ while (i--) x += x;
+ return (
+ <div><pre> { x } </pre></div>
+ );
+ }
+});