This repository has been archived by the owner on Jan 20, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 29
/
dashboard.html
481 lines (455 loc) · 22.6 KB
/
dashboard.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
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8"/>
<link rel="apple-touch-icon" sizes="76x76" href="assets/img/apple-icon.png">
<link rel="icon" type="image/png" sizes="96x96" href="assets/img/favicon.png">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
<title>miningcore-ui</title>
<meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0' name='viewport"/>
<meta name="viewport" content="width=device-width"/>
<!-- Bootstrap core CSS -->
<link href="assets/css/bootstrap.min.css" rel="stylesheet"/>
<!-- Animation library for notifications -->
<link href="assets/css/animate.min.css" rel="stylesheet"/>
<!-- Paper Dashboard core CSS -->
<link href="assets/css/paper-dashboard.css" rel="stylesheet"/>
<!-- Fonts and icons -->
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/latest/css/font-awesome.min.css" rel="stylesheet"/>
<link href="https://fonts.googleapis.com/css?family=Muli:400,300" rel="stylesheet"/>
<link href="assets/css/themify-icons.css" rel="stylesheet"/>
</head>
<body>
<div class="wrapper">
<div class="sidebar" data-background-color="white" data-active-color="danger">
<div class="sidebar-wrapper">
<!--<div class="logo">
<a href="http://www.creative-tim.com" class="simple-text">
miningcore-ui
</a>
</div>-->
<ul class="nav">
<li>
<a href="stats.html">
<i class="ti-stats-up"></i>
<p>Stats</p>
</a>
</li>
<li class="active">
<a href="dashboard.html">
<i class="ti-dashboard"></i>
<p>Dashboard</p>
</a>
</li>
<li>
<a href="miners.html">
<i class="ti-user"></i>
<p>Miners</p>
</a>
</li>
<li>
<a href="blocks.html">
<i class="ti-layers"></i>
<p>Blocks</p>
</a>
</li>
<li>
<a href="payments.html">
<i class="ti-wallet"></i>
<p>Payments</p>
</a>
</li>
<li>
<a href="connect.html">
<i class="ti-direction"></i>
<p>Connect</p>
</a>
</li>
<li>
<a href="alerts.html">
<i class="ti-bell"></i>
<p>Alerts</p>
</a>
</li>
</ul>
</div>
</div>
<div class="main-panel">
<nav class="navbar navbar-default">
<div class="container-fluid">
<div class="navbar-header">
<button type="button" class="navbar-toggle">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar bar1"></span>
<span class="icon-bar bar2"></span>
<span class="icon-bar bar3"></span>
</button>
<a class="navbar-brand" href="dashboard.html">Dashboard</a>
</div>
<div class="collapse navbar-collapse">
<ul class="nav navbar-nav navbar-right">
<li class="dropdown" id="poolList">
<a href="javascript:void(0)" class="dropdown-toggle" id="currentPool">
<i class="ti-money"></i>
<p></p>
</a>
</li>
<!--<li>
<a href="#">
<i class="ti-settings"></i>
<p>Settings</p>
</a>
</li>-->
</ul>
</div>
</div>
</nav>
<div class="content">
<div class="container-fluid">
<div class="row">
<div class="col-lg-12 col-sm-12">
<div class="card card-user">
<div class="image">
<img src="assets/img/background.jpg" alt="..."/>
</div>
<div class="content">
<div class="author">
<img class="avatar border-white" src="assets/img/faces/face-0.jpg">
<h4 class="title">Hey, miner!<!--<br>
<a href="#"><small>@chetfaker</small></a>
--></h4>
</div>
</div>
<hr>
<div class="content">
<form>
<div class="row">
<div class="col-md-12">
<div class="form-group">
<label>Wallet Address</label>
<input type="text" id="walletAddress" class="form-control border-input"
placeholder="Wallet Address"/>
</div>
</div>
</div>
<div class="text-center">
<button type="submit" class="btn btn-info btn-fill btn-wd">Load</button>
</div>
<div class="clearfix"></div>
</form>
</div>
</div>
</div>
<div class="col-lg-6 col-sm-6">
<div class="card">
<div class="content">
<div class="row">
<div class="col-xs-2">
<div class="icon-big icon-success">
<i class="ti-receipt"></i>
</div>
</div>
<div class="col-xs-10">
<div class="numbers">
<p>Pending Shares</p>
<div id="pendingShares"></div>
</div>
</div>
</div>
<div class="footer">
<hr/>
<div class="stats">
<i class="ti-reload"></i> Update every minute
</div>
</div>
</div>
</div>
</div>
<div class="col-lg-6 col-sm-6">
<div class="card">
<div class="content">
<div class="row">
<div class="col-xs-2">
<div class="icon-big icon-info">
<i class="ti-pulse"></i>
</div>
</div>
<div class="col-xs-10">
<div class="numbers">
<p>Miner's Hash Rate</p>
<div id="minerHashRate"></div>
</div>
</div>
</div>
<div class="footer">
<hr/>
<div class="stats">
<i class="ti-reload"></i> Update every minute
</div>
</div>
</div>
</div>
</div>
<div class="col-lg-6 col-sm-6">
<div class="card">
<div class="content">
<div class="row">
<div class="col-xs-2">
<div class="icon-big icon-warning">
<i class="ti-wallet"></i>
</div>
</div>
<div class="col-xs-10">
<div class="numbers">
<p>Pending Balance</p>
<div id="pendingBalance"></div>
</div>
</div>
</div>
<div class="footer">
<hr/>
<div class="stats">
<i class="ti-reload"></i> Update every minute
</div>
</div>
</div>
</div>
</div>
<div class="col-lg-6 col-sm-6">
<div class="card">
<div class="content">
<div class="row">
<div class="col-xs-2">
<div class="icon-big icon-info">
<i class="ti-wallet"></i>
</div>
</div>
<div class="col-xs-10">
<div class="numbers">
<p>Paid Balance</p>
<div id="paidBalance"></div>
</div>
</div>
</div>
<div class="footer">
<hr/>
<div class="stats">
<i class="ti-reload"></i> Update every minute
</div>
</div>
</div>
</div>
</div>
<div class="col-lg-6 col-sm-6">
<div class="card">
<div class="content">
<div class="row">
<div class="col-xs-2">
<div class="icon-big icon-success">
<i class="ti-wallet"></i>
</div>
</div>
<div class="col-xs-10">
<div class="numbers">
<p>Lifetime Balance</p>
<div id="lifetimeBalance"></div>
</div>
</div>
</div>
<div class="footer">
<hr/>
<div class="stats">
<i class="ti-reload"></i> Update every minute
</div>
</div>
</div>
</div>
</div>
<div class="col-lg-12 col-sm-12">
<div class="card">
<div class="header">
<h4 class="title">Workers</h4>
<p class="category">Last 1 minute</p>
</div>
<div class="content table-responsive table-full-width">
<table id="workerList" class="table table-striped"></table>
</div>
</div>
</div>
<div class="col-lg-12 col-sm-12">
<div class="card">
<div class="header">
<h4 class="title">Hash Rate</h4>
<p class="category">Last 24 hours</p>
</div>
<div class="content">
<div id="chartDashboardHashRate" class="ct-chart"></div>
<div class="footer">
<hr>
<div class="stats">
<i class="ti-reload"></i> Update every minute
</div>
</div>
</div>
</div>
</div>
<!--<div class="col-lg-8 col-md-8">
<div class="card">
<div class="header">
<h4 class="title">Edit Profile</h4>
</div>
<div class="content">
<form>
<div class="row">
<div class="col-md-5">
<div class="form-group">
<label>Company</label>
<input type="text" class="form-control border-input" disabled placeholder="Company" value="Creative Code Inc.">
</div>
</div>
<div class="col-md-3">
<div class="form-group">
<label>Username</label>
<input type="text" class="form-control border-input" placeholder="Username" value="michael23">
</div>
</div>
<div class="col-md-4">
<div class="form-group">
<label for="exampleInputEmail1">Email address</label>
<input type="email" class="form-control border-input" placeholder="Email">
</div>
</div>
</div>
<div class="row">
<div class="col-md-6">
<div class="form-group">
<label>First Name</label>
<input type="text" class="form-control border-input" placeholder="Company" value="Chet">
</div>
</div>
<div class="col-md-6">
<div class="form-group">
<label>Last Name</label>
<input type="text" class="form-control border-input" placeholder="Last Name" value="Faker">
</div>
</div>
</div>
<div class="row">
<div class="col-md-12">
<div class="form-group">
<label>Address</label>
<input type="text" class="form-control border-input" placeholder="Home Address" value="Melbourne, Australia">
</div>
</div>
</div>
<div class="row">
<div class="col-md-4">
<div class="form-group">
<label>City</label>
<input type="text" class="form-control border-input" placeholder="City" value="Melbourne">
</div>
</div>
<div class="col-md-4">
<div class="form-group">
<label>Country</label>
<input type="text" class="form-control border-input" placeholder="Country" value="Australia">
</div>
</div>
<div class="col-md-4">
<div class="form-group">
<label>Postal Code</label>
<input type="number" class="form-control border-input" placeholder="ZIP Code">
</div>
</div>
</div>
<div class="row">
<div class="col-md-12">
<div class="form-group">
<label>About Me</label>
<textarea rows="5" class="form-control border-input" placeholder="Here can be your description" value="Mike">Oh so, your weak rhyme
You doubt I'll bother, reading into it
I'll probably won't, left to my own devices
But that's the difference in our opinions.</textarea>
</div>
</div>
</div>
<div class="text-center">
<button type="submit" class="btn btn-info btn-fill btn-wd">Update Profile</button>
</div>
<div class="clearfix"></div>
</form>
</div>
</div>
</div>-->
</div>
</div>
</div>
<footer class="footer">
<div class="container-fluid">
<nav class="pull-left">
<ul>
<li>
<a href="http://www.creative-tim.com/license">
Theme Licenses
</a>
</li>
</ul>
</nav>
<div class="copyright pull-right">
©
<script>document.write(new Date().getFullYear())</script>
, theme made with <i class="fa fa-heart heart"></i> by <a href="http://www.creative-tim.com">Creative
Tim</a>
</div>
</div>
</footer>
</div>
</div>
</body>
<!-- Core JS Files -->
<script src="assets/js/jquery-1.10.2.js" type="text/javascript"></script>
<script src="assets/js/bootstrap.min.js" type="text/javascript"></script>
<!-- Checkbox, Radio & Switch Plugins -->
<script src="assets/js/bootstrap-checkbox-radio.js"></script>
<!-- Charts Plugin -->
<script src="assets/js/chartist.min.js"></script>
<!-- Notifications Plugin -->
<script src="assets/js/bootstrap-notify.js"></script>
<!-- Google Maps Plugin -->
<script type="text/javascript" src="https://maps.googleapis.com/maps/api/js"></script>
<!-- Paper Dashboard Core javascript and methods -->
<script src="assets/js/paper-dashboard.js"></script>
<script src="assets/js/miningcore-ui.js"></script>
<script type="text/javascript">
$(document).ready(function () {
var renderCallback = $.Callbacks();
renderCallback.add(function () {
var walletAddress = '#walletAddress';
function render() {
clearInterval();
setInterval(function load() {
loadDashboardData($(walletAddress).val());
loadDashboardWorkerList($(walletAddress).val());
loadDashboardChart($(walletAddress).val());
return load;
}(), 60000);
}
$(walletAddress).on('input', function () {
// idea: only submit if the value is a valid wallet address
//render();
});
$('button').on('click', function (event) {
if ($(walletAddress).val().length > 0) {
localStorage.setItem(currentPool + "-walletAddress", $(walletAddress).val());
render();
}
event.preventDefault();
});
if (localStorage[currentPool + '-walletAddress']) {
$(walletAddress).val(localStorage[currentPool + '-walletAddress']);
}
});
loadPools(renderCallback);
});
</script>
</html>