mirror of
https://github.com/openclaw/clawhub.git
synced 2026-07-22 03:35:29 -04:00
chore: fix lint and route tree for /search route
This commit is contained in:
@@ -280,10 +280,10 @@ export const runReconcileSkillStarCountsInternal = internalAction({
|
||||
let totalPatched = 0
|
||||
|
||||
for (let i = 0; i < maxBatches; i++) {
|
||||
const result = (await ctx.runMutation(
|
||||
internal.statsMaintenance.reconcileSkillStarCounts,
|
||||
{ cursor, batchSize },
|
||||
)) as { scanned: number; patched: number; cursor: string | null; isDone: boolean }
|
||||
const result = (await ctx.runMutation(internal.statsMaintenance.reconcileSkillStarCounts, {
|
||||
cursor,
|
||||
batchSize,
|
||||
})) as { scanned: number; patched: number; cursor: string | null; isDone: boolean }
|
||||
|
||||
totalScanned += result.scanned
|
||||
totalPatched += result.patched
|
||||
|
||||
@@ -12,6 +12,7 @@ import { Route as rootRouteImport } from './routes/__root'
|
||||
import { Route as UploadRouteImport } from './routes/upload'
|
||||
import { Route as StarsRouteImport } from './routes/stars'
|
||||
import { Route as SettingsRouteImport } from './routes/settings'
|
||||
import { Route as SearchRouteImport } from './routes/search'
|
||||
import { Route as ManagementRouteImport } from './routes/management'
|
||||
import { Route as ImportRouteImport } from './routes/import'
|
||||
import { Route as DashboardRouteImport } from './routes/dashboard'
|
||||
@@ -39,6 +40,11 @@ const SettingsRoute = SettingsRouteImport.update({
|
||||
path: '/settings',
|
||||
getParentRoute: () => rootRouteImport,
|
||||
} as any)
|
||||
const SearchRoute = SearchRouteImport.update({
|
||||
id: '/search',
|
||||
path: '/search',
|
||||
getParentRoute: () => rootRouteImport,
|
||||
} as any)
|
||||
const ManagementRoute = ManagementRouteImport.update({
|
||||
id: '/management',
|
||||
path: '/management',
|
||||
@@ -101,6 +107,7 @@ export interface FileRoutesByFullPath {
|
||||
'/dashboard': typeof DashboardRoute
|
||||
'/import': typeof ImportRoute
|
||||
'/management': typeof ManagementRoute
|
||||
'/search': typeof SearchRoute
|
||||
'/settings': typeof SettingsRoute
|
||||
'/stars': typeof StarsRoute
|
||||
'/upload': typeof UploadRoute
|
||||
@@ -117,6 +124,7 @@ export interface FileRoutesByTo {
|
||||
'/dashboard': typeof DashboardRoute
|
||||
'/import': typeof ImportRoute
|
||||
'/management': typeof ManagementRoute
|
||||
'/search': typeof SearchRoute
|
||||
'/settings': typeof SettingsRoute
|
||||
'/stars': typeof StarsRoute
|
||||
'/upload': typeof UploadRoute
|
||||
@@ -134,6 +142,7 @@ export interface FileRoutesById {
|
||||
'/dashboard': typeof DashboardRoute
|
||||
'/import': typeof ImportRoute
|
||||
'/management': typeof ManagementRoute
|
||||
'/search': typeof SearchRoute
|
||||
'/settings': typeof SettingsRoute
|
||||
'/stars': typeof StarsRoute
|
||||
'/upload': typeof UploadRoute
|
||||
@@ -152,6 +161,7 @@ export interface FileRouteTypes {
|
||||
| '/dashboard'
|
||||
| '/import'
|
||||
| '/management'
|
||||
| '/search'
|
||||
| '/settings'
|
||||
| '/stars'
|
||||
| '/upload'
|
||||
@@ -168,6 +178,7 @@ export interface FileRouteTypes {
|
||||
| '/dashboard'
|
||||
| '/import'
|
||||
| '/management'
|
||||
| '/search'
|
||||
| '/settings'
|
||||
| '/stars'
|
||||
| '/upload'
|
||||
@@ -184,6 +195,7 @@ export interface FileRouteTypes {
|
||||
| '/dashboard'
|
||||
| '/import'
|
||||
| '/management'
|
||||
| '/search'
|
||||
| '/settings'
|
||||
| '/stars'
|
||||
| '/upload'
|
||||
@@ -201,6 +213,7 @@ export interface RootRouteChildren {
|
||||
DashboardRoute: typeof DashboardRoute
|
||||
ImportRoute: typeof ImportRoute
|
||||
ManagementRoute: typeof ManagementRoute
|
||||
SearchRoute: typeof SearchRoute
|
||||
SettingsRoute: typeof SettingsRoute
|
||||
StarsRoute: typeof StarsRoute
|
||||
UploadRoute: typeof UploadRoute
|
||||
@@ -235,6 +248,13 @@ declare module '@tanstack/react-router' {
|
||||
preLoaderRoute: typeof SettingsRouteImport
|
||||
parentRoute: typeof rootRouteImport
|
||||
}
|
||||
'/search': {
|
||||
id: '/search'
|
||||
path: '/search'
|
||||
fullPath: '/search'
|
||||
preLoaderRoute: typeof SearchRouteImport
|
||||
parentRoute: typeof rootRouteImport
|
||||
}
|
||||
'/management': {
|
||||
id: '/management'
|
||||
path: '/management'
|
||||
@@ -321,6 +341,7 @@ const rootRouteChildren: RootRouteChildren = {
|
||||
DashboardRoute: DashboardRoute,
|
||||
ImportRoute: ImportRoute,
|
||||
ManagementRoute: ManagementRoute,
|
||||
SearchRoute: SearchRoute,
|
||||
SettingsRoute: SettingsRoute,
|
||||
StarsRoute: StarsRoute,
|
||||
UploadRoute: UploadRoute,
|
||||
|
||||
Reference in New Issue
Block a user