From 9c3704b3a648f0314e67d8b7f76b52a39ee20fc3 Mon Sep 17 00:00:00 2001 From: Kryce49 <108368858+Kryce49@users.noreply.github.com> Date: Sat, 22 Mar 2025 11:35:27 +0100 Subject: [PATCH 1/3] Update GlDiskSpace.vue to use Filters Added possibility to use filters and a friendly name in the config to show only relevant disks. Example config: widgets: - type: gl-disk-space options: hostname: http://192.168.100.40:61208 Disks: - /dev/mapper/md1p1: HDD 1 - /dev/mapper/md2p1: HDD 2 - /dev/mapper/md3p1: HDD 3 --- src/components/Widgets/GlDiskSpace.vue | 158 ++++++++++++++----------- 1 file changed, 91 insertions(+), 67 deletions(-) diff --git a/src/components/Widgets/GlDiskSpace.vue b/src/components/Widgets/GlDiskSpace.vue index 32d04aa1ba..17545ce0c7 100644 --- a/src/components/Widgets/GlDiskSpace.vue +++ b/src/components/Widgets/GlDiskSpace.vue @@ -1,73 +1,97 @@ - - - - + + From adf7c806f212c10af88abeb2d49ef30ed043fe2a Mon Sep 17 00:00:00 2001 From: Kryce49 <108368858+Kryce49@users.noreply.github.com> Date: Sat, 22 Mar 2025 11:37:00 +0100 Subject: [PATCH 2/3] Update GlNetworkInterfaces.vue to use filters Added possibility to use filters and a friendly name in the config to show only relevant interfaces. Example config: widgets: - type: gl-network-interfaces options: hostname: http://192.168.100.40:61208 Interfaces: - bond0: LAN - docker0: Docker --- .../Widgets/GlNetworkInterfaces.vue | 305 ++++++++++-------- 1 file changed, 167 insertions(+), 138 deletions(-) diff --git a/src/components/Widgets/GlNetworkInterfaces.vue b/src/components/Widgets/GlNetworkInterfaces.vue index 3c9900954a..2338627dda 100644 --- a/src/components/Widgets/GlNetworkInterfaces.vue +++ b/src/components/Widgets/GlNetworkInterfaces.vue @@ -1,151 +1,180 @@ - - - - + + From fa4a3d681b416cbab2a0e863446fbdf9f729e430 Mon Sep 17 00:00:00 2001 From: Kryce49 <108368858+Kryce49@users.noreply.github.com> Date: Sat, 22 Mar 2025 11:45:01 +0100 Subject: [PATCH 3/3] Update widgets.md gl-disk-space and gl-network-interfaces Edited docs for new filter options in gl-disk-space and gl-network-interfaces. --- docs/widgets.md | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/docs/widgets.md b/docs/widgets.md index 82433158b9..87edc6b084 100644 --- a/docs/widgets.md +++ b/docs/widgets.md @@ -2598,7 +2598,8 @@ Recent memory usage chart ### Disk Space -List connected disks, showing free / used space and other info (file system, mount point and space available) +List connected disks, showing free / used space and other info (file system, mount point and space available). +Use "Disks" to filter available disks and give them a friendly name.

@@ -2608,6 +2609,10 @@ List connected disks, showing free / used space and other info (file system, mou - type: gl-disk-space options: hostname: http://192.168.130.2:61208 + Disks: + - /dev/mapper/md1p1: HDD 1 + - /dev/mapper/md2p1: HDD 2 + - /dev/mapper/md3p1: HDD 3 ``` --- @@ -2662,7 +2667,8 @@ Shows recent historical system load, calculated from the number of processes wai ### Network Interfaces -Lists visible network interfaces, including real-time upload/ download stats +Lists visible network interfaces, including real-time upload/ download stats. +Use "Interfaces" to filter interfaces and give them am friendly name.

@@ -2672,6 +2678,9 @@ Lists visible network interfaces, including real-time upload/ download stats - type: gl-network-interfaces options: hostname: http://192.168.130.2:61208 + Interfaces: + - bond0: LAN + - docker0: Docker ``` ---