From bc62dcdd102a517043159a6d197a59aeaa5b2074 Mon Sep 17 00:00:00 2001 From: nercone-dev Date: Wed, 22 Apr 2026 01:53:31 +0900 Subject: [PATCH] -- --- public/tools/tls-test/assets/tls-test.js | 4 ++-- public/tools/tls-test/results.html | 6 +++--- src/nercone_website/tools/tls_test/schemas.py | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/public/tools/tls-test/assets/tls-test.js b/public/tools/tls-test/assets/tls-test.js index 957e418..9725ee4 100644 --- a/public/tools/tls-test/assets/tls-test.js +++ b/public/tools/tls-test/assets/tls-test.js @@ -52,7 +52,7 @@ msg.className = "tls-log-msg"; if (severity && SEV_LABEL[severity] && severity !== "info") { const sev = document.createElement("span"); - sev.className = "text-" + (SEV_COLOR[severity] || "tx") + " font-bold"; + sev.className = "text-" + (SEV_COLOR[severity] || "light-grey") + " font-bold"; sev.textContent = SEV_LABEL[severity]; msg.appendChild(sev); msg.appendChild(document.createTextNode(" ")); @@ -60,7 +60,7 @@ // Title is always in the default text color (white). Severity is // communicated by the coloured label tag, not by tinting the title. const msgText = document.createElement("span"); - msgText.className = "textlight-grey"; + msgText.className = "text-light-grey"; msgText.textContent = body || ""; msg.appendChild(msgText); row.appendChild(msg); diff --git a/public/tools/tls-test/results.html b/public/tools/tls-test/results.html index b65b3a9..1578f80 100644 --- a/public/tools/tls-test/results.html +++ b/public/tools/tls-test/results.html @@ -23,7 +23,7 @@ 'Q': 'red', 'R': 'bright-purple' } %} {% set rank = result.rank or job.rank or '?' %} - {% set rank_color = rank_color_map.get(rank, 'tx') %} + {% set rank_color = rank_color_map.get(rank, 'light-grey') %}
@@ -72,7 +72,7 @@ [{{ (f.step or f.group or f.category or 'info')|replace('_','-')|lower }}] {{ f.severity_label|upper }} - {{ f.title }} + {{ f.title }} {{ f.detail or '' }}
@@ -386,7 +386,7 @@ {% if e.kind == 'phase' %}
[{{ (e.phase or 'info')|replace('_','-')|lower }}] - {{ e.detail or '' }} + {{ e.detail or '' }}
{% else %} diff --git a/src/nercone_website/tools/tls_test/schemas.py b/src/nercone_website/tools/tls_test/schemas.py index 68de8d1..36cc36d 100644 --- a/src/nercone_website/tools/tls_test/schemas.py +++ b/src/nercone_website/tools/tls_test/schemas.py @@ -47,7 +47,7 @@ class Finding: def to_dict(self) -> dict[str, Any]: d = asdict(self) d["severity_label"] = SEVERITY_LABELS.get(self.severity, self.severity) - d["color"] = SEVERITY_COLORS.get(self.severity, "tx") + d["color"] = SEVERITY_COLORS.get(self.severity, "light-grey") # impact is what the UI sorts by for the Summary tab. mul = {"good": 0.0, "normal": 0.0, "notgood": 1.0, "bad": 3.0, "serious": 9.0, "info": 0.0}.get(self.severity, 0.0) d["impact"] = mul * float(self.weight)