From 4a376e91eb105972fb178418be6fbb244df1b719 Mon Sep 17 00:00:00 2001 From: kensand Date: Tue, 30 Jul 2024 22:11:55 -0400 Subject: [PATCH] Run prettier and eslint --- web/src/types/live.ts | 2 +- web/src/views/live/LiveDashboardView.tsx | 2 +- .../views/settings/GeneralSettingsView.tsx | 161 ++++++++++-------- 3 files changed, 88 insertions(+), 77 deletions(-) diff --git a/web/src/types/live.ts b/web/src/types/live.ts index f5ad9e243..ee4067079 100644 --- a/web/src/types/live.ts +++ b/web/src/types/live.ts @@ -33,5 +33,5 @@ export type LiveStreamMetadata = { export type LivePlayerError = "stalled" | "startup" | "mse-decode"; -export const LiveViewModes = ["auto", "static", "continuous"] as const +export const LiveViewModes = ["auto", "static", "continuous"] as const; export type LiveViewMode = (typeof LiveViewModes)[number]; diff --git a/web/src/views/live/LiveDashboardView.tsx b/web/src/views/live/LiveDashboardView.tsx index 4149a9529..657cf9873 100644 --- a/web/src/views/live/LiveDashboardView.tsx +++ b/web/src/views/live/LiveDashboardView.tsx @@ -28,7 +28,7 @@ import DraggableGridLayout from "./DraggableGridLayout"; import { IoClose } from "react-icons/io5"; import { LuLayoutDashboard } from "react-icons/lu"; import { cn } from "@/lib/utils"; -import {LivePlayerError, LivePlayerMode, LiveViewMode} from "@/types/live"; +import { LivePlayerError, LivePlayerMode, LiveViewMode } from "@/types/live"; import { FaCompress, FaExpand } from "react-icons/fa"; import { useResizeObserver } from "@/hooks/resize-observer"; diff --git a/web/src/views/settings/GeneralSettingsView.tsx b/web/src/views/settings/GeneralSettingsView.tsx index cd9e03641..eca644e5b 100644 --- a/web/src/views/settings/GeneralSettingsView.tsx +++ b/web/src/views/settings/GeneralSettingsView.tsx @@ -62,16 +62,15 @@ export default function GeneralSettingsView() { const [alertVideos, setAlertVideos] = usePersistence("alertVideos", true); return ( - <> + <>
- -
+ +
General Settings - + Live Dashboard @@ -80,28 +79,41 @@ export default function GeneralSettingsView() {
Live View Modes
-

Live stream behavior:
Auto mode (default) will begin streaming when activity is - detected.
Static mode will update camera images on the live dashboard once per minute.
Continuous mode - will stream cameras regardless of activity. Caution: Continuous mode will increase bandwidth usage and may affect performance.

+

+ Live stream behavior: +
+ Auto mode (default) will begin streaming when activity is + detected. +
+ Static mode will update camera images on the live dashboard once + per minute. +
+ Continuous mode will stream cameras regardless of activity. + Caution: Continuous mode will increase bandwidth usage and may + affect performance. +

setPlaybackRate(parseFloat(value))} - > - - {`${playbackRate}x`} - - - - {PLAYBACK_RATE_DEFAULT.map((rate) => ( - setPlaybackRate(parseFloat(value))} + > + + {`${playbackRate}x`} + + + + {PLAYBACK_RATE_DEFAULT.map((rate) => ( + - {rate}x - - ))} - - - - + > + {rate}x + + ))} + + + + - - Calendar - + + Calendar + -
-
-
First Weekday
-
-

The day that the weeks of the review calendar begin on.

+
+
+
First Weekday
+
+

The day that the weeks of the review calendar begin on.

+
+
-
-
- - + > + {day} + + ))} + + + + +
+
-
-
- -) - ; + + ); }