1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-12-22 19:07:54 +01:00
unleash.unleash/public/js/app.jsx

47 lines
1.4 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');
var UserStore = require('./stores/UserStore');
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
UserStore.init();
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})
},
{
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-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')
);