Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/KunMoe/kun-touchgal-next
/ functions
Functions
1,854 in github.com/KunMoe/kun-touchgal-next
⨍
Functions
1,854
◇
Types & classes
475
↓ 176 callers
Function
verifyHeaderCookie
(req: NextRequest)
middleware/_verifyHeaderCookie.ts:5
↓ 60 callers
Function
kunErrorHandler
( res: T | string, callback: (res: T) => void )
utils/kunErrorHandler.ts:3
↓ 50 callers
Function
kunParsePostBody
( req: NextRequest, schema: T )
app/api/utils/parseQuery.ts:20
↓ 47 callers
Function
kunParseGetQuery
( req: NextRequest, schema: T )
app/api/utils/parseQuery.ts:5
↓ 36 callers
Function
cn
(...inputs: ClassValue[])
utils/cn.ts:4
↓ 35 callers
Function
getKv
(key: string)
lib/redis.ts:105
↓ 33 callers
Function
setKv
(key: string, value: string, time?: number)
lib/redis.ts:96
↓ 31 callers
Function
kunParsePutBody
( req: NextRequest, schema: T )
app/api/utils/parseQuery.ts:34
↓ 30 callers
Function
safeParseSchema
( schema: T, object: Record<string, unknown> )
utils/actions/safeParseSchema.ts:4
↓ 28 callers
Function
useMounted
()
hooks/useMounted.ts:3
↓ 25 callers
Function
invalidateUserSession
(uid: number)
app/api/user/session/cache.ts:101
↓ 23 callers
Function
delKv
(key: string)
lib/redis.ts:132
↓ 19 callers
Function
runRedisCommand
(command: () => Promise<T>)
lib/redis.ts:91
↓ 18 callers
Function
getSearchParamValue
( value: string | string[] | null | undefined )
utils/galgameFilter.ts:16
↓ 15 callers
Function
kunParseDeleteQuery
( req: NextRequest, schema: T )
app/api/utils/parseQuery.ts:48
↓ 14 callers
Function
getPatchVisibilityWhere
( req: NextRequest )
app/api/utils/getPatchVisibilityWhere.ts:7
↓ 12 callers
Function
createMessage
( data: CreateMessageType, db: MessageClient = prisma )
app/api/utils/message.ts:7
↓ 12 callers
Function
normalizeStringArray
(values: readonly unknown[])
utils/normalizeStringArray.ts:1
↓ 11 callers
Function
errorReporter
(error: unknown)
utils/kunErrorHandler.ts:43
↓ 11 callers
Function
escapeHtml
(text: string)
utils/markdownPreview.ts:1
↓ 11 callers
Function
formatDate
( time: Date | string | number, config?: { isShowYear?: boolean; isPrecise?: boolean } )
utils/time.ts:52
↓ 11 callers
Function
getNSFWHeader
( req: NextRequest, payload?: KunGalgamePayload | null )
app/api/utils/getNSFWHeader.ts:13
↓ 11 callers
Function
invalidateResourceListCache
()
app/api/resource/cache.ts:30
↓ 11 callers
Function
renderInlineMarkdown
(text: string)
utils/markdownPreview.ts:9
↓ 10 callers
Function
createModerationTask
( input: { contentType: ModerationContentType contentId?: number userId: number payload: Mod
server/moderation/submit.ts:101
↓ 10 callers
Function
getParamValue
(params: NextParams, key: string)
constants/routes/routes.ts:19
↓ 10 callers
Function
parseGalgameFilterArray
(value: string | null | undefined)
utils/galgameFilter.ts:30
↓ 9 callers
Function
call
(command: CmdKey<T>, payload?: T)
components/kun/milkdown/plugins/Menu.tsx:23
↓ 9 callers
Function
deletePendingModerationTasks
( contentType: ModerationContentType, contentId: number | number[], db: ModerationClient = prisma )
server/moderation/submit.ts:88
↓ 9 callers
Function
maskShadowBannedUser
( viewer: KunViewer | null, user: T )
app/api/utils/shadowBan.ts:72
↓ 9 callers
Function
recalcPatchType
( patchId: number, tx: { patch_resource: Pick<typeof prisma.patch_resource, 'findMany'> patch: Pic
app/api/patch/resource/_helper.ts:139
↓ 8 callers
Function
flushList
()
utils/markdownPreview.ts:41
↓ 8 callers
Function
getAccessTokenKey
(uid: number, jti: string)
app/api/utils/jwt.ts:63
↓ 8 callers
Function
getLoginSessionsKey
(uid: number)
app/api/utils/jwt.ts:71
↓ 8 callers
Function
sanitizeUserHref
(url: string)
utils/safeUrl.ts:49
↓ 8 callers
Function
uploadImageToS3
(key: string, fileBuffer: Buffer)
lib/s3.ts:46
↓ 8 callers
Function
withPageReset
(setter: (value: T) => void)
components/company/detail/Container.tsx:94
↓ 8 callers
Function
withPageReset
(setter: (value: T) => void)
components/tag/detail/Container.tsx:99
↓ 7 callers
Function
createDedupMessage
( data: CreateMessageType, db: MessageClient = prisma )
app/api/utils/message.ts:17
↓ 7 callers
Function
createEmailChangeRevertResponse
( title: string, message: string, status = 200 )
app/api/user/setting/email/_emailChange.ts:172
↓ 7 callers
Function
deleteFileFromS3
(key: string)
lib/s3.ts:79
↓ 7 callers
Function
deleteKunToken
(uid: number)
app/api/utils/jwt.ts:493
↓ 7 callers
Function
duplicateQueryField
(maxLength: number)
validations/edit.ts:4
↓ 7 callers
Function
escapeHtml
(value: string)
app/api/user/setting/email/_emailChange.ts:25
↓ 7 callers
Function
formatNumber
(num: number)
utils/formatNumber.ts:1
↓ 7 callers
Function
getKvs
(keys: string[])
lib/redis.ts:123
↓ 7 callers
Function
invalidatePatchContentCache
(uniqueId: string)
app/api/patch/cache.ts:125
↓ 7 callers
Function
isRedirectableUrl
(url: string)
utils/safeUrl.ts:70
↓ 7 callers
Function
logResourceListCacheError
(message: string, error: unknown)
app/api/resource/cache.ts:14
↓ 7 callers
Function
parseCookies
(cookieString: string)
utils/cookies.ts:1
↓ 7 callers
Function
preScreenText
( text: string )
server/moderation/submit.ts:23
↓ 7 callers
Function
recomputePatchRatingStat
(patchId: number)
app/api/patch/rating/stat.ts:4
↓ 6 callers
Function
createKunHeading
(level: number)
lib/mdx/element/kunHeading.ts:37
↓ 6 callers
Function
getLoginSessionKey
(uid: number, jti: string)
app/api/utils/jwt.ts:68
↓ 6 callers
Function
getRedirectConfig
()
app/api/admin/setting/redirect/getRedirectConfig.ts:8
↓ 6 callers
Function
getRemoteIp
(headers: Headers)
app/api/utils/getRemoteIp.ts:1
↓ 6 callers
Function
handleChange
(key: keyof AdminUser, value: string | number)
components/admin/user/UserEdit.tsx:53
↓ 6 callers
Function
markdownToHtmlComment
(markdown: string)
app/api/utils/render/markdownToHtmlComment.ts:56
↓ 6 callers
Function
normalizeMode
(mode: SearchSuggestionType['mode'] | undefined)
app/api/search/route.ts:41
↓ 6 callers
Function
register
()
instrumentation.ts:1
↓ 6 callers
Function
toGalgameCardCount
( row: GalgameCardCounters )
constants/api/select.ts:50
↓ 5 callers
Function
acquireKvLock
(key: string, ttlSeconds = 10)
lib/redis.ts:288
↓ 5 callers
Function
assertExists
(targetPath: string)
scripts/postbuild.ts:36
↓ 5 callers
Function
checkKunCaptchaExist
(sessionId: string)
app/api/utils/verifyKunCaptcha.ts:44
↓ 5 callers
Function
cleanupLoginSessions
(uid: number, sessionIds: string[])
app/api/utils/jwt.ts:178
↓ 5 callers
Function
clearBlurTimeout
()
components/search/Input.tsx:53
↓ 5 callers
Function
deletePatchResourceLink
( content: string, patchId: number, hash: string, s3Key?: string )
app/api/patch/resource/_helper.ts:103
↓ 5 callers
Function
fire
(particleRatio: number, opts: Options)
hooks/useConfetti.ts:16
↓ 5 callers
Function
generateNullMetadata
(title: string)
utils/noIndex.tsx:3
↓ 5 callers
Function
getTitleOrDefault
(pageTitle: string, fallback: string)
constants/routes/routes.ts:72
↓ 5 callers
Function
hasPendingModeration
( contentType: ModerationContentType, target: { contentId: number } | { userId: number } )
server/moderation/submit.ts:69
↓ 5 callers
Function
hashPassword
(password: string)
app/api/utils/algorithm.ts:153
↓ 5 callers
Function
kunFetchRequest
( url: string, method: 'GET' | 'POST' | 'PUT' | 'DELETE', options?: FetchOptions )
utils/kunFetch.ts:8
↓ 5 callers
Function
markdownToHtml
(markdown: string)
app/api/utils/render/markdownToHtml.ts:26
↓ 5 callers
Function
markdownToText
(markdown: string)
utils/markdownToText.tsx:1
↓ 5 callers
Function
resolveRuntimeDirectory
(relativePath: string)
lib/runtimePaths.ts:35
↓ 5 callers
Function
sleep
(ms: number)
migration/syncBangumiId.ts:8
↓ 5 callers
Function
verifyConversationAccess
( conversationId: number, uid: number )
app/api/message/conversation/[id]/service.ts:11
↓ 5 callers
Function
verifyKunToken
(refreshToken: string)
app/api/utils/jwt.ts:485
↓ 5 callers
Function
withTaskLock
( options: TaskLockOptions, task: () => Promise<T> )
server/tasks/withTaskLock.ts:38
↓ 4 callers
Function
buildGalgameDateFilter
( years: string[], months: string[] )
app/api/utils/galgameQuery.ts:12
↓ 4 callers
Function
buildGalgameOrderBy
( sortField: SortField, sortOrder: SortOrder )
app/api/utils/galgameQuery.ts:81
↓ 4 callers
Function
buildGalgameWhere
({ selectedType = 'all', selectedLanguage = 'all', selectedPlatform = 'all', minRatingCount = 0, vis
app/api/utils/galgameQuery.ts:59
↓ 4 callers
Function
buildTextSystemPrompt
(perTypeRules: string)
constants/moderation.ts:51
↓ 4 callers
Function
call
(command: CmdKey<T>, payload?: T)
components/kun/milkdown/plugins/components/ImageUploadButton.tsx:23
↓ 4 callers
Function
copyDirectory
(src: string, dest: string)
scripts/postbuild.ts:5
↓ 4 callers
Function
dataURItoBlob
(dataURI: string)
utils/dataURItoBlob.ts:1
↓ 4 callers
Function
deletePendingAppeals
( contentType: AppealContentType, contentId: number | number[], db: ModerationClient = prisma )
server/moderation/appeal.ts:8
↓ 4 callers
Function
fetchFolders
(currentPage: number)
components/patch/header/button/favorite/FavoriteModal.tsx:36
↓ 4 callers
Function
getAssetsFile
(name: string)
components/kun/utils/loli.ts:3
↓ 4 callers
Function
getCurrentSiteYear
()
utils/time.ts:48
↓ 4 callers
Function
getKvSetMembers
(key: string)
lib/redis.ts:252
↓ 4 callers
Function
getPatchFavoriteCacheKey
(uniqueId: string, uid: number)
app/api/patch/cache.ts:18
↓ 4 callers
Function
getResourceShadowBanWhere
(viewer: KunViewer | null)
app/api/utils/shadowBan.ts:30
↓ 4 callers
Function
getShadowBanWhere
(viewer: KunViewer | null)
app/api/utils/shadowBan.ts:18
↓ 4 callers
Function
getUnreadMessageStatus
( uid: number )
app/api/message/unread/service.ts:4
↓ 4 callers
Function
getUserSessionVersionKey
(uid: number)
app/api/user/session/cache.ts:17
↓ 4 callers
Function
idsOf
(type: string)
app/api/user/appeal/get.ts:43
↓ 4 callers
Function
isObject
(item?: CustomObject | CustomObject[])
store/_cookie.ts:13
↓ 4 callers
Function
isValidHex
(value: string | undefined, expectedLength: number)
app/api/utils/algorithm.ts:47
next →
1–100 of 1,854, ranked by callers