Browse Source

[Test] Unbreak ESLint

tags/3.8.0
moisseev 5 months ago
parent
commit
9634c91031
4 changed files with 8 additions and 7 deletions
  1. 2
    1
      .eslintrc.json
  2. 2
    2
      interface/js/app/rspamd.js
  3. 1
    1
      interface/js/app/selectors.js
  4. 3
    3
      interface/js/app/stats.js

+ 2
- 1
.eslintrc.json View File

@@ -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"
}
}

+ 2
- 2
interface/js/app/rspamd.js View File

@@ -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(() => {

+ 1
- 1
interface/js/app/selectors.js View File

@@ -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";

+ 3
- 3
interface/js/app/stats.js View File

@@ -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

Loading…
Cancel
Save