From 6efe1aa6a92ce7f9f264903e9d27fb5cf6c32bfe Mon Sep 17 00:00:00 2001
From: Aldo Cortesi <aldo@nullcube.com>
Date: Tue, 16 Sep 2014 16:26:16 +1200
Subject: We're not ready for ES6

Lets re-evaluate in June next year when it's actually released
---
 web/src/js/components/traffictable.jsx | 34 ++++++++++++++++++++++++++++++++++
 1 file changed, 34 insertions(+)
 create mode 100644 web/src/js/components/traffictable.jsx

(limited to 'web/src/js/components/traffictable.jsx')

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> 
+        );
+    }
+});
-- 
cgit v1.2.3

