Added Notifications

This commit is contained in:
2026-05-16 23:48:18 +10:00
parent 69d72e0912
commit 1d5b9f340f
61 changed files with 4204 additions and 182 deletions
+9 -1
View File
@@ -21,7 +21,7 @@ export function useRegionFlights(
})
const flightsByRegion = computed(() => {
return filteredFlights.value.reduce((grouped, flight) => {
const grouped = filteredFlights.value.reduce((grouped, flight) => {
const dep = flight.departure_airport?.region
const arr = flight.arrival_airport?.region
@@ -37,6 +37,14 @@ export function useRegionFlights(
return grouped
}, {} as Record<string, Flight[]>)
return Object.fromEntries(
Object.entries(grouped).sort(([codeA], [codeB]) => {
const nameA = regionNames.value[codeA] ?? codeA
const nameB = regionNames.value[codeB] ?? codeB
return nameA.localeCompare(nameB)
})
)
})
const regionNames = computed(() => {