@@ -67,6 +67,7 @@ | |||
"no-invalid-this": "off", | |||
"sort-keys": "off", | |||
"@stylistic/function-paren-newline": "off" | |||
"@stylistic/function-paren-newline": "off", | |||
"@stylistic/indent-binary-ops": "off" | |||
} | |||
} |
@@ -345,8 +345,8 @@ define(["jquery", "nprogress", "stickytabs", "visibility", | |||
function alertMessage(alertClass, alertText) { | |||
const a = $("<div class=\"alert " + alertClass + " alert-dismissible fade in show\">" + | |||
"<button type=\"button\" class=\"btn-close\" data-bs-dismiss=\"alert\" title=\"Dismiss\"></button>" + | |||
"<strong>" + alertText + "</strong>"); | |||
"<button type=\"button\" class=\"btn-close\" data-bs-dismiss=\"alert\" title=\"Dismiss\"></button>" + | |||
"<strong>" + alertText + "</strong>"); | |||
$(".notification-area").append(a); | |||
setTimeout(() => { |
@@ -96,7 +96,7 @@ define(["jquery", "app/rspamd"], | |||
$("#sidebar-" + side).toggleClass("collapsed"); | |||
let contentClass = "col-lg-6"; | |||
const openSidebarsCount = $("#sidebar-left").hasClass("collapsed") + | |||
$("#sidebar-right").hasClass("collapsed"); | |||
$("#sidebar-right").hasClass("collapsed"); | |||
switch (openSidebarsCount) { | |||
case 1: | |||
contentClass = "col-lg-9"; |
@@ -70,9 +70,9 @@ define(["jquery", "app/rspamd", "d3pie", "d3"], | |||
const c = (typeof cls === "undefined") ? "" : cls; | |||
const titleAtt = d3.format(",")(v) + " " + k; | |||
return '<div class="card stat-box d-inline-block text-center shadow-sm me-3 px-3">' + | |||
'<div class="widget overflow-hidden p-2' + c + '" title="' + titleAtt + | |||
'"><strong class="d-block mt-2 mb-1 fw-bold">' + | |||
d3.format(".3~s")(v) + "</strong>" + k + "</div></div>"; | |||
'<div class="widget overflow-hidden p-2' + c + '" title="' + titleAtt + | |||
'"><strong class="d-block mt-2 mb-1 fw-bold">' + | |||
d3.format(".3~s")(v) + "</strong>" + k + "</div></div>"; | |||
} | |||
if (i === "auth" || i === "error") return; // Skip to the next iteration |