diff options
author | Jason <jason.daurus@gmail.com> | 2016-06-09 18:13:18 +0800 |
---|---|---|
committer | Jason <jason.daurus@gmail.com> | 2016-06-09 18:13:18 +0800 |
commit | 1baefcdc99bd8e4ee6bf7620965d51d1aab6ddd4 (patch) | |
tree | 465b607c9febcfcda3ca1c7773d27e29de948e0e /web/src/js/components/footer.js | |
parent | e24bf8d73f744319eeed99e7cae0b7f2c3947b8f (diff) | |
download | mitmproxy-1baefcdc99bd8e4ee6bf7620965d51d1aab6ddd4.tar.gz mitmproxy-1baefcdc99bd8e4ee6bf7620965d51d1aab6ddd4.tar.bz2 mitmproxy-1baefcdc99bd8e4ee6bf7620965d51d1aab6ddd4.zip |
[web] footer.js -> Footer.jsx
Diffstat (limited to 'web/src/js/components/footer.js')
-rw-r--r-- | web/src/js/components/footer.js | 50 |
1 files changed, 0 insertions, 50 deletions
diff --git a/web/src/js/components/footer.js b/web/src/js/components/footer.js deleted file mode 100644 index 8fe1081b..00000000 --- a/web/src/js/components/footer.js +++ /dev/null @@ -1,50 +0,0 @@ -import React from "react"; -import {formatSize} from "../utils.js" -import {SettingsState} from "./common.js"; - -Footer.propTypes = { - settings: React.PropTypes.object.isRequired, -}; - -export default function Footer({ settings }) { - const {mode, intercept, showhost, no_upstream_cert, rawtcp, http2, anticache, anticomp, stickyauth, stickycookie, stream} = settings; - return ( - <footer> - {mode && mode != "regular" && ( - <span className="label label-success">{mode} mode</span> - )} - {intercept && ( - <span className="label label-success">Intercept: {intercept}</span> - )} - {showhost && ( - <span className="label label-success">showhost</span> - )} - {no_upstream_cert && ( - <span className="label label-success">no-upstream-cert</span> - )} - {rawtcp && ( - <span className="label label-success">raw-tcp</span> - )} - {!http2 && ( - <span className="label label-success">no-http2</span> - )} - {anticache && ( - <span className="label label-success">anticache</span> - )} - {anticomp && ( - <span className="label label-success">anticomp</span> - )} - {stickyauth && ( - <span className="label label-success">stickyauth: {stickyauth}</span> - )} - {stickycookie && ( - <span className="label label-success">stickycookie: {stickycookie}</span> - )} - {stream && ( - <span className="label label-success">stream: {formatSize(stream)}</span> - )} - - - </footer> - ); -} |