Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ThinhVu/mhvn
/ functions
Functions
290 in github.com/ThinhVu/mhvn
⨍
Functions
290
◇
Types & classes
28
↓ 102 callers
Method
log
(info, callback)
be/src/utils/logger-transport-discord.ts:13
↓ 45 callers
Method
get
* 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 callers
Function
m2ms
be/src/utils/date-time-util.ts:20
↓ 25 callers
Function
exec
(promise)
fe/src/api/index.js:15
↓ 21 callers
Function
getColl
(name: string)
be/src/plugins/mongodb.ts:5
↓ 21 callers
Function
getLogger
()
be/src/utils/logger.ts:29
↓ 18 callers
Method
push
(docs)
fe/src/utils/caching.js:21
↓ 17 callers
Function
rateLimitByIp
(options: Partial<Options>)
be/src/middlewares/rate-limit.ts:29
↓ 14 callers
Method
get
(id)
fe/src/utils/caching.js:16
↓ 14 callers
Function
next
()
be-playground/src/helper/utils.js:65
↓ 14 callers
Function
rateLimitByUser
(options: Partial<Options>)
be/src/middlewares/rate-limit.ts:40
↓ 10 callers
Function
execAxios
(promise)
be-playground/src/helper/utils.js:31
↓ 10 callers
Function
genToken
(user: IUser)
be/src/utils/auth-util.ts:42
↓ 8 callers
Function
countActiveUser
(from: Date, to: Date)
be/src/logic/metric/user-metric.ts:67
↓ 7 callers
Method
filter
(filter)
fe/src/utils/caching.js:29
↓ 5 callers
Function
buildAuthHeaders
(token)
be-playground/src/helper/utils.js:40
↓ 4 callers
Function
alert
(title: string, content: string)
be/src/utils/rt-alert.ts:4
↓ 4 callers
Function
decrementKey
()
be/src/libs/rate-limit/lib.ts:390
↓ 4 callers
Function
getValue
(k: string)
be/src/logic/kv.ts:20
↓ 4 callers
Function
parseAuthorization
(req: Request)
be/src/utils/auth-util.ts:14
↓ 4 callers
Method
prefixKey
* 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 callers
Function
randomNumberInRange
(lower: number, upper: number)
be/src/utils/random-util.ts:18
↓ 3 callers
Method
_preloadBucket
()
fe/src/utils/caching.js:8
↓ 3 callers
Function
delay
(ms: number)
be/src/utils/date-time-util.ts:15
↓ 3 callers
Function
getResetSeconds
( resetTime?: Date, windowMs?: number, )
be/src/libs/rate-limit/headers.ts:14
↓ 3 callers
Function
isEmailInvalid
(email: string)
be/src/logic/user.ts:43
↓ 3 callers
Function
login
(userIndex)
be-playground/src/helper/user.js:10
↓ 3 callers
Function
oidIncludes
(array: ObjectId[], item: ObjectId)
be/src/utils/common-util.ts:35
↓ 3 callers
Function
readableResp
(e)
be-playground/src/helper/utils.js:44
↓ 3 callers
Function
updateUser
(_id: ObjectId, fieldsToUpdate: any)
be/src/logic/user.ts:125
↓ 2 callers
Function
_saveAuthSession
({user, token})
fe/src/api/index.js:28
↓ 2 callers
Function
addFileToFolder
(folderId: ObjectId, fileId: ObjectId)
be/src/logic/file-system/folder.ts:51
↓ 2 callers
Function
base64UrlEncode
(data)
be/src/utils/stringee.ts:40
↓ 2 callers
Function
buildEmailPayload
(metadata: { content: string, to: string, subject: string })
be/src/utils/email-util.ts:61
↓ 2 callers
Function
createUser
(data: IUser)
be/src/logic/user.ts:100
↓ 2 callers
Function
decrypt
(ciphertext, secret)
be/src/utils/crypto.ts:7
↓ 2 callers
Function
genAdminToken
(admin)
be/src/utils/auth-util.ts:47
↓ 2 callers
Function
generateCode
()
be/src/routes/user.route.ts:40
↓ 2 callers
Method
get
* 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 callers
Function
getAppMetricNow
()
be/src/logic/metric/app-metric.ts:4
↓ 2 callers
Method
getClient
* 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 callers
Function
getDiscordBot
()
be/src/utils/discord-bot.ts:9
↓ 2 callers
Function
getRedisStore
()
be/src/middlewares/rate-limit.ts:8
↓ 2 callers
Function
handleUploadFailed
(context, e)
fe/src/components/FileUpload/fs-util.js:23
↓ 2 callers
Function
isEmailHaveBeenUsed
(email: string)
be/src/logic/user.ts:44
↓ 2 callers
Function
isPhoneHaveBeenUsed
(phone: string)
be/src/logic/user.ts:62
↓ 2 callers
Method
loadIncrementScript
* Loads the script used to increment a client's hit count.
be/src/libs/rate-limit-redis/lib.ts:97
↓ 2 callers
Function
logLogin
(uid: ObjectId, atDay?: Date)
be/src/logic/metric/user-login-history.ts:5
↓ 2 callers
Function
normalizeUsername
(text: string)
be/src/logic/user.ts:107
↓ 2 callers
Function
parseScriptResponse
(results: RedisReply)
be/src/libs/rate-limit-redis/lib.ts:29
↓ 2 callers
Function
rateLimit
( passedOptions?: Partial<Options>, )
be/src/libs/rate-limit/lib.ts:311
↓ 2 callers
Function
removeFileFromFolder
(folderId: ObjectId, fileId: ObjectId)
be/src/logic/file-system/folder.ts:58
↓ 2 callers
Method
resetClient
* 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 callers
Function
sendEmail
({to, subject, html = undefined, text = undefined})
be/src/utils/email-util.ts:27
↓ 2 callers
Function
sendNotifyViaFcm
( notifyId: string, toUserIds: ObjectId[], event: string, notificationData: INotificationData)
be/src/logic/notification/index.ts:80
↓ 2 callers
Function
sendNotifyViaSocket
( notifyId: string, toUserIds: ObjectId[], event: string, notificationData: INotificationData)
be/src/logic/notification/index.ts:110
↓ 2 callers
Function
sendOTP
(phoneNr: string, otpCode: string | number)
be/src/utils/stringee.ts:69
↓ 2 callers
Function
toInt
(input: string | number | boolean | undefined)
be/src/libs/rate-limit-redis/lib.ts:18
↓ 2 callers
Function
upsertVerifyCode
({locale, email, phone})
be/src/routes/user.route.ts:49
↓ 2 callers
Function
urlEncode
(str)
be/src/utils/stringee.ts:36
↓ 2 callers
Function
validatePassword
(password: string)
be/src/logic/user.ts:78
↓ 1 callers
Method
_saveBucket
()
fe/src/utils/caching.js:12
↓ 1 callers
Function
buildNotification
(event: string, data: INotificationData, language: string)
be/src/logic/notification/notification-builder.ts:22
↓ 1 callers
Function
cancelDeleteAccountRequest
(_id: ObjectId)
be/src/logic/user.ts:145
↓ 1 callers
Function
cleanup
()
be/src/routes/dev-server.route.ts:61
↓ 1 callers
Method
clearExpired
* 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 callers
Function
connect
()
be/src/plugins/mongodb.ts:9
↓ 1 callers
Function
connectSocket
(userIndex)
be-playground/src/helper/user.js:14
↓ 1 callers
Function
create
(file: IFile)
be/src/logic/file-system/file.ts:10
↓ 1 callers
Function
create
(name: string, parent: ObjectId)
be/src/logic/file-system/folder.ts:35
↓ 1 callers
Function
createSocketServer
(app)
be/src/plugins/socketio.ts:29
↓ 1 callers
Method
decrement
(key: string)
be/src/libs/rate-limit/lib.ts:78
↓ 1 callers
Function
delay
(ms)
be-playground/src/helper/utils.js:9
↓ 1 callers
Function
deleteAccountRequest
(_id: ObjectId, issueDate: Date)
be/src/logic/user.ts:142
↓ 1 callers
Function
encrypt
(clearText, secret)
be/src/utils/crypto.ts:3
↓ 1 callers
Function
ensureAdminUserExists
()
be/src/routes/admin.route.ts:13
↓ 1 callers
Function
generateStringeeToken
()
be/src/utils/stringee.ts:45
↓ 1 callers
Function
get
(k: string)
be/src/logic/kv.ts:16
↓ 1 callers
Function
getAll
()
be/src/logic/kv.ts:4
↓ 1 callers
Function
getDAUNow
()
be/src/logic/metric/user-metric.ts:77
↓ 1 callers
Function
getFiles
(folderId: ObjectId)
be/src/logic/file-system/folder.ts:26
↓ 1 callers
Function
getFolderTree
()
be/src/logic/file-system/folder.ts:6
↓ 1 callers
Function
getLang
(language: string)
be/src/logic/notification/notification-builder.ts:6
↓ 1 callers
Function
getMAUNow
()
be/src/logic/metric/user-metric.ts:79
↓ 1 callers
Function
getMyInfo
(user)
be-playground/src/helper/user.js:27
↓ 1 callers
Function
getNotificationUsers
(to: ObjectId[], event: string, notificationData: INotificationData)
be/src/logic/notification/index.ts:39
↓ 1 callers
Function
getNotifications
(uid: ObjectId, p?: number)
be/src/logic/notification/index.ts:10
↓ 1 callers
Function
getOptionsFromConfig
(config: Configuration)
be/src/libs/rate-limit/lib.ts:133
↓ 1 callers
Function
getOpts
()
fe/src/api/hmm.js:5
↓ 1 callers
Function
getRandomSubarray
(arr: Array<any>, size: number)
be/src/utils/random-util.ts:22
↓ 1 callers
Function
getRespData
({data, error})
fe/src/api/index.js:5
↓ 1 callers
Function
getTokenUserIdMap
(users: IUser[])
be/src/logic/notification/index.ts:61
↓ 1 callers
Function
getUniqFcmTokens
(users: IUser[])
be/src/logic/notification/index.ts:50
↓ 1 callers
Function
getUnseenNotifies
(userId: ObjectId)
be/src/logic/notification/index.ts:15
↓ 1 callers
Function
getUploadForm
(filename: string, mimeType: string, folder: string)
be/src/logic/file-system/file.ts:25
↓ 1 callers
Method
getUploadForm
({folder, originalname, mimeType})
be/src/utils/s3.ts:29
↓ 1 callers
Function
getUserPublicInfoById
(_id: ObjectId)
be/src/logic/user.ts:33
↓ 1 callers
Function
getValidations
( _enabled: boolean | EnabledValidations, )
be/src/libs/rate-limit/validations.ts:284
↓ 1 callers
Function
getVersion
()
be/src/utils/common-util.ts:31
↓ 1 callers
Function
getWAUNow
()
be/src/logic/metric/user-metric.ts:78
next →
1–100 of 290, ranked by callers