From bc8687deb5f0f9273fc771e79b070f3b49e39fed Mon Sep 17 00:00:00 2001 From: Aldo Cortesi Date: Tue, 30 Dec 2014 21:51:07 +1300 Subject: Basic conversion: browserified web app now works. --- web/src/js/components/header.jsx.js | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) (limited to 'web/src/js/components/header.jsx.js') 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 -- cgit v1.2.3