feat: add full text search

This commit is contained in:
2023-08-01 20:21:31 +02:00
parent 181c15f5f5
commit 7267cb88a3
16 changed files with 242 additions and 179 deletions
+3 -3
View File
@@ -62,7 +62,6 @@
<script lang='ts'>
import { computed, ref } from 'vue'
import { useNuxtApp } from '@nuxt/bridge/dist/runtime'
import List from './List/index.vue'
import { useAuth } from '~/plugins/auth'
@@ -75,6 +74,7 @@ import {
useToggleIgnoreMunicipalityMutation,
useToggleIgnoreStateMutation
} from '~/graphql/generated/operations'
import { useState } from '~/store'
export default {
name: 'FiltersPage',
@@ -82,9 +82,9 @@ export default {
List
},
setup() {
const { $store } = useNuxtApp()
const state = useState()
const { t } = useTranslation()
$store.commit('setTitle', t('app.links.filters'))
state.setTitle(t('app.links.filters'))
const { isAuthenticated } = useAuth()
const { result, loading, refetch } = useFetchFiltersQuery()
const bands = computed(() => result.value?.bands ?? [])