From 9634c91031287db0efb4885e9e016049f4d34b08 Mon Sep 17 00:00:00 2001 From: moisseev Date: Thu, 7 Dec 2023 17:49:08 +0300 Subject: [PATCH] [Test] Unbreak ESLint --- .eslintrc.json | 3 ++- interface/js/app/rspamd.js | 4 ++-- interface/js/app/selectors.js | 2 +- interface/js/app/stats.js | 6 +++--- 4 files changed, 8 insertions(+), 7 deletions(-) diff --git a/.eslintrc.json b/.eslintrc.json index f805aff2c..6aa347e1d 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -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" } } 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 = $("
" + - "" + - "" + alertText + ""); + "" + + "" + alertText + ""); $(".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 '
' + - '
' + - d3.format(".3~s")(v) + "" + k + "
"; + '
' + + d3.format(".3~s")(v) + "" + k + "
"; } if (i === "auth" || i === "error") return; // Skip to the next iteration -- 2.39.5