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
+5 -6
View File
@@ -81,11 +81,10 @@
<script>
import { computed, getCurrentInstance, provide, ref } from 'vue'
import { useNuxtApp } from '@nuxt/bridge/dist/runtime'
import { DefaultApolloClient } from '@vue/apollo-composable'
import Themed from './components/themed'
import { setDarkMode } from '~/utils/localStorage'
import { useAuth } from '~/plugins/auth'
import { useState } from '~/store'
export default {
name: 'DefaultLayout',
@@ -97,9 +96,8 @@ export default {
if (instance) {
provide(DefaultApolloClient, instance.proxy.$apollo)
}
const { $store } = useNuxtApp()
const state = useState()
const router = useRouter()
const { title } = $store.state
const onRedirectCallback = (appState) => {
router.push(
appState && appState.targetUrl
@@ -124,7 +122,7 @@ export default {
set: (val) => {
if (instance) {
instance.proxy.$vuetify.theme.dark = val
setDarkMode(instance.proxy.$vuetify.theme.dark)
state.setDarkMode(instance.proxy.$vuetify.theme.dark)
}
}
})
@@ -136,6 +134,7 @@ export default {
instance.proxy.$vuetify.lang.current = newLocale
instance.proxy.$i18n.locale = newLocale
}
state.setLocale(newLocale)
}
})
@@ -143,7 +142,7 @@ export default {
locale.value = instance.proxy.$i18n.locale
return {
title,
title: state.title,
loading,
isAuthenticated,
user,