Added Notifications

This commit is contained in:
2026-05-11 23:00:48 +10:00
parent c7fe3268c7
commit 69d72e0912
28 changed files with 2094 additions and 23 deletions
+2 -15
View File
@@ -10,6 +10,7 @@ import ProfileLayout from "@/Components/FlightsGoneBy/ProfileLayout.vue"
import DepartureBoard from "@/Components/FlightsGoneBy/DepartureBoard.vue"
import BoardingPasses from "@/Components/FlightsGoneBy/BoardingPasses.vue";
import FlightMapAndCharts from "@/Components/FlightsGoneBy/FlightMapAndCharts.vue";
import {useFlights} from "@/Composables/useFlights";
defineOptions({ layout: MainLayout })
@@ -23,19 +24,7 @@ const props = defineProps<{
}>()
// ── Flights state ─────────────────────────────────────────────────────────────
const flights = ref<Flight[]>([])
const flightsLoading = ref(true)
onMounted(async () => {
try {
const response = await axios.get(props.flight_api_url)
flights.value = response.data
} finally {
flightsLoading.value = false
}
})
const { flights, flightsLoading } = useFlights(props.flight_api_url)
const localSelectedFlightId = ref(props.selectedFlightId ?? null)
// ── Filter state ──────────────────────────────────────────────────────────────
@@ -90,7 +79,6 @@ const filteredFlights = computed(() => {
const stats = useFlightStats(filteredFlights)
watchEffect(() => {
console.time('all.charts.input')
const _ = [
stats.perYear.value,
stats.perMonth.value,
@@ -99,7 +87,6 @@ watchEffect(() => {
stats.topAirports.value,
stats.countries.value,
]
console.timeEnd('all.charts.input')
})
// ── View switching ────────────────────────────────────────────────────────────