diff --git a/app/dashboard/page.tsx b/app/dashboard/page.tsx index eb04e91..e683bd1 100644 --- a/app/dashboard/page.tsx +++ b/app/dashboard/page.tsx @@ -22,6 +22,7 @@ import { type Project } from "@/lib/api" + const API_URL = process.env.NEXT_PUBLIC_API_URL interface ProjectSummary { diff --git a/app/results/page.tsx b/app/results/page.tsx index ec808cd..0af3e5b 100644 --- a/app/results/page.tsx +++ b/app/results/page.tsx @@ -18,6 +18,7 @@ import { DetectionData, DetectionType } from "@/lib/types" const API_URL = process.env.NEXT_PUBLIC_API_URL + export default function ResultsPage() { const router = useRouter() const [session, setSession] = useState(null) diff --git a/app/upload/page.tsx b/app/upload/page.tsx index 275d09e..bfa5772 100644 --- a/app/upload/page.tsx +++ b/app/upload/page.tsx @@ -23,6 +23,7 @@ const WS_URL = API_URL?.replace(/^https?:\/\//, "wss://") type DetectionType = "pothole-detection" | "sign-board-detection" | "pot-sign-detection" + export default function UploadPage() { const router = useRouter() const [session, setSession] = useState(null) diff --git a/components/dashboard/recent-analyses-table.tsx b/components/dashboard/recent-analyses-table.tsx index 3c6966f..00b6417 100644 --- a/components/dashboard/recent-analyses-table.tsx +++ b/components/dashboard/recent-analyses-table.tsx @@ -116,4 +116,4 @@ export function RecentAnalysesTable({ videos, isLoading, onViewResults }: Recent ) -} +} \ No newline at end of file diff --git a/components/upload-section.tsx b/components/upload-section.tsx index 1c2cfdc..2dae39e 100644 --- a/components/upload-section.tsx +++ b/components/upload-section.tsx @@ -14,6 +14,7 @@ const API_URL = process.env.NEXT_PUBLIC_API_URL const WS_URL = API_URL?.replace(/^https?:\/\//, "wss://") + type UploadSectionProps = { onDetectionComplete: (data: DetectionData, videoId: string, file: File) => void onDetectionTypeChange: (type: DetectionType) => void diff --git a/components/video-player-section.tsx b/components/video-player-section.tsx index ad9c1f8..75cc7fe 100644 --- a/components/video-player-section.tsx +++ b/components/video-player-section.tsx @@ -16,7 +16,6 @@ import { DetectionData, DetectionType } from "@/lib/types" const API_URL = process.env.NEXT_PUBLIC_API_URL - type VideoPlayerSectionProps = { data: DetectionData videoId: string diff --git a/lib/api.ts b/lib/api.ts index 1bdb633..01f4acc 100644 --- a/lib/api.ts +++ b/lib/api.ts @@ -5,6 +5,7 @@ const API_URL = process.env.NEXT_PUBLIC_API_URL + // Type definitions export interface Project { id: string diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index cf06563..3378ffd 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -3258,4 +3258,8 @@ snapshots: d3-time: 3.1.0 d3-timer: 3.0.1 +<<<<<<< HEAD zod@3.25.76: {} +======= + zod@3.25.76: {} +>>>>>>> cae82289fc016803fd6250ee02605e5c83fbfd4c