MCPcopy Create free account

hub / github.com/Premshaw23/Learnova / functions

Functions1,455 in github.com/Premshaw23/Learnova

↓ 2 callersFunctionsanitizeHtml
(text)
app/api/register/route.js:66
↓ 2 callersFunctionsaveEditing
()
components/dashboard/CurriculumBuilder.jsx:198
↓ 2 callersFunctionsaveTimetable
(newData)
components/Timetable.js:257
↓ 2 callersFunctionserializeWebhook
(doc)
lib/models/webhookModel.js:16
↓ 2 callersFunctionsetAuthTokenCookie
(token)
hooks/useAuth.js:20
↓ 2 callersFunctionsetCookie
(name, value, days = 7)
hooks/useAuth.js:9
↓ 2 callersFunctionsetupRequireAuth
()
app/api/attendance/record/__tests__/webhook-gating.test.js:122
↓ 2 callersFunctionshortcutLabel
* Builds a human-readable label for a shortcut, e.g. "Ctrl+K" / "⌘K". * * @param {boolean} useMeta - true on macOS * @param {string} key * @retur
hooks/useKeyboardShortcuts.js:37
↓ 2 callersFunctionshouldAttachCsrfToken
(url, method)
lib/csrf.js:96
↓ 2 callersFunctionshowTooltip
(value, event)
components/AttendanceHeatmap.jsx:143
↓ 2 callersFunctionshowTooltip
(value, event)
components/activity/ActivityHeatmap.jsx:126
↓ 2 callersFunctionsignPayload
(payload, secret)
lib/webhook/signer.js:3
↓ 2 callersFunctionstart
()
hooks/useTimer.js:32
↓ 2 callersFunctionsyncCustomClaims
({ user, role, fullName })
services/authService.js:26
↓ 2 callersFunctionsyncOfflineQueue
(syncCallback)
services/offlineSyncQueue.js:134
↓ 2 callersFunctiontoggleLesson
(lessonTitle)
app/courses/[id]/page.jsx:250
↓ 2 callersFunctiontriggerNotification
(cls, immediate = false)
hooks/useTimetableReminders.js:41
↓ 2 callersFunctionupdateAchievement
(achievementId, updates)
lib/models/achievementModel.js:95
↓ 2 callersFunctionupdateDeliveryLog
(deliveryId, updates)
lib/models/webhookDeliveryModel.js:45
↓ 2 callersFunctionupdateProgress
()
components/ui/ScrollProgress.jsx:18
↓ 2 callersMethodupload
(fileName, buffer, mimeType)
lib/services/uploadService.js:37
↓ 2 callersFunctionuseAmbientAudio
()
hooks/useAmbientAudio.js:5
↓ 2 callersFunctionuseAuth
()
contexts/AuthContext.js:21
↓ 2 callersFunctionuseLabels
(user)
components/useLabels.js:10
↓ 2 callersFunctionuseOfflineSync
()
hooks/useOfflineSync.js:5
↓ 2 callersFunctionuseRealtime
(handlers, { enabled = true, pollInterval = FALLBACK_POLL_MS } = {})
hooks/useRealtime.js:10
↓ 2 callersFunctionuseSessionMonitor
()
hooks/useSessionMonitor.js:56
↓ 2 callersFunctionuseTimeout
(callback, delay, immediate = false)
hooks/useTimer.js:15
↓ 2 callersMethodvalidateActiveParticipantBadge
* Validate if a student can earn the ACTIVE_PARTICIPANT badge * Requirement: Reach Level 5 * * @param {Object} studentData - Student data obj
utils/badgeValidator.js:162
↓ 2 callersMethodvalidateEarlyBirdBadge
* Validate if a student can earn the EARLY_BIRD badge * Requirement: Mark attendance before 9:05 AM * * @param {Array} attendanceHistory - Ar
utils/badgeValidator.js:20
↓ 2 callersMethodvalidatePerfectWeekBadge
* Validate if a student can earn the PERFECT_WEEK badge * Requirement: Maintain a 5-day consecutive attendance streak * * @param {Object} stu
utils/badgeValidator.js:72
↓ 2 callersFunctionwithNoStoreHeaders
(body, status)
lib/api-response.js:9
↓ 1 callersFunctionGET
(request)
app/api/cron/attendance-warnings/route.js:76
↓ 1 callersFunctionGET
(request)
app/api/cron/attendance-risk/route.js:16
↓ 1 callersMethod_ocrPage
* Render one PDF page to canvas and OCR it. * @private
app/StudyAI/DocumentLoader.js:185
↓ 1 callersFunctionacquireLock
(resource, ttl = 5000)
lib/lockManager.js:10
↓ 1 callersFunctionaddGoal
()
components/DailyGoals.js:23
↓ 1 callersFunctionaddPendingAction
(action)
db/offlineStore.js:22
↓ 1 callersFunctionaddRecentActivity
(activity, limit = 10)
utils/recentActivity.js:13
↓ 1 callersFunctionanalyzeContent
(text)
lib/ai/contentFilter.js:29
↓ 1 callersFunctionanimate
()
components/CursorGlow.js:27
↓ 1 callersFunctionaskQuestion
(question, sessionId)
app/StudyAI/qachain.js:126
↓ 1 callersFunctionassertStudentOwnership
(requesterUid, studentId, role)
lib/services/achievementAccess.js:22
↓ 1 callersFunctionattemptRefresh
()
hooks/useAuth.js:61
↓ 1 callersFunctionbasePipeline
(instituteId)
app/api/cron/attendance-risk/route.js:43
↓ 1 callersFunctionbootstrapCsrf
()
components/ClientLayout.js:174
↓ 1 callersFunctionbuildAttendanceValues
(recentActivity = [])
components/AttendanceHeatmap.jsx:47
↓ 1 callersFunctionbuildCacheKey
(userId, trimmedMessage, messages)
lib/ai/groq.js:14
↓ 1 callersFunctionbuildCacheKey
(url, userHash)
worker/index.js:219
↓ 1 callersFunctionbuildCalendar
(monthOffset)
app/productivity/page.js:91
↓ 1 callersFunctionbuildFaceMatcher
(signal)
components/FaceRecognizer.js:361
↓ 1 callersFunctionbuildHeatmapData
()
components/StudyEnergyHeatmap.js:35
↓ 1 callersFunctionbuildHeatmapValues
(records = [])
components/activity/ActivityHeatmap.jsx:45
↓ 1 callersFunctionbuildPageCsp
()
middleware.js:222
↓ 1 callersFunctionbuildRetriever
(chunks, onProgress = () => {})
app/StudyAI/Retriever.js:4
↓ 1 callersFunctionbuildSecureMessages
( userMessage, baseSystemPrompt, history = [] )
utils/promptGuard.js:162
↓ 1 callersFunctionbuildTargetAudience
()
components/NoticeForm.jsx:36
↓ 1 callersFunctionbuildTimeline
()
components/WellnessJourneyTimeline.js:60
↓ 1 callersFunctioncalculateConsistency
(records)
utils/attendanceStreak.js:114
↓ 1 callersFunctioncalculateCurrentStreak
(records)
utils/attendanceStreak.js:8
↓ 1 callersMethodcalculateFraudScore
* Generate fraud score (0-100) for offline sync
utils/offlineSyncValidator.js:306
↓ 1 callersMethodcalculateLegitimateBadges
* Calculate legitimate badges based on student data * Uses comprehensive validation to determine correct badges * * @param {Object} studentDa
utils/badgeValidator.js:302
↓ 1 callersFunctioncalculateLongestStreak
(records)
utils/attendanceStreak.js:58
↓ 1 callersFunctioncalculateSRS
(quality, repetitions, previousInterval, previousEaseFactor)
app/courses/[id]/engine.js:9
↓ 1 callersFunctioncalculateStreak
(activeDates)
utils/streakUtils.js:1
↓ 1 callersFunctioncalculateUnlockedBadges
(studentData)
utils/gamification.js:38
↓ 1 callersFunctioncheckRoleSync
()
hooks/useRoleSync.js:33
↓ 1 callersFunctioncheckTimeValidity
(timeWindow)
components/AttendanceValidation.js:216
↓ 1 callersFunctionclaimNextJob
()
lib/queue.js:93
↓ 1 callersFunctioncleanupRateLimitMap
()
middleware.js:200
↓ 1 callersFunctionclearCacheForUser
(userHash)
worker/index.js:232
↓ 1 callersFunctionclearHistory
()
app/StudyAI/qachain.js:43
↓ 1 callersFunctionclearPendingActions
()
db/offlineStore.js:56
↓ 1 callersFunctionclearRecentActivities
()
utils/recentActivity.js:37
↓ 1 callersFunctionclearUserCaches
()
worker/index.js:243
↓ 1 callersFunctioncompleteJob
(jobId, result)
lib/queue.js:114
↓ 1 callersFunctioncomputeRiskScore
* Compute a 0–100 risk score: * Lower attendance → higher risk score * Declining trend adds a penalty
app/api/analytics/attendance-risk/route.js:253
↓ 1 callersFunctionconnect
()
hooks/useRealtime.js:56
↓ 1 callersFunctioncountWeekdaysInMonth
(year, month)
components/dashboard/AttendanceAnalytics.js:71
↓ 1 callersFunctioncreateCsrfCookie
(token = generateCsrfToken())
lib/csrf.js:279
↓ 1 callersFunctioncreateDeliveryLog
(data)
lib/models/webhookDeliveryModel.js:26
↓ 1 callersFunctioncreateFormData
()
app/api/register/__tests__/route.test.js:88
↓ 1 callersFunctioncreateLocalStorageMock
()
components/__tests__/CommentSection.test.jsx:6
↓ 1 callersFunctioncreateLocalStorageMock
()
utils/__tests__/recentlyVisitedPages.test.js:8
↓ 1 callersFunctioncreatePdfDownload
(notice)
components/NoticeCard.jsx:70
↓ 1 callersFunctioncreateSession
(userId, metadata = {})
lib/sessionManager.js:11
↓ 1 callersFunctioncreateTextDownload
(content, fileName)
components/NoticeCard.jsx:53
↓ 1 callersFunctioncreateTokenRefreshManager
(firebaseUser, onSessionExpired)
hooks/useAuth.js:57
↓ 1 callersFunctioncreateWebhook
(data)
lib/models/webhookModel.js:21
↓ 1 callersFunctioncronRequest
(authorization)
app/api/cron/attendance-warnings/route.test.js:18
↓ 1 callersFunctioncronRequest
(authorization)
app/api/cron/attendance-risk/route.test.js:14
↓ 1 callersFunctiondaysBetween
* Calculates the difference in calendar days between two dates. * Uses UTC to avoid timezone drift issues. * @param {Date} dateA - The earlier date.
lib/gamification-service.js:38
↓ 1 callersFunctiondecodeBase64AndHex
* Decodes potential base64 or hex encoded blocks to inspect for hidden prompt injections.
utils/promptGuard.js:51
↓ 1 callersFunctiondecryptDocumentField
(doc, fieldName)
lib/progress-encryption.js:135
↓ 1 callersFunctiondeepMerge
* Deep merges two objects, prioritizing local changes for specific keys * while merging arrays (like attendance logs) to prevent data loss.
lib/conflictResolver.js:18
↓ 1 callersFunctiondeleteAchievement
(achievementId)
lib/models/achievementModel.js:106
↓ 1 callersFunctiondeleteWebhook
(webhookId)
lib/models/webhookModel.js:58
↓ 1 callersFunctiondetectInjection
(message)
utils/promptGuard.js:105
↓ 1 callersFunctiondetectScannedPDF
(pdf)
app/StudyAI/DocumentLoader.js:239
↓ 1 callersFunctionencryptDocumentField
(doc, fieldName)
lib/progress-encryption.js:117
← previousnext →401–500 of 1,455, ranked by callers