Skip to content
This repository was archived by the owner on Aug 25, 2021. It is now read-only.

Commit

Permalink
file📦 新建了logg页面
Browse files Browse the repository at this point in the history
  • Loading branch information
Dizzy-K committed Aug 3, 2021
1 parent 6a4e133 commit fc4374f
Show file tree
Hide file tree
Showing 5 changed files with 301 additions and 45 deletions.
2 changes: 1 addition & 1 deletion server/web/templates/assets/js/modules.js
Original file line number Diff line number Diff line change
Expand Up @@ -2339,7 +2339,7 @@ function chartJSInit() {

/* dateRangePicker */
if ($('#_DateRangeJS_min').length > 0) {
let start = moment().subtract(29, 'days'),
let start = moment(),
end = moment();

function cb(start, end) {
Expand Down
8 changes: 2 additions & 6 deletions server/web/templates/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,8 @@
</div>
</a>
<div class="dropdown-menu dropdown-menu-right shadow-1 py-3 position-absolute mt-2"
aria-labelledby="dropdownAdmin"><a class="dropdown-item" href="#"><span
class="icon-messenger-user-avatar mr-2"></span>My Profile</a><a
class="dropdown-item" href="#"><span
class="icon-closed-envelope-email mr-2"></span>Messages</a><a class="dropdown-item"
href="#"><span class="icon-options-gear mr-2"></span>Settings</a>
<a class="dropdown-item" href="#"><span class="icon-power-on-buton mr-2"></span>Logout</a>
aria-labelledby="dropdownAdmin"><a class="dropdown-item" href="/logg"><span
class="icon-messenger-user-avatar mr-2"></span>new_log</a>
</div>
</li>
</ul>
Expand Down
50 changes: 12 additions & 38 deletions server/web/templates/log.html
Original file line number Diff line number Diff line change
Expand Up @@ -84,40 +84,13 @@ <h5 class="title mb-0">防御日志</h5>
</header>
<div class="collapse show" id="collapseActivityTimeline">
<div class="panel-body">
<div class="pl-5">
<div id="name3" class="timeline-item">
<div class="timeline-item-inner">
<div id="time1" class="timeline-item-time"></div>
<h6 id="ti1"></h6>
<p id="da1"></p>
<p id="da2"></p>
<p id="da3"></p>
</div>
</div><!-- /.item -->
<!-- item -->
<div id="name2" class="timeline-item">
<div class="timeline-item-inner">
<div id="time2" class="timeline-item-time"></div>
<h6 id="ti2"></h6>
<p id="db1"></p>
<p id="db2"></p>
<p id="db3"></p>
</div>
</div><!-- /.item -->
<!-- item -->
<div id="name3" class="timeline-item">
<div class="timeline-item-inner">
<div id="time3" class="timeline-item-time"></div>
<h6 id="ti3"></h6>
<p id="dc1"></p>
<p id="dc2"></p>
<p id="dc3"></p>
</div>
</div><!-- /.item -->
<div class="pl-5" id="defend">
<!-- /.item -->
<script>
setTimeout(function () {
var datetime = new Date();
$("#name1").attr("data-icon", "&#xe901;")
var tx1 = "<div class=\"timeline-item\" data-time=" + datetime.toLocaleString() + "data-icon=\"&#xe901;\"><div class=\"timeline-item-inner\"><h6 id=\"ti1\"></h6><p id=\"da1\"></p><p id=\"da2\"></p><p id=\"da3\"></p></div></div>";
$("#defend").append(tx1);
$("#ti1").html("Successfully processed").addClass("d-inline-block fw-500 text-warning mb-1");
$("#time1").html(datetime.toLocaleString());
$("#da1").html("CommiterID:0xcd12E46fe6bdf4Eb73a96c1a775590719c69c706");
Expand All @@ -126,7 +99,8 @@ <h6 id="ti3"></h6>
}, 1000)
setTimeout(function () {
var datetime = new Date();
$("#name2").attr("data-icon", "2")
var tx2 = "<div class=\"timeline-item\" data-time=" + datetime.toLocaleString() + "data-icon=\"&#xe901;\"><div class=\"timeline-item-inner\"><h6 id=\"ti2\"></h6><p id=\"db1\"></p><p id=\"db2\"></p><p id=\"db3\"></p></div></div>";
$("#defend").append(tx2);
$("#ti2").html("Danger").addClass("d-inline-block fw-500 text-danger mb-1");
$("#time1").html(datetime.toLocaleString());
$("#db1").html("CommiterID:0xcd12E46fe6bdf4Eb73a96c1a775590719c69c706");
Expand All @@ -135,9 +109,9 @@ <h6 id="ti3"></h6>
}, 10000)
setTimeout(function () {
var datetime = new Date();
$("#name").attr("data-icon", "3")
$("#ti3").html("Warning").addClass("d-inline-block fw-500 text-danger mb-1");
$("#time1").html(datetime.toLocaleString());
var tx3 = "<div class=\"timeline-item\" data-time=" + datetime.toLocaleString() + "data-icon=\"&#xe901;\"><div class=\"timeline-item-inner\"><h6 id=\"ti3\"></h6><p id=\"dc1\"></p><p id=\"dc2\"></p><p id=\"dc3\"></p></div></div>";
$("#defend").append(tx3);
$("#ti3").html("Warning").addClass("d-inline-block fw-500 text-abnormal mb-1");
$("#dc1").html("CommiterID:0xcd12E46fe6bdf4Eb73a96c1a775590719c69c706");
$("#dc2").html("TargetIP:219.217.199.15");
$("#dc3").html("Description:IP:219.217.199.15(智能微波炉)已停运");
Expand Down Expand Up @@ -178,11 +152,11 @@ <h5 class="title mb-0">攻击日志</h5>
<div class="timeline-item-inner">
<h6 class="d-inline-block fw-500 text-warning mb-1">
Successfully attack</h6>
<d1v></p>
<d1v></d1v>
<script>

let list = new Array(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15);
for (let index = 0; index < 1000; index++) {
for (let index = 0; index < 264; index++) {
list.push(index)
}
var count = 0;
Expand Down Expand Up @@ -210,7 +184,7 @@ <h6 class="d-inline-block fw-500 text-warning mb-1">
$("#p15").html("IP:218.217.15." + list[count + 14] + "正在请求219.217.199.15");
$("#p16").html("IP:218.217.16." + list[count + 15] + "正在请求219.217.199.15");
count++;
}, 500)
}, 200)
</script>

</div>
Expand Down
Loading

0 comments on commit fc4374f

Please sign in to comment.