diff options
author | Aldo Cortesi <aldo@nullcube.com> | 2014-12-30 21:51:07 +1300 |
---|---|---|
committer | Aldo Cortesi <aldo@nullcube.com> | 2014-12-30 21:51:07 +1300 |
commit | bc8687deb5f0f9273fc771e79b070f3b49e39fed (patch) | |
tree | 07e67eb7c9f732c0419e57b337c31d2372d12cff /web/src/js/components/header.jsx.js | |
parent | d2c7411f065435e2b2b62a70447cb01895fe69d1 (diff) | |
download | mitmproxy-bc8687deb5f0f9273fc771e79b070f3b49e39fed.tar.gz mitmproxy-bc8687deb5f0f9273fc771e79b070f3b49e39fed.tar.bz2 mitmproxy-bc8687deb5f0f9273fc771e79b070f3b49e39fed.zip |
Basic conversion: browserified web app now works.
Diffstat (limited to 'web/src/js/components/header.jsx.js')
-rw-r--r-- | web/src/js/components/header.jsx.js | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/web/src/js/components/header.jsx.js b/web/src/js/components/header.jsx.js index 6470aec5..d9fd9ab0 100644 --- a/web/src/js/components/header.jsx.js +++ b/web/src/js/components/header.jsx.js @@ -1,3 +1,8 @@ +var React = require("react"); +var $ = require("jquery"); + +var utils = require("./utils.jsx.js"); + var FilterDocs = React.createClass({ statics: { xhr: false, @@ -148,7 +153,7 @@ var FilterInput = React.createClass({ }); var MainMenu = React.createClass({ - mixins: [Navigation, State], + mixins: [utils.Navigation, utils.State], statics: { title: "Start", route: "flows" @@ -205,7 +210,7 @@ var ViewMenu = React.createClass({ title: "View", route: "flows" }, - mixins: [Navigation, State], + mixins: [utils.Navigation, utils.State], toggleEventLog: function () { var d = {}; @@ -334,7 +339,7 @@ var header_entries = [MainMenu, ViewMenu /*, ReportsMenu */]; var Header = React.createClass({ - mixins: [Navigation], + mixins: [utils.Navigation], getInitialState: function () { return { active: header_entries[0] @@ -377,3 +382,8 @@ var Header = React.createClass({ ); } }); + + +module.exports = { + Header: Header +}
\ No newline at end of file |