Adding Seat plan component and database tables

This commit is contained in:
2024-10-01 15:37:08 +02:00
parent d6997229c4
commit bd53b8edfc
33 changed files with 880 additions and 204 deletions

View File

@@ -62,6 +62,7 @@ const concertStore = useConcertStore()
:image="'locations/' + concertStore.locations[i + 2].image"
:title="concertStore.locations[i + 2].name"
smaller-title
@click="router.push('/locations/' + concertStore.locations[i + 2].name.replaceAll(' ', '-').toLowerCase())"
>
{{ concertStore.locations[i + 2].city.name }}, {{ concertStore.locations[i + 2].city.country }}
</card-with-top-image>

View File

@@ -1,11 +1,11 @@
<script setup lang="ts">
import { LocationModel } from '@/data/models/acts/locationModel';
import { LocationModel } from '@/data/models/locations/locationModel';
import { useConcertStore } from '@/data/stores/concertStore';
import { createDateRangeString, lowestTicketPrice } from '@/scripts/concertScripts';
import { useRouter } from 'vue-router';
import cardWithLeftImage from '@/components/cardWithLeftImage.vue';
import sectionDivider from '@/components/sectionDivider.vue';
import { dateStringToHumanReadableString } from '@/scripts/dateTimeScripts';
import seatPlanMap from '@/components/seatPlanMap/seatPlanMap.vue';
const router = useRouter()
const concertStore = useConcertStore()
@@ -83,6 +83,20 @@ const location: LocationModel = concertStore.locations.find(location =>
/>
</v-col>
</v-row>
<v-row>
<v-col>
<section-divider :title="$t('seatPlan')" />
</v-col>
</v-row>
<v-row>
<v-col>
<seat-plan-map
:seat-groups="location.seatGroups"
/>
</v-col>
</v-row>
</v-col>
<v-spacer/>

View File

@@ -15,7 +15,7 @@ const concertStore = useConcertStore()
variant="outlined"
:items="concertStore.cities"
v-model="concertStore.cityFilter"
label="Stadt"
:label="$t('city')"
density="compact"
class="mb-n5"
:clearable="concertStore.cityFilter != null && concertStore.cityFilter.id != undefined"