MCPcopy Index your code

hub / github.com/Oak-and-Sprout/sprout-track / functions

Functions1,881 in github.com/Oak-and-Sprout/sprout-track

↓ 2,741 callersFunctiont
( key: string, lang: string, replacements?: Record<string, string | number> )
src/lib/notifications/i18n.ts:55
↓ 1,173 callersFunctioncn
(...inputs: ClassValue[])
src/lib/utils.ts:4
↓ 365 callersFunctionformatForResponse
(date: Date | string | null)
app/api/utils/timezone.ts:157
↓ 298 callersFunctiont
(key: string, translations: Record<string, string>)
app/api/timeline/export/route.ts:22
↓ 194 callersFunctionuseLocalization
()
src/context/localization.tsx:248
↓ 126 callersFunctionwithAuthContext
( handler: (req: NextRequest, authContext: AuthResult) => Promise<NextResponse<ApiResponse<T>>> )
app/api/utils/auth.ts:660
↓ 116 callersFunctionassert
(condition, msg)
scripts/test-webhook-api.js:74
↓ 76 callersFunctionuseTheme
()
src/context/theme.tsx:122
↓ 72 callersFunctiontoUTC
(dateInput: string | Date)
app/api/utils/timezone.ts:107
↓ 62 callersFunctioncheckWritePermission
( authContext: AuthResult )
app/api/utils/writeProtection.ts:31
↓ 57 callersFunctionuseTimezone
()
app/context/timezone.tsx:550
↓ 49 callersFunctiongetActivityTime
(activity: ActivityType)
src/components/Timeline/utils.tsx:132
↓ 48 callersFunctionrequest
(method, path, body)
scripts/test-webhook-api.js:47
↓ 42 callersFunctionlog
(icon, msg)
scripts/test-webhook-api.js:43
↓ 41 callersFunctiontest
(name, fn)
scripts/test-webhook-api.js:63
↓ 32 callersFunctionlog
(msg)
st-guardian/index.js:94
↓ 31 callersFunctionformatTime
(date: string, settings: Settings | null, includeDate: boolean = true, t?: (key: string) => string)
src/components/Timeline/utils.tsx:152
↓ 29 callersFunctionformatDateShort
( date: Date, dateFormat: DateFormatSetting, timezone?: string )
src/utils/dateFormat.ts:62
↓ 29 callersFunctionformatDateTime
( dateString: string | null, dateFormat: DateFormatSetting = 'MM/DD/YYYY', timeFormat: TimeFormatSetting
src/components/familymanager/utils.ts:22
↓ 29 callersFunctiontoUTCString
(date: Date | null | undefined)
app/context/timezone.tsx:500
↓ 28 callersFunctionhandleExpirationError
( response: Response, showToast: (props: { variant?: 'info' | 'success' | 'warning' | 'error'; mes
src/lib/expiration-error-handler.ts:32
↓ 28 callersFunctionrandomInt
(min, max)
scripts/generate-demo-data.js:72
↓ 26 callersFunctionrandomChoice
(array)
scripts/generate-test-data.js:148
↓ 25 callersFunctionhookError
(code: string, message: string, status: number, headers?: Record<string, string>)
app/api/hooks/v1/response.ts:21
↓ 23 callersFunctionnotifyActivityCreated
( babyId: string, activityType: string, actingUser?: ActingUser, activityData?: any )
src/lib/notifications/activityHook.ts:202
↓ 21 callersFunctionuseToast
()
src/components/ui/toast/toast-provider.tsx:90
↓ 20 callersFunctionauthFetch
(url: string, options: RequestInit = {})
src/components/familymanager/utils.ts:5
↓ 20 callersFunctionformatDateDisplay
( date: Date, dateFormat: DateFormatSetting, timezone?: string )
src/utils/dateFormat.ts:31
↓ 20 callersFunctiontimeToSlot
(hours: number)
src/components/Timeline/TimelineV2/timeline-heatmap.utils.ts:74
↓ 20 callersFunctionwithSysAdminAuth
( handler: (req: NextRequest) => Promise<NextResponse<ApiResponse<T>>> )
app/api/utils/auth.ts:600
↓ 19 callersFunctionhookSuccess
(data: any, meta?: Partial<Meta>, headers?: Record<string, string>)
app/api/hooks/v1/response.ts:9
↓ 19 callersFunctionrecordFailedAttempt
(ip: string)
app/api/utils/ip-lockout.ts:52
↓ 18 callersFunctionuseUnit
()
src/hooks/useUnit.ts:7
↓ 17 callersFunctionisNotificationsEnabled
()
src/lib/notifications/config.ts:67
↓ 16 callersFunctionsendJson
(res, statusCode, data)
st-guardian/index.js:139
↓ 15 callersFunctiondecrypt
(encryptedData: string)
app/api/utils/encryption.ts:63
↓ 15 callersFunctionisEncrypted
(data: string)
app/api/utils/encryption.ts:100
↓ 14 callersFunctionformatDateLong
( date: Date, dateFormat: DateFormatSetting, timezone?: string )
src/utils/dateFormat.ts:103
↓ 13 callersFunctiongetAuthHeaders
()
src/components/SetupWizard/index.tsx:82
↓ 13 callersFunctiongetAuthenticatedUser
(req: NextRequest)
app/api/utils/auth.ts:155
↓ 13 callersFunctionlogApiCall
(entry: ApiLogEntry)
app/api/utils/api-logger.ts:18
↓ 12 callersFunctioncalculateElapsed
()
src/components/features/nursery-mode/FeedTile.tsx:105
↓ 12 callersFunctionformatTimeDisplay
( date: Date, timeFormat: TimeFormatSetting, timezone?: string )
src/utils/dateFormat.ts:13
↓ 12 callersFunctiongetPreference
(babyId: string, eventType: NotificationEventType)
src/components/modals/NotificationSplashModal/index.tsx:219
↓ 12 callersFunctiongetPreference
( subscriptionId: string, babyId: string, eventType: NotificationEventType )
src/components/forms/SettingsForm/NotificationSettings.tsx:333
↓ 12 callersFunctionhandler
(req: NextRequest)
app/api/setup/start/route.ts:13
↓ 12 callersFunctioninterp
(key: string)
app/api/babies/[babyId]/report/[yearMonth]/route.ts:234
↓ 12 callersFunctionrandomInt
(min, max)
scripts/generate-test-data.js:152
↓ 12 callersFunctionshouldFetch
(type: string)
app/api/timeline/route.ts:146
↓ 12 callersFunctionshouldFetch
(type: string)
app/api/timeline/export/route.ts:348
↓ 11 callersFunctionfetchActivitiesForDate
(babyId: string, date: Date, isAnimated: boolean)
src/components/Timeline/index.tsx:40
↓ 11 callersFunctionrandomChoice
(array)
scripts/generate-demo-data.js:68
↓ 11 callersFunctiontoDateKey
(date: Date)
src/components/Timeline/TimelineV2/useActivityCache.ts:17
↓ 11 callersFunctionupdateUnlockTimer
()
app/(app)/[slug]/client-layout.tsx:288
↓ 11 callersFunctionuseBaby
()
app/context/baby.tsx:350
↓ 10 callersFunctionconvertFromCdcToDisplayUnit
(value: number, type: GrowthMeasurementType, displayUnit: string)
src/components/Reports/GrowthChart.tsx:140
↓ 10 callersFunctionconvertVolume
(amount: number, fromUnit: string, toUnit: string)
src/utils/unit-conversion.ts:12
↓ 10 callersFunctionsendEmail
(props: SendEmailProps)
src/lib/email/index.ts:8
↓ 9 callersFunctionaddDate
(d: Date)
app/api/babies/[babyId]/report/[yearMonth]/route.ts:165
↓ 9 callersFunctioncapitalize
(sentence: string)
src/components/Timeline/utils.tsx:1106
↓ 9 callersFunctioncountCaretaker
(caretakerId: string | null)
app/api/babies/[babyId]/report/[yearMonth]/route.ts:581
↓ 9 callersFunctionformatDate
(date)
scripts/manage-family-subscriptions.js:28
↓ 9 callersFunctiongenerateTimeInDay
(baseDate, hour, minuteVariation = 30, maxTime = null)
scripts/generate-test-data.js:208
↓ 9 callersFunctionminutesAgo
(date: Date)
app/api/hooks/v1/babies/[babyId]/status/route.ts:7
↓ 9 callersFunctionrandomInt
(min, max)
scripts/generate-health-data.js:24
↓ 9 callersFunctionupdateState
(updates: Partial<CalendarState>)
src/components/Calendar/index.tsx:52
↓ 8 callersFunctionbuildCurl
(method: 'GET' | 'POST', path: string, body?: object)
src/components/forms/SettingsForm/ApiGuide.tsx:87
↓ 8 callersFunctionformatTextContent
(text: string)
src/components/modals/changelog/index.tsx:61
↓ 8 callersFunctiongetAuthHeaders
()
src/components/forms/FamilyForm/index.tsx:173
↓ 8 callersFunctionhandlePreferenceUpdate
( babyId: string, eventType: NotificationEventType, updates: { enabled?: boolean; timerIntervalMin
src/components/modals/NotificationSplashModal/index.tsx:163
↓ 8 callersFunctionhandlePreferenceUpdate
( subscriptionId: string, babyId: string, eventType: NotificationEventType, updates: { e
src/components/forms/SettingsForm/NotificationSettings.tsx:281
↓ 8 callersFunctionhandleUnitChange
(type: keyof Omit<FormData, 'date' | 'notes'>, unit: string)
src/components/forms/MeasurementForm/index.tsx:269
↓ 8 callersFunctionresetTimerNotificationState
( babyId: string, activityType: string )
src/lib/notifications/activityHook.ts:346
↓ 8 callersFunctionuseDeployment
()
app/context/deployment.tsx:213
↓ 8 callersFunctionuseFamily
()
src/context/family.tsx:342
↓ 7 callersFunctionconvert
(v: number)
app/api/babies/[babyId]/report/[yearMonth]/route.ts:350
↓ 7 callersFunctionformatDuration
(seconds: number)
src/components/features/nursery-mode/FeedTile.tsx:23
↓ 7 callersFunctionformatMinutes
(minutes: number)
src/components/Timeline/TimelineV2/TimelineV2DailyStats.tsx:90
↓ 7 callersFunctionformatTextContent
(text: string)
src/components/modals/privacy-policy/index.tsx:56
↓ 7 callersFunctionformatTextContent
(text: string)
src/components/modals/terms-of-use/index.tsx:56
↓ 7 callersFunctionisDuringSleep
(time, sleepIntervals)
scripts/generate-demo-data.js:130
↓ 7 callersFunctionisSameDay
(date1, date2)
scripts/generate-test-data.js:161
↓ 7 callersFunctionrandomChoice
(array)
scripts/generate-inventory-data.js:17
↓ 7 callersFunctionrandomInt
(min, max)
scripts/generate-inventory-data.js:21
↓ 7 callersFunctionresetFailedAttempts
(ip: string)
app/api/utils/ip-lockout.ts:87
↓ 6 callersFunctioncalculateDurationMinutes
(startTime: string, endTime: string)
src/components/ActivityTileGroup/index.tsx:86
↓ 6 callersFunctioncheckRateLimit
( keyId: string, method: 'GET' | 'POST' )
app/api/hooks/v1/rate-limiter.ts:20
↓ 6 callersFunctionfetchData
()
src/components/forms/SettingsForm/index.tsx:130
↓ 6 callersFunctionfetchFamilyPeople
()
src/components/account-manager/FamilyPeopleTab.tsx:68
↓ 6 callersFunctionformatDateForInput
(dateStr: string)
src/components/modals/SleepModal.tsx:56
↓ 6 callersFunctionformatDateTimeDisplay
( date: Date, dateFormat: DateFormatSetting, timeFormat: TimeFormatSetting, timezone?: string )
src/utils/dateFormat.ts:135
↓ 6 callersFunctionformatDuration
(seconds)
documentation/Implementation/nursery-mode-mockup.jsx:31
↓ 6 callersFunctionformatDuration
(seconds: number)
src/components/features/nursery-mode/PumpTile.tsx:24
↓ 6 callersFunctionformatMinutes
(minutes: number)
src/components/BabyQuickInfo/StatsTab.tsx:108
↓ 6 callersFunctionformatMinutes
(minutes: number)
src/components/forms/BabyQuickStats/index.tsx:136
↓ 6 callersFunctionformatRelativeTime
(dateString: string)
src/components/BabyQuickInfo/NotificationsTab.tsx:53
↓ 6 callersFunctionfromCdcUnit
(value: number, type: 'weight' | 'length' | 'head_circumference')
app/api/babies/[babyId]/report/[yearMonth]/route.ts:205
↓ 6 callersFunctiongetAuthHeaders
()
src/components/features/nursery-mode/FeedTile.tsx:122
↓ 6 callersFunctiongetFamilySpecificKey
(baseKey: string, familyId?: string)
app/context/baby.tsx:160
↓ 6 callersFunctiongetHours
(d: Date)
src/components/Timeline/TimelineV2/timeline-heatmap.utils.ts:79
next →1–100 of 1,881, ranked by callers