From fdc219ba5cb4b2997b539a2da5af7a3b4fe54797 Mon Sep 17 00:00:00 2001 From: Luc Didry Date: Thu, 26 Sep 2024 13:47:13 +0200 Subject: [PATCH 01/13] =?UTF-8?q?=F0=9F=A9=B9=20=E2=80=94=20Fix=20CHANGELO?= =?UTF-8?q?G=20typo?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a73ebca..0efa616 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -68,7 +68,7 @@ Date: 2024-06-24 - 💄📯 — Improve notifications and result(s) pages - 🔊 — Add level of log before the log message -— 🔊 — Add a warning messages in the logs if there is no tasks in database. (fix #41) +- 🔊 — Add a warning message in the logs if there is no tasks in database. (fix #41) - ✨ — Add command to generate example configuration (fix #38) - 📝 — Improve documentation - ✨ — Add command to warn if it’s been long since last viewing an agent (fix #49) From 04bbe21a661abcb210e5412920b1ae066ab398d8 Mon Sep 17 00:00:00 2001 From: Luc Didry Date: Thu, 14 Nov 2024 08:54:19 +0100 Subject: [PATCH 02/13] =?UTF-8?q?=F0=9F=92=84=20=E2=80=94=20Show=20only=20?= =?UTF-8?q?not-OK=20domains=20by=20default=20in=20domains=20list,=20to=20r?= =?UTF-8?q?educe=20the=20load=20on=20browser?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 2 ++ argos/server/templates/domains.html | 13 +++++++++++-- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0efa616..0671f72 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,8 @@ ## [Unreleased] +- 💄 — Show only not-OK domains by default in domains list, to reduce the load on browser + ## 0.5.0 Date: 2024-09-26 diff --git a/argos/server/templates/domains.html b/argos/server/templates/domains.html index 67a1cf4..2e045ac 100644 --- a/argos/server/templates/domains.html +++ b/argos/server/templates/domains.html @@ -16,11 +16,12 @@
  • @@ -36,7 +37,7 @@ {% for (domain, status) in domains %} - + {{ domain }} @@ -65,6 +66,14 @@ document.querySelectorAll('[data-status]').forEach((item) => { item.style.display = null; }) + } else if (e.currentTarget.value === 'not-ok') { + document.querySelectorAll('[data-status]').forEach((item) => { + if (item.dataset.status !== 'ok') { + item.style.display = null; + } else { + item.style.display = 'none'; + } + }) } else { document.querySelectorAll('[data-status]').forEach((item) => { if (item.dataset.status === e.currentTarget.value) { From a31c12e037feb0c96ca6820212b467adbedc707c Mon Sep 17 00:00:00 2001 From: Luc Didry Date: Thu, 14 Nov 2024 09:26:19 +0100 Subject: [PATCH 03/13] =?UTF-8?q?=E2=99=BF=20=E2=80=94=20Fix=20not-OK=20do?= =?UTF-8?q?mains=20display=20if=20javascript=20is=20disabled?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 1 + argos/server/templates/domains.html | 13 +++++++++++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0671f72..e36e838 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,7 @@ ## [Unreleased] - 💄 — Show only not-OK domains by default in domains list, to reduce the load on browser +- ♿️ — Fix not-OK domains display if javascript is disabled ## 0.5.0 diff --git a/argos/server/templates/domains.html b/argos/server/templates/domains.html index 2e045ac..14ffdf8 100644 --- a/argos/server/templates/domains.html +++ b/argos/server/templates/domains.html @@ -12,7 +12,8 @@ -