mirror of
https://github.com/Unleash/unleash.git
synced 2025-07-26 13:48:33 +02:00
Merge branch 'master' into add_sdk_version
This commit is contained in:
commit
73a0ffccee
@ -67,13 +67,13 @@
|
|||||||
"babel-preset-stage-0": "^6.5.0",
|
"babel-preset-stage-0": "^6.5.0",
|
||||||
"babel-preset-stage-2": "^6.13.0",
|
"babel-preset-stage-2": "^6.13.0",
|
||||||
"css-loader": "^0.25.0",
|
"css-loader": "^0.25.0",
|
||||||
"eslint": "^3.4.0",
|
"eslint": "^4.1.1",
|
||||||
"eslint-config-finn": "1.0.0-alpha.11",
|
"eslint-config-finn": "^2.0.0",
|
||||||
"eslint-config-finn-react": "^1.0.0-alpha.2",
|
"eslint-config-finn-react": "^2.0.0",
|
||||||
"eslint-plugin-react": "^6.2.0",
|
"eslint-plugin-react": "^7.1.0",
|
||||||
"extract-text-webpack-plugin": "^1.0.1",
|
"extract-text-webpack-plugin": "^1.0.1",
|
||||||
"identity-obj-proxy": "^3.0.0",
|
"identity-obj-proxy": "^3.0.0",
|
||||||
"jest": "^19.0.2",
|
"jest": "^20.0.4",
|
||||||
"node-sass": "~3.12.1",
|
"node-sass": "~3.12.1",
|
||||||
"postcss-loader": "^0.13.0",
|
"postcss-loader": "^0.13.0",
|
||||||
"react-test-renderer": "^15.4.2",
|
"react-test-renderer": "^15.4.2",
|
||||||
|
@ -3,7 +3,6 @@ import { ProgressBar, Card } from 'react-mdl';
|
|||||||
import { AppsLinkList, styles as commonStyles } from '../common';
|
import { AppsLinkList, styles as commonStyles } from '../common';
|
||||||
|
|
||||||
class ClientStrategies extends Component {
|
class ClientStrategies extends Component {
|
||||||
|
|
||||||
componentDidMount () {
|
componentDidMount () {
|
||||||
this.props.fetchAll();
|
this.props.fetchAll();
|
||||||
}
|
}
|
||||||
|
@ -13,7 +13,6 @@ const trim = (value) => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
class AddFeatureToggleComponent extends Component {
|
class AddFeatureToggleComponent extends Component {
|
||||||
|
|
||||||
componentWillMount () {
|
componentWillMount () {
|
||||||
// TODO unwind this stuff
|
// TODO unwind this stuff
|
||||||
if (this.props.initCallRequired === true) {
|
if (this.props.initCallRequired === true) {
|
||||||
@ -92,7 +91,6 @@ class AddFeatureToggleComponent extends Component {
|
|||||||
</form>
|
</form>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
AddFeatureToggleComponent.propTypes = {
|
AddFeatureToggleComponent.propTypes = {
|
||||||
|
@ -2,7 +2,6 @@ import React, { PropTypes } from 'react';
|
|||||||
import { Menu, MenuItem, IconButton } from 'react-mdl';
|
import { Menu, MenuItem, IconButton } from 'react-mdl';
|
||||||
|
|
||||||
class AddStrategy extends React.Component {
|
class AddStrategy extends React.Component {
|
||||||
|
|
||||||
static propTypes () {
|
static propTypes () {
|
||||||
return {
|
return {
|
||||||
strategies: PropTypes.array.isRequired,
|
strategies: PropTypes.array.isRequired,
|
||||||
|
@ -5,7 +5,6 @@ import HTML5Backend from 'react-dnd-html5-backend';
|
|||||||
|
|
||||||
@DragDropContext(HTML5Backend) // eslint-disable-line new-cap
|
@DragDropContext(HTML5Backend) // eslint-disable-line new-cap
|
||||||
class StrategiesList extends React.Component {
|
class StrategiesList extends React.Component {
|
||||||
|
|
||||||
static propTypes () {
|
static propTypes () {
|
||||||
return {
|
return {
|
||||||
strategies: PropTypes.array.isRequired,
|
strategies: PropTypes.array.isRequired,
|
||||||
|
@ -5,7 +5,6 @@ import AddStrategy from './strategies-add';
|
|||||||
import { HeaderTitle } from '../../common';
|
import { HeaderTitle } from '../../common';
|
||||||
|
|
||||||
class StrategiesSection extends React.Component {
|
class StrategiesSection extends React.Component {
|
||||||
|
|
||||||
static propTypes () {
|
static propTypes () {
|
||||||
return {
|
return {
|
||||||
strategies: PropTypes.array.isRequired,
|
strategies: PropTypes.array.isRequired,
|
||||||
|
@ -45,7 +45,6 @@ const dragTarget = {
|
|||||||
isDragging: monitor.isDragging(),
|
isDragging: monitor.isDragging(),
|
||||||
}))
|
}))
|
||||||
class StrategyConfigure extends React.Component {
|
class StrategyConfigure extends React.Component {
|
||||||
|
|
||||||
static propTypes () {
|
static propTypes () {
|
||||||
return {
|
return {
|
||||||
strategy: PropTypes.object.isRequired,
|
strategy: PropTypes.object.isRequired,
|
||||||
|
@ -6,7 +6,6 @@ import {
|
|||||||
} from 'react-mdl';
|
} from 'react-mdl';
|
||||||
|
|
||||||
export default class InputList extends Component {
|
export default class InputList extends Component {
|
||||||
|
|
||||||
static propTypes = {
|
static propTypes = {
|
||||||
name: PropTypes.string.isRequired,
|
name: PropTypes.string.isRequired,
|
||||||
list: PropTypes.array.isRequired,
|
list: PropTypes.array.isRequired,
|
||||||
|
@ -7,7 +7,6 @@ import { MenuItemWithIcon, DropdownButton, styles as commonStyles } from '../com
|
|||||||
import styles from './feature.scss';
|
import styles from './feature.scss';
|
||||||
|
|
||||||
export default class FeatureListComponent extends React.PureComponent {
|
export default class FeatureListComponent extends React.PureComponent {
|
||||||
|
|
||||||
static propTypes () {
|
static propTypes () {
|
||||||
return {
|
return {
|
||||||
toggleFeature: PropTypes.func.isRequired,
|
toggleFeature: PropTypes.func.isRequired,
|
||||||
@ -89,12 +88,12 @@ export default class FeatureListComponent extends React.PureComponent {
|
|||||||
<hr/>
|
<hr/>
|
||||||
<List>
|
<List>
|
||||||
{features.map((feature, i) =>
|
{features.map((feature, i) =>
|
||||||
<Feature key={i}
|
(<Feature key={i}
|
||||||
settings={settings}
|
settings={settings}
|
||||||
metricsLastHour={featureMetrics.lastHour[feature.name]}
|
metricsLastHour={featureMetrics.lastHour[feature.name]}
|
||||||
metricsLastMinute={featureMetrics.lastMinute[feature.name]}
|
metricsLastMinute={featureMetrics.lastMinute[feature.name]}
|
||||||
feature={feature}
|
feature={feature}
|
||||||
toggleFeature={toggleFeature}/>
|
toggleFeature={toggleFeature}/>)
|
||||||
)}
|
)}
|
||||||
</List>
|
</List>
|
||||||
</Card>
|
</Card>
|
||||||
|
@ -58,7 +58,7 @@ class Progress extends Component {
|
|||||||
|
|
||||||
const current = this.state.percentageText;
|
const current = this.state.percentageText;
|
||||||
|
|
||||||
targetState.cyclesCounter --;
|
targetState.cyclesCounter--;
|
||||||
if (targetState.cyclesCounter <= 0) {
|
if (targetState.cyclesCounter <= 0) {
|
||||||
this.setState({ percentageText: targetState.target });
|
this.setState({ percentageText: targetState.target });
|
||||||
return;
|
return;
|
||||||
|
@ -14,7 +14,6 @@ const TABS = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
export default class ViewFeatureToggleComponent extends React.Component {
|
export default class ViewFeatureToggleComponent extends React.Component {
|
||||||
|
|
||||||
constructor (props) {
|
constructor (props) {
|
||||||
super(props);
|
super(props);
|
||||||
}
|
}
|
||||||
|
@ -4,7 +4,6 @@ import HistoryList from './history-list-container';
|
|||||||
import { styles as commonStyles } from '../common';
|
import { styles as commonStyles } from '../common';
|
||||||
|
|
||||||
class History extends PureComponent {
|
class History extends PureComponent {
|
||||||
|
|
||||||
componentDidMount () {
|
componentDidMount () {
|
||||||
this.props.fetchHistory();
|
this.props.fetchHistory();
|
||||||
}
|
}
|
||||||
|
@ -59,7 +59,6 @@ function buildDiff (diff, idx) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
class HistoryItem extends PureComponent {
|
class HistoryItem extends PureComponent {
|
||||||
|
|
||||||
static propTypes () {
|
static propTypes () {
|
||||||
return {
|
return {
|
||||||
entry: PropTypes.object,
|
entry: PropTypes.object,
|
||||||
|
@ -3,7 +3,6 @@ import React, { PropTypes, PureComponent } from 'react';
|
|||||||
import style from './history.scss';
|
import style from './history.scss';
|
||||||
|
|
||||||
class HistoryItem extends PureComponent {
|
class HistoryItem extends PureComponent {
|
||||||
|
|
||||||
static propTypes () {
|
static propTypes () {
|
||||||
return {
|
return {
|
||||||
entry: PropTypes.object,
|
entry: PropTypes.object,
|
||||||
|
@ -8,7 +8,6 @@ import { formatFullDateTime } from '../common/util';
|
|||||||
import styles from './history.scss';
|
import styles from './history.scss';
|
||||||
|
|
||||||
class HistoryList extends Component {
|
class HistoryList extends Component {
|
||||||
|
|
||||||
toggleShowDiff () {
|
toggleShowDiff () {
|
||||||
this.props.updateSetting('showData', !this.props.settings.showData);
|
this.props.updateSetting('showData', !this.props.settings.showData);
|
||||||
}
|
}
|
||||||
|
@ -2,7 +2,6 @@ import React, { Component, PropTypes } from 'react';
|
|||||||
import HistoryList from './history-list-container';
|
import HistoryList from './history-list-container';
|
||||||
|
|
||||||
class HistoryListToggle extends Component {
|
class HistoryListToggle extends Component {
|
||||||
|
|
||||||
static propTypes () {
|
static propTypes () {
|
||||||
return {
|
return {
|
||||||
toggleName: PropTypes.string.isRequired,
|
toggleName: PropTypes.string.isRequired,
|
||||||
|
@ -80,18 +80,17 @@ const CreateHeader = () => (
|
|||||||
|
|
||||||
|
|
||||||
const Parameters = ({ input = [], count = 0, updateInList }) => (
|
const Parameters = ({ input = [], count = 0, updateInList }) => (
|
||||||
<div>{
|
<div>{
|
||||||
gerArrayWithEntries(count)
|
gerArrayWithEntries(count)
|
||||||
.map((v, i) => <Parameter
|
.map((v, i) => (<Parameter
|
||||||
key={i}
|
key={i}
|
||||||
set={(v) => updateInList('parameters', i, v, true)}
|
set={(v) => updateInList('parameters', i, v, true)}
|
||||||
index={i}
|
index={i}
|
||||||
input={input[i]}
|
input={input[i]}
|
||||||
/>)
|
/>))
|
||||||
}</div>);
|
}</div>);
|
||||||
|
|
||||||
class AddStrategy extends Component {
|
class AddStrategy extends Component {
|
||||||
|
|
||||||
static propTypes () {
|
static propTypes () {
|
||||||
return {
|
return {
|
||||||
input: PropTypes.object,
|
input: PropTypes.object,
|
||||||
|
@ -5,7 +5,6 @@ import { List, ListItem, ListItemContent, IconButton, Grid, Cell } from 'react-m
|
|||||||
import { HeaderTitle } from '../common';
|
import { HeaderTitle } from '../common';
|
||||||
|
|
||||||
class StrategiesListComponent extends Component {
|
class StrategiesListComponent extends Component {
|
||||||
|
|
||||||
static contextTypes = {
|
static contextTypes = {
|
||||||
router: React.PropTypes.object,
|
router: React.PropTypes.object,
|
||||||
}
|
}
|
||||||
@ -34,7 +33,11 @@ class StrategiesListComponent extends Component {
|
|||||||
<strong>{strategy.name}</strong>
|
<strong>{strategy.name}</strong>
|
||||||
</Link>
|
</Link>
|
||||||
</ListItemContent>
|
</ListItemContent>
|
||||||
|
{
|
||||||
|
strategy.editable === false ?
|
||||||
|
'' :
|
||||||
<IconButton name="delete" onClick={() => removeStrategy(strategy)} />
|
<IconButton name="delete" onClick={() => removeStrategy(strategy)} />
|
||||||
|
}
|
||||||
</ListItem>
|
</ListItem>
|
||||||
)) : <ListItem>No entries</ListItem>}
|
)) : <ListItem>No entries</ListItem>}
|
||||||
</List>
|
</List>
|
||||||
|
@ -60,21 +60,24 @@ export default class StrategyDetails extends Component {
|
|||||||
|
|
||||||
const tabContent = this.getTabContent(activeTabId);
|
const tabContent = this.getTabContent(activeTabId);
|
||||||
|
|
||||||
return (
|
return (<Grid className="mdl-color--white">
|
||||||
<Grid className="mdl-color--white">
|
|
||||||
<Cell col={12}>
|
<Cell col={12}>
|
||||||
<HeaderTitle title={strategy.name} subtitle={strategy.description} />
|
<HeaderTitle title={strategy.name} subtitle={strategy.description} />
|
||||||
<Tabs activeTab={activeTabId} ripple>
|
{strategy.editable === false ? '' : <Tabs activeTab={activeTabId} ripple>
|
||||||
<Tab onClick={() => this.goToTab('view')}>Details</Tab>
|
<Tab onClick={() => this.goToTab('view')}>
|
||||||
<Tab onClick={() => this.goToTab('edit')}>Edit</Tab>
|
Details
|
||||||
</Tabs>
|
</Tab>
|
||||||
|
<Tab onClick={() => this.goToTab('edit')}>
|
||||||
|
Edit
|
||||||
|
</Tab>
|
||||||
|
</Tabs>}
|
||||||
|
|
||||||
<section>
|
<section>
|
||||||
<div className="content">
|
<div className="content">
|
||||||
{tabContent}
|
{tabContent}
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
</Cell>
|
</Cell>
|
||||||
</Grid>
|
</Grid>);
|
||||||
);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
2776
frontend/yarn.lock
2776
frontend/yarn.lock
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user