Added splash page

This commit is contained in:
2026-06-21 18:52:25 +10:00
parent 07e2796e09
commit a39589ee6f
13 changed files with 1030 additions and 29 deletions
+2 -3
View File
@@ -2,9 +2,8 @@ import { computed } from 'vue'
import { useApiResource } from '@/Composables/useApiResource'
import type { Flight } from '@/Types/types'
export function useFlights(url: string, departedOnly: boolean = false) {
const requestUrl = departedOnly ? `${url}/departed` : url
const { data, loading, error } = useApiResource<Flight[]>(requestUrl)
export function useFlights(url: string) {
const { data, loading, error } = useApiResource<Flight[]>(url)
const flights = computed(() => data.value ?? [])