From b7f1b381a9ca4b287c76af761bbcfe366cafb0e1 Mon Sep 17 00:00:00 2001 From: JohnMark Sill Date: Wed, 16 Feb 2022 11:07:17 -0600 Subject: [PATCH] chore: formatting --- web/src/routes/Cameras.jsx | 2 +- web/src/routes/Debug.jsx | 20 ++++---- web/src/routes/Events/index.jsx | 8 ++-- web/src/routes/Recording.jsx | 8 ++-- web/src/routes/StyleGuide.jsx | 82 ++++++++++++++++----------------- 5 files changed, 60 insertions(+), 60 deletions(-) diff --git a/web/src/routes/Cameras.jsx b/web/src/routes/Cameras.jsx index f6c148be4..3afe146f6 100644 --- a/web/src/routes/Cameras.jsx +++ b/web/src/routes/Cameras.jsx @@ -15,7 +15,7 @@ export default function Cameras() { return status !== FetchStatus.LOADED ? ( ) : ( -
+
{Object.entries(config.cameras).map(([camera, conf]) => ( ))} diff --git a/web/src/routes/Debug.jsx b/web/src/routes/Debug.jsx index c5c5a0b31..f9b35c1a8 100644 --- a/web/src/routes/Debug.jsx +++ b/web/src/routes/Debug.jsx @@ -33,9 +33,9 @@ export default function Debug() { }, [config]); return ( -
+
- Debug {service.version} + Debug {service.version} {!detectors ? ( @@ -44,8 +44,8 @@ export default function Debug() {
) : ( -
- +
+
@@ -67,8 +67,8 @@ export default function Debug() {
detector
-
- +
+
@@ -96,12 +96,12 @@ export default function Debug() { )} -
- Config - -
+        
           {JSON.stringify(config, null, 2)}
         
diff --git a/web/src/routes/Events/index.jsx b/web/src/routes/Events/index.jsx index e56bcd7a1..48d326a1a 100644 --- a/web/src/routes/Events/index.jsx +++ b/web/src/routes/Events/index.jsx @@ -81,11 +81,11 @@ export default function Events({ path: pathname, limit = API_LIMIT } = {}) { [apiHost, handleFilter, pathname, scrollToRef] ); return ( -
+
Events -
-
camera
+
+
{events.map((props, idx) => { @@ -95,7 +95,7 @@ export default function Events({ path: pathname, limit = API_LIMIT } = {}) { - diff --git a/web/src/routes/Recording.jsx b/web/src/routes/Recording.jsx index 8689e0449..0ec639a19 100644 --- a/web/src/routes/Recording.jsx +++ b/web/src/routes/Recording.jsx @@ -16,10 +16,10 @@ export default function Recording({ camera, date, hour, seconds }) { if (data.length === 0) { return ( -
+
{camera} Recordings - @@ -69,7 +69,7 @@ export default function Recording({ camera, date, hour, seconds }) { } return ( -
+
{camera} Recordings - Button -
+
+ Button +
- - - + + +
-
- - + - - -
-
- - + - - -
- Dialog + Dialog
+ {status === FetchStatus.LOADING ? : reachedEnd ? 'No more events' : null}