MCPcopy Create free account

hub / github.com/KunMoe/kun-touchgal-next / functions

Functions1,854 in github.com/KunMoe/kun-touchgal-next

↓ 176 callersFunctionverifyHeaderCookie
(req: NextRequest)
middleware/_verifyHeaderCookie.ts:5
↓ 60 callersFunctionkunErrorHandler
( res: T | string, callback: (res: T) => void )
utils/kunErrorHandler.ts:3
↓ 50 callersFunctionkunParsePostBody
( req: NextRequest, schema: T )
app/api/utils/parseQuery.ts:20
↓ 47 callersFunctionkunParseGetQuery
( req: NextRequest, schema: T )
app/api/utils/parseQuery.ts:5
↓ 36 callersFunctioncn
(...inputs: ClassValue[])
utils/cn.ts:4
↓ 35 callersFunctiongetKv
(key: string)
lib/redis.ts:105
↓ 33 callersFunctionsetKv
(key: string, value: string, time?: number)
lib/redis.ts:96
↓ 31 callersFunctionkunParsePutBody
( req: NextRequest, schema: T )
app/api/utils/parseQuery.ts:34
↓ 30 callersFunctionsafeParseSchema
( schema: T, object: Record<string, unknown> )
utils/actions/safeParseSchema.ts:4
↓ 28 callersFunctionuseMounted
()
hooks/useMounted.ts:3
↓ 25 callersFunctioninvalidateUserSession
(uid: number)
app/api/user/session/cache.ts:101
↓ 23 callersFunctiondelKv
(key: string)
lib/redis.ts:132
↓ 19 callersFunctionrunRedisCommand
(command: () => Promise<T>)
lib/redis.ts:91
↓ 18 callersFunctiongetSearchParamValue
( value: string | string[] | null | undefined )
utils/galgameFilter.ts:16
↓ 15 callersFunctionkunParseDeleteQuery
( req: NextRequest, schema: T )
app/api/utils/parseQuery.ts:48
↓ 14 callersFunctiongetPatchVisibilityWhere
( req: NextRequest )
app/api/utils/getPatchVisibilityWhere.ts:7
↓ 12 callersFunctioncreateMessage
( data: CreateMessageType, db: MessageClient = prisma )
app/api/utils/message.ts:7
↓ 12 callersFunctionnormalizeStringArray
(values: readonly unknown[])
utils/normalizeStringArray.ts:1
↓ 11 callersFunctionerrorReporter
(error: unknown)
utils/kunErrorHandler.ts:43
↓ 11 callersFunctionescapeHtml
(text: string)
utils/markdownPreview.ts:1
↓ 11 callersFunctionformatDate
( time: Date | string | number, config?: { isShowYear?: boolean; isPrecise?: boolean } )
utils/time.ts:52
↓ 11 callersFunctiongetNSFWHeader
( req: NextRequest, payload?: KunGalgamePayload | null )
app/api/utils/getNSFWHeader.ts:13
↓ 11 callersFunctioninvalidateResourceListCache
()
app/api/resource/cache.ts:30
↓ 11 callersFunctionrenderInlineMarkdown
(text: string)
utils/markdownPreview.ts:9
↓ 10 callersFunctioncreateModerationTask
( input: { contentType: ModerationContentType contentId?: number userId: number payload: Mod
server/moderation/submit.ts:101
↓ 10 callersFunctiongetParamValue
(params: NextParams, key: string)
constants/routes/routes.ts:19
↓ 10 callersFunctionparseGalgameFilterArray
(value: string | null | undefined)
utils/galgameFilter.ts:30
↓ 9 callersFunctioncall
(command: CmdKey<T>, payload?: T)
components/kun/milkdown/plugins/Menu.tsx:23
↓ 9 callersFunctiondeletePendingModerationTasks
( contentType: ModerationContentType, contentId: number | number[], db: ModerationClient = prisma )
server/moderation/submit.ts:88
↓ 9 callersFunctionmaskShadowBannedUser
( viewer: KunViewer | null, user: T )
app/api/utils/shadowBan.ts:72
↓ 9 callersFunctionrecalcPatchType
( patchId: number, tx: { patch_resource: Pick<typeof prisma.patch_resource, 'findMany'> patch: Pic
app/api/patch/resource/_helper.ts:139
↓ 8 callersFunctionflushList
()
utils/markdownPreview.ts:41
↓ 8 callersFunctiongetAccessTokenKey
(uid: number, jti: string)
app/api/utils/jwt.ts:63
↓ 8 callersFunctiongetLoginSessionsKey
(uid: number)
app/api/utils/jwt.ts:71
↓ 8 callersFunctionsanitizeUserHref
(url: string)
utils/safeUrl.ts:49
↓ 8 callersFunctionuploadImageToS3
(key: string, fileBuffer: Buffer)
lib/s3.ts:46
↓ 8 callersFunctionwithPageReset
(setter: (value: T) => void)
components/company/detail/Container.tsx:94
↓ 8 callersFunctionwithPageReset
(setter: (value: T) => void)
components/tag/detail/Container.tsx:99
↓ 7 callersFunctioncreateDedupMessage
( data: CreateMessageType, db: MessageClient = prisma )
app/api/utils/message.ts:17
↓ 7 callersFunctioncreateEmailChangeRevertResponse
( title: string, message: string, status = 200 )
app/api/user/setting/email/_emailChange.ts:172
↓ 7 callersFunctiondeleteFileFromS3
(key: string)
lib/s3.ts:79
↓ 7 callersFunctiondeleteKunToken
(uid: number)
app/api/utils/jwt.ts:493
↓ 7 callersFunctionduplicateQueryField
(maxLength: number)
validations/edit.ts:4
↓ 7 callersFunctionescapeHtml
(value: string)
app/api/user/setting/email/_emailChange.ts:25
↓ 7 callersFunctionformatNumber
(num: number)
utils/formatNumber.ts:1
↓ 7 callersFunctiongetKvs
(keys: string[])
lib/redis.ts:123
↓ 7 callersFunctioninvalidatePatchContentCache
(uniqueId: string)
app/api/patch/cache.ts:125
↓ 7 callersFunctionisRedirectableUrl
(url: string)
utils/safeUrl.ts:70
↓ 7 callersFunctionlogResourceListCacheError
(message: string, error: unknown)
app/api/resource/cache.ts:14
↓ 7 callersFunctionparseCookies
(cookieString: string)
utils/cookies.ts:1
↓ 7 callersFunctionpreScreenText
( text: string )
server/moderation/submit.ts:23
↓ 7 callersFunctionrecomputePatchRatingStat
(patchId: number)
app/api/patch/rating/stat.ts:4
↓ 6 callersFunctioncreateKunHeading
(level: number)
lib/mdx/element/kunHeading.ts:37
↓ 6 callersFunctiongetLoginSessionKey
(uid: number, jti: string)
app/api/utils/jwt.ts:68
↓ 6 callersFunctiongetRedirectConfig
()
app/api/admin/setting/redirect/getRedirectConfig.ts:8
↓ 6 callersFunctiongetRemoteIp
(headers: Headers)
app/api/utils/getRemoteIp.ts:1
↓ 6 callersFunctionhandleChange
(key: keyof AdminUser, value: string | number)
components/admin/user/UserEdit.tsx:53
↓ 6 callersFunctionmarkdownToHtmlComment
(markdown: string)
app/api/utils/render/markdownToHtmlComment.ts:56
↓ 6 callersFunctionnormalizeMode
(mode: SearchSuggestionType['mode'] | undefined)
app/api/search/route.ts:41
↓ 6 callersFunctionregister
()
instrumentation.ts:1
↓ 6 callersFunctiontoGalgameCardCount
( row: GalgameCardCounters )
constants/api/select.ts:50
↓ 5 callersFunctionacquireKvLock
(key: string, ttlSeconds = 10)
lib/redis.ts:288
↓ 5 callersFunctionassertExists
(targetPath: string)
scripts/postbuild.ts:36
↓ 5 callersFunctioncheckKunCaptchaExist
(sessionId: string)
app/api/utils/verifyKunCaptcha.ts:44
↓ 5 callersFunctioncleanupLoginSessions
(uid: number, sessionIds: string[])
app/api/utils/jwt.ts:178
↓ 5 callersFunctionclearBlurTimeout
()
components/search/Input.tsx:53
↓ 5 callersFunctiondeletePatchResourceLink
( content: string, patchId: number, hash: string, s3Key?: string )
app/api/patch/resource/_helper.ts:103
↓ 5 callersFunctionfire
(particleRatio: number, opts: Options)
hooks/useConfetti.ts:16
↓ 5 callersFunctiongenerateNullMetadata
(title: string)
utils/noIndex.tsx:3
↓ 5 callersFunctiongetTitleOrDefault
(pageTitle: string, fallback: string)
constants/routes/routes.ts:72
↓ 5 callersFunctionhasPendingModeration
( contentType: ModerationContentType, target: { contentId: number } | { userId: number } )
server/moderation/submit.ts:69
↓ 5 callersFunctionhashPassword
(password: string)
app/api/utils/algorithm.ts:153
↓ 5 callersFunctionkunFetchRequest
( url: string, method: 'GET' | 'POST' | 'PUT' | 'DELETE', options?: FetchOptions )
utils/kunFetch.ts:8
↓ 5 callersFunctionmarkdownToHtml
(markdown: string)
app/api/utils/render/markdownToHtml.ts:26
↓ 5 callersFunctionmarkdownToText
(markdown: string)
utils/markdownToText.tsx:1
↓ 5 callersFunctionresolveRuntimeDirectory
(relativePath: string)
lib/runtimePaths.ts:35
↓ 5 callersFunctionsleep
(ms: number)
migration/syncBangumiId.ts:8
↓ 5 callersFunctionverifyConversationAccess
( conversationId: number, uid: number )
app/api/message/conversation/[id]/service.ts:11
↓ 5 callersFunctionverifyKunToken
(refreshToken: string)
app/api/utils/jwt.ts:485
↓ 5 callersFunctionwithTaskLock
( options: TaskLockOptions, task: () => Promise<T> )
server/tasks/withTaskLock.ts:38
↓ 4 callersFunctionbuildGalgameDateFilter
( years: string[], months: string[] )
app/api/utils/galgameQuery.ts:12
↓ 4 callersFunctionbuildGalgameOrderBy
( sortField: SortField, sortOrder: SortOrder )
app/api/utils/galgameQuery.ts:81
↓ 4 callersFunctionbuildGalgameWhere
({ selectedType = 'all', selectedLanguage = 'all', selectedPlatform = 'all', minRatingCount = 0, vis
app/api/utils/galgameQuery.ts:59
↓ 4 callersFunctionbuildTextSystemPrompt
(perTypeRules: string)
constants/moderation.ts:51
↓ 4 callersFunctioncall
(command: CmdKey<T>, payload?: T)
components/kun/milkdown/plugins/components/ImageUploadButton.tsx:23
↓ 4 callersFunctioncopyDirectory
(src: string, dest: string)
scripts/postbuild.ts:5
↓ 4 callersFunctiondataURItoBlob
(dataURI: string)
utils/dataURItoBlob.ts:1
↓ 4 callersFunctiondeletePendingAppeals
( contentType: AppealContentType, contentId: number | number[], db: ModerationClient = prisma )
server/moderation/appeal.ts:8
↓ 4 callersFunctionfetchFolders
(currentPage: number)
components/patch/header/button/favorite/FavoriteModal.tsx:36
↓ 4 callersFunctiongetAssetsFile
(name: string)
components/kun/utils/loli.ts:3
↓ 4 callersFunctiongetCurrentSiteYear
()
utils/time.ts:48
↓ 4 callersFunctiongetKvSetMembers
(key: string)
lib/redis.ts:252
↓ 4 callersFunctiongetPatchFavoriteCacheKey
(uniqueId: string, uid: number)
app/api/patch/cache.ts:18
↓ 4 callersFunctiongetResourceShadowBanWhere
(viewer: KunViewer | null)
app/api/utils/shadowBan.ts:30
↓ 4 callersFunctiongetShadowBanWhere
(viewer: KunViewer | null)
app/api/utils/shadowBan.ts:18
↓ 4 callersFunctiongetUnreadMessageStatus
( uid: number )
app/api/message/unread/service.ts:4
↓ 4 callersFunctiongetUserSessionVersionKey
(uid: number)
app/api/user/session/cache.ts:17
↓ 4 callersFunctionidsOf
(type: string)
app/api/user/appeal/get.ts:43
↓ 4 callersFunctionisObject
(item?: CustomObject | CustomObject[])
store/_cookie.ts:13
↓ 4 callersFunctionisValidHex
(value: string | undefined, expectedLength: number)
app/api/utils/algorithm.ts:47
next →1–100 of 1,854, ranked by callers