1
- <section class =" {{ @type }} " >
1
+ <section class =' {{ @type }} ' >
2
2
{{!-- TODO: Fix this link for a11y --}}
3
- <h3 class =" class-field-description--link" data-anchor =" {{ @field.name }} " role =" link" {{ on " click" (fn this.updateAnchor @field.name )}} >
4
- <a class =" anchor" {{!-- template-lint-disable link-href-attributes --}} >
5
- {{ svg-jar ' fa-link' class =" class-field-description--link-hover" width =" 20px" height =" 20px" }}
3
+ <h3 class =' class-field-description--link' data-anchor =' {{ @field.name }} ' role =' link' {{ on ' click' (fn this.updateAnchor @field.name )}} >
4
+ <a class =' anchor' {{!-- template-lint-disable link-href-attributes --}} >
5
+ {{ svg-jar ' fa-link' class =' class-field-description--link-hover' width =' 20px' height =' 20px' }}
6
6
</a >
7
- <span class =" {{ @type }} -name" >{{ @field.name }} </span >
7
+ <span class =' {{ @type }} -name' >{{ @field.name }} </span >
8
8
{{ #if @field.params }}
9
- <span class =" args" >
10
- ({{ join " , " (map-by " name" @field.params )}} )
9
+ <span class =' args' >
10
+ ({{ join ' , ' (map-by ' name' @field.params )}} )
11
11
</span >
12
12
{{ /if }}
13
13
{{ #if @field.return }}
14
- <span class =" return-type" >{{ @field.return.type }} </span >
14
+ <span class =' return-type' >{{ @field.return.type }} </span >
15
15
{{ /if }}
16
16
{{ #if @field.access }}
17
- <span class =" access" >{{ @field.access }} </span >
17
+ <span class =' access' >{{ @field.access }} </span >
18
18
{{ /if }}
19
19
{{ #if @field.deprecated }}
20
- <span class =" access" >deprecated</span >
20
+ <span class =' access' >deprecated</span >
21
21
{{ /if }}
22
22
</h3 >
23
23
{{ #if @model.module }}
24
- <div class =" attributes" >
25
- <div class =" attribute" >
26
- <span class =" attribute-label" >Module:</span >
27
- <span class =" attribute-value" ><LinkTo @route =" project-version.modules.module" @models ={{ array @model.projectVersion.compactVersion @model.module }} >{{ @model.module }} </LinkTo ></span >
24
+ <div class =' attributes' >
25
+ <div class =' attribute' >
26
+ <span class =' attribute-label' >Module:</span >
27
+ <span class =' attribute-value' ><LinkTo @route =' project-version.modules.module' @models ={{ array @model.projectVersion.compactVersion @model.module }} >{{ @model.module }} </LinkTo ></span >
28
28
</div >
29
29
</div >
30
30
{{ /if }}
31
- <p class =" github-link" data-test-file ={{ @field.file }} >
31
+ <p class =' github-link' data-test-file ={{ @field.file }} >
32
32
{{ #if @field.inherited }}
33
33
Inherited from
34
- <a href =" {{ github-link @model.project.id @model.projectVersion.version @field.file @field.line }} " target =" _blank" rel =" noopener noreferrer" >
34
+ <a href =' {{ github-link @model.project.id @model.projectVersion.version @field.file @field.line }} ' target =' _blank' rel =' noopener noreferrer' >
35
35
{{ @field.inheritedFrom }} {{ @field.file }} :{{ @field.line }}
36
36
</a >
37
37
{{ else }}
38
38
Defined in
39
- <a href =" {{ github-link @model.project.id @model.projectVersion.version @field.file @field.line }} " target =" _blank" rel =" noopener noreferrer" >
39
+ <a href =' {{ github-link @model.project.id @model.projectVersion.version @field.file @field.line }} ' target =' _blank' rel =' noopener noreferrer' >
40
40
{{ @field.file }} :{{ @field.line }}
41
41
</a >
42
42
{{ /if }}
43
43
</p >
44
44
{{ #if @field.since }}
45
- <p class =" field-since" >
45
+ <p class =' field-since' >
46
46
Available since v{{ @field.since }}
47
47
</p >
48
48
{{ /if }}
49
- {{ #if (and (eq @field.static 1 ) (eq @field.itemtype " method" ) this.hasImportExample )}}
50
- <ImportExample @item ={{ concat " { " @field.name " } " }} @package ={{ @field.class }} />
49
+ {{ #if (and (eq @field.static 1 ) (eq @field.itemtype ' method' ) this.hasImportExample )}}
50
+ <ImportExample @item ={{ concat ' { ' @field.name ' } ' }} @package ={{ @field.class }} />
51
51
{{ /if }}
52
- <dl class =" parameters" >
52
+ <dl class =' parameters' >
53
53
{{ #each @field.params as |param |}}
54
- <div class =" parameter" >
54
+ <div class =' parameter' >
55
55
<dt >{{ param.name }} </dt >
56
- <dd class =" parameter-type" >{{ param.type }} </dd >
56
+ <dd class =' parameter-type' >{{ param.type }} </dd >
57
57
<dd >{{ param.description }} </dd >
58
58
{{ #if param.props }}
59
- <dl class =" parameters" >
59
+ <dl class =' parameters' >
60
60
{{ #each param.props as |prop |}}
61
- <div class =" prop" >
61
+ <div class =' prop' >
62
62
<dt >{{ prop.name }} </dt >
63
- <dd class =" parameter-type" >{{ prop.type }} </dd >
63
+ <dd class =' parameter-type' >{{ prop.type }} </dd >
64
64
<dd >{{ prop.description }} </dd >
65
65
</div >
66
66
{{ /each }}
69
69
</div >
70
70
{{ /each }}
71
71
{{ #if @field.return }}
72
- <div class =" return" >
72
+ <div class =' return' >
73
73
<dt >returns</dt >
74
- <dd class =" return-type" >{{ @field.return.type }} </dd >
74
+ <dd class =' return-type' >{{ @field.return.type }} </dd >
75
75
<dd >{{ @field.return.description }} </dd >
76
76
</div >
77
77
{{ /if }}
78
78
</dl >
79
79
{{ html-safe @field.description }}
80
- </section >
80
+ </section >
0 commit comments