Skip to content

Commit e2b65ad

Browse files
committed
Auto merge of #2094 - Turbo87:template-only-glimmer, r=locks
Enable `template-only-glimmer-components` feature flag see https://emberjs.github.io/rfcs/0278-template-only-components.html r? @locks
2 parents 133dcb7 + 0e43ac0 commit e2b65ad

8 files changed

+13
-9
lines changed

app/components/link-to-dep.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import Component from '@ember/component';
2+
3+
export default Component.extend({});

app/templates/components/category-list.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<ul>
2-
{{#each this.categories as |category|}}
2+
{{#each @categories as |category|}}
33
<li>
44
<LinkTo @route="category" @model={{category.slug}} class="name">
55
<span>{{ category.category }} ({{ format-num category.crates_cnt }})</span>

app/templates/components/crate-downloads-list.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<ul>
2-
{{#each this.crates as |crate|}}
2+
{{#each @crates as |crate|}}
33
<li>
44
<LinkTo @route="crate" @model={{crate.id}} class="name">
55
{{ crate.name }} ({{ crate.max_version }})

app/templates/components/crate-list-name-only.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<ol>
2-
{{#each this.crates as |crate index|}}
2+
{{#each @crates as |crate index|}}
33
<li>
44
<LinkTo @route="crate" @model={{crate.id}} class="name" data-test-crate-link={{index}}>
55
<span>{{ crate.name }}</span>

app/templates/components/crate-list-newest.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<ol>
2-
{{#each this.crates as |crate index|}}
2+
{{#each @crates as |crate index|}}
33
<li>
44
<LinkTo @route="crate.version" @models={{array crate.id crate.newest_version}} class="name" data-test-crate-link={{index}}>
55
<span>{{ crate.name }} ({{ crate.newest_version }})</span>

app/templates/components/keyword-list.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<ul>
2-
{{#each this.keywords as |keyword|}}
2+
{{#each @keywords as |keyword|}}
33
<li>
44
<LinkTo @route="keyword" @model={{keyword}} class="name">
55
<span>{{ keyword.id }} ({{ format-num keyword.crates_cnt }})</span>
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
<LinkTo @route="crate" @model={{this.dep.crate_id}}>
2-
{{ this.dep.crate_id }} {{ format-req this.dep.req }}
1+
<LinkTo @route="crate" @model={{@dep.crate_id}}>
2+
{{ @dep.crate_id }} {{ format-req @dep.req }}
33
</LinkTo>
4-
{{#if this.dep.optional}}
4+
{{#if @dep.optional}}
55
<span class='optional'>optional</span>
66
{{/if}}

config/optional-features.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
{
2-
"application-template-wrapper": false
2+
"application-template-wrapper": false,
3+
"template-only-glimmer-components": true
34
}

0 commit comments

Comments
 (0)