From a61389708f848ce67f75e7920a8c97fd2e69a526 Mon Sep 17 00:00:00 2001 From: Andrea Leardini Date: Wed, 18 Sep 2024 11:53:18 +0200 Subject: [PATCH] feat: monitoring UI (wip) --- public/i18n/en/translation.json | 10 +- src/components/charts/BasicBarChart.vue | 78 ++++++++++++ src/components/{ => charts}/BasicPieChart.vue | 0 .../monitoring => charts}/SimpleStat.vue | 0 .../standalone/monitoring/SecurityMonitor.vue | 118 +++++++++++++++-- .../standalone/monitoring/TrafficMonitor.vue | 3 +- .../security/BlockedIpsPerHourChart.vue | 120 ++++++++++++++++++ 7 files changed, 316 insertions(+), 13 deletions(-) create mode 100644 src/components/charts/BasicBarChart.vue rename src/components/{ => charts}/BasicPieChart.vue (100%) rename src/components/{standalone/monitoring => charts}/SimpleStat.vue (100%) create mode 100644 src/components/standalone/monitoring/security/BlockedIpsPerHourChart.vue diff --git a/public/i18n/en/translation.json b/public/i18n/en/translation.json index c66526215..f42c639c8 100644 --- a/public/i18n/en/translation.json +++ b/public/i18n/en/translation.json @@ -48,7 +48,8 @@ "actions": "Actions", "go_to_page": "Go to {page}", "download": "Download", - "upload": "Upload" + "upload": "Upload", + "no_data_available": "No data available" }, "error": { "generic_error": "Something went wrong", @@ -1810,9 +1811,12 @@ "wan_name_traffic": "{name} traffic", "blocked_threats": "Blocked threats", "blocked_packets": "Blocked packets", - "blocked_ip_addresses": "Blocked IP addresses", "malware_by_direction": "Malware by direction", - "malware_by_category": "Malware by category" + "malware_by_category": "Malware by category", + "most_blocked_ip_addresses": "Most blocked IP addresses", + "blocked_ip_addresses_per_hour": "Blocked IP addresses per hour", + "times_blocked": "Times blocked", + "blocked_ip_addresses": "Blocked IP addresses" }, "ping_latency_monitor": { "title": "Ping latency monitor", diff --git a/src/components/charts/BasicBarChart.vue b/src/components/charts/BasicBarChart.vue new file mode 100644 index 000000000..04cf316af --- /dev/null +++ b/src/components/charts/BasicBarChart.vue @@ -0,0 +1,78 @@ + + + + + diff --git a/src/components/BasicPieChart.vue b/src/components/charts/BasicPieChart.vue similarity index 100% rename from src/components/BasicPieChart.vue rename to src/components/charts/BasicPieChart.vue diff --git a/src/components/standalone/monitoring/SimpleStat.vue b/src/components/charts/SimpleStat.vue similarity index 100% rename from src/components/standalone/monitoring/SimpleStat.vue rename to src/components/charts/SimpleStat.vue diff --git a/src/components/standalone/monitoring/SecurityMonitor.vue b/src/components/standalone/monitoring/SecurityMonitor.vue index a4c1a4796..3a46057ae 100644 --- a/src/components/standalone/monitoring/SecurityMonitor.vue +++ b/src/components/standalone/monitoring/SecurityMonitor.vue @@ -5,10 +5,10 @@ + +