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
↓ 1 callers
Function
sendEmailChangeNotification
( oldEmail: string, newEmail: string, token: string )
app/api/user/setting/email/_emailChange.ts:88
↓ 1 callers
Function
sendEmailHTML
( templateId: string, variables: Record<string, string>, email: string )
app/api/admin/mail/_send.ts:41
↓ 1 callers
Function
sendMessage
( conversationId: number, input: z.infer<typeof sendPrivateMessageSchema>, uid: number )
app/api/message/conversation/[id]/service.ts:80
↓ 1 callers
Function
sendPreviousEmailNotice
( user: EmailChangeUser, newEmail: string )
app/api/user/setting/email/route.ts:129
↓ 1 callers
Function
sendRegisterCode
( input: z.infer<typeof sendRegisterEmailVerificationCodeSchema>, headers: Headers )
app/api/auth/send-register-code/route.ts:11
↓ 1 callers
Function
sendResetPasswordLinkEmail
( headers: Headers, uid: number, email: string )
app/api/utils/sendResetPasswordLinkEmail.ts:26
↓ 1 callers
Function
serializePatchFavoriteStatus
(version: string, isFavorite: boolean)
app/api/patch/cache.ts:35
↓ 1 callers
Function
setCachedPatchFavoriteStatus
( uniqueId: string, uid: number, isFavorite: boolean, version?: string )
app/api/patch/cache.ts:106
↓ 1 callers
Function
setCachedUserSession
( uid: number, user: UserState, scope: UserSessionCacheScope )
app/api/user/session/cache.ts:84
↓ 1 callers
Function
setGalgameListCache
( cacheKey: string, response: GalgameListResponse )
app/api/galgame/service.ts:101
↓ 1 callers
Function
setHomeCache
(cacheKey: string, response: HomeResponse)
app/api/home/service.ts:70
↓ 1 callers
Function
setKUNGalgameTask
()
server/cron.ts:32
↓ 1 callers
Function
setKvAndExpireKvIfTtlLessThan
( key: string, value: string, keyTime: number, ttlKey: string, ttlTime: number )
lib/redis.ts:257
↓ 1 callers
Function
setKvIfAbsent
( key: string, value: string, time: number )
lib/redis.ts:111
↓ 1 callers
Function
setKvsAndAddKvSetMembers
( values: KvValue[], set: KvSetMembers )
lib/redis.ts:162
↓ 1 callers
Function
setNestedKeys
(keys: string[], value: any)
store/_cookie.ts:65
↓ 1 callers
Function
setResourceListCache
( cacheKey: string, response: ResourceListResponse )
app/api/resource/cache.ts:122
↓ 1 callers
Function
setTagSourceBangumi
()
migration/setTagSourceBangumi.ts:4
↓ 1 callers
Function
shouldSkipLightbox
(img: HTMLImageElement)
components/kun/image-viewer/AutoImageViewer.tsx:7
↓ 1 callers
Function
sleep
(ms: number)
app/api/message/read/route.ts:10
↓ 1 callers
Function
sleep
(ms: number)
server/tasks/withTaskLock.ts:13
↓ 1 callers
Function
sleep
(ms: number)
migration/syncVndbTags.ts:10
↓ 1 callers
Function
sleep
(ms)
migration/backup/_migration.mjs:232
↓ 1 callers
Function
sleep
(ms)
migration/backup/_createPatchCompanies.mjs:7
↓ 1 callers
Function
sleep
(ms)
migration/backup/_fetchVNDBInfo.mjs:11
↓ 1 callers
Function
sleep
(ms)
migration/backup/_migrateMobileGameLinks.mjs:96
↓ 1 callers
Function
sliceUntilDelimiterFromEnd
( input: string = '', delimiter: string = '\n\n' )
app/api/utils/sliceUntilDelimiterFromEnd.ts:1
↓ 1 callers
Function
slugify
(str: string)
lib/mdx/element/kunHeading.ts:25
↓ 1 callers
Function
startCountdown
()
components/kun/verification-code/Code.tsx:22
↓ 1 callers
Function
stateForIndex
(i: number)
components/kun/Rating.tsx:162
↓ 1 callers
Function
stripSection
(content: string)
migration/backup/_removeSupportLegitSection.ts:7
↓ 1 callers
Function
submitAppeal
( input: z.infer<typeof submitAppealSchema>, uid: number )
app/api/user/appeal/submit.ts:34
↓ 1 callers
Function
swipePower
(offset: number, velocity: number)
components/home/carousel/KunCarousel.tsx:100
↓ 1 callers
Function
syncBangumiId
()
migration/syncBangumiId.ts:63
↓ 1 callers
Function
syncBlockedTags
()
components/settings/user/BlockedTags.tsx:49
↓ 1 callers
Function
syncKunPatchType
()
migration/backup/_syncKunPatchType.mjs:6
↓ 1 callers
Function
syncPatchFields
()
migration/backup/_syncResourceCategories.mjs:11
↓ 1 callers
Function
syncSteamData
()
migration/syncSteamData.ts:136
↓ 1 callers
Function
syncSteamId
()
migration/syncSteamId.ts:6
↓ 1 callers
Function
syncVndbTags
()
migration/syncVndbTags.ts:26
↓ 1 callers
Function
timingSafeEqualHex
(actual: string, expected: string)
app/api/utils/algorithm.ts:134
↓ 1 callers
Function
toCompanyCreate
(producer: VndbProducer, uid: number)
app/api/edit/fetchCompanies.ts:7
↓ 1 callers
Function
toCompanyCreate
(producer)
migration/backup/_createPatchCompanies.mjs:67
↓ 1 callers
Function
toggleAllowPrivateMessage
(uid: number)
app/api/user/setting/allow-private-message/route.ts:6
↓ 1 callers
Function
toggleCommentLike
( input: z.infer<typeof commentIdSchema>, uid: number )
app/api/patch/comment/like/route.ts:16
↓ 1 callers
Function
toggleCompanySelection
(companyId: number, isSelected: boolean)
components/patch/introduction/PatchCompanySelector.tsx:152
↓ 1 callers
Function
toggleEmailNotice
(uid: number)
app/api/auth/email-notice/route.ts:6
↓ 1 callers
Function
toggleEmailNotice
(uid: number)
app/api/user/setting/email-notice/route.ts:6
↓ 1 callers
Function
toggleImageSelection
(id: string)
components/kun/auth/CaptchaModal.tsx:61
↓ 1 callers
Function
toggleLinks
(resourceId: number)
components/patch/resource/ResourceDownload.tsx:31
↓ 1 callers
Function
toggleLinks
(resourceId: number)
components/patch/resource/kun/KunResourceDownload.tsx:27
↓ 1 callers
Function
togglePatchFavorite
( input: z.infer<typeof togglePatchFavoriteSchema>, uid: number )
app/api/patch/favorite/route.ts:13
↓ 1 callers
Function
toggleRatingLike
( input: z.infer<typeof ratingIdSchema>, uid: number )
app/api/patch/rating/like/route.ts:13
↓ 1 callers
Function
toggleResourceLike
( input: z.infer<typeof resourceIdSchema>, uid: number )
app/api/patch/resource/like/route.ts:17
↓ 1 callers
Function
toggleTagSelection
(tagId: number, isSelected: boolean)
components/patch/introduction/PatchTagSelector.tsx:145
↓ 1 callers
Function
touchLoginSession
( uid: number, jti: string, metadata: LoginSessionMetadata, ttlSeconds: number )
app/api/utils/jwt.ts:228
↓ 1 callers
Function
touchUserLastActiveTime
(uid: number)
app/api/user/status/service.ts:27
↓ 1 callers
Function
touchgalTemplate
( title: string, content: string, email: string, validateEmailCode: string )
constants/email/templates/touchgal.ts:10
↓ 1 callers
Function
traverseDirectory
(currentPath: string)
components/home/carousel/mdx.ts:33
↓ 1 callers
Function
traverseDirectory
(currentPath: string, basePath: string = '')
lib/mdx/getPosts.ts:14
↓ 1 callers
Function
truncateLogContent
(content: string)
app/api/admin/resource/hidden/hidden.ts:15
↓ 1 callers
Function
truncateLogContent
(content: string)
app/api/admin/rating/delete.ts:11
↓ 1 callers
Function
truncateLogContent
(content: string)
app/api/admin/comment/delete.ts:12
↓ 1 callers
Function
unfollowUser
(uid: number, currentUserUid: number)
app/api/user/follow/unfollow/route.ts:11
↓ 1 callers
Function
update
(view: EditorView)
components/kun/milkdown/plugins/components/placeholder/placeholderPlugin.ts:11
↓ 1 callers
Function
updateAllCompanyCounts
()
migration/backup/_createPatchCompanies.mjs:90
↓ 1 callers
Function
updateComment
( input: z.infer<typeof patchCommentUpdateSchema>, uid: number, userRole: number )
app/api/patch/comment/update.ts:15
↓ 1 callers
Function
updateComment
( input: z.infer<typeof patchCommentUpdateSchema>, uid: number )
app/api/admin/comment/update.ts:9
↓ 1 callers
Function
updateCommentShadowBan
( input: z.infer<typeof adminUpdateCommentShadowBanSchema>, adminUid: number )
app/api/admin/comment/shadow-ban/shadowBan.ts:11
↓ 1 callers
Function
updateEmail
(req: NextRequest)
app/api/user/setting/email/route.ts:165
↓ 1 callers
Function
updateFolder
( input: z.infer<typeof updateFavoriteFolderSchema>, uid: number )
app/api/user/profile/favorite/folder/update.ts:6
↓ 1 callers
Function
updateGalgame
( input: z.infer<typeof patchUpdateSchema>, uid: number )
app/api/edit/update.ts:7
↓ 1 callers
Function
updateMessage
( conversationId: number, input: z.infer<typeof updatePrivateMessageSchema>, uid: number )
app/api/message/conversation/[id]/service.ts:119
↓ 1 callers
Function
updatePassword
(req: NextRequest)
app/api/user/setting/password/route.ts:10
↓ 1 callers
Function
updatePatchBanner
( image: ArrayBuffer, patchId: number, originalImage?: ArrayBuffer )
app/api/patch/banner/route.ts:22
↓ 1 callers
Function
updatePatchInfo
()
migration/backup/_fetchVNDBInfo.mjs:50
↓ 1 callers
Function
updatePatchRating
( input: z.infer<typeof patchRatingUpdateSchema>, uid: number, userRole: number )
app/api/patch/rating/update.ts:13
↓ 1 callers
Function
updatePatchResource
( input: z.infer<typeof patchResourceUpdateSchema>, uid: number, userRole: number )
app/api/patch/resource/update.ts:19
↓ 1 callers
Function
updatePatchResource
( input: z.infer<typeof patchResourceUpdateSchema>, uid: number )
app/api/admin/resource/update.ts:7
↓ 1 callers
Function
updatePatchResourceUpdateTime
()
migration/backup/_resetMessageLink.mjs:3
↓ 1 callers
Function
updatePatchResourceUpdateTime
()
migration/backup/_resetCommentMessageLink.mjs:3
↓ 1 callers
Function
updatePatchResourceUpdateTime
()
migration/backup/_updatePatchResourceUpdateTime.mjs:3
↓ 1 callers
Function
updatePatchViews
(uniqueId: string)
app/api/patch/views/put.ts:9
↓ 1 callers
Function
updateRating
( input: z.infer<typeof patchRatingUpdateSchema>, uid: number )
app/api/admin/rating/update.ts:5
↓ 1 callers
Function
updateRatingShadowBan
( input: z.infer<typeof adminUpdateRatingShadowBanSchema>, adminUid: number )
app/api/admin/rating/shadow-ban/shadowBan.ts:12
↓ 1 callers
Function
updateReleasedField
()
migration/backup/_updateReleased.mjs:3
↓ 1 callers
Function
updateResourceHidden
( input: z.infer<typeof adminUpdateResourceHiddenSchema>, uid: number )
app/api/admin/resource/hidden/hidden.ts:23
↓ 1 callers
Function
updateTag
(input: z.infer<typeof updateTagSchema>)
app/api/tag/update.ts:6
↓ 1 callers
Function
updateUser
( input: z.infer<typeof adminUpdateUserSchema>, adminUid: number )
app/api/admin/user/update.ts:7
↓ 1 callers
Function
updateUserAvatar
(uid: number, avatar: ArrayBuffer)
app/api/user/setting/avatar/route.ts:31
↓ 1 callers
Function
updateUserShadowBan
( input: z.infer<typeof adminUpdateUserShadowBanSchema>, adminUid: number )
app/api/admin/user/shadow-ban/shadowBan.ts:6
↓ 1 callers
Function
updateUsername
(username: string, uid: number)
app/api/user/setting/username/route.ts:8
↓ 1 callers
Function
upgradePasswordHash
( userId: number, password: string, previousPasswordHash: string )
app/api/auth/login/route.ts:24
↓ 1 callers
Function
uploadImage
(uid: number, image: ArrayBuffer)
app/api/user/image/route.ts:9
↓ 1 callers
Function
uploadImageFromURL
( imageUrl, id, maxRetries = 20, timeout = 2000, minDelay = 100, maxDelay = 1000 )
migration/backup/_uploadBanner.mjs:69
↓ 1 callers
Function
uploadIntroductionImage
( name: string, image: ArrayBuffer, uid: number )
app/api/user/image/_upload.ts:6
↓ 1 callers
Function
uploadPatchBanner
(imageBuffer, id)
migration/backup/_uploadBanner.mjs:34
↓ 1 callers
Function
uploadUserAvatar
( image: ArrayBuffer, uid: number, // 审核开启时先上传到暂存 key, 通过后由 apply.ts 复制到正式 key pending = false )
app/api/user/setting/_upload.ts:17
↓ 1 callers
Function
urlHref
()
components/kun/external-link/ExternalLink.tsx:32
↓ 1 callers
Function
useConfetti
()
hooks/useConfetti.ts:6
← previous
next →
901–1,000 of 1,854, ranked by callers