1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-01 00:08:27 +01:00
unleash.unleash/public/js/app.jsx
2014-12-17 21:57:38 +01:00

39 lines
1.2 KiB
JavaScript

var React = require('react');
var TabView = require('./components/TabView');
var Menu = require('./components/Menu');
var LogEntriesComponent = React.createFactory(require('./components/log/LogEntriesComponent'));
var FeatureTogglesComponent = React.createFactory(require('./components/feature/FeatureTogglesComponent'));
var StrategiesComponent = React.createFactory(require('./components/strategy/StrategiesComponent'));
var ArchiveFeatureComponent = React.createFactory(require('./components/feature/ArchiveFeatureComponent'));
var tabPanes = [
{
name: "Feature Toggles",
content: new FeatureTogglesComponent({pollInterval: 5000})
},
{
name: "Strategies",
content: new StrategiesComponent({})
},
{
name: "Log",
content: new LogEntriesComponent({})
},
{
name: "Archive",
content: new ArchiveFeatureComponent({})
}
];
React.render(
<div>
<Menu />
<div className="container">
<div className="page">
<TabView tabPanes={tabPanes} />
</div>
</div>
</div>
,
document.getElementById('content')
);