From be2dd253c3195f498c82d0725cf25545788a35f8 Mon Sep 17 00:00:00 2001 From: Nick Mowen Date: Tue, 2 May 2023 19:33:15 -0600 Subject: [PATCH] Add info icon with additional info for each process. --- web/src/icons/About.jsx | 20 +++++++++++++ web/src/routes/System.jsx | 59 +++++++++++++++++++++++++++++++++++---- 2 files changed, 74 insertions(+), 5 deletions(-) create mode 100644 web/src/icons/About.jsx diff --git a/web/src/icons/About.jsx b/web/src/icons/About.jsx new file mode 100644 index 000000000..444ad3227 --- /dev/null +++ b/web/src/icons/About.jsx @@ -0,0 +1,20 @@ +import { h } from 'preact'; +import { memo } from 'preact/compat'; + +export function About({ className = '' }) { + return ( + + + + ); +} + +export default memo(About); + diff --git a/web/src/routes/System.jsx b/web/src/routes/System.jsx index 0320e237b..4b282d4e9 100644 --- a/web/src/routes/System.jsx +++ b/web/src/routes/System.jsx @@ -11,6 +11,7 @@ import { useState } from 'preact/hooks'; import Dialog from '../components/Dialog'; import TimeAgo from '../components/TimeAgo'; import copy from 'copy-to-clipboard'; +import { About } from '../icons/About'; const emptyObject = Object.freeze({}); @@ -206,7 +207,19 @@ export default function System() { ) : ( - Detectors +
+ + Detectors + + +
{detectorNames.map((detector) => (
@@ -235,8 +248,20 @@ export default function System() { ))}
-
- GPUs +
+
+ + GPUs + + +
@@ -280,7 +305,19 @@ export default function System() {
)} - Cameras +
+ + Cameras + + +
{!cameras ? ( ) : ( @@ -345,7 +382,19 @@ export default function System() {
)} - Other Processes +
+ + Other Processes + + +
{['go2rtc', 'recording'].map((process) => (