aboutsummaryrefslogtreecommitdiffstats
path: root/web/src/js/components/flowtable-columns.jsx.js
diff options
context:
space:
mode:
authorMaximilian Hils <git@maximilianhils.com>2014-09-19 01:35:36 +0200
committerMaximilian Hils <git@maximilianhils.com>2014-09-19 01:35:36 +0200
commitb0374710e4ef934c2ae9b416e5c981e04ed776ed (patch)
tree732772d4cbd11562f728c27370185abaad1f026e /web/src/js/components/flowtable-columns.jsx.js
parent390a435ac4b5ce78b1aa32b4b048318c5ef0ba03 (diff)
downloadmitmproxy-b0374710e4ef934c2ae9b416e5c981e04ed776ed.tar.gz
mitmproxy-b0374710e4ef934c2ae9b416e5c981e04ed776ed.tar.bz2
mitmproxy-b0374710e4ef934c2ae9b416e5c981e04ed776ed.zip
start to fill detailpane
Diffstat (limited to 'web/src/js/components/flowtable-columns.jsx.js')
-rw-r--r--web/src/js/components/flowtable-columns.jsx.js25
1 files changed, 24 insertions, 1 deletions
diff --git a/web/src/js/components/flowtable-columns.jsx.js b/web/src/js/components/flowtable-columns.jsx.js
index 0eb9966c..01130bc1 100644
--- a/web/src/js/components/flowtable-columns.jsx.js
+++ b/web/src/js/components/flowtable-columns.jsx.js
@@ -77,6 +77,22 @@ var StatusColumn = React.createClass({
});
+var SizeColumn = React.createClass({
+ statics: {
+ renderTitle: function(){
+ return <th key="size" className="col-size">Size</th>;
+ }
+ },
+ render: function(){
+ var flow = this.props.flow;
+ var size = formatSize(
+ flow.request.contentLength +
+ (flow.response.contentLength || 0));
+ return <td className="col-size">{size}</td>;
+ }
+});
+
+
var TimeColumn = React.createClass({
statics: {
renderTitle: function(){
@@ -96,5 +112,12 @@ var TimeColumn = React.createClass({
});
-var all_columns = [TLSColumn, IconColumn, PathColumn, MethodColumn, StatusColumn, TimeColumn];
+var all_columns = [
+ TLSColumn,
+ IconColumn,
+ PathColumn,
+ MethodColumn,
+ StatusColumn,
+ SizeColumn,
+ TimeColumn];