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');
|
2015-02-05 13:39:00 +01:00
|
|
|
var UserStore = require('./stores/UserStore');
|
2015-03-17 20:29:03 +01:00
|
|
|
var ErrorMessages = require('./components/ErrorMessages');
|
2014-12-17 21:56:27 +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-12-17 21:56:27 +01:00
|
|
|
var ArchiveFeatureComponent = React.createFactory(require('./components/feature/ArchiveFeatureComponent'));
|
2014-11-13 15:14:41 +01:00
|
|
|
|
2015-02-05 13:39:00 +01:00
|
|
|
UserStore.init();
|
|
|
|
|
2014-11-01 14:52:37 +01:00
|
|
|
var tabPanes = [
|
|
|
|
{
|
2015-01-26 12:47:26 +01:00
|
|
|
name: 'Feature Toggles',
|
|
|
|
slug: 'feature-toggles',
|
2014-11-03 14:00:45 +01:00
|
|
|
content: new FeatureTogglesComponent({pollInterval: 5000})
|
2014-11-01 14:52:37 +01:00
|
|
|
},
|
|
|
|
{
|
2015-01-26 12:47:26 +01:00
|
|
|
name: 'Strategies',
|
|
|
|
slug: 'strategies',
|
2014-11-03 14:00:45 +01:00
|
|
|
content: new StrategiesComponent({})
|
2014-11-13 15:14:41 +01:00
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "Log",
|
2015-01-26 12:47:26 +01:00
|
|
|
slug: 'log',
|
2014-11-14 07:29:55 +01:00
|
|
|
content: new LogEntriesComponent({})
|
2014-12-17 21:56:27 +01:00
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "Archive",
|
2015-01-26 12:47:26 +01:00
|
|
|
slug: 'archive',
|
2014-12-17 21:56:27 +01:00
|
|
|
content: new ArchiveFeatureComponent({})
|
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">
|
2015-03-17 20:29:03 +01:00
|
|
|
<ErrorMessages />
|
2014-11-01 14:52:37 +01:00
|
|
|
<TabView tabPanes={tabPanes} />
|
|
|
|
</div>
|
|
|
|
</div>
|
2015-03-17 20:29:03 +01:00
|
|
|
</div>,
|
2014-10-30 18:25:38 +01:00
|
|
|
document.getElementById('content')
|
2015-02-05 13:39:00 +01:00
|
|
|
);
|