From 6a161be6b4c526fcc5f6581c7faff00a2c976f37 Mon Sep 17 00:00:00 2001 From: Maximilian Hils Date: Thu, 18 Sep 2014 00:01:45 +0200 Subject: .jsx -> .jsx.js Rename jsx files to be compatible with Chrome Dev Tools and Workspace Mapping. --- web/src/js/components/proxyapp.jsx.js | 46 +++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 web/src/js/components/proxyapp.jsx.js (limited to 'web/src/js/components/proxyapp.jsx.js') diff --git a/web/src/js/components/proxyapp.jsx.js b/web/src/js/components/proxyapp.jsx.js new file mode 100644 index 00000000..63998ffe --- /dev/null +++ b/web/src/js/components/proxyapp.jsx.js @@ -0,0 +1,46 @@ +/** @jsx React.DOM */ + +//TODO: Move out of here, just a stub. +var Reports = React.createClass({ + render: function () { + return
ReportEditor
; + } +}); + + +var ProxyAppMain = React.createClass({ + getInitialState: function () { + return { settings: SettingsStore.getAll() }; + }, + componentDidMount: function () { + SettingsStore.addListener("change", this.onSettingsChange); + }, + componentWillUnmount: function () { + SettingsStore.removeListener("change", this.onSettingsChange); + }, + onSettingsChange: function () { + console.log("onSettingsChange"); + this.setState({settings: SettingsStore.getAll()}); + }, + render: function () { + return ( +
+
+
+ {this.state.settings.showEventLog ? : null} +
+
+ ); + } +}); + + +var ProxyApp = ( + + + + + + + + ); -- cgit v1.2.3