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
↓ 4 callers
Function
kunCookieOptions
(maxAgeSeconds: number)
app/api/utils/cookieOptions.ts:1
↓ 4 callers
Function
kunGetActions
( params: z.infer<typeof getMessageSchema> )
app/message/actions.ts:9
↓ 4 callers
Function
kunParseFormData
( req: NextRequest, schema: T )
app/api/utils/parseQuery.ts:63
↓ 4 callers
Function
logGalgameListCacheError
(message: string, error: unknown)
app/api/galgame/service.ts:34
↓ 4 callers
Function
logHomeCacheError
(message: string, error: unknown)
app/api/home/service.ts:32
↓ 4 callers
Function
normalizeSessionValue
( value: string | null | undefined, maxLength: number )
app/api/utils/jwt.ts:78
↓ 4 callers
Function
padDatePart
(value: number)
utils/time.ts:46
↓ 4 callers
Function
paginate
(newDirection: number)
components/home/carousel/KunCarousel.tsx:104
↓ 4 callers
Function
parseBlockedTagIds
(value?: string | null)
utils/blockedTag.ts:3
↓ 4 callers
Function
parseNonNegativeIntParam
( value: string | null | undefined, fallback: number )
utils/galgameFilter.ts:58
↓ 4 callers
Function
parsePositiveIntParam
( value: string | null | undefined, fallback: number )
utils/galgameFilter.ts:46
↓ 4 callers
Function
purgeCloudflareCache
(files: string[])
app/api/utils/purgeCloudflareCache.ts:1
↓ 4 callers
Function
releaseKvLock
(key: string, token: string)
lib/redis.ts:302
↓ 4 callers
Function
restorePatchUserAvatarForViewer
( patch: CachedPatch, viewer: KunViewer | null )
app/api/patch/_content.ts:126
↓ 4 callers
Function
runCommand
( command: string, env: NodeJS.ProcessEnv = process.env )
scripts/deployBuild.ts:18
↓ 4 callers
Function
shouldBypassSharedCacheForShadowBan
( viewer: KunViewer | null )
app/api/utils/shadowBan.ts:49
↓ 4 callers
Function
updateDropdownRect
()
components/settings/user/BlockedTags.tsx:72
↓ 4 callers
Function
verifyKunTokenWithUser
(refreshToken: string)
app/api/utils/jwt.ts:489
↓ 4 callers
Function
withPatchFavoriteStatus
( uniqueId: string, patch: CachedPatch, uid: number )
app/api/patch/_content.ts:230
↓ 3 callers
Function
applyAiResult
( task: moderation_taskModel, result: ModerationAiResult )
server/tasks/moderationTask.ts:67
↓ 3 callers
Function
applyModerationVerdict
( options: ApplyVerdictOptions )
server/moderation/apply.ts:82
↓ 3 callers
Function
arraysAreEqual
(arr1, arr2)
migration/backup/_syncResourceCategories.mjs:3
↓ 3 callers
Function
buildCounterTriggerStatements
( name: string, column: string, table: string )
migration/ensurePatchCounters.ts:29
↓ 3 callers
Function
buildVisibilityCacheKey
( visibilityWhere: Prisma.patchWhereInput )
app/api/utils/visibilityCacheKey.ts:28
↓ 3 callers
Function
checkBufferSize
(buffer: Buffer, maxSizeInMegabyte: number)
app/api/utils/checkBufferSize.ts:1
↓ 3 callers
Function
cleanupRejectedUpload
(token: string, s3Key: string)
app/api/patch/resource/_helper.ts:22
↓ 3 callers
Function
copyObject
(srcKey: string, dstKey: string)
lib/s3.ts:106
↓ 3 callers
Function
createCodeMirrorState
({ onChange, content }: StateOptions)
components/kun/milkdown/codemirror/setup.ts:61
↓ 3 callers
Function
createDefaultLink
(section: string)
components/patch/resource/publish/PublishResource.tsx:51
↓ 3 callers
Function
createForgotPasswordResetKey
(token: string)
app/api/utils/sendResetPasswordLinkEmail.ts:9
↓ 3 callers
Function
ensureCompanies
( patchId: number, names: string[], uid: number )
app/api/edit/processExternalData.ts:79
↓ 3 callers
Function
ensureFulfilled
(result: PromiseSettledResult<T>)
scripts/dynamic-routes/getKunDynamicPatches.ts:3
↓ 3 callers
Function
fetchBlacklist
()
components/admin/moderation/Container.tsx:101
↓ 3 callers
Function
fetchDlsiteData
( code: string )
lib/arnebiae/dlsite.ts:14
↓ 3 callers
Function
fetchSteamAppData
( steamId: number )
lib/arnebiae/steam.ts:29
↓ 3 callers
Function
generateKunToken
( uid: number, name: string, role: number, expire: string, context?: LoginSessionContext )
app/api/utils/jwt.ts:271
↓ 3 callers
Function
getAllPosts
()
lib/mdx/getPosts.ts:11
↓ 3 callers
Function
getAuthenticatedBlockedTagIds
(req: NextRequest)
app/api/utils/getBlockedTagIds.ts:27
↓ 3 callers
Function
getBlockedTagIds
(req: NextRequest)
app/api/utils/getBlockedTagIds.ts:6
↓ 3 callers
Function
getGalgame
( input: z.infer<typeof galgameSchema>, visibilityWhere: Prisma.patchWhereInput )
app/api/galgame/service.ts:112
↓ 3 callers
Function
getLegacyAccessTokenKey
(uid: number)
app/api/utils/jwt.ts:66
↓ 3 callers
Function
getMarkdown
()
components/kun/milkdown/KunEditorProvider.tsx:27
↓ 3 callers
Function
getModerationConfig
()
server/moderation/config.ts:16
↓ 3 callers
Function
getModerationSetting
()
app/api/admin/setting/moderation/service.ts:7
↓ 3 callers
Function
getNodeHref
(node: KunTreeNode)
components/doc/SideTreeItem.tsx:15
↓ 3 callers
Function
getPatchCacheKey
(uniqueId: string)
app/api/patch/cache.ts:12
↓ 3 callers
Function
getPatchFavoriteVersionKey
(uid: number)
app/api/patch/cache.ts:21
↓ 3 callers
Function
getPatchIntroductionCacheKey
(uniqueId: string)
app/api/patch/cache.ts:15
↓ 3 callers
Function
getPatchPageTitle
( patch: Pick<Patch, 'alias' | 'name' | 'platform'> )
utils/patch/getPatchPageTitle.ts:20
↓ 3 callers
Function
getReport
( input: z.infer<typeof adminReportPaginationSchema> )
app/api/admin/report/service.ts:6
↓ 3 callers
Function
getSupportedValueSchema
(values: string[], message: string)
validations/galgame.ts:14
↓ 3 callers
Function
getUserAvatarKeys
(uid: number)
app/api/user/setting/_upload.ts:7
↓ 3 callers
Function
handleClickSuggestion
(suggestions: SearchSuggestionType[])
components/search/Suggestion.tsx:65
↓ 3 callers
Function
handlePageChange
(newPage: number)
components/kun/Pagination.tsx:46
↓ 3 callers
Function
handleSearch
(searchQuery = query)
components/company/Container.tsx:54
↓ 3 callers
Function
handleSubmit
()
components/settings/user/appeal/AppealCard.tsx:44
↓ 3 callers
Function
idsOf
(type: string)
app/api/admin/appeal/get.ts:33
↓ 3 callers
Function
isDocPath
(pathname: string)
constants/routes/matcher.ts:13
↓ 3 callers
Function
isMarkdownHtmlCacheAvailable
()
app/api/utils/render/markdownHtmlCache.ts:34
↓ 3 callers
Function
isPatchPath
(pathname: string)
constants/routes/matcher.ts:1
↓ 3 callers
Function
isShadowBanExemptViewer
( viewer: KunViewer | null, ownerId: number )
app/api/utils/shadowBan.ts:10
↓ 3 callers
Function
isWithinByteLimit
(value: string, maxBytes: number)
app/api/utils/render/markdownHtmlCache.ts:42
↓ 3 callers
Function
kunErrorHandlerAsync
(res: T | string)
utils/kunErrorHandler.ts:32
↓ 3 callers
Function
logSessionCacheError
(message: string, error: unknown)
app/api/user/session/cache.ts:7
↓ 3 callers
Function
notifyReadyWhenLoaded
()
components/kun/milkdown/plugins/components/video/Plyr.tsx:70
↓ 3 callers
Function
parseHost
(value: string)
middleware/_csrf.ts:12
↓ 3 callers
Function
parseLoginSessionMetadata
(value: string | null)
app/api/utils/jwt.ts:104
↓ 3 callers
Function
renderMarkdownHtmlWithCache
( variant: MarkdownHtmlCacheVariant, markdown: string, render: MarkdownHtmlRenderer, options: Markdown
app/api/utils/render/markdownHtmlCache.ts:143
↓ 3 callers
Function
runCommand
(command: string)
scripts/deployInstall.ts:4
↓ 3 callers
Function
sanitizeUserUrl
( url: string, allowedProtocols: readonly string[] = SAFE_LINK_PROTOCOLS )
utils/safeUrl.ts:27
↓ 3 callers
Function
shouldIgnoreFsError
(error: unknown, codes: Set<string>)
server/tasks/setCleanupTask.ts:14
↓ 3 callers
Function
shuffleKunArray
(array: T[])
app/api/auth/captcha/_utils.ts:4
↓ 3 callers
Function
sortMessagesByTime
(msgs: PrivateMessage[])
components/message/chat/ChatContainer.tsx:31
↓ 3 callers
Function
toPositiveInteger
(value: string | undefined)
app/api/utils/algorithm.ts:53
↓ 3 callers
Function
verifyAdmin
(req: NextRequest)
app/api/admin/moderation/blacklist/route.ts:14
↓ 3 callers
Function
verifyKunCsrf
(req: NextRequest)
middleware/_csrf.ts:35
↓ 3 callers
Function
verifyPassword
( password: string, hashedPassword: string )
app/api/utils/algorithm.ts:159
↓ 3 callers
Function
withCacheTimeout
(operation: Promise<T>, fallback: T)
app/api/utils/render/markdownHtmlCache.ts:53
↓ 2 callers
Function
SidebarContent
({ pathname }: { pathname: string })
components/admin/SidebarContent.tsx:105
↓ 2 callers
Function
acknowledgePatchViewBuffer
(key: string)
app/api/patch/views/buffer.ts:54
↓ 2 callers
Function
addTag
()
components/tag/CreateTagModal.tsx:52
↓ 2 callers
Function
addTag
()
components/tag/detail/EditTagModal.tsx:65
↓ 2 callers
Function
applyExternalLinkNavigation
(anchor: HTMLAnchorElement)
components/patch/introduction/IntroductionTab.tsx:165
↓ 2 callers
Function
bindUploadedResource
( patchId: number, token: string, uid: number )
app/api/patch/resource/_helper.ts:27
↓ 2 callers
Function
buildBlockedTagWhere
( blockedTagIds: number[] )
utils/blockedTag.ts:34
↓ 2 callers
Function
buildCachedPatch
(patch: CachedPatchSource)
app/api/patch/_content.ts:92
↓ 2 callers
Function
buildPatchIntroduction
( patch: PatchIntroductionSource )
app/api/patch/_content.ts:143
↓ 2 callers
Function
checkImageDimensions
(img: HTMLImageElement)
components/kun/image-viewer/AutoImageViewer.tsx:42
↓ 2 callers
Function
checkStringArrayValid
(type: 'alias' | 'tag', aliasString: string)
app/api/edit/route.ts:9
↓ 2 callers
Function
clamp
(v: number, min: number, max: number)
components/kun/Rating.tsx:53
↓ 2 callers
Function
cleanupRejectedUpload
(token: string, s3Key: string)
app/api/upload/complete/route.ts:24
↓ 2 callers
Function
closeRevokeModal
()
components/settings/user/LoginSessions.tsx:323
↓ 2 callers
Function
compressDataURLToWebp
( dataUrl: string, options: CompressDataURLOptions = {} )
utils/resizeImage.ts:21
↓ 2 callers
Function
createEmailChangeRevertKey
(token: string)
app/api/user/setting/email/_emailChange.ts:13
↓ 2 callers
Function
createEmptyLink
(section: string, role: number)
components/patch/resource/publish/ResourceLinksInput.tsx:52
↓ 2 callers
Function
createLoginSessionMetadata
( jti: string, context?: LoginSessionContext )
app/api/utils/jwt.ts:89
↓ 2 callers
Function
createMentionMessage
( uniqueId: string, patchName: string, commentId: number, senderUid: number, senderUsername: string,
app/api/utils/createMentionMessage.ts:10
↓ 2 callers
Function
delKvs
(keys: string[])
lib/redis.ts:137
↓ 2 callers
Function
deleteKunTokenSession
(uid: number, jti: string)
app/api/utils/jwt.ts:412
↓ 2 callers
Function
deleteResource
( input: z.infer<typeof resourceIdSchema>, uid: number )
app/api/admin/resource/delete.ts:19
← previous
next →
101–200 of 1,854, ranked by callers