Skip to content

Commit d68e43d

Browse files
committed
Merge branch 'release/18.1.0'
2 parents 67f418c + 8a053bd commit d68e43d

File tree

82 files changed

+1078
-315
lines changed

Some content is hidden

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

82 files changed

+1078
-315
lines changed

CHANGELOG.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,28 @@ 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+
## [18.1.0] - 2018-10-30
8+
### Added
9+
- Components:
10+
- `panel` - a general-use abstraction of bootstrap panels
11+
- Tests:
12+
- `panel` component integration test
13+
- Handbook:
14+
- `panel` component
15+
### Changed
16+
- Components:
17+
- `loading-indicator` - added inline option
18+
- Utilities:
19+
- `fix-special-chars` - made case-insensitive
20+
- Tests:
21+
- `loading-indicator` - added tests for inline
22+
- Handbook:
23+
- `loading-indicator` - added examples for inline
24+
### Removed
25+
- Flags:
26+
- `ember_project_forks_page` - `guid-node.forks` and `guid-registration.forks` now always on
27+
- `ember_project_analytics_page` - `guid-node.analytics` and `guid-registration.analytics` now always on
28+
729
## [18.0.0] - 2018-10-24
830
### Added
931
- Models:

app/models/token.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import OsfModel from './osf-model';
66
const Validations = buildValidations({
77
name: [
88
validator('presence', true),
9-
validator('length', { min: 1, max: 200 }),
9+
validator('length', { min: 1, max: 100 }),
1010
],
1111
scopes: [
1212
validator('collection', true),

app/services/theme.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,10 @@ export default class Theme extends Service {
114114
}
115115

116116
reset(this: Theme) {
117-
this.set('id', defaultProvider);
117+
this.setProperties({
118+
id: defaultProvider,
119+
providerType: undefined,
120+
});
118121
}
119122

120123
prefixRoute(route: string): string {

app/settings/tokens/x-token-form/styles.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
input {
55
margin-right: 10px;
6+
flex-shrink: 0;
67
}
78
}
89

app/utils/fix-special-char.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
*/
66
export default function fixSpecialChar(inputString: string = ''): string {
77
return inputString
8-
.replace(/&/g, '&')
9-
.replace(/&lt;/g, '<')
10-
.replace(/&gt;/g, '>');
8+
.replace(/&amp;/gi, '&')
9+
.replace(/&lt;/gi, '<')
10+
.replace(/&gt;/gi, '>');
1111
}

config/environment.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -214,10 +214,6 @@ module.exports = function(environment) {
214214
},
215215
featureFlagNames: {
216216
routes: {
217-
'guid-node.forks': 'ember_project_forks_page',
218-
'guid-registration.forks': 'ember_project_forks_page',
219-
'guid-node.analytics.index': 'ember_project_analytics_page',
220-
'guid-registration.analytics.index': 'ember_project_analytics_page',
221217
'guid-node.registrations': 'ember_project_registrations_page',
222218
'settings.tokens': 'ember_user_settings_tokens_page',
223219
'settings.tokens.index': 'ember_user_settings_tokens_page',

lib/app-components/addon/components/branded-navbar/styles.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@
66
height: 50px;
77
border-radius: 0 !important;
88
margin-bottom: 0 !important;
9+
10+
:global(.container) {
11+
height: 50px;
12+
}
913
}
1014

1115
.navbar-content {

lib/app-components/addon/components/error-page/template.hbs

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,21 @@
1717
</a>
1818
</span>
1919
</p>
20-
<a
21-
class="btn btn-primary m-t-md"
22-
href={{theme.pathPrefix}}
23-
onclick={{action 'click' 'link' (concat label ' - Go to Index') target=analytics}}
24-
>
25-
{{t 'app_components.error_page.go_to'
26-
brand=(t @brandKey name=(if theme.isProvider theme.provider.name 'general.osf'))
27-
}}
28-
</a>
20+
{{#if theme.isProvider}}
21+
<a
22+
class="btn btn-primary m-t-md"
23+
href={{theme.pathPrefix}}
24+
onclick={{action 'click' 'link' (concat label ' - Go to Index') target=analytics}}
25+
>
26+
{{t 'app_components.error_page.go_to'
27+
brand=(t @brandKey name=theme.provider.name)
28+
}}
29+
</a>
30+
{{else}}
31+
{{#link-to-external 'home' class="btn btn-primary m-t-md"}}
32+
{{t 'app_components.error_page.go_to' brand=(t 'general.OSF')}}
33+
{{/link-to-external}}
34+
{{/if}}
2935
</div>
3036
</div>
3137
</div>
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import Helper from '@ember/component/helper';
2+
3+
export default class Sort extends Helper {
4+
compute<T>([arr]: [T[]]) {
5+
return arr.sort();
6+
}
7+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export { default } from 'app-components/helpers/sort';

0 commit comments

Comments
 (0)