Skip to content

Commit af4424a

Browse files
committed
Merge branch 'release/20.6.0'
2 parents 84264e9 + 784882e commit af4424a

File tree

230 files changed

+2618
-1240
lines changed

Some content is hidden

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

230 files changed

+2618
-1240
lines changed

.editorconfig

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
root = true
66

7-
87
[*]
98
# end_of_line = lf (https://github.com/editorconfig/editorconfig/issues/226)
109
charset = utf-8

.eslintrc.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
'use strict';
2+
13
module.exports = {
24
globals: {
35
server: true,
@@ -45,6 +47,7 @@ module.exports = {
4547
}],
4648
'no-underscore-dangle': 'off',
4749
'linebreak-style': ['error', (process.platform === 'win32' ? 'windows' : 'unix')],
50+
'lines-between-class-members': 'off',
4851
},
4952
overrides: [
5053
{
@@ -104,4 +107,7 @@ module.exports = {
104107
},
105108
},
106109
],
110+
settings: {
111+
'import/extensions': ['error', 'never'],
112+
},
107113
};

.travis.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
language: node_js
2+
node_js:
3+
- "10"
24

3-
sudo: false
45
dist: trusty
56

67
env:

CHANGELOG.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
55
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
66

7+
## [20.6.0] - 2020-06-26
8+
## Changed
9+
- Upgrade to Ember 3.16
10+
- Miscellaneous security and dependency upgrades
11+
712
## [20.5.0] - 2020-06-03
813
## Changed
914
- Components
@@ -1606,8 +1611,9 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
16061611
### Added
16071612
- Quick Files
16081613

1609-
[Unreleased]: https://github.com/CenterForOpenScience/ember-osf-web/compare/20.5.0...develop
1610-
[20.4.0]: https://github.com/CenterForOpenScience/ember-osf-web/releases/tag/20.5.0
1614+
[Unreleased]: https://github.com/CenterForOpenScience/ember-osf-web/compare/20.6.0...develop
1615+
[20.6.0]: https://github.com/CenterForOpenScience/ember-osf-web/releases/tag/20.6.0
1616+
[20.5.0]: https://github.com/CenterForOpenScience/ember-osf-web/releases/tag/20.5.0
16111617
[20.4.0]: https://github.com/CenterForOpenScience/ember-osf-web/releases/tag/20.4.0
16121618
[20.3.1]: https://github.com/CenterForOpenScience/ember-osf-web/releases/tag/20.3.1
16131619
[20.3.0]: https://github.com/CenterForOpenScience/ember-osf-web/releases/tag/20.3.0

app/adapters/osf-adapter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ export default class OsfAdapter extends JSONAPIAdapter {
102102
if (snapshot) {
103103
const { adapterOptions }: { adapterOptions?: { url?: string } } = snapshot;
104104
if (adapterOptions && adapterOptions.url) {
105-
url = adapterOptions.url; // eslint-disable-line prefer-destructuring
105+
url = adapterOptions.url;
106106
}
107107
}
108108

app/authenticators/osf-cookie.ts

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -79,11 +79,7 @@ export default class OsfCookie extends Base {
7979
}
8080

8181
// Push the user into the store for later use
82-
try {
83-
this.store.pushPayload(userData);
84-
} catch (error) {
85-
throw error;
86-
}
82+
this.store.pushPayload(userData);
8783

8884
const { id } = userData.data;
8985
this.set('lastVerifiedUserId', id);
@@ -100,10 +96,10 @@ export default class OsfCookie extends Base {
10096
} = this;
10197

10298
if (
103-
isAuthenticated &&
104-
lastVerifiedUserId &&
105-
data &&
106-
data.authenticated.id === lastVerifiedUserId
99+
isAuthenticated
100+
&& lastVerifiedUserId
101+
&& data
102+
&& data.authenticated.id === lastVerifiedUserId
107103
) {
108104
// Everything is in order, no need to re-auth
109105
return undefined;

app/errors.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1-
export class OsfError {}
1+
/* eslint-disable max-classes-per-file */
2+
export class OsfError { }
23

34
export class NotLoggedIn extends OsfError {}
5+
/* eslint-enable max-classes-per-file */

app/institutions/index/controller.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,9 @@ export default class Institutions extends Controller {
2727
if (!this.textValue.length) {
2828
return this.model;
2929
}
30-
return this.model.filter((institution: Institution) =>
31-
institution.name.toLowerCase().indexOf(this.textValue.toLowerCase()) !== -1);
30+
return this.model.filter(
31+
(institution: Institution) => institution.name.toLowerCase().indexOf(this.textValue.toLowerCase()) !== -1,
32+
);
3233
}
3334

3435
@computed('filtered', 'sortOrder', 'page', 'textValue')

app/locations/auto.ts

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,21 @@
11
import AutoLocation from '@ember/routing/auto-location';
2-
import GuidLocationMixin from 'ember-osf-web/locations/guid-mixin';
2+
import cleanURL from 'ember-osf-web/utils/clean-url';
33

44
// Sadly the `auto` location must be overriden, otherwise
55
// ember-cli's server doesn't allow visiting specific URLs
6-
export default class GuidAutoLocation extends AutoLocation.extend(GuidLocationMixin) {
6+
export default class GuidAutoLocation extends AutoLocation {
7+
setURL(url: string) {
8+
return super.setURL(cleanURL(url));
9+
}
10+
11+
replaceURL(url: string) {
12+
if (super.replaceURL) {
13+
return super.replaceURL(cleanURL(url));
14+
}
15+
return undefined;
16+
}
17+
18+
formatURL(url: string): string {
19+
return super.formatURL(cleanURL(url));
20+
}
721
}

app/locations/guid-mixin.ts

Lines changed: 0 additions & 17 deletions
This file was deleted.

0 commit comments

Comments
 (0)