Initial commit: Add project files
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
import { QueryClient } from '@tanstack/vue-query'
|
||||
|
||||
export const queryClient = new QueryClient({
|
||||
defaultOptions: {
|
||||
queries: {
|
||||
staleTime: 30_000,
|
||||
retry: (failureCount, error: unknown) => {
|
||||
const status = typeof error === 'object' && error !== null && 'status' in error
|
||||
? Number((error as { status: unknown }).status)
|
||||
: 0
|
||||
return ![400, 401, 403, 404, 409, 422].includes(status) && failureCount < 2
|
||||
},
|
||||
refetchOnWindowFocus: false
|
||||
},
|
||||
mutations: { retry: false }
|
||||
}
|
||||
})
|
||||
@@ -0,0 +1,16 @@
|
||||
import { createRouter, createWebHistory } from 'vue-router'
|
||||
import SellDecisionPage from '../features/sell-decision/pages/SellDecisionPage.vue'
|
||||
import DataQualityPage from '../features/data-quality/pages/DataQualityPage.vue'
|
||||
import ModelOperationsPage from '../features/model-operations/pages/ModelOperationsPage.vue'
|
||||
import UiStandardPage from '../features/ui-standard/pages/UiStandardPage.vue'
|
||||
|
||||
export const router = createRouter({
|
||||
history: createWebHistory(),
|
||||
routes: [
|
||||
{ path: '/', redirect: '/research/sell-decision' },
|
||||
{ path: '/research/sell-decision', component: SellDecisionPage, meta: { screenId: 'SCR-002', templateId: 'T02' } },
|
||||
{ path: '/ops/data-quality', component: DataQualityPage, meta: { screenId: 'SCR-013', templateId: 'T08' } },
|
||||
{ path: '/ops/model-operations', component: ModelOperationsPage, meta: { screenId: 'SCR-015', templateId: 'T10' } },
|
||||
{ path: '/internal/ui-standard', component: UiStandardPage, meta: { screenId: 'SCR-DEV-001', templateId: 'T01', internalOnly: true } }
|
||||
]
|
||||
})
|
||||
Reference in New Issue
Block a user