MCPcopy Create free account

hub / github.com/Cawlumm/lyftr / functions

Functions570 in github.com/Cawlumm/lyftr

↓ 90 callersFunctionnewContext
(userID int64, method, path string, body any)
backend/controllers/testhelper_test.go:191
↓ 88 callersFunctionsetupTestDB
(t *testing.T)
backend/controllers/testhelper_test.go:23
↓ 87 callersFunctioncreateTestUser
(t *testing.T)
backend/controllers/testhelper_test.go:165
↓ 54 callersMethodScan
(dest ...any)
backend/stores/exercise.go:25
↓ 54 callersMethodget
get reads a single row by id (no user scope — used after a user-scoped write).
backend/stores/weight.go:62
↓ 51 callersFunctionstore
()
web/src/stores/workoutSession.test.ts:4
↓ 48 callersFunctiondecodeResponse
(t *testing.T, w *httptest.ResponseRecorder)
backend/controllers/testhelper_test.go:210
↓ 42 callersFunctiondisplayWeight
(lbs: number, unit: string)
web/src/stores/settings.ts:94
↓ 35 callersFunctionunwrap
(res: { data: { data: T } })
web/src/services/api.ts:107
↓ 31 callersFunctionsetParam
(c *gin.Context, key, val string)
backend/controllers/testhelper_test.go:206
↓ 23 callersFunctioninsertWeightLog
(t *testing.T, uid int64, weight float64, loggedAt time.Time)
backend/controllers/weight_test.go:12
↓ 21 callersFunctionsetPhase
(p: typeof phase)
web/src/pages/GymModeWorkout.tsx:83
↓ 20 callersFunctiontodayStr
()
web/src/utils/dateUtils.ts:12
↓ 20 callersFunctionweightShort
(unit: string)
web/src/stores/settings.ts:79
↓ 18 callersFunctioninsertFoodLog
─── helpers ──────────────────────────────────────────────────────────────────
backend/controllers/food_test.go:17
↓ 16 callersFunctioncreateTestExercise
(t *testing.T)
backend/controllers/testhelper_test.go:178
↓ 16 callersFunctiondisplayToLbs
(val: number, unit: string)
web/src/stores/settings.ts:85
↓ 16 callersFunctionshoot
(name: string, url: string, viewport: typeof MOBILE | typeof DESKTOP, setup?: (p: any) => Promise<void>)
web/scripts/screenshots.ts:61
↓ 16 callersFunctionshot
(page, name)
web/scripts/screenshots.mjs:17
↓ 15 callersFunctionnormalizeServerUrl
(raw: string)
web/src/stores/server.ts:10
↓ 12 callersFunctiongetEnv
(key, fallback string)
backend/config/config.go:66
↓ 12 callersFunctionweightError
(value: number, unit: string)
web/src/stores/settings.ts:110
↓ 11 callersFunctionapiErrorMessage
(err: any, fallback: string)
web/src/services/api.ts:28
↓ 11 callersFunctionisPositiveNumber
(s: string)
web/src/utils/numberUtils.ts:11
↓ 10 callersMethodGet
Get returns one user-owned food log, or sql.ErrNoRows.
backend/stores/food.go:47
↓ 10 callersFunctiondisplayVolume
(lbs: number, unit: string)
web/src/stores/settings.ts:99
↓ 10 callersFunctionsaveLocal
(session: types.ActiveSession | null)
web/src/stores/workoutSession.ts:7
↓ 10 callersFunctionseedWorkoutWithSet
seedWorkoutWithSet creates a workout → workout_exercise → set for a given user/exercise.
backend/controllers/exercises_test.go:12
↓ 9 callersFunctiondayToIsoNoon
(yyyyMmDd: string)
web/src/utils/dateUtils.ts:27
↓ 9 callersFunctionisoToDayInput
(iso: string)
web/src/utils/dateUtils.ts:38
↓ 9 callersFunctionmuscleColor
(m: string)
web/src/utils/exerciseUtils.ts:32
↓ 9 callersFunctionotherUser
(t *testing.T)
backend/controllers/food_test.go:45
↓ 8 callersFunctionformatVersion
(raw: string)
web/src/utils/version.ts:7
↓ 8 callersFunctionlbsToDisplay
(lbs: number, unit: string)
web/src/stores/settings.ts:82
↓ 8 callersFunctionround1
(n: number)
web/src/stores/settings.ts:90
↓ 8 callersFunctionupdateSet
(exIdx: number, setIdx: number, field: string, value: any)
web/src/pages/AddWorkout.tsx:70
↓ 7 callersMethodLogWeight
(c *gin.Context)
backend/controllers/weight.go:54
↓ 7 callersFunctionoffProductToResult
(p offProduct)
backend/controllers/food.go:258
↓ 7 callersFunctionseedGymSession
(page: any, name: string, exerciseName: string, sets: any[], extraExercises?: any[])
web/e2e/workouts.spec.ts:199
↓ 7 callersFunctionselectResult
(result: types.FoodSearchResult)
web/src/pages/LogFood.tsx:170
↓ 7 callersFunctionuseNumericText
(value: string)
web/src/hooks/useNumericText.ts:15
↓ 7 callersFunctionuseServerInfo
()
web/src/hooks/useServerInfo.ts:11
↓ 6 callersMethodDelete
(uid, id int64)
backend/stores/food.go:85
↓ 6 callersMethodListWeightLogs
(c *gin.Context)
backend/controllers/weight.go:15
↓ 6 callersMethodLogFood
(c *gin.Context)
backend/controllers/food.go:61
↓ 6 callersFunctioncleanupSeed
( request: APIRequestContext, token: string, listUrl: string, deleteBase: string, match: (item: any)
web/e2e/seedHelpers.ts:13
↓ 6 callersFunctioninsertSavedFood
(t *testing.T, uid int64, name string)
backend/controllers/food_test.go:32
↓ 6 callersFunctionmaxWeight
(unit: string)
web/src/stores/settings.ts:107
↓ 6 callersFunctionresolveWeightLbs
(displayValue: string, originalLbs: number, unit: string)
web/src/stores/settings.ts:125
↓ 6 callersFunctionsetActiveSetIdx
(i: number)
web/src/pages/GymModeWorkout.tsx:85
↓ 6 callersFunctionuseEscapeKey
(active: boolean, onEscape: () => void)
web/src/hooks/useEscapeKey.ts:7
↓ 6 callersFunctionwithOFFMock
(t *testing.T, handler http.HandlerFunc)
backend/controllers/food_test.go:66
↓ 5 callersMethodCreateWorkout
(c *gin.Context)
backend/controllers/workouts.go:49
↓ 5 callersMethodGetExercisePRs
(c *gin.Context)
backend/controllers/exercises.go:48
↓ 5 callersFunctioninTx
inTx runs fn inside a transaction, committing on success and rolling back on error. Use it for any store operation that issues two or more statements
backend/stores/stores.go:37
↓ 5 callersFunctionisValidWeight
(value: number, unit: string)
web/src/stores/settings.ts:118
↓ 5 callersFunctionmuscleColorBordered
(m: string)
web/src/utils/exerciseUtils.ts:37
↓ 5 callersFunctionpause
(msg)
web/scripts/post-launch.mjs:4
↓ 5 callersFunctionselectResult
(result: types.FoodSearchResult)
web/src/components/FoodLogModal.tsx:149
↓ 5 callersFunctionuseBodyScrollLock
(active: boolean)
web/src/hooks/useBodyScrollLock.ts:14
↓ 4 callersMethodCreate
(uid int64, req models.LogFoodRequest)
backend/stores/food.go:53
↓ 4 callersMethodCreateProgram
(c *gin.Context)
backend/controllers/programs.go:48
↓ 4 callersFunctionIsLocked
IsLocked reports whether err is a transient SQLite lock (SQLITE_BUSY / SQLITE_LOCKED), the kind of failure that is worth retrying rather than surfacin
backend/utils/dberr.go:26
↓ 4 callersMethodList
(uid int64, f WeightFilter)
backend/stores/weight.go:31
↓ 4 callersMethodListWorkouts
(c *gin.Context)
backend/controllers/workouts.go:15
↓ 4 callersMethodLookupBarcode
(c *gin.Context)
backend/controllers/food.go:397
↓ 4 callersMethodSearchFood
(c *gin.Context)
backend/controllers/food.go:317
↓ 4 callersMethodUpdate
(uid, id int64, req models.LogFoodRequest)
backend/stores/food.go:67
↓ 4 callersFunctionapiUrl
(origin = '')
web/src/services/api.ts:8
↓ 4 callersFunctioncorsConfig
corsConfig builds the CORS policy. Auth is Bearer-token based (no cookies), so credentials mode is off — which also lets the wildcard origin be valid.
backend/routes/routes.go:102
↓ 4 callersFunctionlogin
(page)
web/scripts/screenshots.mjs:23
↓ 4 callersFunctionmuscleToBodySlugs
(m: string)
web/src/utils/exerciseUtils.ts:82
↓ 4 callersFunctionpad
(n: number)
web/src/utils/dateUtils.ts:14
↓ 4 callersFunctionshootGymMode
( name: string, phase: 'overview' | 'exercise-info' | 'exercise', viewport: typeof MOBILE | typeof
web/scripts/screenshots.ts:75
↓ 4 callersFunctionuseCountdown
(endsAt: number | null, onComplete?: () => void)
web/src/hooks/useCountdown.ts:7
↓ 4 callersFunctionuseTheme
()
web/src/hooks/useTheme.ts:5
↓ 3 callersMethodGetDailyStats
(c *gin.Context)
backend/controllers/food.go:170
↓ 3 callersMethodGetFoodHistory
(c *gin.Context)
backend/controllers/food.go:188
↓ 3 callersMethodGetFoodLog
(c *gin.Context)
backend/controllers/food.go:42
↓ 3 callersMethodGetWeightStats
(c *gin.Context)
backend/controllers/weight.go:139
↓ 3 callersFunctionIsUniqueViolation
IsUniqueViolation reports whether err is a UNIQUE/PRIMARY KEY constraint violation, so callers can distinguish a genuine duplicate from any other writ
backend/utils/dberr.go:38
↓ 3 callersMethodListPrograms
(c *gin.Context)
backend/controllers/programs.go:14
↓ 3 callersMethodUpdateFoodLog
(c *gin.Context)
backend/controllers/food.go:103
↓ 3 callersMethodUpdateWeightLog
(c *gin.Context)
backend/controllers/weight.go:92
↓ 3 callersFunctionaddSet
(exIdx: number)
web/src/pages/AddWorkout.tsx:54
↓ 3 callersFunctionclampStep
(base: number, delta: number, opts: { min?: number; max?: number } = {})
web/src/utils/number.ts:4
↓ 3 callersFunctionclientPrefs
()
web/src/stores/settings.ts:11
↓ 3 callersFunctionhandleMinimize
()
web/src/pages/GymModeWorkout.tsx:107
↓ 3 callersFunctioninTxDo
inTxDo is inTx for operations that don't return a value.
backend/stores/stores.go:55
↓ 3 callersMethodloadExercises
loadExercises scans + closes the parent cursor BEFORE loading each exercise's sets (#36), and surfaces scan errors.
backend/stores/program.go:180
↓ 3 callersMethodloadExercises
loadExercises loads a workout's exercises (JOIN exercises for display) then their sets. Scans + closes the parent cursor fully BEFORE the per-exercise
backend/stores/workout.go:189
↓ 3 callersFunctionnextIncompleteSet
(sets: { completed?: boolean }[], afterIdx: number)
web/src/utils/workoutSets.ts:11
↓ 3 callersFunctiononSetActiveIdx
(i: number)
web/src/pages/GymModeWorkout.tsx:84
↓ 3 callersFunctionopenLog
(meal: types.FoodLog['meal'])
web/src/pages/Food.tsx:130
↓ 3 callersFunctionparseOrigins
(raw string)
backend/routes/routes.go:118
↓ 3 callersFunctionrange
(a: number[])
web/src/pages/GymModeWorkout.tsx:328
↓ 3 callersFunctionremoveExercise
(index: number)
web/src/pages/AddWorkout.tsx:52
↓ 3 callersFunctionremoveSet
(exIdx: number, setIdx: number)
web/src/pages/AddWorkout.tsx:62
↓ 3 callersFunctionscanProgram
(row interface{ Scan(...any) error }, p *models.Program)
backend/stores/program.go:23
↓ 3 callersFunctionscanWorkout
(row interface{ Scan(...any) error }, w *models.Workout)
backend/stores/workout.go:24
next →1–100 of 570, ranked by callers