Skip to content

Commit 886ea41

Browse files
chore: Angle Brackets Codemod on app/template/accounts/ (#4301)
* codemod on app/templates/account/**/*.hbs * finalize * fix lock Co-authored-by: iamareebjamal <jamal.areeb@gmail.com>
1 parent 222b0ec commit 886ea41

File tree

13 files changed

+208
-109
lines changed

13 files changed

+208
-109
lines changed

.template-lintrc.js

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,15 @@ module.exports = {
1414
'require-valid-alt-text': false,
1515
'no-inline-styles': false,
1616
'no-negated-condition': false,
17-
'no-invalid-meta': false // Crashing the linter https://github.com/ember-template-lint/ember-template-lint/pull/1087
18-
}
17+
'no-invalid-meta': false, // Crashing the linter https://github.com/ember-template-lint/ember-template-lint/pull/1087
18+
'no-curly-component-invocation': false,
19+
},
20+
overrides: [
21+
{
22+
files: ['**/app/templates/account/**/*.hbs'],
23+
rules: {
24+
'no-curly-component-invocation': true,
25+
}
26+
},
27+
]
1928
};

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ install: yarn
2525
script:
2626
- touch .env
2727
- node scripts/l10n.js generate
28-
- yarn lint:scss
28+
- yarn lint
2929
- COVERAGE=true yarn test
3030
- ROOT_URL=open-event-frontend ember build -prod
3131
- bash scripts/test_fastboot.sh
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{{account/application-section data=model}}
1+
<Account::ApplicationSection @data={{model}} />

app/templates/account/billing.hbs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
<div class="ui grid">
22
<div class="row">
33
<div class="{{if device.isMobile 'sixteen' 'three'}} wide column">
4-
{{#tabbed-navigation isVertical=true}}
5-
{{#link-to 'account.billing.payment-info' class='item'}}
4+
<TabbedNavigation @isVertical={{true}}>
5+
<LinkTo @route="account.billing.payment-info" class="item">
66
{{t 'Payment Information'}}
7-
{{/link-to}}
8-
{{#link-to 'account.billing.invoices' class='item'}}
7+
</LinkTo>
8+
<LinkTo @route="account.billing.invoices" class="item">
99
{{t 'Invoices'}}
10-
{{/link-to}}
11-
{{/tabbed-navigation}}
10+
</LinkTo>
11+
</TabbedNavigation>
1212
</div>
1313
<div class="{{if device.isMobile 'sixteen' 'thirteen'}} wide column">
1414
{{outlet}}

app/templates/account/billing/invoices.hbs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
<div class="ui grid stackable">
22
<div class="row">
33
<div class="eight wide column">
4-
{{#tabbed-navigation isNonPointing=true}}
5-
{{#link-to 'account.billing.invoices.list' 'all' class='item'}}
4+
<TabbedNavigation @isNonPointing={{true}}>
5+
<LinkTo @route="account.billing.invoices.list" @model="all" class="item">
66
{{t 'All'}}
7-
{{/link-to}}
8-
{{#link-to 'account.billing.invoices.list' 'due' class='item'}}
7+
</LinkTo>
8+
<LinkTo @route="account.billing.invoices.list" @model="due" class="item">
99
{{t 'Due'}}
10-
{{/link-to}}
11-
{{#link-to 'account.billing.invoices.list' 'paid' class='item'}}
10+
</LinkTo>
11+
<LinkTo @route="account.billing.invoices.list" @model="paid" class="item">
1212
{{t 'Paid'}}
13-
{{/link-to}}
14-
{{#link-to 'account.billing.invoices.list' 'upcoming' class='item'}}
13+
</LinkTo>
14+
<LinkTo @route="account.billing.invoices.list" @model="upcoming" class="item">
1515
{{t 'Upcoming'}}
16-
{{/link-to}}
17-
{{/tabbed-navigation}}
16+
</LinkTo>
17+
</TabbedNavigation>
1818
</div>
1919
</div>
2020
<div class="row">
Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
<div class="sixteen wide column">
2-
{{tables/default columns=columns
3-
rows=model.eventInvoices.data
4-
currentPage=page
5-
pageSize=per_page
6-
searchQuery=search
7-
sortBy=sort_by
8-
sortDir=sort_dir
9-
metaData=model.eventInvoices.meta
10-
filterOptions=filterOptions
11-
widthConstraint="eq-container"
12-
resizeMode="fluid"
13-
fillMode="equal-column"
14-
}}
2+
<Tables::Default
3+
@columns={{columns}}
4+
@rows={{model.eventInvoices.data}}
5+
@currentPage={{page}}
6+
@pageSize={{per_page}}
7+
@searchQuery={{search}}
8+
@sortBy={{sort_by}}
9+
@sortDir={{sort_dir}}
10+
@metaData={{model.eventInvoices.meta}}
11+
@filterOptions={{filterOptions}}
12+
@widthConstraint="eq-container"
13+
@resizeMode="fluid"
14+
@fillMode="equal-column" />
1515
</div>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
<div class="ui basic {{if isLoading 'loading' ''}} segment">
2-
{{forms/user-payment-info-form}}
2+
<Forms::UserPaymentInfoForm />
33
</div>

app/templates/account/danger-zone.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{{account/danger-zone data=model}}
1+
<Account::DangerZone @data={{model}} />
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{{account/email-preferences-section preferences=model}}
1+
<Account::EmailPreferencesSection @preferences={{model}} />

app/templates/account/password.hbs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,6 @@
1-
{{account/password-section changePassword=(action 'changePassword') passwordCurrent=passwordCurrent passwordNew=passwordNew passwordRepeat=passwordRepeat isLoading=isLoading}}
1+
<Account::PasswordSection
2+
@changePassword={{action "changePassword"}}
3+
@passwordCurrent={{passwordCurrent}}
4+
@passwordNew={{passwordNew}}
5+
@passwordRepeat={{passwordRepeat}}
6+
@isLoading={{isLoading}} />

0 commit comments

Comments
 (0)