Skip to content
This repository was archived by the owner on Jun 10, 2021. It is now read-only.

Commit 2103448

Browse files
committed
Run lint with reformatting to remove incorrect spacing
1 parent ac9318e commit 2103448

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

61 files changed

+2794
-2029
lines changed

common/constants.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,8 +161,7 @@ const Constants = {
161161
'.NET': require('./code-help/install/install-dotnet')(keywords),
162162
},
163163
},
164-
simulate: {
165-
},
164+
simulate: {},
166165
};
167166

168167
module.exports = Constants;

common/project.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
module.exports = global.Project = {
22
debug: false,
33
env: 'dev',
4-
bulletTrain:'8KzETdDeMY7xkqkSkY3Gsg',
5-
api:'https://bullet-train-api-dev.dokku1.solidstategroup.com/api/v1/',
4+
bulletTrain: '8KzETdDeMY7xkqkSkY3Gsg',
5+
api: 'https://bullet-train-api-dev.dokku1.solidstategroup.com/api/v1/',
66
ga: 'UA-120237963-3',
77
demoAccount: {
8-
email:"kyle+bullet-train@solidstategroup.com",
9-
password:"demo_account"
8+
email: 'kyle+bullet-train@solidstategroup.com',
9+
password: 'demo_account',
1010
},
1111
chargebee: {
12-
site: 'bullettrain-test'
12+
site: 'bullettrain-test',
1313
},
1414
mixpanel: '6143f9ceefb1c67640a0771345e8c095',
15-
youtubeApi: 'AIzaSyCAjMzgz8vbxqReBxkQGcwsda6zAO0L2JE'
15+
youtubeApi: 'AIzaSyCAjMzgz8vbxqReBxkQGcwsda6zAO0L2JE',
1616
};

common/providers/AccountProvider.js

Lines changed: 96 additions & 96 deletions
Original file line numberDiff line numberDiff line change
@@ -2,112 +2,112 @@ import React, { Component, PropTypes } from 'react';
22
import AccountStore from '../stores/account-store';
33

44
const AccountProvider = class extends Component {
5-
static displayName = 'AccountProvider'
5+
static displayName = 'AccountProvider'
66

7-
constructor(props, context) {
8-
super(props, context);
9-
this.state = {
10-
isLoading: AccountStore.isLoading,
11-
organisation: AccountStore.getOrganisation(),
12-
organisations: AccountStore.getOrganisations(),
13-
user: AccountStore.getUser(),
14-
};
15-
}
7+
constructor(props, context) {
8+
super(props, context);
9+
this.state = {
10+
isLoading: AccountStore.isLoading,
11+
organisation: AccountStore.getOrganisation(),
12+
organisations: AccountStore.getOrganisations(),
13+
user: AccountStore.getUser(),
14+
};
15+
}
1616

17-
componentDidMount() {
18-
ES6Component(this);
19-
this.listenTo(AccountStore, 'change', () => {
20-
this.setState({
21-
isLoading: AccountStore.isLoading,
22-
isSaving: AccountStore.isSaving,
23-
organisation: AccountStore.getOrganisation(),
24-
organisations: AccountStore.getOrganisations(),
25-
user: AccountStore.getUser(),
26-
error: AccountStore.error,
27-
});
28-
});
17+
componentDidMount() {
18+
ES6Component(this);
19+
this.listenTo(AccountStore, 'change', () => {
20+
this.setState({
21+
isLoading: AccountStore.isLoading,
22+
isSaving: AccountStore.isSaving,
23+
organisation: AccountStore.getOrganisation(),
24+
organisations: AccountStore.getOrganisations(),
25+
user: AccountStore.getUser(),
26+
error: AccountStore.error,
27+
});
28+
});
2929

30-
this.listenTo(AccountStore, 'loaded', () => {
31-
this.props.onLogin && this.props.onLogin();
32-
});
30+
this.listenTo(AccountStore, 'loaded', () => {
31+
this.props.onLogin && this.props.onLogin();
32+
});
3333

34-
this.listenTo(AccountStore, 'saved', () => {
35-
this.props.onSave && this.props.onSave(AccountStore.savedId);
36-
});
34+
this.listenTo(AccountStore, 'saved', () => {
35+
this.props.onSave && this.props.onSave(AccountStore.savedId);
36+
});
3737

38-
this.listenTo(AccountStore, 'logout', () => {
39-
this.setState({
40-
isLoading: false,
41-
isSaving: false,
42-
organisation: AccountStore.getOrganisation(),
43-
user: AccountStore.getUser(),
44-
});
45-
this.props.onLogout && this.props.onLogout();
46-
});
47-
this.listenTo(AccountStore, 'no-user', () => {
48-
this.setState({
49-
isSaving: false,
50-
isLoading: false,
51-
organisation: AccountStore.getOrganisation(),
52-
user: AccountStore.getUser(),
53-
});
54-
this.props.onNoUser && this.props.onNoUser();
55-
});
56-
this.listenTo(AccountStore, 'problem', () => {
57-
this.setState({
58-
isLoading: AccountStore.isLoading,
59-
isSaving: AccountStore.isSaving,
60-
error: AccountStore.error,
61-
});
62-
});
63-
this.listenTo(AccountStore, 'removed', () => {
64-
this.props.onRemove && this.props.onRemove();
65-
if (this.props.onLogin) {
66-
this.setState({
67-
isLoading: false,
68-
isSaving: false,
69-
organisation: AccountStore.getOrganisation(),
70-
user: AccountStore.getUser(),
71-
});
72-
}
73-
});
74-
}
38+
this.listenTo(AccountStore, 'logout', () => {
39+
this.setState({
40+
isLoading: false,
41+
isSaving: false,
42+
organisation: AccountStore.getOrganisation(),
43+
user: AccountStore.getUser(),
44+
});
45+
this.props.onLogout && this.props.onLogout();
46+
});
47+
this.listenTo(AccountStore, 'no-user', () => {
48+
this.setState({
49+
isSaving: false,
50+
isLoading: false,
51+
organisation: AccountStore.getOrganisation(),
52+
user: AccountStore.getUser(),
53+
});
54+
this.props.onNoUser && this.props.onNoUser();
55+
});
56+
this.listenTo(AccountStore, 'problem', () => {
57+
this.setState({
58+
isLoading: AccountStore.isLoading,
59+
isSaving: AccountStore.isSaving,
60+
error: AccountStore.error,
61+
});
62+
});
63+
this.listenTo(AccountStore, 'removed', () => {
64+
this.props.onRemove && this.props.onRemove();
65+
if (this.props.onLogin) {
66+
this.setState({
67+
isLoading: false,
68+
isSaving: false,
69+
organisation: AccountStore.getOrganisation(),
70+
user: AccountStore.getUser(),
71+
});
72+
}
73+
});
74+
}
7575

7676

77-
login = (details) => {
78-
AppActions.login(details);
79-
};
77+
login = (details) => {
78+
AppActions.login(details);
79+
};
8080

81-
loginDemo = () => {
82-
AppActions.login(Project.demoAccount);
83-
};
81+
loginDemo = () => {
82+
AppActions.login(Project.demoAccount);
83+
};
8484

85-
register = (details, isInvite) => {
86-
AppActions.register(details, isInvite);
87-
};
85+
register = (details, isInvite) => {
86+
AppActions.register(details, isInvite);
87+
};
8888

89-
render() {
90-
const { isLoading, isSaving, user, organisation, organisations, error } = this.state;
91-
return (
92-
this.props.children({
93-
isLoading,
94-
isSaving,
95-
user,
96-
organisation,
97-
organisations,
98-
error,
99-
}, {
100-
loginDemo: this.loginDemo,
101-
login: this.login,
102-
register: this.register,
103-
selectOrganisation: AppActions.selectOrganisation,
104-
createOrganisation: AppActions.createOrganisation,
105-
editOrganisation: AppActions.editOrganisation,
106-
acceptInvite: AppActions.acceptInvite,
107-
deleteOrganisation: AppActions.deleteOrganisation,
108-
})
109-
);
110-
}
89+
render() {
90+
const { isLoading, isSaving, user, organisation, organisations, error } = this.state;
91+
return (
92+
this.props.children({
93+
isLoading,
94+
isSaving,
95+
user,
96+
organisation,
97+
organisations,
98+
error,
99+
}, {
100+
loginDemo: this.loginDemo,
101+
login: this.login,
102+
register: this.register,
103+
selectOrganisation: AppActions.selectOrganisation,
104+
createOrganisation: AppActions.createOrganisation,
105+
editOrganisation: AppActions.editOrganisation,
106+
acceptInvite: AppActions.acceptInvite,
107+
deleteOrganisation: AppActions.deleteOrganisation,
108+
})
109+
);
110+
}
111111
};
112112

113113
AccountProvider.propTypes = {};

common/providers/EnvironmentProvider.js

Lines changed: 63 additions & 63 deletions
Original file line numberDiff line numberDiff line change
@@ -3,77 +3,77 @@ import AccountStore from '../stores/account-store';
33
import EnvironmentStore from '../stores/environment-store';
44

55
const EnvironmentProvider = class extends Component {
6-
static displayName = 'EnvironmentProvider'
6+
static displayName = 'EnvironmentProvider'
77

8-
constructor(props, context) {
9-
super(props, context);
10-
this.state = {
11-
isLoading: !EnvironmentStore.model,
12-
env: EnvironmentStore.model,
13-
name: EnvironmentStore.model && EnvironmentStore.model.name,
14-
flags: EnvironmentStore.getFlagsForEditing(),
15-
};
16-
ES6Component(this);
17-
this.listenTo(EnvironmentStore, 'change', () => {
18-
this.setState({
19-
isSaving: EnvironmentStore.isSaving,
20-
isLoading: EnvironmentStore.isLoading,
21-
env: EnvironmentStore.model,
22-
name: this.state.name || EnvironmentStore.model && EnvironmentStore.model.name,
23-
flags: this.state.flags || (EnvironmentStore.getFlagsForEditing()),
24-
});
25-
});
8+
constructor(props, context) {
9+
super(props, context);
10+
this.state = {
11+
isLoading: !EnvironmentStore.model,
12+
env: EnvironmentStore.model,
13+
name: EnvironmentStore.model && EnvironmentStore.model.name,
14+
flags: EnvironmentStore.getFlagsForEditing(),
15+
};
16+
ES6Component(this);
17+
this.listenTo(EnvironmentStore, 'change', () => {
18+
this.setState({
19+
isSaving: EnvironmentStore.isSaving,
20+
isLoading: EnvironmentStore.isLoading,
21+
env: EnvironmentStore.model,
22+
name: this.state.name || EnvironmentStore.model && EnvironmentStore.model.name,
23+
flags: this.state.flags || (EnvironmentStore.getFlagsForEditing()),
24+
});
25+
});
2626

27-
this.listenTo(EnvironmentStore, 'saved', () => {
28-
this.setState({
29-
name: EnvironmentStore.model && EnvironmentStore.model.name,
30-
flags: EnvironmentStore.getFlagsForEditing(),
31-
});
32-
this.props.onSave && this.props.onSave();
33-
});
34-
}
27+
this.listenTo(EnvironmentStore, 'saved', () => {
28+
this.setState({
29+
name: EnvironmentStore.model && EnvironmentStore.model.name,
30+
flags: EnvironmentStore.getFlagsForEditing(),
31+
});
32+
this.props.onSave && this.props.onSave();
33+
});
34+
}
3535

36-
reset = () => {
37-
this.setState({
38-
flags: EnvironmentStore.getFlagsForEditing(),
39-
name: EnvironmentStore.model && EnvironmentStore.model.name,
40-
});
41-
};
36+
reset = () => {
37+
this.setState({
38+
flags: EnvironmentStore.getFlagsForEditing(),
39+
name: EnvironmentStore.model && EnvironmentStore.model.name,
40+
});
41+
};
4242

43-
toggleFlag = (i) => {
44-
const { flags } = this.state;
45-
flags[i].enabled = !flags[i].enabled;
46-
this.setState({ flags });
47-
};
43+
toggleFlag = (i) => {
44+
const { flags } = this.state;
45+
flags[i].enabled = !flags[i].enabled;
46+
this.setState({ flags });
47+
};
4848

4949

50-
remove = () => {
51-
AppActions.removeEnvironment(Object.assign({}, EnvironmentStore.model, {
52-
featurestates: this.state.flags,
53-
name: this.state.name,
54-
}));
55-
};
50+
remove = () => {
51+
AppActions.removeEnvironment(Object.assign({}, EnvironmentStore.model, {
52+
featurestates: this.state.flags,
53+
name: this.state.name,
54+
}));
55+
};
5656

57-
save = () => {
58-
AppActions.saveEnvironment(Object.assign({}, EnvironmentStore.model, {
59-
featurestates: this.state.flags,
60-
name: this.state.name,
61-
}));
62-
};
57+
save = () => {
58+
AppActions.saveEnvironment(Object.assign({}, EnvironmentStore.model, {
59+
featurestates: this.state.flags,
60+
name: this.state.name,
61+
}));
62+
};
6363

64-
render() {
65-
return (
66-
this.props.children(
67-
{
68-
...this.state,
69-
toggleFlag: this.toggleFlag,
70-
setName: this.setName,
71-
saveEnv: this.save,
72-
reset: this.reset,
73-
},
74-
)
75-
);
76-
}
64+
render() {
65+
return (
66+
this.props.children(
67+
{
68+
...this.state,
69+
toggleFlag: this.toggleFlag,
70+
setName: this.setName,
71+
saveEnv: this.save,
72+
reset: this.reset,
73+
},
74+
)
75+
);
76+
}
7777
};
7878

7979
EnvironmentProvider.propTypes = {};

0 commit comments

Comments
 (0)