Updated logo API

This commit is contained in:
2026-04-23 00:53:19 +10:00
parent bd8ef98d30
commit 110ed5b984
17 changed files with 142 additions and 59 deletions
@@ -12,6 +12,7 @@ interface AirlineItem {
past: number
upcoming: number
id: number
logo_url: string
}
const props = defineProps<{
@@ -46,7 +47,7 @@ const chartEvents = computed(() => ({
<template #tooltip="{ visible, x, y, index }">
<ChartTooltip :visible="visible" :x="x" :y="y">
<div class="ct-name">
<img :src="`${page.logo_api_url}/airlines/logos/tail/id/${index !== null ? airlines[index].id : ''}`" width="24" height="24"/>
<img :src="`${index !== null ? airlines[index].logo_url : ''}`" width="24" height="24"/>
{{ index !== null ? airlines[index].name : '' }}
</div>
<div class="ct-row">