aboutsummaryrefslogtreecommitdiffstats
path: root/interface
diff options
context:
space:
mode:
authormoisseev <moiseev@mezonplus.ru>2023-12-07 17:49:08 +0300
committermoisseev <moiseev@mezonplus.ru>2023-12-07 17:49:08 +0300
commit9634c91031287db0efb4885e9e016049f4d34b08 (patch)
treeafae3c07aa38b2ddddbd8dae07ffed797fa5483e /interface
parent70bd8f78419df9a0f86037594dc5a9bc07282d97 (diff)
downloadrspamd-9634c91031287db0efb4885e9e016049f4d34b08.tar.gz
rspamd-9634c91031287db0efb4885e9e016049f4d34b08.zip
[Test] Unbreak ESLint
Diffstat (limited to 'interface')
-rw-r--r--interface/js/app/rspamd.js4
-rw-r--r--interface/js/app/selectors.js2
-rw-r--r--interface/js/app/stats.js6
3 files changed, 6 insertions, 6 deletions
diff --git a/interface/js/app/rspamd.js b/interface/js/app/rspamd.js
index 1fac8b939..b1d71a5c9 100644
--- a/interface/js/app/rspamd.js
+++ b/interface/js/app/rspamd.js
@@ -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(() => {
diff --git a/interface/js/app/selectors.js b/interface/js/app/selectors.js
index 64d103474..2a0097e79 100644
--- a/interface/js/app/selectors.js
+++ b/interface/js/app/selectors.js
@@ -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";
diff --git a/interface/js/app/stats.js b/interface/js/app/stats.js
index 3ee0a907a..ddf641d69 100644
--- a/interface/js/app/stats.js
+++ b/interface/js/app/stats.js
@@ -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