Skip to content

Commit 3742928

Browse files
committed
Migration to glimmer components/native javascript. (Remove .js if component javascript support uses an empty class. Substitute '@' for 'this.' in hbs for component arguments.)
1 parent a927f0f commit 3742928

27 files changed

Lines changed: 41 additions & 118 deletions

app/components/creator-show.hbs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
{{#if this.creators}}
2-
{{#each (take (or this.showOnly this.creators.length) this.creators) as |creator index|}}
1+
{{#if @creators}}
2+
{{#each (take (or @showOnly @creators.length) @creators) as |creator index|}}
33
{{#if (and creator.orcid (feature-flag 'showResearchers'))}}
4-
<a href="https://commons.datacite.org/orcid.org/{{creator.orcid}}">{{creator.displayName~}}</a>{{format-creator this.creators index=index}}
4+
<a href="https://commons.datacite.org/orcid.org/{{creator.orcid}}">{{creator.displayName~}}</a>{{format-creator @creators index=index}}
55
{{else}}
6-
{{creator.displayName~}}{{format-creator this.creators index=index showOnly=(or this.showOnly this.creators.length)}}
6+
{{creator.displayName~}}{{format-creator @creators index=index showOnly=(or @showOnly @creators.length)}}
77
{{/if}}
88
{{/each}}
99
{{/if}}

app/components/creator-show.js

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

app/components/doi-media.hbs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
</div>
66
<div class="panel panel-transparent url">
77
<div class="panel-body">
8-
{{#if this.model.media}}
9-
{{#each this.model.media as |media|}}
8+
{{#if @model.media}}
9+
{{#each @model.media as |media|}}
1010
<div class="row">
1111
<div class="col-md-2">
1212
<strong><media.media-type /></strong>

app/components/doi-media.js

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

app/components/list-links.hbs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
<ul class={{this.class}}>
2-
{{#each this.links as |link| }}
1+
<ul class={{@class}}>
2+
{{#each @links as |link| }}
33
<li>
44
<a target="_blank" rel="noopener noreferrer" href={{link.url}}>{{link.name}}</a>
55
</li>

app/components/list-links.js

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

app/components/model-validation-errors.js

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

app/components/prefix-available.hbs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
<div class="panel-body">
44
<div class="btn-toolbar">
55
<div class="btn-group btn-group-sm">
6-
{{#if this.model.repository}}
6+
{{#if @model.repository}}
77
<LinkTo
8-
@route={{this.link}}
9-
@model={{this.model.repository.id}}
8+
@route={{@link}}
9+
@model={{@model.repository.id}}
1010
class="btn btn-warning"
1111
id="assign-prefix"
1212
>
@@ -15,8 +15,8 @@
1515
</LinkTo>
1616
{{else}}
1717
<LinkTo
18-
@route={{this.link}}
19-
@model={{this.model.repository.id}}
18+
@route={{@link}}
19+
@model={{@model.repository.id}}
2020
class="btn btn-warning"
2121
id="assign-prefix"
2222
>

app/components/prefix-available.js

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

app/components/provider-ror.js

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

0 commit comments

Comments
 (0)