code quality improvements and improved file error handling

This commit is contained in:
2025-09-17 11:39:26 +01:00
parent b98e3ed85d
commit 0b7ab3b0de
20 changed files with 226 additions and 144 deletions

View File

@@ -4,15 +4,12 @@ import SightingHistoryWidget from "../components/SightingsWidget/SightingWidget"
import { SightingFeedProvider } from "../context/providers/SightingFeedProvider";
const Dashboard = () => {
const folkestoneUrl = import.meta.env.VITE_FOLKESTONE_URL;
const outsideCamUrl = import.meta.env.VITE_MAV_URL;
return (
<div className="mx-auto grid grid-cols-1 sm:grid-cols-1 lg:grid-cols-2 gap-2 px-1 sm:px-2 lg:px-0 w-full">
<SightingFeedProvider
url={
// "http://100.116.253.81/mergedHistory/sightingSummary?mostRecentRef="
"http://192.168.75.11/SightingListFront/sightingSummary?mostRecentRef="
}
side="Front"
>
<SightingFeedProvider url={folkestoneUrl} side="Front">
<FrontCameraOverviewCard className="order-1" />
<SightingHistoryWidget
className="order-3"
@@ -20,13 +17,7 @@ const Dashboard = () => {
/>
</SightingFeedProvider>
<SightingFeedProvider
url={
// "http://100.116.253.81/mergedHistory/sightingSummary?mostRecentRef="
"http://192.168.75.11/SightingListRear/sightingSummary?mostRecentRef="
}
side="Rear"
>
<SightingFeedProvider url={outsideCamUrl} side="Rear">
<RearCameraOverviewCard className="order-2" />
<SightingHistoryWidget
className="order-4"