Add orval and backend integration

This commit is contained in:
2025-11-11 19:53:09 +05:00
parent f56a235e86
commit 3186fa16e5
17 changed files with 1174 additions and 86 deletions

19
app/plugins/vue-query.ts Normal file
View File

@ -0,0 +1,19 @@
import { VueQueryPlugin, QueryClient } from '@tanstack/vue-query'
import { defineNuxtPlugin } from 'nuxt/app'
export const DEFAULT_QUERIES_OPTIONS = {
staleTime: 1000 * 60 * 5,
retry: 1,
refetchOnWindowFocus: false,
refetchOnMount: false,
}
export default defineNuxtPlugin((nuxtApp) => {
const queryClient = new QueryClient({
defaultOptions: {
queries: DEFAULT_QUERIES_OPTIONS,
},
})
nuxtApp.vueApp.use(VueQueryPlugin, { queryClient })
})