Skip to content

Commit d944e50

Browse files
committed
prettier: Fix issues
1 parent 6ff1e3d commit d944e50

File tree

84 files changed

+330
-334
lines changed

Some content is hidden

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

84 files changed

+330
-334
lines changed

app/adapters/application.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export default RESTAdapter.extend({
77

88
namespace: 'api/v1',
99

10-
headers: computed('fastboot.{isFastBoot,request.headers}', function() {
10+
headers: computed('fastboot.{isFastBoot,request.headers}', function () {
1111
if (this.fastboot.isFastBoot) {
1212
return { 'User-Agent': this.fastboot.request.headers.get('User-Agent') };
1313
}

app/components/badge-appveyor.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export default Component.extend({
77
id: alias('badge.attributes.id'),
88
repository: alias('badge.attributes.repository'),
99

10-
imageUrl: computed('badge.attributes.id', function() {
10+
imageUrl: computed('badge.attributes.id', function () {
1111
let id = this.get('badge.attributes.id');
1212
let branch = this.branch;
1313
if (id !== undefined && id !== null) {
@@ -20,19 +20,19 @@ export default Component.extend({
2020
}
2121
}),
2222

23-
branch: computed('badge.attributes.branch', function() {
23+
branch: computed('badge.attributes.branch', function () {
2424
return this.get('badge.attributes.branch') || 'master';
2525
}),
2626

27-
projectName: computed('badge.attributes.project_name', function() {
27+
projectName: computed('badge.attributes.project_name', function () {
2828
return this.get('badge.attributes.project_name') || this.get('badge.attributes.repository').replace(/[_.]/g, '-');
2929
}),
3030

31-
service: computed('badge.attributes.service', function() {
31+
service: computed('badge.attributes.service', function () {
3232
return this.get('badge.attributes.service') || 'github';
3333
}),
3434

35-
text: computed('badge', function() {
35+
text: computed('badge', function () {
3636
return `Appveyor build status for the ${this.branch} branch`;
3737
}),
3838
});

app/components/badge-azure-devops.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ export default Component.extend({
77
project: alias('badge.attributes.project'),
88
pipeline: alias('badge.attributes.pipeline'),
99

10-
build: computed('badge.attributes.build', function() {
10+
build: computed('badge.attributes.build', function () {
1111
return this.get('badge.attributes.build') || '1';
1212
}),
1313

14-
text: computed('pipeline', function() {
14+
text: computed('pipeline', function () {
1515
return `Azure Devops build status for the ${this.pipeline} pipeline`;
1616
}),
1717
});

app/components/badge-bitbucket-pipelines.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ export default Component.extend({
66
tagName: '',
77
repository: alias('badge.attributes.repository'),
88

9-
branch: computed('badge.attributes.branch', function() {
9+
branch: computed('badge.attributes.branch', function () {
1010
return encodeURIComponent(this.get('badge.attributes.branch'));
1111
}),
1212

13-
text: computed('badge.attributes.branch', function() {
13+
text: computed('badge.attributes.branch', function () {
1414
const branch = this.get('badge.attributes.branch');
1515
return `Bitbucket Pipelines build status for the ${branch} branch`;
1616
}),

app/components/badge-circle-ci.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ export default Component.extend({
66
tagName: '',
77
repository: alias('badge.attributes.repository'),
88

9-
branch: computed('badge.attributes.branch', function() {
9+
branch: computed('badge.attributes.branch', function () {
1010
return encodeURIComponent(this.get('badge.attributes.branch') || 'master');
1111
}),
1212

13-
text: computed('branch', function() {
13+
text: computed('branch', function () {
1414
return `Circle CI build status for the ${this.branch} branch`;
1515
}),
1616
});

app/components/badge-cirrus-ci.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ export default Component.extend({
66
tagName: '',
77
repository: alias('badge.attributes.repository'),
88

9-
branch: computed('badge.attributes.branch', function() {
9+
branch: computed('badge.attributes.branch', function () {
1010
return encodeURIComponent(this.get('badge.attributes.branch') || 'master');
1111
}),
1212

13-
text: computed('branch', function() {
13+
text: computed('branch', function () {
1414
return `Cirrus CI build status for the ${this.branch} branch`;
1515
}),
1616
});

app/components/badge-codecov.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@ export default Component.extend({
66
tagName: '',
77
repository: alias('badge.attributes.repository'),
88

9-
branch: computed('badge.attributes.branch', function() {
9+
branch: computed('badge.attributes.branch', function () {
1010
return this.get('badge.attributes.branch') || 'master';
1111
}),
1212

13-
service: computed('badge.attributes.service', function() {
13+
service: computed('badge.attributes.service', function () {
1414
return this.get('badge.attributes.service') || 'github';
1515
}),
1616

17-
text: computed('branch', function() {
17+
text: computed('branch', function () {
1818
return `CodeCov coverage status for the ${this.branch} branch`;
1919
}),
2020
});

app/components/badge-coveralls.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@ export default Component.extend({
66
tagName: '',
77
repository: alias('badge.attributes.repository'),
88

9-
branch: computed('badge.attributes.branch', function() {
9+
branch: computed('badge.attributes.branch', function () {
1010
return this.get('badge.attributes.branch') || 'master';
1111
}),
1212

13-
service: computed('badge.attributes.service', function() {
13+
service: computed('badge.attributes.service', function () {
1414
return this.get('badge.attributes.service') || 'github';
1515
}),
1616

17-
text: computed('branch', function() {
17+
text: computed('branch', function () {
1818
return `Coveralls coverage status for the ${this.branch} branch`;
1919
}),
2020
});

app/components/badge-gitlab.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ export default Component.extend({
66
tagName: '',
77
repository: alias('badge.attributes.repository'),
88

9-
branch: computed('badge.attributes.branch', function() {
9+
branch: computed('badge.attributes.branch', function () {
1010
return this.get('badge.attributes.branch') || 'master';
1111
}),
1212

13-
text: computed('badge', function() {
13+
text: computed('badge', function () {
1414
return `GitLab build status for the ${this.branch} branch`;
1515
}),
1616
});

app/components/badge-is-it-maintained-issue-resolution.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export default Component.extend({
66
tagName: '',
77
repository: alias('badge.attributes.repository'),
88

9-
text: computed('badge', function() {
9+
text: computed('badge', function () {
1010
return `Is It Maintained average time to resolve an issue`;
1111
}),
1212
});

app/components/badge-is-it-maintained-open-issues.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export default Component.extend({
66
tagName: '',
77
repository: alias('badge.attributes.repository'),
88

9-
text: computed('badge', function() {
9+
text: computed('badge', function () {
1010
return `Is It Maintained percentage of issues still open`;
1111
}),
1212
});

app/components/badge-maintenance.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,18 @@ import { alias } from '@ember/object/computed';
55
export default Component.extend({
66
tagName: '',
77

8-
escapedStatus: computed('badge', function() {
8+
escapedStatus: computed('badge', function () {
99
return this.get('badge.attributes.status').replace(/-/g, '--');
1010
}),
1111

12-
none: computed('badge', function() {
12+
none: computed('badge', function () {
1313
return this.get('badge.attributes.status') === 'none' || !this.get('badge.attributes.status');
1414
}),
1515

1616
status: alias('badge.attributes.status'),
1717

1818
// eslint-disable-next-line ember/require-return-from-computed
19-
color: computed('badge', function() {
19+
color: computed('badge', function () {
2020
switch (this.get('badge.attributes.status')) {
2121
case 'actively-developed':
2222
return 'brightgreen';

app/components/badge-travis-ci.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ export default Component.extend({
66
tagName: '',
77
repository: alias('badge.attributes.repository'),
88

9-
branch: computed('badge.attributes.branch', function() {
9+
branch: computed('badge.attributes.branch', function () {
1010
return this.get('badge.attributes.branch') || 'master';
1111
}),
1212

13-
text: computed('branch', function() {
13+
text: computed('branch', function () {
1414
return `Travis CI build status for the ${this.branch} branch`;
1515
}),
1616
});

app/components/crate-badge.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ import { computed } from '@ember/object';
44
export default Component.extend({
55
tagName: '',
66

7-
version: computed('crate.max_version', function() {
7+
version: computed('crate.max_version', function () {
88
return this.get('crate.max_version').replace('-', '--');
99
}),
1010

11-
color: computed('crate.max_version', function() {
11+
color: computed('crate.max_version', function () {
1212
if (this.get('crate.max_version')[0] == '0') {
1313
return 'orange';
1414
} else {

app/components/crate-row.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { computed } from '@ember/object';
33

44
export default Component.extend({
55
tagName: '',
6-
crateTomlText: computed('crate.name', 'max_version', function() {
6+
crateTomlText: computed('crate.name', 'max_version', function () {
77
return `${this.get('crate.name')} = "${this.get('crate.max_version')}"`;
88
}),
99
});

app/components/download-graph.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,8 @@ export default Component.extend({
9595
// use a DataView to calculate an x-day moving average
9696
let days = 7;
9797
let view = new window.google.visualization.DataView(myData);
98-
let moving_avg_func_for_col = function(col) {
99-
return function(dt, row) {
98+
let moving_avg_func_for_col = function (col) {
99+
return function (dt, row) {
100100
// For the last rows (the *first* days, remember, the dataset is
101101
// backwards), we cannot calculate the avg. of previous days.
102102
if (row >= dt.getNumberOfRows() - days) {

app/components/dropdown.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export default Component.extend(EKMixin, EKOnInsertMixin, {
77

88
dropdownExpanded: false,
99

10-
onEscape: on(keyDown('Escape'), function() {
10+
onEscape: on(keyDown('Escape'), function () {
1111
this.set('dropdownExpanded', false);
1212
}),
1313

app/components/dropdown/trigger.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ export default Component.extend({
66

77
attributeBindings: ['type', 'role', 'disabled'],
88

9-
type: computed('tagName', function() {
9+
type: computed('tagName', function () {
1010
return this.tagName === 'button' ? 'button' : null;
1111
}),
1212

13-
role: computed('tagName', function() {
13+
role: computed('tagName', function () {
1414
return this.tagName === 'a' ? 'button' : null;
1515
}),
1616

app/components/email-input.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@ export default Component.extend({
1515
notValidEmail: false,
1616
prevEmail: '',
1717

18-
emailIsNull: computed('user.email', function() {
18+
emailIsNull: computed('user.email', function () {
1919
let email = this.get('user.email');
2020
return email == null;
2121
}),
2222

23-
emailNotVerified: computed('user.{email,email_verified}', function() {
23+
emailNotVerified: computed('user.{email,email_verified}', function () {
2424
let email = this.get('user.email');
2525
let verified = this.get('user.email_verified');
2626

@@ -31,7 +31,7 @@ export default Component.extend({
3131
emailError: '',
3232
disableResend: false,
3333

34-
resendButtonText: computed('disableResend', 'user.email_verification_sent', function() {
34+
resendButtonText: computed('disableResend', 'user.email_verification_sent', function () {
3535
if (this.disableResend) {
3636
return 'Sent!';
3737
} else if (this.get('user.email_verification_sent')) {
@@ -44,7 +44,7 @@ export default Component.extend({
4444
actions: {
4545
editEmail() {
4646
let email = this.value;
47-
let isEmailNull = function(email) {
47+
let isEmailNull = function (email) {
4848
return email == null;
4949
};
5050

@@ -57,7 +57,7 @@ export default Component.extend({
5757
let userEmail = this.value;
5858
let user = this.user;
5959

60-
let emailIsProperFormat = function(userEmail) {
60+
let emailIsProperFormat = function (userEmail) {
6161
let regExp = /^\S+@\S+\.\S+$/;
6262
return regExp.test(userEmail);
6363
};

app/components/follow-button.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@ export default class extends Component {
1111
this.followStateTask.perform();
1212
}
1313

14-
@(task(function*() {
14+
@(task(function* () {
1515
let d = yield ajax(`/api/v1/crates/${this.args.crate.name}/following`);
1616
this.following = d.following;
1717
}).drop())
1818
followStateTask;
1919

20-
@task(function*() {
20+
@task(function* () {
2121
let crate = this.args.crate;
2222

2323
if (!this.following) {

app/components/owned-crate-row.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export default Component.extend({
66
tagName: '',
77

88
name: alias('ownedCrate.name'),
9-
controlId: computed('ownedCrate.id', function() {
9+
controlId: computed('ownedCrate.id', function () {
1010
return `${this.ownedCrate.id}-email-notifications`;
1111
}),
1212
emailNotifications: alias('ownedCrate.email_notifications'),

app/components/user-avatar.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export default Component.extend({
88
attributeBindings: ['src', 'width', 'height', 'alt'],
99
tagName: 'img',
1010

11-
width: computed('size', function() {
11+
width: computed('size', function () {
1212
if (this.size === 'small') {
1313
return 22;
1414
} else if (this.size === 'medium-small') {
@@ -20,11 +20,11 @@ export default Component.extend({
2020

2121
height: readOnly('width'),
2222

23-
alt: computed('user', function() {
23+
alt: computed('user', function () {
2424
return `${this.get('user.name')} (${this.get('user.login')})`;
2525
}),
2626

27-
src: computed('size', 'user', function() {
27+
src: computed('size', 'user', function () {
2828
return `${this.get('user.avatar')}&s=${this.width * 2}`;
2929
}),
3030
});

app/controllers/application.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export default Controller.extend(EKMixin, {
1212

1313
keyboardActivated: true,
1414

15-
focusSearch: on(keyDown('KeyS'), keyPress('KeyS'), keyDown('shift+KeyS'), function(event) {
15+
focusSearch: on(keyDown('KeyS'), keyPress('KeyS'), keyDown('shift+KeyS'), function (event) {
1616
if (event.ctrlKey || event.altKey || event.metaKey) {
1717
return;
1818
}

app/controllers/categories.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export default Controller.extend(PaginationMixin, {
1212

1313
totalItems: readOnly('model.meta.total'),
1414

15-
currentSortBy: computed('sort', function() {
15+
currentSortBy: computed('sort', function () {
1616
return this.sort === 'crates' ? '# Crates' : 'Alphabetical';
1717
}),
1818
});

app/controllers/category/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export default Controller.extend(PaginationMixin, {
1414

1515
category: null,
1616

17-
currentSortBy: computed('sort', function() {
17+
currentSortBy: computed('sort', function () {
1818
if (this.sort === 'downloads') {
1919
return 'All-Time Downloads';
2020
} else if (this.sort === 'alpha') {

0 commit comments

Comments
 (0)