/
injectable.hbs
116 lines (102 loc) · 3.92 KB
/
injectable.hbs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
<ol class="breadcrumb">
<li class="breadcrumb-item">{{t "injectables" }}</li>
<li class="breadcrumb-item" {{#if injectable.deprecated}}
class="breadcrumb-item deprecated-name"
{{/if}}>{{injectable.name}}</li>
</ol>
<ul class="nav nav-tabs" role="tablist">
{{#each navTabs}}
<li class="nav-item">
<a href="{{this.href}}"
class="nav-link"
{{#compare @index "===" 0}}class="nav-link active"{{/compare}}
role="tab" id="{{this.id}}-tab" data-bs-toggle="tab" data-link="{{this.data-link}}">{{t this.label}}</a>
</li>
{{/each}}
</ul>
<div class="tab-content">
{{#isTabEnabled navTabs "info"}}
<div class="tab-pane fade {{#isInitialTab navTabs "info"}}active in{{/isInitialTab}}" id="info">
<p class="comment">
<h3>{{t "file" }}</h3>
</p>
<p class="comment">
<code>{{injectable.file}}</code>
</p>
{{#if injectable.deprecated}}
<p class="comment">
<h3 class="deprecated">{{t "deprecated" }}</h3>
</p>
<p class="comment">
{{{ injectable.deprecationMessage }}}
</p>
{{/if}}
{{#if injectable.description}}
<p class="comment">
<h3>{{t "description" }}</h3>
</p>
<p class="comment">
{{{parseDescription injectable.description depth}}}
</p>
{{/if}}
{{#if injectable.extends}}
<p class="comment">
<h3>{{t "extends" }}</h3>
</p>
<p class="comment">
{{#each injectable.extends}}
{{> link-type type=this }}
{{/each}}
</p>
{{/if}}
{{#if injectable.jsdoctags}}
<p class="comment">
<h3>{{t "example" }}</h3>
</p>
<div class="io-description">
{{#jsdoc-code-example injectable.jsdoctags}}
{{#each tags}}
<div>
{{{comment}}}
</div>
{{/each}}
{{/jsdoc-code-example}}
</div>
{{/if}}
{{#orLength injectable.properties injectable.methods injectable.accessors}}
{{> index methods=injectable.methods properties=injectable.properties accessors=injectable.accessors}}
{{/orLength}}
{{#if injectable.constructorObj}}
{{> block-constructor constructor=injectable.constructorObj file=injectable.file }}
{{/if}}
{{#if injectable.methods}}
{{> block-method methods=injectable.methods file=injectable.file }}
{{/if}}
{{#if injectable.properties}}
{{> block-property properties=injectable.properties file=injectable.file }}
{{/if}}
{{#if injectable.accessors}}
{{> block-accessors accessors=injectable.accessors file=injectable.file }}
{{/if}}
</div>
{{/isTabEnabled}}
{{#isTabEnabled navTabs "readme"}}
<div class="tab-pane fade {{#isInitialTab navTabs "readme"}}active in{{/isInitialTab}}" id="readme">
<p>{{{injectable.readme}}}</p>
</div>
{{/isTabEnabled}}
{{#isTabEnabled navTabs "source"}}
<div class="tab-pane fade {{#isInitialTab navTabs "source"}}active in{{/isInitialTab}} tab-source-code" id="source">
<pre class="line-numbers compodoc-sourcecode"><code class="language-typescript">{{injectable.sourceCode}}</code></pre>
</div>
{{/isTabEnabled}}
{{#isTabEnabled navTabs "example"}}
<div class="tab-pane fade {{#isInitialTab navTabs "example"}}active in{{/isInitialTab}}" id="example">
{{#each injectable.exampleUrls}}
<iframe class="exampleContainer" src="{{this}}">
<p>{{t "no-iframes" }}</p>
</iframe>
{{/each}}
</div>
{{/isTabEnabled}}
</div>