From 6cfa73a284835c50e1db1e66b8cd78dca53f9a02 Mon Sep 17 00:00:00 2001 From: Nicolas Mowen Date: Thu, 16 Feb 2023 06:50:03 -0700 Subject: [PATCH] Add link to go2rtc in system page (#5478) * Add link to go2rtc in the system page * Open in new page * Add color and underline behavior * Cleanup * Cleanup * Fix color * fix tests --- web/src/routes/System.jsx | 32 +++++++++++++++++++++++++------- 1 file changed, 25 insertions(+), 7 deletions(-) diff --git a/web/src/routes/System.jsx b/web/src/routes/System.jsx index 18e59d422..5f749ee22 100644 --- a/web/src/routes/System.jsx +++ b/web/src/routes/System.jsx @@ -81,13 +81,27 @@ export default function System() { return (
- - System {service.version} - +
+ + System {service.version} + + {config && ( + + go2rtc dashboard + + )} +
{service.last_updated && (

- Last refreshed: + + Last refreshed: +

)} @@ -256,11 +270,15 @@ export default function System() { {(() => { if (cameras[camera]['pid'] && cameras[camera]['detection_enabled'] == 1) - return {cameras[camera]['detection_fps']} ({cameras[camera]['skipped_fps']} skipped) + return ( + + {cameras[camera]['detection_fps']} ({cameras[camera]['skipped_fps']} skipped) + + ); else if (cameras[camera]['pid'] && cameras[camera]['detection_enabled'] == 0) - return disabled + return disabled; - return - + return - ; })()} {cpu_usages[cameras[camera]['pid']]?.['cpu'] || '- '}%