aboutsummaryrefslogtreecommitdiffstats
path: root/mitmproxy/web/src/js/components/footer.js
diff options
context:
space:
mode:
authorMaximilian Hils <git@maximilianhils.com>2016-02-15 14:58:46 +0100
committerMaximilian Hils <git@maximilianhils.com>2016-02-15 14:58:46 +0100
commit33fa49277a821b9d38e8c9bf0bcf2adcfa2f6f04 (patch)
tree31914a601302579ff817504019296fd7e9e46765 /mitmproxy/web/src/js/components/footer.js
parent36f34f701991b5d474c005ec45e3b66e20f326a8 (diff)
downloadmitmproxy-33fa49277a821b9d38e8c9bf0bcf2adcfa2f6f04.tar.gz
mitmproxy-33fa49277a821b9d38e8c9bf0bcf2adcfa2f6f04.tar.bz2
mitmproxy-33fa49277a821b9d38e8c9bf0bcf2adcfa2f6f04.zip
move mitmproxy
Diffstat (limited to 'mitmproxy/web/src/js/components/footer.js')
-rw-r--r--mitmproxy/web/src/js/components/footer.js19
1 files changed, 19 insertions, 0 deletions
diff --git a/mitmproxy/web/src/js/components/footer.js b/mitmproxy/web/src/js/components/footer.js
new file mode 100644
index 00000000..229d691b
--- /dev/null
+++ b/mitmproxy/web/src/js/components/footer.js
@@ -0,0 +1,19 @@
+var React = require("react");
+var common = require("./common.js");
+
+var Footer = React.createClass({
+ mixins: [common.SettingsState],
+ render: function () {
+ var mode = this.state.settings.mode;
+ var intercept = this.state.settings.intercept;
+ return (
+ <footer>
+ {mode && mode != "regular" ? <span className="label label-success">{mode} mode</span> : null}
+ &nbsp;
+ {intercept ? <span className="label label-success">Intercept: {intercept}</span> : null}
+ </footer>
+ );
+ }
+});
+
+module.exports = Footer; \ No newline at end of file