diff options
author | Maximilian Hils <git@maximilianhils.com> | 2014-09-18 00:01:45 +0200 |
---|---|---|
committer | Maximilian Hils <git@maximilianhils.com> | 2014-09-18 00:01:45 +0200 |
commit | 6a161be6b4c526fcc5f6581c7faff00a2c976f37 (patch) | |
tree | 6b99c30538a57e096c4fd01a923fc8542e90e6e4 /web/src | |
parent | b99de36b24e4687e35069fbfa18727519f23ea35 (diff) | |
download | mitmproxy-6a161be6b4c526fcc5f6581c7faff00a2c976f37.tar.gz mitmproxy-6a161be6b4c526fcc5f6581c7faff00a2c976f37.tar.bz2 mitmproxy-6a161be6b4c526fcc5f6581c7faff00a2c976f37.zip |
.jsx -> .jsx.js
Rename jsx files to be compatible with Chrome Dev Tools and
Workspace Mapping.
Diffstat (limited to 'web/src')
-rw-r--r-- | web/src/js/components/eventlog.jsx.js (renamed from web/src/js/components/eventlog.jsx) | 0 | ||||
-rw-r--r-- | web/src/js/components/flowtable.jsx.js (renamed from web/src/js/components/flowtable.jsx) | 9 | ||||
-rw-r--r-- | web/src/js/components/footer.jsx.js (renamed from web/src/js/components/footer.jsx) | 0 | ||||
-rw-r--r-- | web/src/js/components/header.jsx.js (renamed from web/src/js/components/header.jsx) | 0 | ||||
-rw-r--r-- | web/src/js/components/proxyapp.jsx.js (renamed from web/src/js/components/proxyapp.jsx) | 0 |
5 files changed, 6 insertions, 3 deletions
diff --git a/web/src/js/components/eventlog.jsx b/web/src/js/components/eventlog.jsx.js index df212177..df212177 100644 --- a/web/src/js/components/eventlog.jsx +++ b/web/src/js/components/eventlog.jsx.js diff --git a/web/src/js/components/flowtable.jsx b/web/src/js/components/flowtable.jsx.js index a94e559f..39721baf 100644 --- a/web/src/js/components/flowtable.jsx +++ b/web/src/js/components/flowtable.jsx.js @@ -9,7 +9,7 @@ var FlowRow = React.createClass({ flow: flow }); }.bind(this)); - return <tr>{columns}</tr>; + return <tr onClick={this.props.onClick} >{columns}</tr>; } }); @@ -26,7 +26,7 @@ var FlowTableBody = React.createClass({ render: function(){ var rows = this.props.flows.map(function(flow){ //TODO: Add UUID - return <FlowRow flow={flow} columns={this.props.columns}/>; + return <FlowRow onClick={this.props.onClick} flow={flow} columns={this.props.columns}/>; }.bind(this)); return <tbody>{rows}</tbody>; } @@ -146,6 +146,9 @@ var FlowTable = React.createClass({ flows: this.flowStore.getAll() }); }, + onClick: function(e){ + console.log("rowclick", e); + }, 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>; @@ -153,7 +156,7 @@ var FlowTable = React.createClass({ return ( <table className="flow-table"> <FlowTableHead columns={this.state.columns}/> - <FlowTableBody columns={this.state.columns} flows={this.state.flows}/> + <FlowTableBody onClick={this.onClick} columns={this.state.columns} flows={this.state.flows}/> </table> ); } diff --git a/web/src/js/components/footer.jsx b/web/src/js/components/footer.jsx.js index 9bcbbc2a..9bcbbc2a 100644 --- a/web/src/js/components/footer.jsx +++ b/web/src/js/components/footer.jsx.js diff --git a/web/src/js/components/header.jsx b/web/src/js/components/header.jsx.js index 8f613ff1..8f613ff1 100644 --- a/web/src/js/components/header.jsx +++ b/web/src/js/components/header.jsx.js diff --git a/web/src/js/components/proxyapp.jsx b/web/src/js/components/proxyapp.jsx.js index 63998ffe..63998ffe 100644 --- a/web/src/js/components/proxyapp.jsx +++ b/web/src/js/components/proxyapp.jsx.js |