Added achievement data

This commit is contained in:
2026-05-09 18:05:12 +10:00
parent 7e3af37a46
commit f2b2eaaabe
183 changed files with 578 additions and 5 deletions
@@ -5,6 +5,7 @@ import InlineBadge from "@/Components/FlightsGoneBy/InlineBadge.vue";
defineProps<{
aircraft: Aircraft
showTooltips?: boolean
}>()
function formatWtc(wtc: string): string {
@@ -6,6 +6,7 @@ import AircraftToolTip from "@/Components/FlightsGoneBy/AircraftToolTip.vue";
defineProps<{
flight: Flight
showTooltips?: boolean
}>()
@@ -16,6 +16,7 @@ import AllianceLogo from "@/Components/FlightsGoneBy/AllianceLogo.vue";
const props = defineProps<{
flightStats: FlightStats
user: User
canEdit: boolean
flightId?: number | null
}>()
@@ -262,7 +263,7 @@ watch(
</td>
<td class="v-data-table__td actions-cell">
<template v-if="canEdit">
<template>
<v-menu>
<template #activator="{ props: menuProps }">
<v-btn
@@ -274,12 +275,17 @@ watch(
/>
</template>
<v-list density="compact" bg-color="#1a1e2e">
<v-list-item
<v-list-item v-if="canEdit"
prepend-icon="mdi-pencil-outline"
title="View Details"
:href="`/u/${user.name}/flight/${(item as Flight).id}`"
/>
<v-list-item v-if="canEdit"
prepend-icon="mdi-pencil-outline"
title="Edit"
:href="editRoute((item as Flight).id)"
/>
<v-list-item
<v-list-item v-if="canEdit"
prepend-icon="mdi-trash-can-outline"
title="Delete"
@click="showDeleteDialog = true"
@@ -470,6 +470,7 @@ export default defineComponent({
nextTick(() => {
map = new maplibregl.Map({
container: mapContainer.value!,
cooperativeGestures: true,
style: {
version: 8,
sources: {
@@ -493,6 +494,7 @@ export default defineComponent({
renderWorldCopies: true,
})
map.addControl(new maplibregl.NavigationControl({ showCompass: false }), 'top-right')
map.addControl(new maplibregl.FullscreenControl(), 'top-right')
map.on('load', () => {
addLayers()
fitBounds()
@@ -57,7 +57,7 @@ const follow = async () => {
<div class="board-count">
<span class="count-number">{{ flightCount ?? achievementCount }}</span>
<span class="count-label">{{flightCount ? 'Flights' : 'Achievements'}}</span>
<span class="count-label">{{achievementCount ? 'Achievements' : 'Flights'}}</span>
</div>
</div>