feat: download announcements via react query

This commit is contained in:
redglow
2026-06-20 16:46:11 +02:00
parent 1323cfbf91
commit fb44a1cf95
10 changed files with 78 additions and 19 deletions
+21 -3
View File
@@ -10,33 +10,43 @@
import { Route as rootRouteImport } from './routes/__root'
import { Route as IndexRouteImport } from './routes/index'
import { Route as SubrouteIndexRouteImport } from './routes/subroute/index'
const IndexRoute = IndexRouteImport.update({
id: '/',
path: '/',
getParentRoute: () => rootRouteImport,
} as any)
const SubrouteIndexRoute = SubrouteIndexRouteImport.update({
id: '/subroute/',
path: '/subroute/',
getParentRoute: () => rootRouteImport,
} as any)
export interface FileRoutesByFullPath {
'/': typeof IndexRoute
'/subroute/': typeof SubrouteIndexRoute
}
export interface FileRoutesByTo {
'/': typeof IndexRoute
'/subroute': typeof SubrouteIndexRoute
}
export interface FileRoutesById {
__root__: typeof rootRouteImport
'/': typeof IndexRoute
'/subroute/': typeof SubrouteIndexRoute
}
export interface FileRouteTypes {
fileRoutesByFullPath: FileRoutesByFullPath
fullPaths: '/'
fullPaths: '/' | '/subroute/'
fileRoutesByTo: FileRoutesByTo
to: '/'
id: '__root__' | '/'
to: '/' | '/subroute'
id: '__root__' | '/' | '/subroute/'
fileRoutesById: FileRoutesById
}
export interface RootRouteChildren {
IndexRoute: typeof IndexRoute
SubrouteIndexRoute: typeof SubrouteIndexRoute
}
declare module '@tanstack/react-router' {
@@ -48,11 +58,19 @@ declare module '@tanstack/react-router' {
preLoaderRoute: typeof IndexRouteImport
parentRoute: typeof rootRouteImport
}
'/subroute/': {
id: '/subroute/'
path: '/subroute'
fullPath: '/subroute/'
preLoaderRoute: typeof SubrouteIndexRouteImport
parentRoute: typeof rootRouteImport
}
}
}
const rootRouteChildren: RootRouteChildren = {
IndexRoute: IndexRoute,
SubrouteIndexRoute: SubrouteIndexRoute,
}
export const routeTree = rootRouteImport
._addFileChildren(rootRouteChildren)