This repository has been archived by the owner on Jun 18, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
433 lines (433 loc) · 16.3 KB
/
index.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
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
<!DOCTYPE html>
<html lang="en">
<head>
<title>Lino Tracker</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/pulse/bootstrap.min.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/highlightjs/[email protected]/build/styles/default.min.css">
<link rel="stylesheet" href="custom.css">
<link rel="shortcut icon" href="graphics/favicon.ico">
</head>
<body>
<header>
<nav class="navbar navbar-expand-lg navbar-dark bg-primary">
<a class="navbar-brand" href="# ">
<img src="graphics/logo.png" class="d-inline-block align-top" alt="Lino Tracker">
</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<form class="form-inline my-2 my-lg-0 col-sm-4" id="search">
<div class="col-sm-12">
<div class="input-group">
<input class="form-control form-control-sm" name="search" type="search" placeholder="Block number or username" data-title="Search for a block, transaction or username on the Lino blockchain" data-placement="right" data-container="nav" required="">
<div class="input-group-append">
<button class="btn btn-danger btn-sm" id="reset-search-btn" type="button"><span class="icon-cross"></span></button>
<button class="btn btn-warning btn-sm" type="submit"><span class="icon-search"></span> Search</button>
</div>
</div>
</div>
</form>
<ul class="navbar-nav mr-auto">
<li class="nav-item">
<a class="nav-link" href="#validators"><span class="icon-users"></span> Validators</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#apps"><span class="icon-user-tie"></span> Apps</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#infra-providers"><span class="icon-file-text2"></span> Infra providers</a>
</li>
<li class="nav-item">
<a class="nav-link" target="_blank" href="https://chrome.google.com/webstore/detail/lino-tracker/ikkanbbfhofmdnhamjepmgogibajfmhj"><img src="graphics/chrome-logo.svg"> Chrome</a>
</li>
</ul>
<form class="form-inline">
<div class="input-group input-group-sm">
<div class="input-group-prepend">
<button class="btn btn-warning btn-sm" id="node-address-modal-btn" type="button"><span class="icon-database"></span> Change</button>
</div>
</div>
</form>
</div>
</nav>
</header>
<article>
<main role="main" class="container-fluid">
<br>
<div class="row" id="main-page">
<div class="col-8">
<div id="recent-blocks-info">
<div class="row">
<div class="col">
<h5>Recent Blockchain Activity</h5>
</div>
<div class="col">
<button class="btn btn-secondary btn-sm float-right" id="change-work-real-time" type="button"><span class="icon-pause2"></span> Pause monitoring</button>
</div>
</div>
<div class="row">
<div class="col">
Displaying most recent irreversible blocks.
</div>
<div class="col" id="auto-clear">
<button class="btn btn-light btn-sm float-right" id="clear-real-time" type="button"><span class="icon-bin"></span> Clear table</button>
<div class="col-sm-3 float-right">
<input type="number" class="form-control form-control-sm" id="auto-clear-real-time-after" value="50" min="1">
</div>
<label for="auto-clear-real-time-after" class="float-right">Auto-clear old blocks after:</label>
</div>
</div>
<div class="row">
<div class="col">
<h5>Current Height <span class="badge badge-primary" id="head-block-number">...</span></h5>
</div>
</div>
</div>
<table class="table table-bordered table-hover table-sm" id="recent-blocks-table">
<thead>
<tr class="table-primary">
<th scope="col">Height</th>
<th scope="col">Time</th>
<th scope="col">Validators</th>
<th scope="col">Transactions</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
</div>
<div class="col-4">
<div class="table-responsive">
<table class="table table-bordered table-hover table-sm" id="global-time-table">
<thead>
<tr class="table-primary">
<th scope="col" colspan="2">Global Time</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
</div>
<div class="table-responsive">
<table class="table table-bordered table-hover table-sm" id="global-meta-table">
<thead>
<tr class="table-primary">
<th scope="col" colspan="2">Global Meta</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
</div>
<div class="table-responsive">
<table class="table table-bordered table-hover table-sm" id="get-consumption-meta-table">
<thead>
<tr class="table-primary">
<th scope="col" colspan="2">Consumption Meta</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
</div>
<div class="table-responsive">
<table class="table table-bordered table-hover table-sm" id="evaluate-of-content-value-param-table">
<thead>
<tr class="table-primary">
<th scope="col" colspan="2">Evaluate Of Content Value Param</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
</div>
<div class="table-responsive">
<table class="table table-bordered table-hover table-sm" id="global-allocation-param-table">
<thead>
<tr class="table-primary">
<th scope="col" colspan="2">Global Allocation Param</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
</div>
<div class="table-responsive">
<table class="table table-bordered table-hover table-sm" id="infra-internal-allocation-param-table">
<thead>
<tr class="table-primary">
<th scope="col" colspan="2">Infra Internal Allocation Param</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
</div>
<div class="table-responsive">
<table class="table table-bordered table-hover table-sm" id="developer-param-table">
<thead>
<tr class="table-primary">
<th scope="col" colspan="2">Developer Param</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
</div>
<div class="table-responsive">
<table class="table table-bordered table-hover table-sm" id="vote-param-table">
<thead>
<tr class="table-primary">
<th scope="col" colspan="2">Vote Param</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
</div>
<div class="table-responsive">
<table class="table table-bordered table-hover table-sm" id="proposal-param-table">
<thead>
<tr class="table-primary">
<th scope="col" colspan="2">Proposal Param</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
</div>
<div class="table-responsive">
<table class="table table-bordered table-hover table-sm" id="validator-param-table">
<thead>
<tr class="table-primary">
<th scope="col" colspan="2">Validator Param</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
</div>
<div class="table-responsive">
<table class="table table-bordered table-hover table-sm" id="coin-day-param-table">
<thead>
<tr class="table-primary">
<th scope="col" colspan="2">Coin Day Param</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
</div>
<div class="table-responsive">
<table class="table table-bordered table-hover table-sm" id="bandwidth-param-table">
<thead>
<tr class="table-primary">
<th scope="col" colspan="2">Bandwidth Param</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
</div>
<div class="table-responsive">
<table class="table table-bordered table-hover table-sm" id="account-param-table">
<thead>
<tr class="table-primary">
<th scope="col" colspan="2">Account Param</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
</div>
<div class="table-responsive">
<table class="table table-bordered table-hover table-sm" id="post-param-table">
<thead>
<tr class="table-primary">
<th scope="col" colspan="2">Post Param</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
</div>
<div class="table-responsive">
<table class="table table-bordered table-hover table-sm" id="reputation-param-table">
<thead>
<tr class="table-primary">
<th scope="col" colspan="2">Reputation Param</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
</div>
</div>
</div>
<div class="row">
<div class="col">
<div id="about-block-page">
<h5>Height <span class="badge badge-info" id="about-block-height">...</span></h5>
<h5>Time <span class="badge badge-info" id="about-block-time">...</span></h5>
<h5>Validators count <span class="badge badge-info" id="about-block-validators-count">...</span></h5>
<h5>Transactions count <span class="badge badge-info" id="about-block-transactions-count">...</span></h5>
<table class="table table-bordered table-hover table-sm" id="about-block-table">
<tbody>
</tbody>
</table>
<ul class="nav nav-tabs" id="myTab" role="tablist">
<li class="nav-item">
<a class="nav-link active" id="transactions-tab" data-toggle="tab" href="#transactions" role="tab" aria-controls="transactions" aria-selected="true">Transactions</a>
</li>
<li class="nav-item">
<a class="nav-link" id="json-tab" data-toggle="tab" href="#json" href="#json" role="tab" aria-controls="json" aria-selected="false">JSON</a>
</li>
</ul>
<div class="tab-content" id="myTabContent">
<div class="tab-pane fade show active" id="transactions" role="tabpanel" aria-labelledby="transactions-tab">
<table class="table table-bordered table-hover table-sm" id="about-block-transactions-table">
<tbody>
</tbody>
</table>
</div>
<div class="tab-pane fade" id="json" role="tabpanel" aria-labelledby="json-tab">
<pre><code class="json" id="about-block-code"></code></pre>
</div>
</div>
</div>
<div id="validators-page">
<div class="row">
<div class="col">
<h5>Validators</h5>
</div>
</div>
<table class="table table-bordered table-hover table-sm" id="validators-table">
<thead>
<tr class="table-primary">
<th scope="col">Name</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
</div>
<div id="apps-page">
<div class="row">
<div class="col">
<h5>Apps</h5>
</div>
</div>
<table class="table table-bordered table-hover table-sm" id="apps-table">
<thead>
<tr class="table-primary">
<th scope="col">Username</th>
<th scope="col">Website</th>
<th scope="col">Deposit</th>
<th scope="col">Consumption</th>
<th scope="col">Description</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
</div>
<div id="infra-providers-page">
<div class="row">
<div class="col">
<h5>Infra Providers</h5>
</div>
</div>
<table class="table table-bordered table-hover table-sm" id="infra-providers-table">
<thead>
<tr class="table-primary">
<th scope="col">Provider</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
</div>
<div id="about-account-page">
<div class="card">
<div class="row">
<div class="col-7">
<div class="row">
<div class="col-7">
<h5 class="card-text">Created <span class="badge badge-dark" data="created_at"></span></h5>
<h5 class="card-text">Last activity <span class="badge badge-dark" data="last_activity_at"></span></h5>
<h5 class="card-text">Last post <span class="badge badge-dark" data="last_post_at"></span></h5>
<h5 class="card-text">Last report or upvote <span class="badge badge-dark" data="last_report_or_upvote_at"></span></h5>
<h5 class="card-text">Sequence <span class="badge badge-dark" data="sequence"></span></h5>
<h5 class="card-text">Transaction capacity <span class="badge badge-dark" data="transaction_capacity"></span></h5>
</div>
<div class="col-5">
<h5 class="card-text">Coin day <span class="badge badge-dark" data="coin_day"></span></h5>
<h5 class="card-text">Number of reward <span class="badge badge-dark" data="number_of_reward"></span></h5>
<h5 class="card-text">Number of transaction <span class="badge badge-dark" data="number_of_transaction"></span></h5>
<h5 class="card-text">Saving <span class="badge badge-dark" data="saving"></span></h5>
<h5 class="card-text">Frozen money list <span class="badge badge-dark" data="frozen_money_list"></span></h5>
</div>
</div>
</div>
<div class="col-5">
<table class="table table-bordered table-hover table-sm">
<thead>
<tr><th colspan="2">Public keys:</th></tr>
</thead>
<tbody>
<tr><td>App</td><td><span data="app_key"></span></td></tr>
<tr><td>Reset</td><td><span data="reset_key"></span></td></tr>
<tr><td>Transaction</td><td><span data="transaction_key"></span></td></tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
<br>
</main>
</article>
<footer class="footer">
<div class="container-fluid">
<span class="text-muted">Lino Tracker @ 2018</span>
</div>
</footer>
<div class="modal" id="modal-node-address" tabindex="-1" role="dialog">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title">Node address</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<form id="node-address">
<div class="input-group">
<input class="form-control" name="node-address" type="url" placeholder="https://fullnode.linovalidator.io/" value="https://fullnode.linovalidator.io/" required="">
<button class="btn btn-danger" id="reset-node-address" type="button"><span class="icon-spinner11"></span></button>
<button class="btn btn-success" type="submit"><span class="icon-database"></span> Change</button>
</div>
</form>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<button class="btn btn-success" id="back-to-top"><span class="icon-circle-up"></span> Back to top</button>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/lib/lino-js.umd.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/bootstrap-native-v4.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/sweetalert2.all.min.js"></script>
<script src="https://cdn.jsdelivr.net/gh/highlightjs/[email protected]/build/highlight.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/js/lib/beautify.js"></script>
<script src="utils.js"></script>
<script src="app.js?201811131630"></script>
</body>
</html>