Added Notifications

This commit is contained in:
2026-06-14 16:04:01 +10:00
parent e24d3ceaec
commit a753bffaf8
49 changed files with 1118 additions and 381 deletions
@@ -3,6 +3,7 @@ import {Airport, Flight} from '@/Types/types'
import BadgeTable from '@/Components/FlightsGoneBy/GenericBadgeTable.vue'
import InlineBadge from '@/Components/FlightsGoneBy/InlineBadge.vue'
import AirportToolTip from '@/Components/FlightsGoneBy/AirportToolTip.vue'
import {computed} from "vue";
type CodeType = 'iata' | 'icao'
@@ -50,8 +51,8 @@ function isHighlighted({ firstYear }: AirportEntry): boolean {
return props.selectedYear !== null && firstYear === props.selectedYear
}
function toBBCode(): string {
return props.letters
const bbCode = computed(() =>
props.letters
.map(letter => {
const entries = airportEntriesForLetter(letter)
if (!entries.length) return letter
@@ -64,9 +65,9 @@ function toBBCode(): string {
.join(', ')
})
.join('\n')
}
)
defineExpose({ toBBCode })
defineExpose({ bbCode })
</script>
<template>