- Add auth redirect in root layout for unauthenticated users - Proxy OIDC routes (/login, /callback, /logout) through Vite dev server - Strip Secure flag from OIDC cookies in dev mode (HTTP localhost) - Disable retry on auth query to prevent stale cookie loops - Fix SQLite .get()/.all()/.run() calls in category and global-item services for PostgreSQL compatibility - Add userId scoping to category service functions - Add OIDC error logging in auth middleware - Apply linter auto-formatting across affected files Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
232 lines
7.4 KiB
TypeScript
232 lines
7.4 KiB
TypeScript
/* eslint-disable */
|
|
|
|
// @ts-nocheck
|
|
|
|
// noinspection JSUnusedGlobalSymbols
|
|
|
|
// This file was automatically generated by TanStack Router.
|
|
// You should NOT make any changes in this file as it will be overwritten.
|
|
// Additionally, you should also exclude this file from your linter and/or formatter to prevent it from being checked or modified.
|
|
|
|
import { Route as rootRouteImport } from './routes/__root'
|
|
import { Route as SettingsRouteImport } from './routes/settings'
|
|
import { Route as LoginRouteImport } from './routes/login'
|
|
import { Route as IndexRouteImport } from './routes/index'
|
|
import { Route as GlobalItemsIndexRouteImport } from './routes/global-items/index'
|
|
import { Route as CollectionIndexRouteImport } from './routes/collection/index'
|
|
import { Route as UsersUserIdRouteImport } from './routes/users/$userId'
|
|
import { Route as ThreadsThreadIdRouteImport } from './routes/threads/$threadId'
|
|
import { Route as SetupsSetupIdRouteImport } from './routes/setups/$setupId'
|
|
import { Route as GlobalItemsGlobalItemIdRouteImport } from './routes/global-items/$globalItemId'
|
|
|
|
const SettingsRoute = SettingsRouteImport.update({
|
|
id: '/settings',
|
|
path: '/settings',
|
|
getParentRoute: () => rootRouteImport,
|
|
} as any)
|
|
const LoginRoute = LoginRouteImport.update({
|
|
id: '/login',
|
|
path: '/login',
|
|
getParentRoute: () => rootRouteImport,
|
|
} as any)
|
|
const IndexRoute = IndexRouteImport.update({
|
|
id: '/',
|
|
path: '/',
|
|
getParentRoute: () => rootRouteImport,
|
|
} as any)
|
|
const GlobalItemsIndexRoute = GlobalItemsIndexRouteImport.update({
|
|
id: '/global-items/',
|
|
path: '/global-items/',
|
|
getParentRoute: () => rootRouteImport,
|
|
} as any)
|
|
const CollectionIndexRoute = CollectionIndexRouteImport.update({
|
|
id: '/collection/',
|
|
path: '/collection/',
|
|
getParentRoute: () => rootRouteImport,
|
|
} as any)
|
|
const UsersUserIdRoute = UsersUserIdRouteImport.update({
|
|
id: '/users/$userId',
|
|
path: '/users/$userId',
|
|
getParentRoute: () => rootRouteImport,
|
|
} as any)
|
|
const ThreadsThreadIdRoute = ThreadsThreadIdRouteImport.update({
|
|
id: '/threads/$threadId',
|
|
path: '/threads/$threadId',
|
|
getParentRoute: () => rootRouteImport,
|
|
} as any)
|
|
const SetupsSetupIdRoute = SetupsSetupIdRouteImport.update({
|
|
id: '/setups/$setupId',
|
|
path: '/setups/$setupId',
|
|
getParentRoute: () => rootRouteImport,
|
|
} as any)
|
|
const GlobalItemsGlobalItemIdRoute = GlobalItemsGlobalItemIdRouteImport.update({
|
|
id: '/global-items/$globalItemId',
|
|
path: '/global-items/$globalItemId',
|
|
getParentRoute: () => rootRouteImport,
|
|
} as any)
|
|
|
|
export interface FileRoutesByFullPath {
|
|
'/': typeof IndexRoute
|
|
'/login': typeof LoginRoute
|
|
'/settings': typeof SettingsRoute
|
|
'/global-items/$globalItemId': typeof GlobalItemsGlobalItemIdRoute
|
|
'/setups/$setupId': typeof SetupsSetupIdRoute
|
|
'/threads/$threadId': typeof ThreadsThreadIdRoute
|
|
'/users/$userId': typeof UsersUserIdRoute
|
|
'/collection/': typeof CollectionIndexRoute
|
|
'/global-items/': typeof GlobalItemsIndexRoute
|
|
}
|
|
export interface FileRoutesByTo {
|
|
'/': typeof IndexRoute
|
|
'/login': typeof LoginRoute
|
|
'/settings': typeof SettingsRoute
|
|
'/global-items/$globalItemId': typeof GlobalItemsGlobalItemIdRoute
|
|
'/setups/$setupId': typeof SetupsSetupIdRoute
|
|
'/threads/$threadId': typeof ThreadsThreadIdRoute
|
|
'/users/$userId': typeof UsersUserIdRoute
|
|
'/collection': typeof CollectionIndexRoute
|
|
'/global-items': typeof GlobalItemsIndexRoute
|
|
}
|
|
export interface FileRoutesById {
|
|
__root__: typeof rootRouteImport
|
|
'/': typeof IndexRoute
|
|
'/login': typeof LoginRoute
|
|
'/settings': typeof SettingsRoute
|
|
'/global-items/$globalItemId': typeof GlobalItemsGlobalItemIdRoute
|
|
'/setups/$setupId': typeof SetupsSetupIdRoute
|
|
'/threads/$threadId': typeof ThreadsThreadIdRoute
|
|
'/users/$userId': typeof UsersUserIdRoute
|
|
'/collection/': typeof CollectionIndexRoute
|
|
'/global-items/': typeof GlobalItemsIndexRoute
|
|
}
|
|
export interface FileRouteTypes {
|
|
fileRoutesByFullPath: FileRoutesByFullPath
|
|
fullPaths:
|
|
| '/'
|
|
| '/login'
|
|
| '/settings'
|
|
| '/global-items/$globalItemId'
|
|
| '/setups/$setupId'
|
|
| '/threads/$threadId'
|
|
| '/users/$userId'
|
|
| '/collection/'
|
|
| '/global-items/'
|
|
fileRoutesByTo: FileRoutesByTo
|
|
to:
|
|
| '/'
|
|
| '/login'
|
|
| '/settings'
|
|
| '/global-items/$globalItemId'
|
|
| '/setups/$setupId'
|
|
| '/threads/$threadId'
|
|
| '/users/$userId'
|
|
| '/collection'
|
|
| '/global-items'
|
|
id:
|
|
| '__root__'
|
|
| '/'
|
|
| '/login'
|
|
| '/settings'
|
|
| '/global-items/$globalItemId'
|
|
| '/setups/$setupId'
|
|
| '/threads/$threadId'
|
|
| '/users/$userId'
|
|
| '/collection/'
|
|
| '/global-items/'
|
|
fileRoutesById: FileRoutesById
|
|
}
|
|
export interface RootRouteChildren {
|
|
IndexRoute: typeof IndexRoute
|
|
LoginRoute: typeof LoginRoute
|
|
SettingsRoute: typeof SettingsRoute
|
|
GlobalItemsGlobalItemIdRoute: typeof GlobalItemsGlobalItemIdRoute
|
|
SetupsSetupIdRoute: typeof SetupsSetupIdRoute
|
|
ThreadsThreadIdRoute: typeof ThreadsThreadIdRoute
|
|
UsersUserIdRoute: typeof UsersUserIdRoute
|
|
CollectionIndexRoute: typeof CollectionIndexRoute
|
|
GlobalItemsIndexRoute: typeof GlobalItemsIndexRoute
|
|
}
|
|
|
|
declare module '@tanstack/react-router' {
|
|
interface FileRoutesByPath {
|
|
'/settings': {
|
|
id: '/settings'
|
|
path: '/settings'
|
|
fullPath: '/settings'
|
|
preLoaderRoute: typeof SettingsRouteImport
|
|
parentRoute: typeof rootRouteImport
|
|
}
|
|
'/login': {
|
|
id: '/login'
|
|
path: '/login'
|
|
fullPath: '/login'
|
|
preLoaderRoute: typeof LoginRouteImport
|
|
parentRoute: typeof rootRouteImport
|
|
}
|
|
'/': {
|
|
id: '/'
|
|
path: '/'
|
|
fullPath: '/'
|
|
preLoaderRoute: typeof IndexRouteImport
|
|
parentRoute: typeof rootRouteImport
|
|
}
|
|
'/global-items/': {
|
|
id: '/global-items/'
|
|
path: '/global-items'
|
|
fullPath: '/global-items/'
|
|
preLoaderRoute: typeof GlobalItemsIndexRouteImport
|
|
parentRoute: typeof rootRouteImport
|
|
}
|
|
'/collection/': {
|
|
id: '/collection/'
|
|
path: '/collection'
|
|
fullPath: '/collection/'
|
|
preLoaderRoute: typeof CollectionIndexRouteImport
|
|
parentRoute: typeof rootRouteImport
|
|
}
|
|
'/users/$userId': {
|
|
id: '/users/$userId'
|
|
path: '/users/$userId'
|
|
fullPath: '/users/$userId'
|
|
preLoaderRoute: typeof UsersUserIdRouteImport
|
|
parentRoute: typeof rootRouteImport
|
|
}
|
|
'/threads/$threadId': {
|
|
id: '/threads/$threadId'
|
|
path: '/threads/$threadId'
|
|
fullPath: '/threads/$threadId'
|
|
preLoaderRoute: typeof ThreadsThreadIdRouteImport
|
|
parentRoute: typeof rootRouteImport
|
|
}
|
|
'/setups/$setupId': {
|
|
id: '/setups/$setupId'
|
|
path: '/setups/$setupId'
|
|
fullPath: '/setups/$setupId'
|
|
preLoaderRoute: typeof SetupsSetupIdRouteImport
|
|
parentRoute: typeof rootRouteImport
|
|
}
|
|
'/global-items/$globalItemId': {
|
|
id: '/global-items/$globalItemId'
|
|
path: '/global-items/$globalItemId'
|
|
fullPath: '/global-items/$globalItemId'
|
|
preLoaderRoute: typeof GlobalItemsGlobalItemIdRouteImport
|
|
parentRoute: typeof rootRouteImport
|
|
}
|
|
}
|
|
}
|
|
|
|
const rootRouteChildren: RootRouteChildren = {
|
|
IndexRoute: IndexRoute,
|
|
LoginRoute: LoginRoute,
|
|
SettingsRoute: SettingsRoute,
|
|
GlobalItemsGlobalItemIdRoute: GlobalItemsGlobalItemIdRoute,
|
|
SetupsSetupIdRoute: SetupsSetupIdRoute,
|
|
ThreadsThreadIdRoute: ThreadsThreadIdRoute,
|
|
UsersUserIdRoute: UsersUserIdRoute,
|
|
CollectionIndexRoute: CollectionIndexRoute,
|
|
GlobalItemsIndexRoute: GlobalItemsIndexRoute,
|
|
}
|
|
export const routeTree = rootRouteImport
|
|
._addFileChildren(rootRouteChildren)
|
|
._addFileTypes<FileRouteTypes>()
|