File tree Expand file tree Collapse file tree 24 files changed +123
-88
lines changed Expand file tree Collapse file tree 24 files changed +123
-88
lines changed Original file line number Diff line number Diff line change 19
19
"build" : " ember build --environment=production" ,
20
20
"lint" : " npm-run-all --aggregate-output --continue-on-error --parallel \" lint:!(fix)\" " ,
21
21
"lint:fix" : " npm-run-all --aggregate-output --continue-on-error --parallel lint:*:fix" ,
22
+ "lint:hbs" : " ember-template-lint ." ,
22
23
"lint:hbs:fix" : " ember-template-lint . --fix" ,
23
24
"lint:js" : " eslint . --cache" ,
24
25
"release" : " release-it" ,
68
69
"ember-page-title" : " ^8.0.0" ,
69
70
"ember-qunit" : " ^5.1.5" ,
70
71
"ember-resolver" : " ^11.0.1" ,
72
+ "ember-set-helper" : " ^2.0.1" ,
71
73
"ember-simulant-test-helpers" : " ^0.3.2" ,
72
74
"ember-source" : " ~3.28.8" ,
73
75
"ember-source-channel-url" : " ^3.0.0" ,
74
- "ember-template-lint" : " ^5.11.2 " ,
76
+ "ember-template-lint" : " ^5.13.0 " ,
75
77
"ember-try" : " ^3.0.0" ,
76
78
"eslint" : " ^7.32.0" ,
77
79
"eslint-config-prettier" : " ^9.0.0" ,
Original file line number Diff line number Diff line change 1
- <div class =" ClickablePane" onclick ={{ action (mut this.clicked ) true }} >
1
+ {{!-- template-lint-disable no-invalid-interactive --}}
2
+ <div class =" ClickablePane" onclick ={{ set this ' clicked' true }} >
2
3
{{ #if this.clicked }}
3
4
clicked
4
5
{{ else }}
Original file line number Diff line number Diff line change
1
+ {{!-- template-lint-disable no-route-action --}}
1
2
<div ...attributes>
2
- <button {{ action ( route-action ' back ' ) }} class =" y-button left-button theme-color back-button" >Close</button >
3
+ <button class =" y-button left-button theme-color back-button" type = " button " {{ on ' click ' ( route-action ' back ' ) }} >Close</button >
3
4
</div >
Original file line number Diff line number Diff line change 1
1
<div ...attributes>
2
2
<h1 >My Schedule</h1 >
3
- <a href =" #" {{ action (route-action ' drillDownToScheduleItem' ) ' 2' }} >Schedule Item 2</a >
3
+ {{!-- template-lint-disable no-route-action --}}
4
+ <a href =" #" {{ on ' click' (route-action ' drillDownToScheduleItem' ' 2' )}} >Schedule Item 2</a >
4
5
</div >
Original file line number Diff line number Diff line change
1
+ {{!-- template-lint-disable no-route-action --}}
1
2
<div class ={{ @class }} >
2
3
3
4
{{ #if @model.isUnderMorePage ~}}
4
- <button {{ action ( route-action ' back ' ) }} class =" y-button left-button theme-color back-button" >Back</button >
5
+ <button class =" y-button left-button theme-color back-button" type = " button " {{ on ' click ' ( route-action ' back ' ) }} >Back</button >
5
6
{{ /if ~}}
6
7
7
8
{{ #if @model.hasMySchedule }}
8
- <button {{ action ( route-action ' visitMySchedule ' ) }} class =" y-button right-button theme-color icon-button my-schedule-button js-myScheduleButton" ></button >
9
+ <button class =" y-button right-button theme-color icon-button my-schedule-button js-myScheduleButton" type = " button " {{ on ' click ' ( route-action ' visitMySchedule ' ) }} ></button >
9
10
{{ /if ~}}
10
11
11
12
<div class =" page-title" >{{ @model.pageTitle }} </div >
Original file line number Diff line number Diff line change
1
+ {{!-- template-lint-disable no-route-action --}}
1
2
<div class ={{ @class }} >
2
- <button {{ action ( route-action ' back ' ) }} class =" y-button left-button theme-color back-button" >Back</button >
3
+ <button class =" y-button left-button theme-color back-button" type = " button " {{ on ' click ' ( route-action ' back ' ) }} >Back</button >
3
4
4
5
{{ #if @model.yapp.myScheduleEnabled }}
5
- <button {{ action ( route-action ' visitMySchedule ' ) }} class =" y-button right-button theme-color icon-button my-schedule-button" ></button >
6
+ <button class =" y-button right-button theme-color icon-button my-schedule-button" type = " button " {{ on ' click ' ( route-action ' visitMySchedule ' ) }} ></button >
6
7
{{ /if }}
7
8
8
9
<div class =" page-title" >Schedule Item</div >
Original file line number Diff line number Diff line change
1
+ {{!-- template-lint-disable no-route-action --}}
1
2
<div class ={{ @class }} >
2
- <button {{ action ( route-action ' back ' ) }} class =" y-button left-button theme-color back-button" >Close</button >
3
+ <button class =" y-button left-button theme-color back-button" type = " button " {{ on ' click ' ( route-action ' back ' ) }} >Close</button >
3
4
</div >
Original file line number Diff line number Diff line change
1
+ {{!-- template-lint-disable no-route-action --}}
1
2
<div class ={{ @class }} >
2
- <button {{ action ( route-action ' back ' ) }} class =" y-button left-button theme-color back-button" >Back</button >
3
+ <button class =" y-button left-button theme-color back-button" type = " button " {{ on ' click ' ( route-action ' back ' ) }} >Back</button >
3
4
<div class =" page-title" >Feedback</div >
4
5
</div >
Original file line number Diff line number Diff line change
1
+ {{!-- template-lint-disable no-route-action no-inline-styles require-input-label --}}
1
2
<div ...attributes>
2
3
<div class =' y-page-content' style =" position:absolute;top:0;bottom:0;left:0;right:0" >
3
4
<h1 >schedule-item {{ @model.slug }} </h1 >
4
- <button {{ action (route-action ' drillDownToRatingForm' )}} >Rate</button >
5
- <button {{ action (route-action ' logThenGoToRating' )}} >Log Then Rate</button >
6
- <button {{ action (route-action ' showAttachedPerson' )}} >John Doe</button >
5
+ <button type = " button " {{ on ' click ' (route-action ' drillDownToRatingForm' )}} >Rate</button >
6
+ <button type = " button " {{ on ' click ' (route-action ' logThenGoToRating' )}} >Log Then Rate</button >
7
+ <button type = " button " {{ on ' click ' (route-action ' showAttachedPerson' )}} >John Doe</button >
7
8
<textarea rows =" 8" cols =" 40" style =" border-style: inset;" ></textarea >
8
9
<VerticalPanDetectorPane >
9
10
<ClickablePane />
Original file line number Diff line number Diff line change
1
+ {{!-- template-lint-disable no-route-action --}}
1
2
<div class ={{ @class }} >
2
3
<div class =" page-title" >{{ @model.pageTitle }} </div >
3
4
4
- <button {{ action ( route-action ' back ' ) }} class =" y-button left-button theme-color back-button" >Back</button >
5
+ <button class =" y-button left-button theme-color back-button" type = " button " {{ on ' click ' ( route-action ' back ' ) }} >Back</button >
5
6
6
7
{{ #if @model.hasMySchedule }}
7
- <button {{ action ( route-action ' visitMySchedule ' ) }} class =" y-button right-button theme-color icon-button my-schedule-button js-myScheduleButton" ></button >
8
+ <button class =" y-button right-button theme-color icon-button my-schedule-button js-myScheduleButton" type = " button " {{ on ' click ' ( route-action ' visitMySchedule ' ) }} ></button >
8
9
{{ /if ~}}
9
10
</div >
You can’t perform that action at this time.
0 commit comments