From aef6b17863864d3445873037af0309e7c671b338 Mon Sep 17 00:00:00 2001 From: Josh Hawkins <32435876+hawkeye217@users.noreply.github.com> Date: Tue, 14 May 2024 09:32:33 -0500 Subject: [PATCH] classname reorder with prettier-plugin-tailwindcss --- web/src/App.tsx | 2 +- web/src/components/Statusbar.tsx | 16 +++--- web/src/components/Wrapper.tsx | 2 +- web/src/components/bar/TimelineBar.tsx | 52 +++++++++---------- web/src/components/camera/CameraImage.tsx | 6 +-- .../components/camera/DebugCameraImage.tsx | 4 +- .../components/camera/ResizingCameraImage.tsx | 4 +- web/src/components/card/AnimatedEventCard.tsx | 8 +-- web/src/components/card/ExportCard.tsx | 24 ++++----- web/src/components/card/ReviewCard.tsx | 6 +-- .../dynamic/CameraFeatureToggle.tsx | 2 +- web/src/components/dynamic/NewReviewData.tsx | 8 +-- .../components/filter/CameraGroupSelector.tsx | 40 +++++++------- web/src/components/filter/FilterSwitch.tsx | 4 +- web/src/components/filter/LogLevelFilter.tsx | 12 ++--- .../components/filter/ReviewActionGroup.tsx | 12 ++--- .../components/filter/ReviewFilterGroup.tsx | 22 ++++---- web/src/components/filter/ZoneMaskFilter.tsx | 10 ++-- web/src/components/graph/SystemGraph.tsx | 10 ++-- web/src/components/icons/IconPicker.tsx | 14 ++--- web/src/components/icons/LiveIcons.tsx | 8 +-- .../indicators/CameraActivityIndicator.tsx | 12 ++--- web/src/components/indicators/Chip.tsx | 4 +- .../indicators/ImageLoadingIndicator.tsx | 2 +- web/src/components/menu/AccountSettings.tsx | 4 +- web/src/components/menu/GeneralSettings.tsx | 38 +++++++------- web/src/components/navigation/Bottombar.tsx | 10 ++-- web/src/components/navigation/NavItem.tsx | 2 +- web/src/components/navigation/Sidebar.tsx | 8 +-- web/src/components/overlay/ExportDialog.tsx | 18 +++---- web/src/components/overlay/LogInfoDialog.tsx | 6 +-- .../components/overlay/MobileCameraDrawer.tsx | 6 +-- .../overlay/MobileReviewSettingsDrawer.tsx | 24 ++++----- .../overlay/MobileTimelineDrawer.tsx | 6 +-- .../overlay/ReviewActivityCalendar.tsx | 2 +- .../components/overlay/SaveExportOverlay.tsx | 6 +-- .../overlay/TimelineDataOverlay.tsx | 4 +- web/src/components/overlay/VainfoDialog.tsx | 2 +- .../components/player/BirdseyeLivePlayer.tsx | 12 ++--- web/src/components/player/HlsVideoPlayer.tsx | 4 +- web/src/components/player/LivePlayer.tsx | 20 +++---- web/src/components/player/PreviewPlayer.tsx | 14 ++--- .../player/PreviewThumbnailPlayer.tsx | 20 +++---- web/src/components/player/VideoControls.tsx | 10 ++-- web/src/components/settings/General.tsx | 16 +++--- web/src/components/settings/MasksAndZones.tsx | 40 +++++++------- .../settings/MotionMaskEditPane.tsx | 8 +-- web/src/components/settings/MotionTuner.tsx | 26 +++++----- .../settings/ObjectMaskEditPane.tsx | 8 +-- .../components/settings/ObjectSettings.tsx | 38 +++++++------- .../settings/PolygonEditControls.tsx | 4 +- web/src/components/settings/PolygonItem.tsx | 8 +-- web/src/components/settings/ZoneEditPane.tsx | 26 +++++----- web/src/components/timeline/EventSegment.tsx | 10 ++-- web/src/components/timeline/MotionSegment.tsx | 8 +-- .../components/timeline/ReviewTimeline.tsx | 40 +++++++------- .../components/timeline/SummarySegment.tsx | 2 +- .../components/timeline/SummaryTimeline.tsx | 6 +-- .../components/timeline/segment-metadata.tsx | 10 ++-- web/src/pages/ConfigEditor.tsx | 8 +-- web/src/pages/Exports.tsx | 8 +-- web/src/pages/Logs.tsx | 40 +++++++------- web/src/pages/Settings.tsx | 18 +++---- web/src/pages/SubmitPlus.tsx | 46 ++++++++-------- web/src/pages/System.tsx | 16 +++--- web/src/pages/UIPlayground.tsx | 14 ++--- web/src/utils/timelineUtil.tsx | 36 ++++++------- web/src/views/events/EventView.tsx | 48 ++++++++--------- web/src/views/events/RecordingView.tsx | 36 ++++++------- web/src/views/live/DraggableGridLayout.tsx | 24 ++++----- web/src/views/live/LiveBirdseyeView.tsx | 12 ++--- web/src/views/live/LiveCameraView.tsx | 14 ++--- web/src/views/live/LiveDashboardView.tsx | 20 +++---- web/src/views/system/CameraMetrics.tsx | 24 ++++----- web/src/views/system/GeneralMetrics.tsx | 46 ++++++++-------- web/src/views/system/StorageMetrics.tsx | 18 +++---- 76 files changed, 589 insertions(+), 589 deletions(-) diff --git a/web/src/App.tsx b/web/src/App.tsx index a86e79491..eb81bc812 100644 --- a/web/src/App.tsx +++ b/web/src/App.tsx @@ -31,7 +31,7 @@ function App() { {isMobile && }
diff --git a/web/src/components/Statusbar.tsx b/web/src/components/Statusbar.tsx index c2e81cf90..9fb45ba42 100644 --- a/web/src/components/Statusbar.tsx +++ b/web/src/components/Statusbar.tsx @@ -55,11 +55,11 @@ export default function Statusbar() { }, [potentialProblems, addMessage, clearMessages]); return ( -
-
+
+
{cpuPercent && ( -
+
-
+
{Object.entries(messages).length === 0 ? ( -
+
System is healthy
) : ( Object.entries(messages).map(([key, messageArray]) => ( -
+
{messageArray.map(({ id, text, color, link }: StatusMessage) => { const message = (
{ - return
{children}
; + return
{children}
; }; export default Wrapper; diff --git a/web/src/components/bar/TimelineBar.tsx b/web/src/components/bar/TimelineBar.tsx index cd168f3cd..fe05b876f 100644 --- a/web/src/components/bar/TimelineBar.tsx +++ b/web/src/components/bar/TimelineBar.tsx @@ -27,11 +27,11 @@ export default function TimelineBar({ return (
{graphData != undefined && ( -
+
{getHourBlocks().map((idx) => { return (
); })} -
-
+
+
{formatUnixTimestampToDateTime(startTime, { strftime_fmt: config?.ui.time_format == "24hour" ? "%H:00" : "%I:00%P", @@ -56,8 +56,8 @@ export default function TimelineBar({ })}
-
-
+
+
{formatUnixTimestampToDateTime(startTime, { strftime_fmt: config?.ui.time_format == "24hour" ? "%H:05" : "%I:05%P", @@ -66,8 +66,8 @@ export default function TimelineBar({ })}
-
-
+
+
{formatUnixTimestampToDateTime(startTime, { strftime_fmt: config?.ui.time_format == "24hour" ? "%H:10" : "%I:10%P", @@ -76,8 +76,8 @@ export default function TimelineBar({ })}
-
-
+
+
{formatUnixTimestampToDateTime(startTime, { strftime_fmt: config?.ui.time_format == "24hour" ? "%H:15" : "%I:15%P", @@ -86,8 +86,8 @@ export default function TimelineBar({ })}
-
-
+
+
{formatUnixTimestampToDateTime(startTime, { strftime_fmt: config?.ui.time_format == "24hour" ? "%H:20" : "%I:20%P", @@ -96,8 +96,8 @@ export default function TimelineBar({ })}
-
-
+
+
{formatUnixTimestampToDateTime(startTime, { strftime_fmt: config?.ui.time_format == "24hour" ? "%H:25" : "%I:25%P", @@ -106,8 +106,8 @@ export default function TimelineBar({ })}
-
-
+
+
{formatUnixTimestampToDateTime(startTime, { strftime_fmt: config?.ui.time_format == "24hour" ? "%H:30" : "%I:30%P", @@ -116,8 +116,8 @@ export default function TimelineBar({ })}
-
-
+
+
{formatUnixTimestampToDateTime(startTime, { strftime_fmt: config?.ui.time_format == "24hour" ? "%H:35" : "%I:35%P", @@ -126,8 +126,8 @@ export default function TimelineBar({ })}
-
-
+
+
{formatUnixTimestampToDateTime(startTime, { strftime_fmt: config?.ui.time_format == "24hour" ? "%H:40" : "%I:40%P", @@ -136,8 +136,8 @@ export default function TimelineBar({ })}
-
-
+
+
{formatUnixTimestampToDateTime(startTime, { strftime_fmt: config?.ui.time_format == "24hour" ? "%H:45" : "%I:45%P", @@ -146,8 +146,8 @@ export default function TimelineBar({ })}
-
-
+
+
{formatUnixTimestampToDateTime(startTime, { strftime_fmt: config?.ui.time_format == "24hour" ? "%H:50" : "%I:50%P", @@ -156,8 +156,8 @@ export default function TimelineBar({ })}
-
-
+
+
{formatUnixTimestampToDateTime(startTime, { strftime_fmt: config?.ui.time_format == "24hour" ? "%H:55" : "%I:55%P", diff --git a/web/src/components/camera/CameraImage.tsx b/web/src/components/camera/CameraImage.tsx index b4fb707bc..b2bf33dfd 100644 --- a/web/src/components/camera/CameraImage.tsx +++ b/web/src/components/camera/CameraImage.tsx @@ -45,7 +45,7 @@ export default function CameraImage({ {enabled ? ( { setHasLoaded(true); @@ -62,12 +62,12 @@ export default function CameraImage({ }} /> ) : ( -
+
Camera is disabled in config, no stream or snapshot available!
)} {!hasLoaded && enabled ? ( -
+
) : null} diff --git a/web/src/components/camera/DebugCameraImage.tsx b/web/src/components/camera/DebugCameraImage.tsx index af8f3bf72..62c7c13cc 100644 --- a/web/src/components/camera/DebugCameraImage.tsx +++ b/web/src/components/camera/DebugCameraImage.tsx @@ -56,7 +56,7 @@ export default function DebugCameraImage({ cameraClasses="relative w-full h-full flex justify-center" />
diff --git a/web/src/components/filter/CameraGroupSelector.tsx b/web/src/components/filter/CameraGroupSelector.tsx index b80a4f939..098d2f419 100644 --- a/web/src/components/filter/CameraGroupSelector.tsx +++ b/web/src/components/filter/CameraGroupSelector.tsx @@ -125,8 +125,8 @@ export function CameraGroupSelector({ className }: CameraGroupSelectorProps) { ); const content = ( @@ -33,7 +33,7 @@ export function LogLevelFilterButton({ return ( {trigger} - + {content} @@ -59,9 +59,9 @@ export function GeneralFilterContent({ return ( <>
-
+