MCPcopy Create free account

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

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

↓ 1 callersFunctionsendEmailChangeNotification
( oldEmail: string, newEmail: string, token: string )
app/api/user/setting/email/_emailChange.ts:88
↓ 1 callersFunctionsendEmailHTML
( templateId: string, variables: Record<string, string>, email: string )
app/api/admin/mail/_send.ts:41
↓ 1 callersFunctionsendMessage
( conversationId: number, input: z.infer<typeof sendPrivateMessageSchema>, uid: number )
app/api/message/conversation/[id]/service.ts:80
↓ 1 callersFunctionsendPreviousEmailNotice
( user: EmailChangeUser, newEmail: string )
app/api/user/setting/email/route.ts:129
↓ 1 callersFunctionsendRegisterCode
( input: z.infer<typeof sendRegisterEmailVerificationCodeSchema>, headers: Headers )
app/api/auth/send-register-code/route.ts:11
↓ 1 callersFunctionsendResetPasswordLinkEmail
( headers: Headers, uid: number, email: string )
app/api/utils/sendResetPasswordLinkEmail.ts:26
↓ 1 callersFunctionserializePatchFavoriteStatus
(version: string, isFavorite: boolean)
app/api/patch/cache.ts:35
↓ 1 callersFunctionsetCachedPatchFavoriteStatus
( uniqueId: string, uid: number, isFavorite: boolean, version?: string )
app/api/patch/cache.ts:106
↓ 1 callersFunctionsetCachedUserSession
( uid: number, user: UserState, scope: UserSessionCacheScope )
app/api/user/session/cache.ts:84
↓ 1 callersFunctionsetGalgameListCache
( cacheKey: string, response: GalgameListResponse )
app/api/galgame/service.ts:101
↓ 1 callersFunctionsetHomeCache
(cacheKey: string, response: HomeResponse)
app/api/home/service.ts:70
↓ 1 callersFunctionsetKUNGalgameTask
()
server/cron.ts:32
↓ 1 callersFunctionsetKvAndExpireKvIfTtlLessThan
( key: string, value: string, keyTime: number, ttlKey: string, ttlTime: number )
lib/redis.ts:257
↓ 1 callersFunctionsetKvIfAbsent
( key: string, value: string, time: number )
lib/redis.ts:111
↓ 1 callersFunctionsetKvsAndAddKvSetMembers
( values: KvValue[], set: KvSetMembers )
lib/redis.ts:162
↓ 1 callersFunctionsetNestedKeys
(keys: string[], value: any)
store/_cookie.ts:65
↓ 1 callersFunctionsetResourceListCache
( cacheKey: string, response: ResourceListResponse )
app/api/resource/cache.ts:122
↓ 1 callersFunctionsetTagSourceBangumi
()
migration/setTagSourceBangumi.ts:4
↓ 1 callersFunctionshouldSkipLightbox
(img: HTMLImageElement)
components/kun/image-viewer/AutoImageViewer.tsx:7
↓ 1 callersFunctionsleep
(ms: number)
app/api/message/read/route.ts:10
↓ 1 callersFunctionsleep
(ms: number)
server/tasks/withTaskLock.ts:13
↓ 1 callersFunctionsleep
(ms: number)
migration/syncVndbTags.ts:10
↓ 1 callersFunctionsleep
(ms)
migration/backup/_migration.mjs:232
↓ 1 callersFunctionsleep
(ms)
migration/backup/_createPatchCompanies.mjs:7
↓ 1 callersFunctionsleep
(ms)
migration/backup/_fetchVNDBInfo.mjs:11
↓ 1 callersFunctionsleep
(ms)
migration/backup/_migrateMobileGameLinks.mjs:96
↓ 1 callersFunctionsliceUntilDelimiterFromEnd
( input: string = '', delimiter: string = '\n\n' )
app/api/utils/sliceUntilDelimiterFromEnd.ts:1
↓ 1 callersFunctionslugify
(str: string)
lib/mdx/element/kunHeading.ts:25
↓ 1 callersFunctionstartCountdown
()
components/kun/verification-code/Code.tsx:22
↓ 1 callersFunctionstateForIndex
(i: number)
components/kun/Rating.tsx:162
↓ 1 callersFunctionstripSection
(content: string)
migration/backup/_removeSupportLegitSection.ts:7
↓ 1 callersFunctionsubmitAppeal
( input: z.infer<typeof submitAppealSchema>, uid: number )
app/api/user/appeal/submit.ts:34
↓ 1 callersFunctionswipePower
(offset: number, velocity: number)
components/home/carousel/KunCarousel.tsx:100
↓ 1 callersFunctionsyncBangumiId
()
migration/syncBangumiId.ts:63
↓ 1 callersFunctionsyncBlockedTags
()
components/settings/user/BlockedTags.tsx:49
↓ 1 callersFunctionsyncKunPatchType
()
migration/backup/_syncKunPatchType.mjs:6
↓ 1 callersFunctionsyncPatchFields
()
migration/backup/_syncResourceCategories.mjs:11
↓ 1 callersFunctionsyncSteamData
()
migration/syncSteamData.ts:136
↓ 1 callersFunctionsyncSteamId
()
migration/syncSteamId.ts:6
↓ 1 callersFunctionsyncVndbTags
()
migration/syncVndbTags.ts:26
↓ 1 callersFunctiontimingSafeEqualHex
(actual: string, expected: string)
app/api/utils/algorithm.ts:134
↓ 1 callersFunctiontoCompanyCreate
(producer: VndbProducer, uid: number)
app/api/edit/fetchCompanies.ts:7
↓ 1 callersFunctiontoCompanyCreate
(producer)
migration/backup/_createPatchCompanies.mjs:67
↓ 1 callersFunctiontoggleAllowPrivateMessage
(uid: number)
app/api/user/setting/allow-private-message/route.ts:6
↓ 1 callersFunctiontoggleCommentLike
( input: z.infer<typeof commentIdSchema>, uid: number )
app/api/patch/comment/like/route.ts:16
↓ 1 callersFunctiontoggleCompanySelection
(companyId: number, isSelected: boolean)
components/patch/introduction/PatchCompanySelector.tsx:152
↓ 1 callersFunctiontoggleEmailNotice
(uid: number)
app/api/auth/email-notice/route.ts:6
↓ 1 callersFunctiontoggleEmailNotice
(uid: number)
app/api/user/setting/email-notice/route.ts:6
↓ 1 callersFunctiontoggleImageSelection
(id: string)
components/kun/auth/CaptchaModal.tsx:61
↓ 1 callersFunctiontoggleLinks
(resourceId: number)
components/patch/resource/ResourceDownload.tsx:31
↓ 1 callersFunctiontoggleLinks
(resourceId: number)
components/patch/resource/kun/KunResourceDownload.tsx:27
↓ 1 callersFunctiontogglePatchFavorite
( input: z.infer<typeof togglePatchFavoriteSchema>, uid: number )
app/api/patch/favorite/route.ts:13
↓ 1 callersFunctiontoggleRatingLike
( input: z.infer<typeof ratingIdSchema>, uid: number )
app/api/patch/rating/like/route.ts:13
↓ 1 callersFunctiontoggleResourceLike
( input: z.infer<typeof resourceIdSchema>, uid: number )
app/api/patch/resource/like/route.ts:17
↓ 1 callersFunctiontoggleTagSelection
(tagId: number, isSelected: boolean)
components/patch/introduction/PatchTagSelector.tsx:145
↓ 1 callersFunctiontouchLoginSession
( uid: number, jti: string, metadata: LoginSessionMetadata, ttlSeconds: number )
app/api/utils/jwt.ts:228
↓ 1 callersFunctiontouchUserLastActiveTime
(uid: number)
app/api/user/status/service.ts:27
↓ 1 callersFunctiontouchgalTemplate
( title: string, content: string, email: string, validateEmailCode: string )
constants/email/templates/touchgal.ts:10
↓ 1 callersFunctiontraverseDirectory
(currentPath: string)
components/home/carousel/mdx.ts:33
↓ 1 callersFunctiontraverseDirectory
(currentPath: string, basePath: string = '')
lib/mdx/getPosts.ts:14
↓ 1 callersFunctiontruncateLogContent
(content: string)
app/api/admin/resource/hidden/hidden.ts:15
↓ 1 callersFunctiontruncateLogContent
(content: string)
app/api/admin/rating/delete.ts:11
↓ 1 callersFunctiontruncateLogContent
(content: string)
app/api/admin/comment/delete.ts:12
↓ 1 callersFunctionunfollowUser
(uid: number, currentUserUid: number)
app/api/user/follow/unfollow/route.ts:11
↓ 1 callersFunctionupdate
(view: EditorView)
components/kun/milkdown/plugins/components/placeholder/placeholderPlugin.ts:11
↓ 1 callersFunctionupdateAllCompanyCounts
()
migration/backup/_createPatchCompanies.mjs:90
↓ 1 callersFunctionupdateComment
( input: z.infer<typeof patchCommentUpdateSchema>, uid: number, userRole: number )
app/api/patch/comment/update.ts:15
↓ 1 callersFunctionupdateComment
( input: z.infer<typeof patchCommentUpdateSchema>, uid: number )
app/api/admin/comment/update.ts:9
↓ 1 callersFunctionupdateCommentShadowBan
( input: z.infer<typeof adminUpdateCommentShadowBanSchema>, adminUid: number )
app/api/admin/comment/shadow-ban/shadowBan.ts:11
↓ 1 callersFunctionupdateEmail
(req: NextRequest)
app/api/user/setting/email/route.ts:165
↓ 1 callersFunctionupdateFolder
( input: z.infer<typeof updateFavoriteFolderSchema>, uid: number )
app/api/user/profile/favorite/folder/update.ts:6
↓ 1 callersFunctionupdateGalgame
( input: z.infer<typeof patchUpdateSchema>, uid: number )
app/api/edit/update.ts:7
↓ 1 callersFunctionupdateMessage
( conversationId: number, input: z.infer<typeof updatePrivateMessageSchema>, uid: number )
app/api/message/conversation/[id]/service.ts:119
↓ 1 callersFunctionupdatePassword
(req: NextRequest)
app/api/user/setting/password/route.ts:10
↓ 1 callersFunctionupdatePatchBanner
( image: ArrayBuffer, patchId: number, originalImage?: ArrayBuffer )
app/api/patch/banner/route.ts:22
↓ 1 callersFunctionupdatePatchInfo
()
migration/backup/_fetchVNDBInfo.mjs:50
↓ 1 callersFunctionupdatePatchRating
( input: z.infer<typeof patchRatingUpdateSchema>, uid: number, userRole: number )
app/api/patch/rating/update.ts:13
↓ 1 callersFunctionupdatePatchResource
( input: z.infer<typeof patchResourceUpdateSchema>, uid: number, userRole: number )
app/api/patch/resource/update.ts:19
↓ 1 callersFunctionupdatePatchResource
( input: z.infer<typeof patchResourceUpdateSchema>, uid: number )
app/api/admin/resource/update.ts:7
↓ 1 callersFunctionupdatePatchResourceUpdateTime
()
migration/backup/_resetMessageLink.mjs:3
↓ 1 callersFunctionupdatePatchResourceUpdateTime
()
migration/backup/_resetCommentMessageLink.mjs:3
↓ 1 callersFunctionupdatePatchResourceUpdateTime
()
migration/backup/_updatePatchResourceUpdateTime.mjs:3
↓ 1 callersFunctionupdatePatchViews
(uniqueId: string)
app/api/patch/views/put.ts:9
↓ 1 callersFunctionupdateRating
( input: z.infer<typeof patchRatingUpdateSchema>, uid: number )
app/api/admin/rating/update.ts:5
↓ 1 callersFunctionupdateRatingShadowBan
( input: z.infer<typeof adminUpdateRatingShadowBanSchema>, adminUid: number )
app/api/admin/rating/shadow-ban/shadowBan.ts:12
↓ 1 callersFunctionupdateReleasedField
()
migration/backup/_updateReleased.mjs:3
↓ 1 callersFunctionupdateResourceHidden
( input: z.infer<typeof adminUpdateResourceHiddenSchema>, uid: number )
app/api/admin/resource/hidden/hidden.ts:23
↓ 1 callersFunctionupdateTag
(input: z.infer<typeof updateTagSchema>)
app/api/tag/update.ts:6
↓ 1 callersFunctionupdateUser
( input: z.infer<typeof adminUpdateUserSchema>, adminUid: number )
app/api/admin/user/update.ts:7
↓ 1 callersFunctionupdateUserAvatar
(uid: number, avatar: ArrayBuffer)
app/api/user/setting/avatar/route.ts:31
↓ 1 callersFunctionupdateUserShadowBan
( input: z.infer<typeof adminUpdateUserShadowBanSchema>, adminUid: number )
app/api/admin/user/shadow-ban/shadowBan.ts:6
↓ 1 callersFunctionupdateUsername
(username: string, uid: number)
app/api/user/setting/username/route.ts:8
↓ 1 callersFunctionupgradePasswordHash
( userId: number, password: string, previousPasswordHash: string )
app/api/auth/login/route.ts:24
↓ 1 callersFunctionuploadImage
(uid: number, image: ArrayBuffer)
app/api/user/image/route.ts:9
↓ 1 callersFunctionuploadImageFromURL
( imageUrl, id, maxRetries = 20, timeout = 2000, minDelay = 100, maxDelay = 1000 )
migration/backup/_uploadBanner.mjs:69
↓ 1 callersFunctionuploadIntroductionImage
( name: string, image: ArrayBuffer, uid: number )
app/api/user/image/_upload.ts:6
↓ 1 callersFunctionuploadPatchBanner
(imageBuffer, id)
migration/backup/_uploadBanner.mjs:34
↓ 1 callersFunctionuploadUserAvatar
( image: ArrayBuffer, uid: number, // 审核开启时先上传到暂存 key, 通过后由 apply.ts 复制到正式 key pending = false )
app/api/user/setting/_upload.ts:17
↓ 1 callersFunctionurlHref
()
components/kun/external-link/ExternalLink.tsx:32
↓ 1 callersFunctionuseConfetti
()
hooks/useConfetti.ts:6
← previousnext →901–1,000 of 1,854, ranked by callers