1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-12-28 00:06:53 +01:00
unleash.unleash/public/js/app.jsx

35 lines
1.0 KiB
React
Raw Normal View History

2014-11-03 14:00:45 +01:00
var React = require('react');
2014-11-10 14:54:42 +01:00
var TabView = require('./components/TabView');
var Menu = require('./components/Menu');
2014-11-14 07:29:55 +01:00
var LogEntriesComponent = React.createFactory(require('./components/log/LogEntriesComponent'));
2014-11-03 14:00:45 +01:00
var FeatureTogglesComponent = React.createFactory(require('./components/feature/FeatureTogglesComponent'));
var StrategiesComponent = React.createFactory(require('./components/strategy/StrategiesComponent'));
2014-11-13 15:14:41 +01:00
var tabPanes = [
{
name: "Feature Toggles",
2014-11-03 14:00:45 +01:00
content: new FeatureTogglesComponent({pollInterval: 5000})
},
{
name: "Strategies",
2014-11-03 14:00:45 +01:00
content: new StrategiesComponent({})
2014-11-13 15:14:41 +01:00
},
{
name: "Log",
2014-11-14 07:29:55 +01:00
content: new LogEntriesComponent({})
}
];
2014-10-30 18:25:38 +01:00
React.render(
<div>
<Menu />
<div className="container">
<div className="page">
<TabView tabPanes={tabPanes} />
</div>
</div>
</div>
,
2014-10-30 18:25:38 +01:00
document.getElementById('content')
);