1eba2ee59b
- Vite 7 + React 19 + TanStack Router (file-based) + TanStack Query - Tailwind v4 (CSS-first config, OKLCH brand colors) - i18next + react-i18next с RU/EN switcher в header - Axios client с Accept-Language interceptor + JWT placeholder - 2 pages: /dictionaries (list cards) + /dictionaries/$name (records table) - Dockerfile (node build + nginx serving + API proxy) - README + .gitignore Backend: - Новый GET /api/v1/dictionaries в read-api (DictionaryListController), фильтрует по доступному scope через ScopeContext - DictionaryListItem DTO без heavy schema_json routeTree.gen.ts — stub; реальное содержимое генерится Vite plugin'ом при первом 'pnpm dev'.
8 lines
186 B
TypeScript
8 lines
186 B
TypeScript
import { createFileRoute, redirect } from '@tanstack/react-router'
|
|
|
|
export const Route = createFileRoute('/')({
|
|
beforeLoad: () => {
|
|
throw redirect({ to: '/dictionaries' })
|
|
},
|
|
})
|