From 7ff07804d0a528fc544df5ea186a81b4a42079a5 Mon Sep 17 00:00:00 2001 From: Girish Ramakrishnan Date: Wed, 10 Sep 2025 22:28:31 +0200 Subject: [PATCH] Fix various display issues in metrics view --- dashboard/src/components/DiskUsageItem.vue | 28 +++++++--------------- dashboard/src/components/SystemInfo.vue | 4 ++-- dashboard/src/components/SystemMetrics.vue | 22 ++++++++--------- 3 files changed, 21 insertions(+), 33 deletions(-) diff --git a/dashboard/src/components/DiskUsageItem.vue b/dashboard/src/components/DiskUsageItem.vue index 28fa68cf2..e8a4beb02 100644 --- a/dashboard/src/components/DiskUsageItem.vue +++ b/dashboard/src/components/DiskUsageItem.vue @@ -15,15 +15,6 @@ const props = defineProps({ filesystem: Object }); -// https://stackoverflow.com/questions/6274339/how-can-i-shuffle-an-array -function shuffle(a) { - for (let i = a.length - 1; i > 0; i--) { - const j = Math.floor(Math.random() * (i + 1)); - [a[i], a[j]] = [a[j], a[i]]; - } - return a; -} - function hue(numOfSteps, step) { const deg = 360/numOfSteps; return `hsl(${deg*step} 70% 50%)`; @@ -137,11 +128,13 @@ onUnmounted(() => {