MCPcopy Create free account

hub / github.com/ThinhVu/mhvn / functions

Functions290 in github.com/ThinhVu/mhvn

↓ 102 callersMethodlog
(info, callback)
be/src/utils/logger-transport-discord.ts:13
↓ 45 callersMethodget
* Method to fetch a client's hit count and reset time. * * @param key {string} - The identifier for a client. * * @returns {ClientRateLimi
be/src/libs/rate-limit-redis/lib.ts:171
↓ 31 callersFunctionm2ms
be/src/utils/date-time-util.ts:20
↓ 25 callersFunctionexec
(promise)
fe/src/api/index.js:15
↓ 21 callersFunctiongetColl
(name: string)
be/src/plugins/mongodb.ts:5
↓ 21 callersFunctiongetLogger
()
be/src/utils/logger.ts:29
↓ 18 callersMethodpush
(docs)
fe/src/utils/caching.js:21
↓ 17 callersFunctionrateLimitByIp
(options: Partial<Options>)
be/src/middlewares/rate-limit.ts:29
↓ 14 callersMethodget
(id)
fe/src/utils/caching.js:16
↓ 14 callersFunctionnext
()
be-playground/src/helper/utils.js:65
↓ 14 callersFunctionrateLimitByUser
(options: Partial<Options>)
be/src/middlewares/rate-limit.ts:40
↓ 10 callersFunctionexecAxios
(promise)
be-playground/src/helper/utils.js:31
↓ 10 callersFunctiongenToken
(user: IUser)
be/src/utils/auth-util.ts:42
↓ 8 callersFunctioncountActiveUser
(from: Date, to: Date)
be/src/logic/metric/user-metric.ts:67
↓ 7 callersMethodfilter
(filter)
fe/src/utils/caching.js:29
↓ 5 callersFunctionbuildAuthHeaders
(token)
be-playground/src/helper/utils.js:40
↓ 4 callersFunctionalert
(title: string, content: string)
be/src/utils/rt-alert.ts:4
↓ 4 callersFunctiondecrementKey
()
be/src/libs/rate-limit/lib.ts:390
↓ 4 callersFunctiongetValue
(k: string)
be/src/logic/kv.ts:20
↓ 4 callersFunctionparseAuthorization
(req: Request)
be/src/utils/auth-util.ts:14
↓ 4 callersMethodprefixKey
* Method to prefix the keys with the given text. * * @param key {string} - The key. * * @returns {string} - The text + the key.
be/src/libs/rate-limit-redis/lib.ts:151
↓ 4 callersFunctionrandomNumberInRange
(lower: number, upper: number)
be/src/utils/random-util.ts:18
↓ 3 callersMethod_preloadBucket
()
fe/src/utils/caching.js:8
↓ 3 callersFunctiondelay
(ms: number)
be/src/utils/date-time-util.ts:15
↓ 3 callersFunctiongetResetSeconds
( resetTime?: Date, windowMs?: number, )
be/src/libs/rate-limit/headers.ts:14
↓ 3 callersFunctionisEmailInvalid
(email: string)
be/src/logic/user.ts:43
↓ 3 callersFunctionlogin
(userIndex)
be-playground/src/helper/user.js:10
↓ 3 callersFunctionoidIncludes
(array: ObjectId[], item: ObjectId)
be/src/utils/common-util.ts:35
↓ 3 callersFunctionreadableResp
(e)
be-playground/src/helper/utils.js:44
↓ 3 callersFunctionupdateUser
(_id: ObjectId, fieldsToUpdate: any)
be/src/logic/user.ts:125
↓ 2 callersFunction_saveAuthSession
({user, token})
fe/src/api/index.js:28
↓ 2 callersFunctionaddFileToFolder
(folderId: ObjectId, fileId: ObjectId)
be/src/logic/file-system/folder.ts:51
↓ 2 callersFunctionbase64UrlEncode
(data)
be/src/utils/stringee.ts:40
↓ 2 callersFunctionbuildEmailPayload
(metadata: { content: string, to: string, subject: string })
be/src/utils/email-util.ts:61
↓ 2 callersFunctioncreateUser
(data: IUser)
be/src/logic/user.ts:100
↓ 2 callersFunctiondecrypt
(ciphertext, secret)
be/src/utils/crypto.ts:7
↓ 2 callersFunctiongenAdminToken
(admin)
be/src/utils/auth-util.ts:47
↓ 2 callersFunctiongenerateCode
()
be/src/routes/user.route.ts:40
↓ 2 callersMethodget
* Method to fetch a client's hit count and reset time. * * @param key {string} - The identifier for a client. * * @returns {ClientRateLimi
be/src/libs/rate-limit/memory-store.ts:83
↓ 2 callersFunctiongetAppMetricNow
()
be/src/logic/metric/app-metric.ts:4
↓ 2 callersMethodgetClient
* Retrieves or creates a client, given a key. Also ensures that the client being * returned is in the `current` map. * * @param key {string}
be/src/libs/rate-limit/memory-store.ts:181
↓ 2 callersFunctiongetDiscordBot
()
be/src/utils/discord-bot.ts:9
↓ 2 callersFunctiongetRedisStore
()
be/src/middlewares/rate-limit.ts:8
↓ 2 callersFunctionhandleUploadFailed
(context, e)
fe/src/components/FileUpload/fs-util.js:23
↓ 2 callersFunctionisEmailHaveBeenUsed
(email: string)
be/src/logic/user.ts:44
↓ 2 callersFunctionisPhoneHaveBeenUsed
(phone: string)
be/src/logic/user.ts:62
↓ 2 callersMethodloadIncrementScript
* Loads the script used to increment a client's hit count.
be/src/libs/rate-limit-redis/lib.ts:97
↓ 2 callersFunctionlogLogin
(uid: ObjectId, atDay?: Date)
be/src/logic/metric/user-login-history.ts:5
↓ 2 callersFunctionnormalizeUsername
(text: string)
be/src/logic/user.ts:107
↓ 2 callersFunctionparseScriptResponse
(results: RedisReply)
be/src/libs/rate-limit-redis/lib.ts:29
↓ 2 callersFunctionrateLimit
( passedOptions?: Partial<Options>, )
be/src/libs/rate-limit/lib.ts:311
↓ 2 callersFunctionremoveFileFromFolder
(folderId: ObjectId, fileId: ObjectId)
be/src/logic/file-system/folder.ts:58
↓ 2 callersMethodresetClient
* Recycles a client by setting its hit count to zero, and reset time to * `windowMs` milliseconds from now. * * NOT to be confused with `#res
be/src/libs/rate-limit/memory-store.ts:166
↓ 2 callersFunctionsendEmail
({to, subject, html = undefined, text = undefined})
be/src/utils/email-util.ts:27
↓ 2 callersFunctionsendNotifyViaFcm
( notifyId: string, toUserIds: ObjectId[], event: string, notificationData: INotificationData)
be/src/logic/notification/index.ts:80
↓ 2 callersFunctionsendNotifyViaSocket
( notifyId: string, toUserIds: ObjectId[], event: string, notificationData: INotificationData)
be/src/logic/notification/index.ts:110
↓ 2 callersFunctionsendOTP
(phoneNr: string, otpCode: string | number)
be/src/utils/stringee.ts:69
↓ 2 callersFunctiontoInt
(input: string | number | boolean | undefined)
be/src/libs/rate-limit-redis/lib.ts:18
↓ 2 callersFunctionupsertVerifyCode
({locale, email, phone})
be/src/routes/user.route.ts:49
↓ 2 callersFunctionurlEncode
(str)
be/src/utils/stringee.ts:36
↓ 2 callersFunctionvalidatePassword
(password: string)
be/src/logic/user.ts:78
↓ 1 callersMethod_saveBucket
()
fe/src/utils/caching.js:12
↓ 1 callersFunctionbuildNotification
(event: string, data: INotificationData, language: string)
be/src/logic/notification/notification-builder.ts:22
↓ 1 callersFunctioncancelDeleteAccountRequest
(_id: ObjectId)
be/src/logic/user.ts:145
↓ 1 callersFunctioncleanup
()
be/src/routes/dev-server.route.ts:61
↓ 1 callersMethodclearExpired
* Move current clients to previous, create a new map for current. * * This function is called every `windowMs`.
be/src/libs/rate-limit/memory-store.ts:206
↓ 1 callersFunctionconnect
()
be/src/plugins/mongodb.ts:9
↓ 1 callersFunctionconnectSocket
(userIndex)
be-playground/src/helper/user.js:14
↓ 1 callersFunctioncreate
(file: IFile)
be/src/logic/file-system/file.ts:10
↓ 1 callersFunctioncreate
(name: string, parent: ObjectId)
be/src/logic/file-system/folder.ts:35
↓ 1 callersFunctioncreateSocketServer
(app)
be/src/plugins/socketio.ts:29
↓ 1 callersMethoddecrement
(key: string)
be/src/libs/rate-limit/lib.ts:78
↓ 1 callersFunctiondelay
(ms)
be-playground/src/helper/utils.js:9
↓ 1 callersFunctiondeleteAccountRequest
(_id: ObjectId, issueDate: Date)
be/src/logic/user.ts:142
↓ 1 callersFunctionencrypt
(clearText, secret)
be/src/utils/crypto.ts:3
↓ 1 callersFunctionensureAdminUserExists
()
be/src/routes/admin.route.ts:13
↓ 1 callersFunctiongenerateStringeeToken
()
be/src/utils/stringee.ts:45
↓ 1 callersFunctionget
(k: string)
be/src/logic/kv.ts:16
↓ 1 callersFunctiongetAll
()
be/src/logic/kv.ts:4
↓ 1 callersFunctiongetDAUNow
()
be/src/logic/metric/user-metric.ts:77
↓ 1 callersFunctiongetFiles
(folderId: ObjectId)
be/src/logic/file-system/folder.ts:26
↓ 1 callersFunctiongetFolderTree
()
be/src/logic/file-system/folder.ts:6
↓ 1 callersFunctiongetLang
(language: string)
be/src/logic/notification/notification-builder.ts:6
↓ 1 callersFunctiongetMAUNow
()
be/src/logic/metric/user-metric.ts:79
↓ 1 callersFunctiongetMyInfo
(user)
be-playground/src/helper/user.js:27
↓ 1 callersFunctiongetNotificationUsers
(to: ObjectId[], event: string, notificationData: INotificationData)
be/src/logic/notification/index.ts:39
↓ 1 callersFunctiongetNotifications
(uid: ObjectId, p?: number)
be/src/logic/notification/index.ts:10
↓ 1 callersFunctiongetOptionsFromConfig
(config: Configuration)
be/src/libs/rate-limit/lib.ts:133
↓ 1 callersFunctiongetOpts
()
fe/src/api/hmm.js:5
↓ 1 callersFunctiongetRandomSubarray
(arr: Array<any>, size: number)
be/src/utils/random-util.ts:22
↓ 1 callersFunctiongetRespData
({data, error})
fe/src/api/index.js:5
↓ 1 callersFunctiongetTokenUserIdMap
(users: IUser[])
be/src/logic/notification/index.ts:61
↓ 1 callersFunctiongetUniqFcmTokens
(users: IUser[])
be/src/logic/notification/index.ts:50
↓ 1 callersFunctiongetUnseenNotifies
(userId: ObjectId)
be/src/logic/notification/index.ts:15
↓ 1 callersFunctiongetUploadForm
(filename: string, mimeType: string, folder: string)
be/src/logic/file-system/file.ts:25
↓ 1 callersMethodgetUploadForm
({folder, originalname, mimeType})
be/src/utils/s3.ts:29
↓ 1 callersFunctiongetUserPublicInfoById
(_id: ObjectId)
be/src/logic/user.ts:33
↓ 1 callersFunctiongetValidations
( _enabled: boolean | EnabledValidations, )
be/src/libs/rate-limit/validations.ts:284
↓ 1 callersFunctiongetVersion
()
be/src/utils/common-util.ts:31
↓ 1 callersFunctiongetWAUNow
()
be/src/logic/metric/user-metric.ts:78
next →1–100 of 290, ranked by callers