Aktualizace balicku, strnakovani, uprava hlavni stranky

This commit is contained in:
Michal Kváček
2023-12-12 23:42:16 +01:00
parent 8c7e237053
commit c8ea17c1ec
67 changed files with 1372 additions and 774 deletions
+29
View File
@@ -0,0 +1,29 @@
<script>
import {usePilotsStore} from "stores/Pilots";
export default {
preFetch({store, currentRoute}) {
return usePilotsStore(store).fetchPublicPilotDetail(currentRoute.params.username);
},
}
</script>
<script setup>
import {storeToRefs} from "pinia";
import PilotProfileCard from "components/profile/PilotProfileCard.vue";
import PublicProfileSkeleton from "components/profile/skeletons/PublicProfileSkeleton.vue";
const {pilot, isQueryRunning: pilotLoading} = storeToRefs(usePilotsStore());
</script>
<template>
<div class="row">
<div class="col-12 col-md-8">
<router-view :pilot="pilot" />
</div>
<div class="col-12 col-md-4">
<PublicProfileSkeleton v-if="pilotLoading && !pilot"/>
<PilotProfileCard v-else :pilot="pilot"/>
</div>
</div>
</template>