-
Notifications
You must be signed in to change notification settings - Fork 0
/
view.html
464 lines (441 loc) · 23.7 KB
/
view.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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
<link rel="stylesheet" type="text/css" href="style.css">
<!-- Optional JavaScript -->
<!-- jQuery first, then Popper.js, then Bootstrap JS -->
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
<script src="html2canvas.js" type="text/javascript"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js" integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous"></script>
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.7.2/css/all.css" integrity="sha384-fnmOCqbTlWIlj8LyTjo7mOUStjsKC4pOpQbqyi7RrhN7udi9RwhKkMHpvLbHG9Sr" crossorigin="anonymous">
<title>Hello, world!</title>
<script src="https://code.highcharts.com/highcharts.js"></script>
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.7.2/css/all.css" integrity="sha384-fnmOCqbTlWIlj8LyTjo7mOUStjsKC4pOpQbqyi7RrhN7udi9RwhKkMHpvLbHG9Sr" crossorigin="anonymous">
</head>
<body class="container">
<header class="row py-md-2">
<div class="col-sm-8 offset-md-2">
<div class="btn-group">
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<span class="icon-chart"></span>리소스 종합 보고서
</button>
<div class="dropdown-menu large-dropdown">
<div class="d-inline-block">
<h5 class="font-weight-normal" style="color: #909090">스마트 보고서</h5>
<a class="dropdown-item" href="#">LC SM 종합 보고서 </a>
<a class="dropdown-item" href="#">탐지패턴 종합 보고서 </a>
<a class="dropdown-item" href="#">탐지패턴 상세 보고서 </a>
<a class="dropdown-item" href="#">백업 관리 보고서 </a>
<a class="dropdown-item" href="#">스마트 보고서명을 보여줍니다다</a>
</div>
<div class="d-inline-block">
<h5 class="font-weight-normal" style="color: #909090">사용자 보고서</h5>
<a class="dropdown-item" href="#">Jade 보고서 (1) </a>
<a class="dropdown-item" href="#">Jade 보고서 (2)(2)(2)(2)(2)(2)(2)...</a>
</div>
</div>
</div>
<div class="btn-group">
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<span class="icon-chart"></span>일일 보고서
</button>
<div class="dropdown-menu">
<a class="dropdown-item" href="#">일일 보고서 </a>
<a class="dropdown-item" href="#">주간보고서</a>
<a class="dropdown-item" href="#"> 월간보고서</a>
</div>
</div>
<div class="btn-group">
<button type="button" class="btn btn btn-default btn-calendar" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<span class="icon-calendar"></span>2018.06.19
</button>
</div>
</div>
</header>
<main class="row" id="main">
<div class="col-12 col-md-3 col-xl-2 sidebar sb-right">
<button class="btn btn-default text-blue mb-md-2 create-action">
<span class="icon-create" id="icon-create"></span> Create
</button>
<button class="btn btn-default text-blue mb-md-2 cancel-action">
<span class="icon-cancel"></span> Cancel
</button>
<button class="btn btn-default text-blue mb-md-2 dowload-action">
<span class="icon-download"></span>
</button>
<button class="btn btn-default text-blue mb-md-2 save-action">
<span class="icon-save"></span> Save
</button>
<button class="btn btn-default text-blue mb-md-2 reserve-action">
<span class="icon-reserve"></span> Reserv.
</button>
</div>
<div class="d-none d-xl-block col-xl-2 sidebar sb-left">
<!-- <div class="minimap"></div>-->
</div>
<div class="col-12 col-md-9 col-xl-8">
<div class="main-content" id="main-content">
<div class="card decor position-relative" id="card-1">
<div class="action">
<a data-card-link="card-1" class="btn btn-xs edit-action" data-toggle="modal" data-target="#confirmDidalog" href="#">
<i class="fas fa-minus-circle"></i>
</a>
<a class="comment-icon" data-toggle="collapse" href="#t-1" role="button" aria-expanded="false" aria-controls="collapseExample">
<i class="fas fa-comments"></i>
</a>
</div>
<div class="card-body">
<div class="card-title">
<h5>파티션별 디스크 사용량<span>LogCenter SM에서 수집한 로그에 대한 정보를 확인할 수 있습니다.</span></h5>
</div>
<div class="row card-text">
<div class="col-12 col-sm-6">
<table class="table table-bordered">
<thead>
<tr class="text-center">
<th scope="col">구분</th>
<th scope="col">DISK 사용량</th>
</tr>
</thead>
<tbody class="text-center">
<tr>
<th scope="row">수집로그</th>
<td colspan="2">230MB</td>
</tr>
<tr>
<th scope="row">백업로그</th>
<td>166MB</td>
</tr>
<tr>
<th scope="row">분석로그</th>
<td>156MB</td>
</tr>
</tbody>
</table>
<div class="row font-sm">
<div class="col-md-6">
<div class="font-sm">수집로그 및 백업로그 총 용량 <span>3GB</span></div>
</div>
<div class="col-md-6">
<div class="font-sm">분석로그 총 용량<span>2GB</span></div>
</div>
</div>
</div>
<div class="col-12 col-sm-6">
<div id="barchart"></div>
</div>
</div>
<div class="col-12 col-sm-12 collapse" id="t-1">
<div class="form-group">
<div class="btn-action">
<i class="fas fa-check px-md-2"></i>
<i class="fas fa-times px-md-2"></i>
</div>
<textarea class="form-control" id="exampleFormControlTextarea1" rows="3"></textarea>
</div>
</div>
</div>
</div>
<div class="card decor" id="card-2">
<div class="action">
<a data-card-link="card-2" class="btn btn-xs edit-action" data-toggle="modal" data-target="#confirmDidalog" href="#">
<i class="fas fa-minus-circle"></i>
</a>
<a class="comment-icon" data-toggle="collapse" href="#t-2" role="button" aria-expanded="false" aria-controls="collapseExample">
<i class="fas fa-comments"></i>
</a>
</div>
<div class="card-header">
<h3>수집 정보<span>02.</span></h3>
</div>
<div class="card-body">
<div class="card-title">
<h5>수집 로그 정보<span>LogCenter SM에서 수집한 로그에 대한 정보를 확인할 수 있습니다.</span></h5>
</div>
<div class="card-text row">
<div class="col-12 col-sm-6">
<table class="table table-bordered">
<thead>
<tr>
<th scope="col">구분</th>
<th scope="col">전체수집 로그정보</th>
</tr>
</thead>
<tbody>
<tr>
<th scope="row">전체수집 로그정보</th>
<td class="text-center">1466MB</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<div class="card-body">
<div class="card-title"><h5>호스트별 로그수집량 TOP5<span>호스트 별 로그 수집량을 비교하여 추출한 Top5 정보를 확인할 수 있습니다.</span></h5></div>
<div class="card-text row">
<div class="col-12 col-sm-6">
<table class="table table-bordered">
<thead>
<tr>
<th scope="col">순위</th>
<th scope="col">호스트 IP (호스트명)</th>
<th scope="col">수집량</th>
</tr>
</thead>
<tbody>
<tr>
<th scope="row" >1</th>
<td>192.168.1.1 (Firewalljjkh…)</td>
<td class="text-right" colspan="2">166MB</td>
</tr>
<tr>
<th scope="row">2</th>
<td>192.168.1.3 (IPS1)</td>
<td class="text-right" colspan="2">150MB</td>
</tr>
<tr>
<th scope="row">3</th>
<td>192.168.1.15 (DRM1)</td>
<td class="text-right" colspan="2">100MB</td>
</tr>
<tr>
<th scope="row">4</th>
<td>192.168.1.15 (TESTsscg...)</td>
<td class="text-right" colspan="2">85MB</td>
</tr>
<tr>
<th scope="row">5</th>
<td>192.168.1.15 (DBMSdfdf...)</td>
<td class="text-right" colspan="2">45MB</td>
</tr>
</tbody>
</table>
</div>
<div class="col-12 col-sm-6">
<div id="piechart"></div>
</div>
<div class="col-12 col-sm-12 collapse" id="t-2">
<div class="form-group">
<div class="btn-action">
<i class="fas fa-check px-md-2"></i>
<i class="fas fa-times px-md-2"></i>
</div>
<textarea class="form-control" id="exampleFormControlTextarea1" rows="3"></textarea>
</div>
</div>
</div>
</div>
</div>
<div class="card decor" id="card-3">
<div class="action">
<a data-card-link="card-3" class="btn btn-xs edit-action" data-toggle="modal" data-target="#confirmDidalog" href="#">
<i class="fas fa-minus-circle"></i>
</a>
<a class="comment-icon" data-toggle="collapse" href="#t-3" role="button" aria-expanded="false" aria-controls="collapseExample">
<i class="fas fa-comments"></i>
</a>
</div>
<div class="card-header">
<h3>호스트 정보<span>03.</span></h3>
</div>
<div class="card-body">
<div class="card-title">
<h5>호스트 등록 정보<span>LogCenter SM에 등록된 그룹 및 호스트, 수집대상 객체 정보를 확인할 수 있습니다.</span></h5>
</div>
<div class="card-text row">
<div class="col-12 col-sm-6">
<table class="table table-bordered">
<thead>
<tr>
<th scope="col">구분</th>
<th scope="col">정보</th>
</tr>
</thead>
<tbody>
<tr>
<th scope="row">총 그룹 수</th>
<td colspan="2" class="text-center">4개</td>
</tr>
<tr>
<th scope="row">총 호스트 수</th>
<td colspan="2" class="text-center">15개</td>
</tr>
<tr>
<th scope="row">총 수집대상 객체 수</th>
<td colspan="2" class="text-center">30개</td>
</tr>
</tbody>
</table>
</div>
<div class="col-12 col-sm-12 collapse" id="t-3">
<div class="form-group">
<div class="btn-action">
<i class="fas fa-check px-md-2"></i>
<i class="fas fa-times px-md-2"></i>
</div>
<textarea class="form-control" id="exampleFormControlTextarea1" rows="3"></textarea>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</main>
<div class="modal fade" id="confirmDidalog" tabindex="-1" role="dialog" aria-labelledby="exampleModalCenterTitle" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered" role="document">
<div class="modal-content">
<form id="delete-form">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalCenterTitle">Confirm</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
Are you sure to delete the widget?
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
<button type="submit" class="btn btn-primary">Yes</button>
</div>
</form>
</div>
</div>
</div>
<script type="text/javascript">
html2canvas(document.getElementById('main-content'), {
scale: 10
}).then(function(canvas) {
document.getElementsByClassName('sb-left')[0].appendChild(canvas);
});
// Handle Edit page
$(document).on('click', '.create-action, .save-action', function() {
$('.container').toggleClass('edit-page')
})
// Hanle cancel action
$(document).on('click', '.cancel-action', function() {
$('.container').removeClass('edit-page')
})
// Handle Delete Card
$(document).on('click', '.edit-action', function(){
$('#delete-form').data('id', $(this).data('card-link'));
});
$('#delete-form').on('submit', function(e){
e.preventDefault();
var id = $(this).data('id');
$('#'+id+'').remove();
$('#confirmDidalog').modal('hide');
});
// Create chart
Highcharts.chart('piechart', {
chart: {
type: 'pie',
width: 300,
height: 150
},
title: {
text: null
},
plotOptions: {
pie: {
allowPointSelect: true,
cursor: 'pointer',
dataLabels: {
enabled: false
},
showInLegend: true,
}
},
legend: {
align: 'right',
layout: "vertical",
verticalAlign: 'top',
y: 10,
x: 0,
width: 150,
style: {
fontSize: 8
},
itemStyle: {
lineHeight: '30px'
}
},
series: [{
name: 'Brands',
colorByPoint: true,
data: [{
name: 'Firewallsdafegerg',
y: 61.41,
color: "#2fc6c8"
}, {
name: 'IPS1',
y: 11.84,
color: '#9f78e6'
}, {
name: 'DRM1',
y: 10.85,
color: '#8bc9f6'
}, {
name: 'TESTdfagardfxvxv xfbxfbfgbbbggb',
y: 10.85,
color: '#f9d2b3'
}, {
name: 'DBMSzdfdgsf',
y: 10.85,
color: '#f5f2ca'
}]
}]
});
Highcharts.chart('barchart', {
chart: {
type: 'bar',
width: 300,
height: 200
},
title: {
text: null
},
xAxis: {
categories: ['분석로그', '백업로그', "당일수집로그"],
},
yAxis: {
min: 0,
max: 100,
tickInterval: 20
},
legend: {
enabled: false
},
plotOptions: {
series: {
stacking: 'normal',
dataLabels: {
enabled: true,
align: "right",
format: '{y}%',
style: {
"fontSize": "8px"
}
},
legend: {
enabled: false
},
},
},
series: [{
data: [59, 90, 95],
color: '#d8dae8'
}, {
data: [41, 10, 5],
color: '#4d61dd'
}]
});
</script>
</body>
</html>