2025-08-13 14:23:48 +01:00
|
|
|
import FrontCameraOverviewCard from "../components/FrontCameraOverview/FrontCameraOverviewCard";
|
2025-08-20 08:27:05 +01:00
|
|
|
import SightingHistoryWidget from "../components/SightingsWidget/SightingWidget";
|
2025-08-29 10:07:59 +01:00
|
|
|
import { SightingFeedProvider } from "../context/providers/SightingFeedProvider";
|
2025-10-06 14:21:56 +01:00
|
|
|
import { CAM_BASE, OUTSIDE_CAM_BASE } from "../utils/config";
|
2025-09-23 13:03:54 +01:00
|
|
|
|
2025-08-13 14:23:48 +01:00
|
|
|
const Dashboard = () => {
|
2025-09-30 11:11:46 +01:00
|
|
|
const mode = import.meta.env.MODE;
|
|
|
|
|
const base_url = `${CAM_BASE}/SightingList/sightingSummary?mostRecentRef=`;
|
2025-10-06 14:21:56 +01:00
|
|
|
// const outside_url = `http://100.82.205.44/mergedHistory/sightingSummary?mostRecentRef=`;
|
2025-09-30 11:11:46 +01:00
|
|
|
console.log(mode);
|
2025-10-06 14:21:56 +01:00
|
|
|
console.log(OUTSIDE_CAM_BASE);
|
2025-08-13 14:23:48 +01:00
|
|
|
return (
|
2025-09-30 09:07:22 +01:00
|
|
|
<SightingFeedProvider url={base_url}>
|
2025-09-26 11:42:12 +01:00
|
|
|
<div className="mx-auto flex flex-col lg:flex-row gap-2 px-1 sm:px-2 lg:px-0 w-full min-h-screen">
|
|
|
|
|
<FrontCameraOverviewCard />
|
|
|
|
|
<SightingHistoryWidget title="Sightings" />
|
|
|
|
|
</div>
|
|
|
|
|
</SightingFeedProvider>
|
2025-08-13 14:23:48 +01:00
|
|
|
);
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export default Dashboard;
|