Env added
This commit is contained in:
@@ -22,6 +22,7 @@ import {
|
|||||||
type Project
|
type Project
|
||||||
} from "@/lib/api"
|
} from "@/lib/api"
|
||||||
|
|
||||||
|
|
||||||
const API_URL = process.env.NEXT_PUBLIC_API_URL
|
const API_URL = process.env.NEXT_PUBLIC_API_URL
|
||||||
|
|
||||||
interface ProjectSummary {
|
interface ProjectSummary {
|
||||||
|
|||||||
@@ -18,6 +18,7 @@ import { DetectionData, DetectionType } from "@/lib/types"
|
|||||||
|
|
||||||
const API_URL = process.env.NEXT_PUBLIC_API_URL
|
const API_URL = process.env.NEXT_PUBLIC_API_URL
|
||||||
|
|
||||||
|
|
||||||
export default function ResultsPage() {
|
export default function ResultsPage() {
|
||||||
const router = useRouter()
|
const router = useRouter()
|
||||||
const [session, setSession] = useState<SessionContext | null>(null)
|
const [session, setSession] = useState<SessionContext | null>(null)
|
||||||
|
|||||||
@@ -23,6 +23,7 @@ const WS_URL = API_URL?.replace(/^https?:\/\//, "wss://")
|
|||||||
|
|
||||||
type DetectionType = "pothole-detection" | "sign-board-detection" | "pot-sign-detection"
|
type DetectionType = "pothole-detection" | "sign-board-detection" | "pot-sign-detection"
|
||||||
|
|
||||||
|
|
||||||
export default function UploadPage() {
|
export default function UploadPage() {
|
||||||
const router = useRouter()
|
const router = useRouter()
|
||||||
const [session, setSession] = useState<SessionContext | null>(null)
|
const [session, setSession] = useState<SessionContext | null>(null)
|
||||||
|
|||||||
@@ -14,6 +14,7 @@ const API_URL = process.env.NEXT_PUBLIC_API_URL
|
|||||||
const WS_URL = API_URL?.replace(/^https?:\/\//, "wss://")
|
const WS_URL = API_URL?.replace(/^https?:\/\//, "wss://")
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
type UploadSectionProps = {
|
type UploadSectionProps = {
|
||||||
onDetectionComplete: (data: DetectionData, videoId: string, file: File) => void
|
onDetectionComplete: (data: DetectionData, videoId: string, file: File) => void
|
||||||
onDetectionTypeChange: (type: DetectionType) => void
|
onDetectionTypeChange: (type: DetectionType) => void
|
||||||
|
|||||||
@@ -16,7 +16,6 @@ import { DetectionData, DetectionType } from "@/lib/types"
|
|||||||
const API_URL = process.env.NEXT_PUBLIC_API_URL
|
const API_URL = process.env.NEXT_PUBLIC_API_URL
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
type VideoPlayerSectionProps = {
|
type VideoPlayerSectionProps = {
|
||||||
data: DetectionData
|
data: DetectionData
|
||||||
videoId: string
|
videoId: string
|
||||||
|
|||||||
@@ -5,6 +5,7 @@
|
|||||||
|
|
||||||
const API_URL = process.env.NEXT_PUBLIC_API_URL
|
const API_URL = process.env.NEXT_PUBLIC_API_URL
|
||||||
|
|
||||||
|
|
||||||
// Type definitions
|
// Type definitions
|
||||||
export interface Project {
|
export interface Project {
|
||||||
id: string
|
id: string
|
||||||
|
|||||||
4
pnpm-lock.yaml
generated
4
pnpm-lock.yaml
generated
@@ -3258,4 +3258,8 @@ snapshots:
|
|||||||
d3-time: 3.1.0
|
d3-time: 3.1.0
|
||||||
d3-timer: 3.0.1
|
d3-timer: 3.0.1
|
||||||
|
|
||||||
|
<<<<<<< HEAD
|
||||||
zod@3.25.76: {}
|
zod@3.25.76: {}
|
||||||
|
=======
|
||||||
|
zod@3.25.76: {}
|
||||||
|
>>>>>>> cae82289fc016803fd6250ee02605e5c83fbfd4c
|
||||||
|
|||||||
Reference in New Issue
Block a user