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-13 15:14:41 +01:00
|
|
|
var EventsComponent = React.createFactory(require('./components/event/EventsComponent'));
|
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-01 14:52:37 +01:00
|
|
|
|
2014-11-13 15:14:41 +01:00
|
|
|
|
2014-11-01 14:52:37 +01:00
|
|
|
var tabPanes = [
|
|
|
|
{
|
|
|
|
name: "Feature Toggles",
|
2014-11-03 14:00:45 +01:00
|
|
|
content: new FeatureTogglesComponent({pollInterval: 5000})
|
2014-11-01 14:52:37 +01:00
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "Strategies",
|
2014-11-03 14:00:45 +01:00
|
|
|
content: new StrategiesComponent({})
|
2014-11-13 15:14:41 +01:00
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "Log",
|
|
|
|
content: new EventsComponent({})
|
2014-11-01 14:52:37 +01:00
|
|
|
}
|
|
|
|
];
|
2014-10-30 18:25:38 +01:00
|
|
|
|
|
|
|
React.render(
|
2014-11-01 14:52:37 +01:00
|
|
|
<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')
|
|
|
|
);
|