The old layout of how everything was prior to 3 months of changes. All almost remains but just a eye into the storm of what used to be!
LatestMiddleware
- Variable: rateLimit, cookieParser, compression, session, geoip, helmet, xss, hpp, allowedDomains, blacklistedIps, proxyVpnList
- Function: getIp - Parameters: (req), Contains 1 statement, Return Statement
- Function: headersSent - Parameters: (res), Contains 1 statement, Return Statement
- Function: token - Parameters: (name, fn), Contains 2 statements, Return Statement, Return Statement
- Function: compile - Parameters: (format), Contains 3 statements, Variable: fmt, js, tokenArgs, Return Statement, Return Statement
- Function: createBufferStream - Parameters: (stream, interval), Contains 4 statements, Variable: buffer, timer, Function: flush - Parameters: (), Contains 3 statements, Return Statement
- Function: devLog - Parameters: (format), Contains 6 statements, Variable: formatType, opts, formatFunction, logStream, Return Statement
- Function: logRequest - Parameters: (), Contains 3 statements, Return Statement, Variable: logLine
- Function: getFormatFunction - Parameters: (format), Contains 2 statements, Variable: predefinedFormats, status, color, formatStr, Return Statement, Return Statement
- Variable: customRequestBlocker, blacklistPatterns, isMaliciousRequest, isBlacklistedIp, Return Statement
- Variable: sanitizeInput, sanitized, Return Statement
- Variable: sanitizeInputs, prop
- Variable: ipInRange, ipInt, rangeIpInt, mask, Return Statement
- Variable: isProxyOrVpn, Return Statement
- Variable: logRequestDetails, forwardedFor, realIp, detectedProxyOrVpn, geo, logDetails
- Variable: domainCheckMiddleware, host, Return Statement
- Variable: enforceHttps, Return Statement
- Variable: limiter, registerLimiter, verificationLimiter, loginLimiter, forgotLimiter, publicLimiter
- Variable: csrfValidation, ifGuest, sessionCsrfToken, requestCsrfToken, Return Statement, Return Statement, Return Statement
- Variable: sessionMiddleware, errorHandlingMiddleware, isAuthenticated, sessionCsrfToken, isGuest, Return Statement, Return Statement, Return Statement
- Variable: hasRole, roleHierarchy, Return Statement, Variable: username, Return Statement, Variable: user, Return Statement, Variable: roomId, Return Statement, Variable: userRole, Return Statement, Return Statement, Return Statement
- Variable: applyMiddlewares
Misc
- Variable: nodemailer, path, fs
- Variable: validateEmail, emailRegex, Return Statement
- Variable: validatePhoneNumber, phoneRegex, Return Statement
- Variable: sanitizeInput, Return Statement
- Variable: transporter, sendNotification, mailOptions, Return Statement, Return Statement
- Variable: forwardEmail, Return Statement, Return Statement
- Variable: cacheFilePath, mailboxPath
- Variable: loadProcessedEmailsCache, processedEmails
- Variable: saveProcessedEmailsCache
- Variable: processIncomingEmails, emails, Return Statement, Variable: newProcessedEmails, body, fromMatch, fromEmail, senderUsername, emailIdentifier, Return Statement, Variable: user
- Variable: readEmails, Return Statement
- Variable: sendPhoneVerificationCode, message
- Variable: analyzeSentiment, words, enhancedAnalysis, Return Statement
- Variable: tokenize, Return Statement
- Variable: parseEmails, emails, newProcessedEmails, emailId, emailIdentifier
- Variable: startWatchingMailbox
- Variable: sendSMSNotification, carrierEmailDomains, carrierEmails, sendPromises, responses, Return Statement
- Variable: generateEmailTemplate, Return Statement
- Variable: sendConfirmationEmail, confirmUrl, subject, text, htmlContent, html
- Variable: sendPasswordResetEmail, resetUrl, subject, text, htmlContent, html
- Variable: sendPasswordResetNotification, resetUrl, subject, text, htmlContent, html
- Variable: computeSentimentScore, sentimentKeywords, sentimentScore, Return Statement, Return Statement, Return Statement
- Variable: contextAnalysis, contextKeywords, contextScore, isNegation, i, word, weight, Return Statement
- Variable: isWithinLast30Days, Return Statement, Variable: now, past30Days, Return Statement
- Variable: isVip, vip, hasVipTurnServerConfig, Return Statement
- Variable: indexValidation, forgotValidation, Return Statement, Return Statement
- Variable: registrationValidation, existingUser, Return Statement, Return Statement, Return Statement, Return Statement, Return Statement, Return Statement, Return Statement, Return Statement
- Variable: loginValidation, user, Return Statement, Return Statement, Return Statement, Variable: isPasswordValid, Return Statement, Return Statement, Return Statement
- Variable: resetPasswordValidation, confirmPhoneValidation, confirmingEmail, resettingPassword
- Variable: createRoomValidation, deleteRoomValidation, setRoomTopicValidation, shareFileValidation
- Variable: logError, timestamp, errorLocation, formattedStack, logDetails
- Variable: testSendConfirmationEmail, user, sixDigit, token
Routes
- Variable: express, router
- Variable: type, userId, token, Return Statement, Variable: captcha, isLogged, sessionCsrfToken, ifGuest, Return Statement
- Variable: room, Return Statement, Variable: guestNickname, Return Statement, Return Statement, Variable: sessionCsrfToken, Variable: ifGuest, Return Statement
- Variable: archivedMessages, room, errors, Return Statement, Variable: token, sixDigit, hashedPassword, user, Return Statement, Variable: errors, Return Statement, Variable: user, Return Statement, Return Statement, Variable: token
- Variable: errors, Return Statement, Variable: user, token, Return Statement, Variable: errors, Return Statement, Variable: user, errors, Return Statement, Variable: hashedPassword, Return Statement, Variable: user, errors, Return Statement
- Variable: roomId, Return Statement
- Variable: clip, clips
- Variable: poll, results, recommendations, sentimentResult, poll, randomOption, updatedPoll, activeUsers, Return Statement, Variable: rewardedUser
- Variable: secureToken, room, Return Statement, Return Statement
Socket
- Variable: WebRTC, roomData, gameData
- Variable: createGameInstance, Return Statement, Return Statement, Return Statement, Return Statement
- Variable: setupWebSocket, namespaces, setupNamespace
- Variable: setupGameHandlers, Return Statement, Variable: gameInstance, Return Statement, Variable: player, result, currentPlayer
- Variable: setupChatHandlers, Return Statement, Variable: roomUsers, Return Statement, Variable: userRole, roomsAllowedRoles, existingUser, roomsUser, userObject, welcomeMessage, message, streams, userSet
- Variable: monitorUserInactivity, roomId, setUserStatus, user, handleInactivity, resetInactivity, activityEvents
- Variable: setupWebRTCHandlers, payload, Return Statement
- Variable: stopBroadcasting, roomId
- Variable: maxBroadcastersCheck, iceServers, turnServerConfig, createPeerConnection, peer, iceCandidatePromise, offer, Return Statement, Return Statement
- Variable: handleStreamer, lastAddedTrack, Return Statement, Variable: peer, answer, Return Statement, Return Statement
- Variable: handleStartBroadcast, peer, answer, Return Statement, Return Statement
- Variable: handleTrackEvents, streamInfo
- Variable: loadExistingStreamer, count, lastAddedTrack, Return Statement, Variable: peer, answer, Return Statement, Return Statement
- Variable: handlePushToTalk, room, Return Statement, Return Statement, Variable: user, allowedRoles
- Variable: updateStreamsOrder, streamOrder
- Variable: handlePauseResumeStream, uuid
- Variable: hasPermission, user, Return Statement, Variable: userRole, roleHierarchy, Return Statement, Variable: username, Return Statement, Variable: user, Return Statement, Variable: roomId, Return Statement, Variable: userRole, roleHierarchy, Return Statement, Return Statement
- Variable: approveProfile, userSocket, pendingApproval, developerSockets, developerUser, Return Statement, Variable: developerSocket, pendingApproval
- Variable: setupMessageHandlers, user, approveAvatar, pendingApproval, developerSockets, developerUser, Return Statement, Variable: developerSocket, roomId, userToPoke, Return Statement, Variable: currentTime, userTimestamp, targetUserTimestamp, Return Statement, Return Statement, Variable: targetSocket, maxChars, currentTime, userTimestamps, recentMessages, Return Statement, Return Statement, Return Statement, Variable: sentimentAnalysis, archivedMessage, mentionedUsername, username, mentionedUser, targetSocket, currentTime, userTimestamps, recentMessages, Return Statement, Variable: sentimentAnalysis, whisperMessage, messages, user, poll, clip, roomId, targetSocket, admin
- Variable: roomPermissions, admin, adminRole, user, userRole, roleHierarchy, Return Statement, Return Statement, Variable: admin, userSocket, admin, userSocket, admin, userSocket, admin, user, roomId, user, roomId, user, isAllowed, admin, currentOwner, user, userSocket, user, room, user, user, user, undefined, recipient, isFound, invitation, inviter, isFound, gameSocket
QPRx2023
-
Variable: QPRx2023, MT, index, initialize, i, generateNumbers, y, extractNumber, lcgValue, mtValue, bytes, combined, hash
-
Variable: QPRx2023 , Return Statement , Return Statement , Variable: MT , Variable: index , Variable: initialize , Variable: i , Variable: generateNumbers , Variable: i , Variable: y , Variable: extractNumber , Variable: y , Return Statement , Return Statement , Variable: lcgValue , Variable: mtValue , Return Statement , Return Statement , Return Statement , Return Statement , Variable: bytes , Return Statement , Variable: combined , Variable: hash , Variable: i , Variable: i , Return Statement , Return Statement
Database
- Variable: QPRx2023, path, fs, dbFilePath, logsDirectory
- Variable: getLogFilePath, dateString, Return Statement
- Variable: readDatabase, data, Return Statement
- Variable: writeDatabase, handleError, ensureLobbyRoomExists, addUserToDatabase, userExists
- Variable: needsRotation, Return Statement, stats
- Variable: writeLog, logFilePath, newLogFilePath
- Variable: logActivity, logEntry, logs, logData
- Variable: createAdminUser, createLobbyRoom, initializeDefaultDatabase, defaultAdmin, lobbyRoom, initialData, Return Statement
- Variable: createTestUser, database, userManagement, users, user, temp
- Variable: userIndex, admin, updatedUsers
- Variable: disallowedRoles, admin, user, room, roleExists, userInRoom
- Variable: newOwner, nonCriticalSettings, filteredSettings, key
- Variable: roomManagement, room, user, userId, member, roomId, existingRoom, ownerRooms, alreadySuspended, alreadyMuted, checkMuted
- Variable: userToFollow, userToUnfollow, userToBlock, userToUnblock
- Variable: messageHandling, messageIndex
- Variable: streamManagement, recordingIndex
- Variable: utilities, currentTime, timeDifference, activeUsers, rewardedUser
- Variable: pollManagement, poll
- Variable: clipManagement, clip
- Variable: recommendationManagement, recommendation
- Variable: analytics, analyticEvent, logFilePath, logData
- Variable: loyaltyPointsManagement, user
- Variable: badgeManagement, user
- Variable: socialSharing, share