forked from imbytecat/fullstack-starter
- 更新依赖管理文档,明确使用 Bun Catalog 统一管理版本并规范安装方式,新增已知问题与解决方案、依赖选择经验及 Git 工作流要求,强化团队协作与技术决策可追溯性。 - 添加硬件指纹页面,展示机器码、指纹质量等级及详细信息,并支持一键复制和缓存提示。 - 添加指纹路由配置并更新路由树类型定义以包含新路由路径和相关类型。 - 添加硬件指纹获取接口的契约定义,包含指纹字符串、质量等级、强标识符数量和时间戳的验证规则。 - 添加指纹合约到API合约导出中 - 添加硬件指纹获取接口,支持10分钟缓存并包含主硬盘序列号以提升指纹稳定性。 - 添加指纹路由到API路由器中 - 重构硬件指纹生成逻辑,引入缓存机制、质量等级评估和容错处理,提升稳定性与可维护性。
123 lines
3.6 KiB
TypeScript
123 lines
3.6 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 FingerprintRouteImport } from './routes/fingerprint'
|
|
import { Route as IndexRouteImport } from './routes/index'
|
|
import { Route as ApiSplatRouteImport } from './routes/api/$'
|
|
import { Route as ApiRpcSplatRouteImport } from './routes/api/rpc.$'
|
|
|
|
const FingerprintRoute = FingerprintRouteImport.update({
|
|
id: '/fingerprint',
|
|
path: '/fingerprint',
|
|
getParentRoute: () => rootRouteImport,
|
|
} as any)
|
|
const IndexRoute = IndexRouteImport.update({
|
|
id: '/',
|
|
path: '/',
|
|
getParentRoute: () => rootRouteImport,
|
|
} as any)
|
|
const ApiSplatRoute = ApiSplatRouteImport.update({
|
|
id: '/api/$',
|
|
path: '/api/$',
|
|
getParentRoute: () => rootRouteImport,
|
|
} as any)
|
|
const ApiRpcSplatRoute = ApiRpcSplatRouteImport.update({
|
|
id: '/api/rpc/$',
|
|
path: '/api/rpc/$',
|
|
getParentRoute: () => rootRouteImport,
|
|
} as any)
|
|
|
|
export interface FileRoutesByFullPath {
|
|
'/': typeof IndexRoute
|
|
'/fingerprint': typeof FingerprintRoute
|
|
'/api/$': typeof ApiSplatRoute
|
|
'/api/rpc/$': typeof ApiRpcSplatRoute
|
|
}
|
|
export interface FileRoutesByTo {
|
|
'/': typeof IndexRoute
|
|
'/fingerprint': typeof FingerprintRoute
|
|
'/api/$': typeof ApiSplatRoute
|
|
'/api/rpc/$': typeof ApiRpcSplatRoute
|
|
}
|
|
export interface FileRoutesById {
|
|
__root__: typeof rootRouteImport
|
|
'/': typeof IndexRoute
|
|
'/fingerprint': typeof FingerprintRoute
|
|
'/api/$': typeof ApiSplatRoute
|
|
'/api/rpc/$': typeof ApiRpcSplatRoute
|
|
}
|
|
export interface FileRouteTypes {
|
|
fileRoutesByFullPath: FileRoutesByFullPath
|
|
fullPaths: '/' | '/fingerprint' | '/api/$' | '/api/rpc/$'
|
|
fileRoutesByTo: FileRoutesByTo
|
|
to: '/' | '/fingerprint' | '/api/$' | '/api/rpc/$'
|
|
id: '__root__' | '/' | '/fingerprint' | '/api/$' | '/api/rpc/$'
|
|
fileRoutesById: FileRoutesById
|
|
}
|
|
export interface RootRouteChildren {
|
|
IndexRoute: typeof IndexRoute
|
|
FingerprintRoute: typeof FingerprintRoute
|
|
ApiSplatRoute: typeof ApiSplatRoute
|
|
ApiRpcSplatRoute: typeof ApiRpcSplatRoute
|
|
}
|
|
|
|
declare module '@tanstack/react-router' {
|
|
interface FileRoutesByPath {
|
|
'/fingerprint': {
|
|
id: '/fingerprint'
|
|
path: '/fingerprint'
|
|
fullPath: '/fingerprint'
|
|
preLoaderRoute: typeof FingerprintRouteImport
|
|
parentRoute: typeof rootRouteImport
|
|
}
|
|
'/': {
|
|
id: '/'
|
|
path: '/'
|
|
fullPath: '/'
|
|
preLoaderRoute: typeof IndexRouteImport
|
|
parentRoute: typeof rootRouteImport
|
|
}
|
|
'/api/$': {
|
|
id: '/api/$'
|
|
path: '/api/$'
|
|
fullPath: '/api/$'
|
|
preLoaderRoute: typeof ApiSplatRouteImport
|
|
parentRoute: typeof rootRouteImport
|
|
}
|
|
'/api/rpc/$': {
|
|
id: '/api/rpc/$'
|
|
path: '/api/rpc/$'
|
|
fullPath: '/api/rpc/$'
|
|
preLoaderRoute: typeof ApiRpcSplatRouteImport
|
|
parentRoute: typeof rootRouteImport
|
|
}
|
|
}
|
|
}
|
|
|
|
const rootRouteChildren: RootRouteChildren = {
|
|
IndexRoute: IndexRoute,
|
|
FingerprintRoute: FingerprintRoute,
|
|
ApiSplatRoute: ApiSplatRoute,
|
|
ApiRpcSplatRoute: ApiRpcSplatRoute,
|
|
}
|
|
export const routeTree = rootRouteImport
|
|
._addFileChildren(rootRouteChildren)
|
|
._addFileTypes<FileRouteTypes>()
|
|
|
|
import type { getRouter } from './router.tsx'
|
|
import type { createStart } from '@tanstack/react-start'
|
|
declare module '@tanstack/react-start' {
|
|
interface Register {
|
|
ssr: true
|
|
router: Awaited<ReturnType<typeof getRouter>>
|
|
}
|
|
}
|