1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-25 00:07:47 +01:00

Make component disk layout/naming more consistent.

This commit is contained in:
Jari Bakken 2014-11-03 13:19:32 +01:00
parent fee7838d20
commit 8d0dce0930
5 changed files with 20 additions and 20 deletions

View File

@ -1,17 +1,17 @@
var React = require('react');
var TabView = React.createFactory(require('./components/TabView'));
var Menu = React.createFactory(require('./components/Menu'));
var Unleash = React.createFactory(require('./components/Unleash'));
var Strategy = React.createFactory(require('./components/strategy/StrategyComponent'));
var React = require('react');
var TabView = React.createFactory(require('./components/TabView'));
var Menu = React.createFactory(require('./components/Menu'));
var FeatureToggleComponent = React.createFactory(require('./components/feature/FeatureToggleComponent'));
var StrategyComponent = React.createFactory(require('./components/strategy/StrategyComponent'));
var tabPanes = [
{
name: "Feature Toggles",
content: new Unleash({pollInterval: 5000})
content: new FeatureToggleComponent({pollInterval: 5000})
},
{
name: "Strategies",
content: new Strategy({})
content: new StrategyComponent({})
}
];

View File

@ -1,10 +1,10 @@
var React = require('react');
var Timer = require('../utils/Timer');
var ErrorMessages = require('./ErrorMessages');
var Timer = require('../../utils/Timer');
var ErrorMessages = require('../ErrorMessages');
var FeatureList = require('./FeatureList');
var FeatureStore = require('../stores/FeatureStore');
var FeatureStore = require('../../stores/FeatureStore');
var Unleash = React.createClass({
var FeatureToggleComponent = React.createClass({
getInitialState: function() {
return {
savedFeatures: [],
@ -116,18 +116,18 @@ var Unleash = React.createClass({
return (
<div>
<ErrorMessages
errors={this.state.errors}
onClearErrors={this.clearErrors} />
errors={this.state.errors}
onClearErrors={this.clearErrors} />
<FeatureList
unsavedFeatures={this.state.unsavedFeatures}
savedFeatures={this.state.savedFeatures}
onFeatureChanged={this.updateFeature}
onFeatureSubmit={this.createFeature}
onFeatureCancel={this.cancelNewFeature}
onNewFeature={this.newFeature} />
unsavedFeatures={this.state.unsavedFeatures}
savedFeatures={this.state.savedFeatures}
onFeatureChanged={this.updateFeature}
onFeatureSubmit={this.createFeature}
onFeatureCancel={this.cancelNewFeature}
onNewFeature={this.newFeature} />
</div>
);
}
});
module.exports = Unleash;
module.exports = FeatureToggleComponent;