This repository has been archived by the owner on Nov 28, 2022. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ran "no implicit this in templates" codemod
no issue We were in a part-way state where some touched files had been (sometimes partially) migrated to explicit `this`. The codemod that was available has now fixed the formatting issues it had so it was a good time to run it. https://github.com/ember-codemods/ember-no-implicit-this-codemod - part of the migration path for emberjs/rfcs#308 - starts to make template resolution rules more explicit - `<MyComponent />` - always a component - `{{my-component}}` - component or helper (components _must_ have a `-`. This style of component will go away once fully migrated to angle bracket components) - `{{value}}` - a helper or local template variable - `{{this.value}}` - reference to a property on the backing context (either a controller or a component JS file)
- Loading branch information
1 parent
077347a
commit aaf9f88
Showing
113 changed files
with
1,186 additions
and
1,205 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
{{#unless isResizing}} | ||
{{#unless this.isResizing}} | ||
{{yield}} | ||
{{/unless}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
{{#link-to route alternateActive=(action "setActive") classNameBindings="linkClasses"}}{{title}}{{yield}}{{/link-to}} | ||
{{#link-to this.route alternateActive=(action "setActive") classNameBindings="linkClasses"}}{{title}}{{yield}}{{/link-to}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
{{#each messages as |message|}} | ||
{{#each this.messages as |message|}} | ||
{{gh-alert message=message}} | ||
{{/each}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
{{{config.blogUrl}}} | ||
{{{this.config.blogUrl}}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{{!-- display a standard textarea whilst waiting for CodeMirror to load/initialize --}} | ||
{{gh-textarea | ||
class=(concat "gh-cm-editor-textarea " textareaClass) | ||
value=(readonly _value) | ||
class=(concat "gh-cm-editor-textarea " this.textareaClass) | ||
value=(readonly this._value) | ||
input=(action "updateFromTextarea" value="target.value")}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,35 @@ | ||
<div class="gh-date-time-picker"> | ||
{{#power-datepicker | ||
selected=_date | ||
center=_date | ||
selected=this._date | ||
center=this._date | ||
onSelect=(action "setDate" value="date") | ||
renderInPlace=true | ||
disabled=disabled as |dp| | ||
disabled=this.disabled as |dp| | ||
}} | ||
{{#dp.trigger tabindex="-1" data-test-date-time-picker-datepicker=true}} | ||
<div class="gh-date-time-picker-date {{if dateError "error"}}"> | ||
<input type="text" readonly value={{moment-format _date "YYYY-MM-DD"}} disabled={{disabled}} data-test-date-time-picker-date-input> | ||
<div class="gh-date-time-picker-date {{if this.dateError "error"}}"> | ||
<input type="text" readonly value={{moment-format this._date "YYYY-MM-DD"}} disabled={{this.disabled}} data-test-date-time-picker-date-input> | ||
{{svg-jar "calendar"}} | ||
</div> | ||
{{/dp.trigger}} | ||
{{#dp.content class="dropdown-menu"}} | ||
{{dp.nav}} | ||
{{dp.days minDate=_minDate maxDate=_maxDate weekdayFormat="min"}} | ||
{{dp.days minDate=this._minDate maxDate=this._maxDate weekdayFormat="min"}} | ||
{{/dp.content}} | ||
{{/power-datepicker}} | ||
|
||
<div class="gh-date-time-picker-time {{if hasError "error"}}"> | ||
<div class="gh-date-time-picker-time {{if this.hasError "error"}}"> | ||
<input | ||
type="text" | ||
value={{_time}} | ||
disabled={{disabled}} | ||
oninput={{action (mut _time) value="target.value"}} | ||
onblur={{action "setTime" _time}} | ||
value={{this._time}} | ||
disabled={{this.disabled}} | ||
oninput={{action (mut this._time) value="target.value"}} | ||
onblur={{action "setTime" this._time}} | ||
data-test-date-time-picker-time-input | ||
> | ||
<small class="gh-date-time-picker-timezone">({{timezone}})</small> | ||
<small class="gh-date-time-picker-timezone">({{this.timezone}})</small> | ||
</div> | ||
</div> | ||
{{#if hasError}} | ||
<div class="gh-date-time-picker-error" data-test-date-time-picker-error>{{dateError}}{{timeError}}</div> | ||
{{#if this.hasError}} | ||
<div class="gh-date-time-picker-error" data-test-date-time-picker-error>{{this.dateError}}{{this.timeError}}</div> | ||
{{/if}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{{#if hasBlock}} | ||
{{yield count}} | ||
{{yield this.count}} | ||
{{else}} | ||
{{count}} | ||
{{this.count}} | ||
{{/if}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
{{message}} | ||
{{this.message}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
<input type="checkbox" checked={{value}} disabled={{disabled}} id={{for}} name={{name}} onclick={{action (mut value) value="target.checked"}}> | ||
<input type="checkbox" checked={{this.value}} disabled={{this.disabled}} id={{this.for}} name={{this.name}} onclick={{action (mut this.value) value="target.checked"}}> | ||
<span class="input-toggle-component"></span> | ||
{{{yield}}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
<input class="gh-input gh-input-file q" data-url="upload" type="file" name="importfile" accept="{{acceptEncoding}}"> | ||
<button id="startupload" class="gh-btn gh-btn-hover-blue" type="submit" disabled={{uploadButtonDisabled}} {{action "upload"}}> | ||
<span>{{uploadButtonText}}</span> | ||
<input class="gh-input gh-input-file q" data-url="upload" type="file" name="importfile" accept="{{this.acceptEncoding}}"> | ||
<button id="startupload" class="gh-btn gh-btn-hover-blue" type="submit" disabled={{this.uploadButtonDisabled}} {{action "upload"}}> | ||
<span>{{this.uploadButtonText}}</span> | ||
</button> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,20 @@ | ||
{{#if file}} | ||
{{#if this.file}} | ||
{{!-- Upload in progress! --}} | ||
{{#if failureMessage}} | ||
<div class="failed">{{failureMessage}}</div> | ||
{{#if this.failureMessage}} | ||
<div class="failed">{{this.failureMessage}}</div> | ||
{{/if}} | ||
<div class="progress-container"> | ||
<div class="progress"> | ||
<div class="bar {{if failureMessage "fail"}}" style={{progressStyle}}></div> | ||
<div class="bar {{if this.failureMessage "fail"}}" style={{this.progressStyle}}></div> | ||
</div> | ||
</div> | ||
{{#if failureMessage}} | ||
{{#if this.failureMessage}} | ||
<button class="gh-btn gh-btn-green" {{action "reset"}} data-test-upload-try-again-button><span>Try Again</span></button> | ||
{{/if}} | ||
{{else}} | ||
<div class="upload-form"> | ||
{{#gh-file-input multiple=false alt=labelText action=(action 'fileSelected') accept=accept}} | ||
<div class="description">{{labelText}}</div> | ||
{{#gh-file-input multiple=false alt=this.labelText action=(action 'fileSelected') accept=this.accept}} | ||
<div class="description">{{this.labelText}}</div> | ||
{{/gh-file-input}} | ||
</div> | ||
{{/if}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.