MCPcopy Create free account

hub / github.com/ViggoZ/hackernews-cn / functions

Functions38 in github.com/ViggoZ/hackernews-cn

↓ 5 callersFunctionwithRetry
(operation: () => Promise<T>, maxRetries = 5)
src/lib/db.ts:22
↓ 3 callersFunctioncn
(...inputs: ClassValue[])
src/lib/utils.ts:4
↓ 3 callersFunctiontranslateText
(text: string)
src/lib/translate.ts:8
↓ 2 callersFunctioncreateStory
(item: HNItem, translation: { titleZh: string; textZh?: string })
src/lib/db.ts:47
↓ 2 callersFunctionfetchItem
(id: number)
src/lib/hn.ts:62
↓ 2 callersFunctionfetchMultipleStories
(ids: number[])
src/lib/hn.ts:67
↓ 2 callersFunctionfetchStories
(type: string)
src/lib/hn.ts:56
↓ 2 callersFunctionfetchWithRetry
(url: string, retries = MAX_RETRIES)
src/lib/hn.ts:40
↓ 2 callersFunctionstoryExists
(id: number)
src/lib/db.ts:204
↓ 2 callersFunctiontranslateStory
(story: HNItem)
src/lib/translate.ts:32
↓ 1 callersFunctiongetStories
( type: StoryType = 'top', page: number = 1, pageSize: number = 20 )
src/lib/db.ts:128
↓ 1 callersFunctiongetStoriesByTypes
(types: StoryType[], pageSize: number = 10)
src/lib/db.ts:76
↓ 1 callersFunctiongetStory
(id: number)
src/lib/db.ts:196
↓ 1 callersFunctionhandleScroll
()
src/app/components/ScrollDetector.tsx:7
↓ 1 callersFunctionisValidCronRequest
(request: Request)
src/app/api/cron/route.ts:16
↓ 1 callersFunctionisValidStoryType
(type: string)
src/app/category/[type]/page.tsx:30
↓ 1 callersFunctionmapHNTypeToDBType
(hnType: string)
src/app/api/cron/route.ts:25
↓ 1 callersFunctionprismaClientSingleton
()
src/lib/db.ts:9
↓ 1 callersFunctionprocessStory
(story: HNItem, type: string)
src/app/api/cron/route.ts:44
FunctionCategoryPage
({ params, searchParams, }: { params: { type: string }; searchParams: { page?: string }; })
src/app/category/[type]/page.tsx:34
FunctionFAQ
()
src/components/home/FAQ.tsx:25
FunctionFeatures
()
src/components/home/Features.tsx:26
FunctionFooter
()
src/components/layout/footer.tsx:5
FunctionGET
()
src/app/api/fetch/route.ts:12
FunctionGET
(req: Request)
src/app/api/cron/route.ts:74
FunctionGET
(request: Request)
src/app/api/debug/route.ts:4
FunctionHeader
()
src/components/layout/header.tsx:8
FunctionHome
()
src/app/page.tsx:119
FunctionRootLayout
({ children, }: { children: React.ReactNode })
src/app/layout.tsx:13
FunctionScrollDetector
()
src/app/components/ScrollDetector.tsx:5
FunctionStoryCard
({ title, type, stories, icon }: StoryCardProps)
src/app/page.tsx:41
FunctionStoryList
({ stories, type, currentPage }: StoryListProps)
src/components/StoryList.tsx:24
FunctionStoryPage
({ params }: PageProps)
src/app/item/[id]/page.tsx:28
FunctionbatchTranslate
( items: T[], translateFn: (item: T) => Promise<R>, delayMs: number = 1000 )
src/lib/translate.ts:48
FunctionfetchComments
(ids: number[])
src/lib/hn.ts:79
FunctionfetchUser
(id: string)
src/lib/hn.ts:74
FunctionhandleScroll
()
src/components/layout/header.tsx:12
FunctiontranslateComment
(comment: HNItem)
src/lib/translate.ts:42