From 9106881448d259b1cab6e743dfaebf049526c867 Mon Sep 17 00:00:00 2001 From: ccbikai Date: Sun, 18 May 2025 21:17:19 +0800 Subject: [PATCH] fix: clean up globe arcs and prevent empty stats display - Adds cleanup timer for globe arcs to prevent accumulation - Conditionally renders chart header when stats are available - Improves event handling in AnimatedList by passing props - Fixes traffic event animation by clearing previous timeouts These changes improve visualization performance and user experience by preventing memory leaks from accumulated arcs and ensuring smoother animations. --- app/components/dashboard/realtime/Chart.vue | 2 +- app/components/dashboard/realtime/Globe.vue | 9 ++++++++- app/components/dashboard/realtime/Logs.vue | 4 ++-- app/components/spark-ui/AnimatedList.vue | 2 +- server/api/logs/events.ts | 1 + 5 files changed, 13 insertions(+), 5 deletions(-) diff --git a/app/components/dashboard/realtime/Chart.vue b/app/components/dashboard/realtime/Chart.vue index 6c9d126..ece50c3 100644 --- a/app/components/dashboard/realtime/Chart.vue +++ b/app/components/dashboard/realtime/Chart.vue @@ -32,7 +32,7 @@ onMounted(async () => {