Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Premshaw23/Learnova
/ functions
Functions
1,455 in github.com/Premshaw23/Learnova
⨍
Functions
1,455
◇
Types & classes
71
↓ 2 callers
Function
sanitizeHtml
(text)
app/api/register/route.js:66
↓ 2 callers
Function
saveEditing
()
components/dashboard/CurriculumBuilder.jsx:198
↓ 2 callers
Function
saveTimetable
(newData)
components/Timetable.js:257
↓ 2 callers
Function
serializeWebhook
(doc)
lib/models/webhookModel.js:16
↓ 2 callers
Function
setAuthTokenCookie
(token)
hooks/useAuth.js:20
↓ 2 callers
Function
setCookie
(name, value, days = 7)
hooks/useAuth.js:9
↓ 2 callers
Function
setupRequireAuth
()
app/api/attendance/record/__tests__/webhook-gating.test.js:122
↓ 2 callers
Function
shortcutLabel
* 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 callers
Function
shouldAttachCsrfToken
(url, method)
lib/csrf.js:96
↓ 2 callers
Function
showTooltip
(value, event)
components/AttendanceHeatmap.jsx:143
↓ 2 callers
Function
showTooltip
(value, event)
components/activity/ActivityHeatmap.jsx:126
↓ 2 callers
Function
signPayload
(payload, secret)
lib/webhook/signer.js:3
↓ 2 callers
Function
start
()
hooks/useTimer.js:32
↓ 2 callers
Function
syncCustomClaims
({ user, role, fullName })
services/authService.js:26
↓ 2 callers
Function
syncOfflineQueue
(syncCallback)
services/offlineSyncQueue.js:134
↓ 2 callers
Function
toggleLesson
(lessonTitle)
app/courses/[id]/page.jsx:250
↓ 2 callers
Function
triggerNotification
(cls, immediate = false)
hooks/useTimetableReminders.js:41
↓ 2 callers
Function
updateAchievement
(achievementId, updates)
lib/models/achievementModel.js:95
↓ 2 callers
Function
updateDeliveryLog
(deliveryId, updates)
lib/models/webhookDeliveryModel.js:45
↓ 2 callers
Function
updateProgress
()
components/ui/ScrollProgress.jsx:18
↓ 2 callers
Method
upload
(fileName, buffer, mimeType)
lib/services/uploadService.js:37
↓ 2 callers
Function
useAmbientAudio
()
hooks/useAmbientAudio.js:5
↓ 2 callers
Function
useAuth
()
contexts/AuthContext.js:21
↓ 2 callers
Function
useLabels
(user)
components/useLabels.js:10
↓ 2 callers
Function
useOfflineSync
()
hooks/useOfflineSync.js:5
↓ 2 callers
Function
useRealtime
(handlers, { enabled = true, pollInterval = FALLBACK_POLL_MS } = {})
hooks/useRealtime.js:10
↓ 2 callers
Function
useSessionMonitor
()
hooks/useSessionMonitor.js:56
↓ 2 callers
Function
useTimeout
(callback, delay, immediate = false)
hooks/useTimer.js:15
↓ 2 callers
Method
validateActiveParticipantBadge
* 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 callers
Method
validateEarlyBirdBadge
* 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 callers
Method
validatePerfectWeekBadge
* 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 callers
Function
withNoStoreHeaders
(body, status)
lib/api-response.js:9
↓ 1 callers
Function
GET
(request)
app/api/cron/attendance-warnings/route.js:76
↓ 1 callers
Function
GET
(request)
app/api/cron/attendance-risk/route.js:16
↓ 1 callers
Method
_ocrPage
* Render one PDF page to canvas and OCR it. * @private
app/StudyAI/DocumentLoader.js:185
↓ 1 callers
Function
acquireLock
(resource, ttl = 5000)
lib/lockManager.js:10
↓ 1 callers
Function
addGoal
()
components/DailyGoals.js:23
↓ 1 callers
Function
addPendingAction
(action)
db/offlineStore.js:22
↓ 1 callers
Function
addRecentActivity
(activity, limit = 10)
utils/recentActivity.js:13
↓ 1 callers
Function
analyzeContent
(text)
lib/ai/contentFilter.js:29
↓ 1 callers
Function
animate
()
components/CursorGlow.js:27
↓ 1 callers
Function
askQuestion
(question, sessionId)
app/StudyAI/qachain.js:126
↓ 1 callers
Function
assertStudentOwnership
(requesterUid, studentId, role)
lib/services/achievementAccess.js:22
↓ 1 callers
Function
attemptRefresh
()
hooks/useAuth.js:61
↓ 1 callers
Function
basePipeline
(instituteId)
app/api/cron/attendance-risk/route.js:43
↓ 1 callers
Function
bootstrapCsrf
()
components/ClientLayout.js:174
↓ 1 callers
Function
buildAttendanceValues
(recentActivity = [])
components/AttendanceHeatmap.jsx:47
↓ 1 callers
Function
buildCacheKey
(userId, trimmedMessage, messages)
lib/ai/groq.js:14
↓ 1 callers
Function
buildCacheKey
(url, userHash)
worker/index.js:219
↓ 1 callers
Function
buildCalendar
(monthOffset)
app/productivity/page.js:91
↓ 1 callers
Function
buildFaceMatcher
(signal)
components/FaceRecognizer.js:361
↓ 1 callers
Function
buildHeatmapData
()
components/StudyEnergyHeatmap.js:35
↓ 1 callers
Function
buildHeatmapValues
(records = [])
components/activity/ActivityHeatmap.jsx:45
↓ 1 callers
Function
buildPageCsp
()
middleware.js:222
↓ 1 callers
Function
buildRetriever
(chunks, onProgress = () => {})
app/StudyAI/Retriever.js:4
↓ 1 callers
Function
buildSecureMessages
( userMessage, baseSystemPrompt, history = [] )
utils/promptGuard.js:162
↓ 1 callers
Function
buildTargetAudience
()
components/NoticeForm.jsx:36
↓ 1 callers
Function
buildTimeline
()
components/WellnessJourneyTimeline.js:60
↓ 1 callers
Function
calculateConsistency
(records)
utils/attendanceStreak.js:114
↓ 1 callers
Function
calculateCurrentStreak
(records)
utils/attendanceStreak.js:8
↓ 1 callers
Method
calculateFraudScore
* Generate fraud score (0-100) for offline sync
utils/offlineSyncValidator.js:306
↓ 1 callers
Method
calculateLegitimateBadges
* Calculate legitimate badges based on student data * Uses comprehensive validation to determine correct badges * * @param {Object} studentDa
utils/badgeValidator.js:302
↓ 1 callers
Function
calculateLongestStreak
(records)
utils/attendanceStreak.js:58
↓ 1 callers
Function
calculateSRS
(quality, repetitions, previousInterval, previousEaseFactor)
app/courses/[id]/engine.js:9
↓ 1 callers
Function
calculateStreak
(activeDates)
utils/streakUtils.js:1
↓ 1 callers
Function
calculateUnlockedBadges
(studentData)
utils/gamification.js:38
↓ 1 callers
Function
checkRoleSync
()
hooks/useRoleSync.js:33
↓ 1 callers
Function
checkTimeValidity
(timeWindow)
components/AttendanceValidation.js:216
↓ 1 callers
Function
claimNextJob
()
lib/queue.js:93
↓ 1 callers
Function
cleanupRateLimitMap
()
middleware.js:200
↓ 1 callers
Function
clearCacheForUser
(userHash)
worker/index.js:232
↓ 1 callers
Function
clearHistory
()
app/StudyAI/qachain.js:43
↓ 1 callers
Function
clearPendingActions
()
db/offlineStore.js:56
↓ 1 callers
Function
clearRecentActivities
()
utils/recentActivity.js:37
↓ 1 callers
Function
clearUserCaches
()
worker/index.js:243
↓ 1 callers
Function
completeJob
(jobId, result)
lib/queue.js:114
↓ 1 callers
Function
computeRiskScore
* 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 callers
Function
connect
()
hooks/useRealtime.js:56
↓ 1 callers
Function
countWeekdaysInMonth
(year, month)
components/dashboard/AttendanceAnalytics.js:71
↓ 1 callers
Function
createCsrfCookie
(token = generateCsrfToken())
lib/csrf.js:279
↓ 1 callers
Function
createDeliveryLog
(data)
lib/models/webhookDeliveryModel.js:26
↓ 1 callers
Function
createFormData
()
app/api/register/__tests__/route.test.js:88
↓ 1 callers
Function
createLocalStorageMock
()
components/__tests__/CommentSection.test.jsx:6
↓ 1 callers
Function
createLocalStorageMock
()
utils/__tests__/recentlyVisitedPages.test.js:8
↓ 1 callers
Function
createPdfDownload
(notice)
components/NoticeCard.jsx:70
↓ 1 callers
Function
createSession
(userId, metadata = {})
lib/sessionManager.js:11
↓ 1 callers
Function
createTextDownload
(content, fileName)
components/NoticeCard.jsx:53
↓ 1 callers
Function
createTokenRefreshManager
(firebaseUser, onSessionExpired)
hooks/useAuth.js:57
↓ 1 callers
Function
createWebhook
(data)
lib/models/webhookModel.js:21
↓ 1 callers
Function
cronRequest
(authorization)
app/api/cron/attendance-warnings/route.test.js:18
↓ 1 callers
Function
cronRequest
(authorization)
app/api/cron/attendance-risk/route.test.js:14
↓ 1 callers
Function
daysBetween
* 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 callers
Function
decodeBase64AndHex
* Decodes potential base64 or hex encoded blocks to inspect for hidden prompt injections.
utils/promptGuard.js:51
↓ 1 callers
Function
decryptDocumentField
(doc, fieldName)
lib/progress-encryption.js:135
↓ 1 callers
Function
deepMerge
* 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 callers
Function
deleteAchievement
(achievementId)
lib/models/achievementModel.js:106
↓ 1 callers
Function
deleteWebhook
(webhookId)
lib/models/webhookModel.js:58
↓ 1 callers
Function
detectInjection
(message)
utils/promptGuard.js:105
↓ 1 callers
Function
detectScannedPDF
(pdf)
app/StudyAI/DocumentLoader.js:239
↓ 1 callers
Function
encryptDocumentField
(doc, fieldName)
lib/progress-encryption.js:117
← previous
next →
401–500 of 1,455, ranked by callers