sbd-npm 1.4.85 → 1.4.86
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/status.js +8 -6
package/package.json
CHANGED
package/status.js
CHANGED
@@ -171,7 +171,7 @@ $(function () {
|
|
171
171
|
html.push("</tr>");
|
172
172
|
});
|
173
173
|
Util.render_table_html("mysql_process_modal_body_body", html);
|
174
|
-
$("#mysql_process_summary").html("
|
174
|
+
$("#mysql_process_summary").html(" 共 <span class='label label-info'>" + current_connections + "</span> 条");
|
175
175
|
Util.hide_tips();
|
176
176
|
});
|
177
177
|
},
|
@@ -196,7 +196,7 @@ $(function () {
|
|
196
196
|
html.push("</tr>");
|
197
197
|
});
|
198
198
|
Util.render_table_html("mysql_access_modal_body_body", html);
|
199
|
-
$("#mysql_access_summary").html("
|
199
|
+
$("#mysql_access_summary").html(" 共 <span class='label label-info'>" + ip_num + "</span> 条,屏蔽 <span class='label label-danger'>" + j["block_len"] + "</span> 条");
|
200
200
|
$("#mysql_access_modal_body_body .block_ip").each(function() {
|
201
201
|
$(this).click(function() {
|
202
202
|
let ip = $(this).parent().parent().children('td').eq(1).text();
|
@@ -227,6 +227,8 @@ $(function () {
|
|
227
227
|
}
|
228
228
|
});
|
229
229
|
}
|
230
|
+
} else {
|
231
|
+
Util.show_tips("IP值异常:" + ip, 4567, "alert-danger");
|
230
232
|
}
|
231
233
|
},
|
232
234
|
|
@@ -326,7 +328,7 @@ $(function () {
|
|
326
328
|
}
|
327
329
|
Util.post(location.pathname, {active_div: "get_block_ip"}, function (j) {
|
328
330
|
let html = [], ip_num = j["num"];
|
329
|
-
$("#block_ip_num").html("
|
331
|
+
$("#block_ip_num").html(" 共 <span class='label label-info'>" + ip_num + "</span> 条(" + j["total_ip_num"] + ") ");
|
330
332
|
j["data"].forEach(function (item) {
|
331
333
|
html.push("<tr>");
|
332
334
|
html.push("<td>", ip_num, "</td>");
|
@@ -457,7 +459,7 @@ $(function () {
|
|
457
459
|
html.push("</tr>");
|
458
460
|
});
|
459
461
|
Util.render_table_html("database_variable_div_body", html);
|
460
|
-
$("#database_variable_num").html("
|
462
|
+
$("#database_variable_num").html(" 共 <span class='label label-info'>" + database_variable_num + "</span> 条 ");
|
461
463
|
Util.hide_tips();
|
462
464
|
});
|
463
465
|
},
|
@@ -517,7 +519,7 @@ $(function () {
|
|
517
519
|
html.push("</tr>");
|
518
520
|
});
|
519
521
|
Util.render_table_html("environment_div_body", html);
|
520
|
-
$("#environment_num").html("
|
522
|
+
$("#environment_num").html(" 共 <span class='label label-info'>" + environment_num + "</span> 条 ");
|
521
523
|
Util.hide_tips();
|
522
524
|
});
|
523
525
|
},
|
@@ -559,7 +561,7 @@ $(function () {
|
|
559
561
|
html.push("</tr>");
|
560
562
|
});
|
561
563
|
Util.render_table_html("sysctl_div_body", html);
|
562
|
-
$("#sysctl_num").html("
|
564
|
+
$("#sysctl_num").html(" 共 <span class='label label-info'>" + sysctl_num + "</span> 条 ");
|
563
565
|
Util.hide_tips();
|
564
566
|
});
|
565
567
|
},
|