Implement global search

This commit is contained in:
2024-10-11 12:59:21 +02:00
parent 49b436d588
commit cfb8fb9d7d
24 changed files with 262 additions and 209 deletions

View File

@@ -6,38 +6,21 @@ import navigationAppendItems from './components/navigation/navigationAppendItems
import navigationPrependItems from './components/navigation/navigationPrependItems.vue';
import { usePreferencesStore } from './data/stores/preferencesStore';
import { useFeedbackStore } from './data/stores/feedbackStore';
import { useConcertStore } from './data/stores/concertStore';
import { LocationModel } from './data/models/locations/locationModel';
import { useShoppingStore } from './data/stores/shoppingStore';
import footerItems from './components/navigation/footerItems.vue';
const preferencesStore = usePreferencesStore()
const concertStore = useConcertStore()
const feedbackStore = useFeedbackStore()
const shoppingStore = useShoppingStore()
const theme = useTheme()
theme.global.name.value = preferencesStore.theme
concertStore.fetchAllTours()
// Global watcher
watch(() => preferencesStore.language, () => {
i18n.global.locale = preferencesStore.language
}, { immediate: true })
watch(() => concertStore.cityFilter, () => {
concertStore.locationFilter = new LocationModel()
concertStore.filterTours()
})
watch(() => concertStore.locationFilter, () => {
concertStore.filterTours()
})
watch(() => concertStore.genreFilter, () => {
concertStore.filterTours()
})
</script>
<template>