forked from allinurl/goaccess
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tpls.html
211 lines (203 loc) · 7.42 KB
/
tpls.html
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
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
<!-- TPL General -->
<script id="tpl-general" type="text/template">
<h3 class="hidden-xs"><i class="fa fa-angle-double-right"></i> {{head}}<br><small>{{desc}}</small></h3>
<h5 class="visible-xs hidden-sm hidden-md hidden-lg"><i class="fa fa-angle-double-right"></i> {{head}}<br><small>{{desc}}</small></h5>
<div class="wrap-general-items"></div>
</script>
<!-- TPL General Items -->
<script id="tpl-general-items" type="text/template">
<div class="col-md-2">
<div class="grid-module {{#className}}{{className}}{{/className}}{{^className}}gray{{/className}}">
<div class="col-title">
<i class="fa fa-bar-chart"></i> {{#label}}{{label}}{{/label}}
</div>
<h3 class="" style="padding-top: 0;">{{value}}</h3>
</div>
</div>
</script>
<!-- TPL Panel Table -->
<script id="tpl-table-row" type="text/template">
{{#rows}}
<tr class="{{#className}}{{className}}{{/className}} {{#hasSubItems}}{{#items}}expandable{{/items}}{{/hasSubItems}}" {{#idx}}data-pid="{{idx}}"{{/idx}} data-panel="{{panel}}" {{#key}}data-key="{{key}}"{{/key}}>
{{#hasSubItems}}
<td class="row-expandable text-center {{#items}}clickable{{/items}}">
{{#items}}<i class="fa {{#expanded}}fa-caret-down{{/expanded}}{{^expanded}}fa fa-caret-right{{/expanded}}"></i>{{/items}}
{{^items}}<i></i>{{/items}}
</td>
{{/hasSubItems}}
<td class="row-idx text-right">
{{#idx}}{{idx}}{{/idx}}
</td>
{{#cells}}
<td class="{{className}}" {{#colspan}}colspan="{{colspan}}"{{/colspan}}>
<span class="value">{{value}}</span>{{#percent}}<span class="percent"> ({{percent}})</span>{{/percent}}
</td>
{{/cells}}
</tr>
{{/rows}}
</script>
<!-- TPL Panel Table Meta -->
<script id="tpl-table-row-meta" type="text/template">
{{#row}}
<tr>
{{#hasSubItems}}
<td class=""></td>
{{/hasSubItems}}
<td class=""></td>
{{#cells}}
<td class="{{className}}" {{#colspan}}colspan="{{colspan}}"{{/colspan}}>
{{#value}}
<h4 class="value"><span title="{{title}}">{{value}}</span>{{#max}}<br><small>Max: {{max}}</small>{{/max}}{{#min}}<br><small>Min: {{min}}</small>{{/min}}</h4>
{{/value}}
</td>
{{/cells}}
</tr>
{{/row}}
</script>
<!-- TPL Table thead -->
<script id="tpl-table-thead" type="text/template">
<tr>
{{#hasSubItems}}
<th></th>
{{/hasSubItems}}
<th>#</th>
{{#items}}
<th class="{{valueType}} {{#key}}sortable{{/key}}" data-key="{{key}}" {{#sort}}data-order="{{#asc}}asc{{/asc}}{{^asc}}desc{{/asc}}"{{/sort}}>
{{label}} <i class="fa fa-{{^sort}}sort{{/sort}}{{#sort}}{{#asc}}caret-up{{/asc}}{{^asc}}caret-down{{/asc}}{{/sort}}"></i>
</th>
{{/items}}
</tr>
</script>
<!-- TPL Panel -->
<script id="tpl-panel" type="text/template">
<div class="row">
<div class="col-md-12">
<div class="form-group clearfix panel-header">
<h3 class="pull-left hidden-xs" id="{{id}}"><i class="fa fa-angle-double-right"></i> {{head}}<br><small>{{desc}}</small></h3>
<h5 class="pull-left visible-xs hidden-sm hidden-md hidden-lg" id="{{id}}"><i class="fa fa-angle-double-right"></i> {{head}}<br><small>{{desc}}</small></h5>
{{#plot.length}}
<div class="panel-plot-wrap">
<div class="dropdown">
<button class="btn btn-default btn-sm dropdown-toggle" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">
Plot Options <span class="fa fa-caret-down"></span>
</button>
<ul class="dropdown-menu dropdown-menu-right">
<li class="dropdown-header">Chart Type</li>
<li><a href="javascript:void(0);" data-panel="{{id}}" data-chart-type="area-spline">Area Spline</a></li>
<li><a href="javascript:void(0);" data-panel="{{id}}" data-chart-type="bar">Bar</a></li>
<li class="dropdown-header">Plot Metric</li>
{{#plot}}
<li><a href="javascript:void(0);" data-panel="{{id}}" data-plot="{{className}}" class="panel-plot-{{className}}">{{label}}</a></li>
{{/plot}}
</ul>
</div>
</div>
{{/plot.length}}
</div>
</div>
</div>
{{#plot}}
<div class="row">
<div class="col-md-12">
<div id="chart-{{id}}" class="chart-wrap"></div>
</div>
</div>
{{/plot}}
{{#table}}
<div class="row clearfix">
<div class="col-md-12">
<div class="table-responsive">
<table data-panel="{{id}}" class="table table-borderless table-hover table-{{id}}">
<colgroup>
{{#hasSubItems}}
<col style="width: 2%;"> <!-- right-caret -->
{{/hasSubItems}}
<col style="width: 3%;"> <!-- row # -->
{{#items}}
<col style="width:{{colWidth}}">
{{/items}}
</colgroup>
<thead>
</thead>
<tbody class="tbody-meta">
</tbody>
<tbody class="tbody-data">
</tbody>
</table>
</div>
<ul class="pagination pagination-sm pull-left">
<li class="disabled">
<a class="panel-prev" href="javascript:void(0);" aria-label="Previous" data-panel="{{id}}">
<i class="fa fa-chevron-left"></i>
</a>
</li>
<li>
<a class="panel-next" href="javascript:void(0);" aria-label="Next" data-panel="{{id}}">
<i class="fa fa-chevron-right"></i>
</a>
</li>
</ul>
</div>
</div>
{{/table}}
</script>
<script id="tpl-nav-wrap" type="text/template">
<div class="nav-bars fa fa-bars"></div>
<div class="nav-gears fa fa-cog"></div>
<div class="nav-ws-status fa fa-circle"></div>
<div class="nav-list"></div>
<div class="powered">by <a href="https://goaccess.io/">GoAccess</a> and <a href="http://gwsocket.io/">GWSocket</a></div>
</script>
<script id="tpl-nav-menu" type="text/template">
<h3>Panels</h3>
<ul>
<li {{#overall}}class="active"{{/overall}}><a href="#"><i class="fa fa-bar-chart"></i> Overall Analyzed Requests</a></li>
{{#nav}}
<li {{#current}}class="active"{{/current}}><a href="#{{key}}"><i class="fa fa-{{icon}}"></i> {{head}}</a></li>
{{/nav}}
</ul>
</script>
<script id="tpl-nav-opts" type="text/template">
<h3>Theme Options</h3>
<ul>
<li {{#darkGray}}class="active"{{/darkGray}}>
<a href="javascript:void(0);" class="theme-dark-gray"><i class="fa fa-circle{{^darkGray}}-o{{/darkGray}}"></i> Dark Gray</a>
</li>
<li {{#bright}}class="active"{{/bright}}>
<a href="javascript:void(0);" class="theme-bright"><i class="fa fa-circle{{^bright}}-o{{/bright}}"></i> Bright</a>
</li>
<li {{#darkBlue}}class="active"{{/darkBlue}}>
<a href="javascript:void(0);" class="theme-dark-blue"><i class="fa fa-circle{{^darkBlue}}-o{{/darkBlue}}"></i> Dark Blue</a>
</li>
</ul>
<h3>Panels Per Page</h3>
<div class="perpage-wrap">
<a {{#perPage5}}class="active"{{/perPage5}} href="javascript:void(0);" data-perpage="5">5</a> |
<a {{#perPage10}}class="active"{{/perPage10}} href="javascript:void(0);" data-perpage="10">10</a> |
<a {{#perPage15}}class="active"{{/perPage15}} href="javascript:void(0);" data-perpage="15">15</a></li> |
<a {{#perPage20}}class="active"{{/perPage20}} href="javascript:void(0);" data-perpage="20">20</a></li>
</div>
<h3>File Options</h3>
<ul>
<li><a href="javascript:void(0);" class="export-json"><i class="fa fa-code"></i> Export as JSON</a></li>
</ul>
</script>
<script id="tpl-chart-tooltip" type="text/template">
<table class="chart-tooltip">
<tbody>
<tr>
<th colspan="2">{{data.0}}</th>
</tr>
<tr>
<td class="name"><span style="background-color:#447FB3"></span>hits</td>
<td class="value">{{data.1}}</td>
</tr>
{{#data.2}}
<tr>
<td class="name"><span style="background-color:#FF6854"></span>visitors</td>
<td class="value">{{data.2}}</td>
</tr>
{{/data.2}}
</tbody>
</table>
</script>