diff --git a/Net.Vatprc.Uniapi.UI.Event/package.json b/Net.Vatprc.Uniapi.UI.Event/package.json index d9c29e8..f95f1c6 100644 --- a/Net.Vatprc.Uniapi.UI.Event/package.json +++ b/Net.Vatprc.Uniapi.UI.Event/package.json @@ -5,7 +5,7 @@ "private": true, "type": "module", "scripts": { - "dev": "vite --port 3000", + "dev": "vite --port 3000 --open", "build": "vite build", "serve": "vite preview", "lint:eslint": "eslint 'src/**/*.{ts,tsx}'", diff --git a/Net.Vatprc.Uniapi.UI.Event/src/api.d.ts b/Net.Vatprc.Uniapi.UI.Event/src/api.d.ts index 5be3b8e..4392f36 100644 --- a/Net.Vatprc.Uniapi.UI.Event/src/api.d.ts +++ b/Net.Vatprc.Uniapi.UI.Event/src/api.d.ts @@ -313,6 +313,8 @@ export interface components { enter_at: string; /** Format: date-time */ leave_at?: string | null; + callsign?: string | null; + aircraft_type_icao?: string | null; }; ErrorProdResponse: { error_code: string; @@ -370,6 +372,8 @@ export interface components { /** Format: date-time */ updated_at: string; booking?: components["schemas"]["EventBookingDto"]; + callsign?: string | null; + aircraft_type_icao?: string | null; }; LoginResDto: { access_token: string; @@ -423,6 +427,8 @@ export interface components { enter_at: string; /** Format: date-time */ leave_at?: string | null; + callsign?: string | null; + aircraft_type_icao?: string | null; }; UserDto: { id: string; diff --git a/Net.Vatprc.Uniapi.UI.Event/src/components/datetime.tsx b/Net.Vatprc.Uniapi.UI.Event/src/components/datetime.tsx index 9ecd826..4fc0f47 100644 --- a/Net.Vatprc.Uniapi.UI.Event/src/components/datetime.tsx +++ b/Net.Vatprc.Uniapi.UI.Event/src/components/datetime.tsx @@ -19,7 +19,12 @@ export const DateTime = ({ return ( <> - {formatInTimeZone(time, "UTC", noDate ? "HH:mm" : "yyyy-MM-dd HH:mm")}Z + + {formatInTimeZone(time, "UTC", noDate ? "HHmm" : "yyyy-MM-dd HH:mm")} + + Z + + {!noDistance && ( diff --git a/Net.Vatprc.Uniapi.UI.Event/src/components/slot-button-book.tsx b/Net.Vatprc.Uniapi.UI.Event/src/components/slot-button-book.tsx index 71fb1ce..75a779c 100644 --- a/Net.Vatprc.Uniapi.UI.Event/src/components/slot-button-book.tsx +++ b/Net.Vatprc.Uniapi.UI.Event/src/components/slot-button-book.tsx @@ -1,3 +1,4 @@ +import { DateTime } from "./datetime"; import { paths } from "@/api"; import { invalidatePath, useApi, useApiPut } from "@/client"; import { useUser } from "@/services/auth"; @@ -54,7 +55,13 @@ export const SlotBookButton = ({ - Do you want to book this slot? + + Do you want to book the slot for {slot?.airspace?.name} at{" "} + + {slot.enter_at} + + ? +