"no-invalid-this": "off",
"sort-keys": "off",
- "@stylistic/function-paren-newline": "off"
+ "@stylistic/function-paren-newline": "off",
+ "@stylistic/indent-binary-ops": "off"
}
}
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(() => {
$("#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";
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