MCPcopy Create free account

hub / github.com/WebDevSimplified/course-platform / functions

Functions238 in github.com/WebDevSimplified/course-platform

↓ 81 callersFunctioncn
(...inputs: ClassValue[])
src/lib/utils.ts:4
↓ 24 callersFunctiongetCurrentUser
({ allData = false } = {})
src/services/clerk.ts:11
↓ 14 callersFunctionformatPrice
(amount: number, { showZeroAsNumber = false } = {})
src/lib/formatters.ts:11
↓ 13 callersFunctionformatPlural
( count: number, { singular, plural }: { singular: string; plural: string }, { includeCount = true } = {
src/lib/formatters.ts:1
↓ 8 callersFunctionformatNumber
( number: number, options?: Intl.NumberFormatOptions )
src/lib/formatters.ts:31
↓ 8 callersFunctiongetGlobalTag
(tag: CACHE_TAG)
src/lib/dataCache.ts:11
↓ 8 callersFunctiongetIdTag
(tag: CACHE_TAG, id: string)
src/lib/dataCache.ts:15
↓ 6 callersFunctionactionToast
({ actionData, ...props }: Omit<Toast, "title" | "description" | "variant"> & { actionData: { error: boo
src/hooks/use-toast.ts:189
↓ 6 callersFunctiongetCourseIdTag
(id: string)
src/features/courses/db/cache/courses.ts:8
↓ 5 callersFunctiondispatch
(action: Action)
src/hooks/use-toast.ts:131
↓ 5 callersFunctiongetCourseGlobalTag
()
src/features/courses/db/cache/courses.ts:4
↓ 5 callersFunctiongetCourseSectionCourseTag
(courseId: string)
src/features/courseSections/db/cache.ts:12
↓ 5 callersFunctiongetLessonCourseTag
(courseId: string)
src/features/lessons/db/cache/lessons.ts:12
↓ 5 callersFunctiongetProductIdTag
(id: string)
src/features/products/db/cache.ts:8
↓ 4 callersFunctiongetLessonIdTag
(id: string)
src/features/lessons/db/cache/lessons.ts:8
↓ 4 callersFunctiongetProductGlobalTag
()
src/features/products/db/cache.ts:4
↓ 4 callersFunctiongetUserCourseAccessUserTag
(userId: string)
src/features/courses/db/cache/userCourseAccess.ts:18
↓ 4 callersFunctionrevalidateCourseSectionCache
({ id, courseId, }: { id: string courseId: string })
src/features/courseSections/db/cache.ts:16
↓ 4 callersFunctionrevalidateLessonCache
({ id, courseId, }: { id: string courseId: string })
src/features/lessons/db/cache/lessons.ts:16
↓ 4 callersFunctionuseFormField
()
src/components/ui/form.tsx:44
↓ 3 callersFunctionformatDate
(date: Date)
src/lib/formatters.ts:27
↓ 3 callersFunctiongetCourseSectionGlobalTag
()
src/features/courseSections/db/cache.ts:4
↓ 3 callersFunctiongetLessonGlobalTag
()
src/features/lessons/db/cache/lessons.ts:4
↓ 3 callersFunctiongetPurchaseGlobalTag
()
src/features/purchases/db/cache.ts:4
↓ 3 callersFunctiongetPurchaseUserTag
(userId: string)
src/features/purchases/db/cache.ts:12
↓ 3 callersFunctiongetUserCoupon
()
src/lib/userCountryHeader.ts:22
↓ 3 callersFunctiongetUserCourseAccessGlobalTag
()
src/features/courses/db/cache/userCourseAccess.ts:4
↓ 3 callersFunctiongetUserLessonCompleteUserTag
(userId: string)
src/features/lessons/db/cache/userLessonComplete.ts:18
↓ 3 callersFunctiongetUserTag
(tag: CACHE_TAG, userId: string)
src/lib/dataCache.ts:19
↓ 3 callersFunctionrevalidateCourseCache
(id: string)
src/features/courses/db/cache/courses.ts:12
↓ 3 callersFunctionrevalidateProductCache
(id: string)
src/features/products/db/cache.ts:12
↓ 3 callersFunctionrevalidateUserCache
(id: string)
src/features/users/db/cache.ts:12
↓ 3 callersFunctionsumArray
(array: T[], func: (item: T) => number)
src/lib/sumArray.ts:1
↓ 2 callersFunctionaddToRemoveQueue
(toastId: string)
src/hooks/use-toast.ts:56
↓ 2 callersFunctioncanUpdateCourseSections
({ role, }: { role: UserRole | undefined })
src/features/courseSections/permissions/sections.ts:12
↓ 2 callersFunctioncanUpdateLessons
({ role }: { role: UserRole | undefined })
src/features/lessons/permissions/lessons.ts:20
↓ 2 callersFunctioncanUpdateUserLessonCompleteStatus
( user: { userId: string | undefined }, lessonId: string )
src/features/lessons/permissions/userLessonComplete.ts:15
↓ 2 callersFunctiongetCourseTag
(tag: CACHE_TAG, courseId: string)
src/lib/dataCache.ts:23
↓ 2 callersFunctiongetNewArray
(array: T[], activeId: string, overId: string)
src/components/SortableList.tsx:37
↓ 2 callersFunctiongetNextCourseLessonOrder
(sectionId: string)
src/features/lessons/db/lessons.ts:6
↓ 2 callersFunctiongetPurchaseIdTag
(id: string)
src/features/purchases/db/cache.ts:8
↓ 2 callersFunctiongetUserGlobalTag
()
src/features/users/db/cache.ts:4
↓ 2 callersFunctiongetUserIdTag
(id: string)
src/features/users/db/cache.ts:8
↓ 2 callersFunctiongetUserLessonCompleteIdTag
({ lessonId, userId, }: { lessonId: string userId: string })
src/features/lessons/db/cache/userLessonComplete.ts:8
↓ 2 callersFunctioninsertUser
(data: typeof UserTable.$inferInsert)
src/features/users/db/users.ts:6
↓ 2 callersFunctionmapCourse
( course: { name: string id: string courseSections: { name: string id: string
src/app/(consumer)/courses/[courseId]/layout.tsx:114
↓ 2 callersFunctionprocessStripeCheckout
(checkoutSession: Stripe.Checkout.Session)
src/app/api/webhooks/stripe/route.ts:52
↓ 2 callersFunctionrevalidatePurchaseCache
({ id, userId, }: { id: string userId: string })
src/features/purchases/db/cache.ts:16
↓ 2 callersFunctionsyncClerkUserMetadata
(user: { id: string clerkUserId: string role: UserRole })
src/services/clerk.ts:30
↓ 2 callersFunctionuserOwnsProduct
({ userId, productId, }: { userId: string productId: string })
src/features/products/db/products.ts:12
↓ 1 callersFunctionaddUserCourseAccess
( { userId, courseIds, }: { userId: string courseIds: string[] }, trx: Omit<typeof db,
src/features/courses/db/userCourseAcccess.ts:10
↓ 1 callersFunctioncanAccessAdminPages
({ role }: { role: UserRole | undefined })
src/permissions/general.ts:3
↓ 1 callersFunctioncanCreateCourseSections
({ role, }: { role: UserRole | undefined })
src/features/courseSections/permissions/sections.ts:4
↓ 1 callersFunctioncanCreateCourses
({ role }: { role: UserRole | undefined })
src/features/courses/permissions/courses.ts:3
↓ 1 callersFunctioncanCreateLessons
({ role }: { role: UserRole | undefined })
src/features/lessons/permissions/lessons.ts:16
↓ 1 callersFunctioncanCreateProducts
({ role }: { role: UserRole | undefined })
src/features/products/permissions/products.ts:4
↓ 1 callersFunctioncanDeleteCourseSections
({ role, }: { role: UserRole | undefined })
src/features/courseSections/permissions/sections.ts:20
↓ 1 callersFunctioncanDeleteCourses
({ role }: { role: UserRole | undefined })
src/features/courses/permissions/courses.ts:11
↓ 1 callersFunctioncanDeleteLessons
({ role }: { role: UserRole | undefined })
src/features/lessons/permissions/lessons.ts:24
↓ 1 callersFunctioncanDeleteProducts
({ role }: { role: UserRole | undefined })
src/features/products/permissions/products.ts:12
↓ 1 callersFunctioncanRefundPurchases
({ role }: { role: UserRole | undefined })
src/features/purchases/permissions/products.ts:3
↓ 1 callersFunctioncanUpdateCourses
({ role }: { role: UserRole | undefined })
src/features/courses/permissions/courses.ts:7
↓ 1 callersFunctioncanUpdateProducts
({ role }: { role: UserRole | undefined })
src/features/products/permissions/products.ts:8
↓ 1 callersFunctioncanViewLesson
( { role, userId, }: { userId: string | undefined role: UserRole | undefined }, lesson
src/features/lessons/permissions/lessons.ts:28
↓ 1 callersFunctiondeleteUser
({ clerkUserId }: { clerkUserId: string })
src/features/users/db/users.ts:38
↓ 1 callersFunctiondismiss
()
src/hooks/use-toast.ts:148
↓ 1 callersFunctiongenId
()
src/hooks/use-toast.ts:20
↓ 1 callersFunctiongetCompletedLessonIds
(userId: string)
src/app/(consumer)/courses/[courseId]/layout.tsx:102
↓ 1 callersFunctiongetCourse
(id: string)
src/app/(consumer)/courses/[courseId]/page.tsx:27
↓ 1 callersFunctiongetCourse
(id: string)
src/app/(consumer)/courses/[courseId]/layout.tsx:48
↓ 1 callersFunctiongetCourse
(id: string)
src/app/admin/courses/[courseId]/edit/page.tsx:103
↓ 1 callersFunctiongetCourseSectionIdTag
(id: string)
src/features/courseSections/db/cache.ts:8
↓ 1 callersFunctiongetCourses
()
src/app/admin/products/[productId]/edit/page.tsx:35
↓ 1 callersFunctiongetCourses
()
src/app/admin/products/new/page.tsx:18
↓ 1 callersFunctiongetCourses
()
src/app/admin/courses/page.tsx:35
↓ 1 callersFunctiongetIsLessonComplete
({ userId, lessonId, }: { userId: string lessonId: string })
src/app/(consumer)/courses/[courseId]/lessons/[lessonId]/page.tsx:292
↓ 1 callersFunctiongetLesson
(id: string)
src/app/(consumer)/courses/[courseId]/lessons/[lessonId]/page.tsx:274
↓ 1 callersFunctiongetNextCourseSectionOrder
(courseId: string)
src/features/courseSections/db/sections.ts:6
↓ 1 callersFunctiongetPricingRows
( totalDetails: Stripe.Checkout.Session.TotalDetails | null, { total, subtotal, refund, }: {
src/app/(consumer)/purchases/[purchaseId]/page.tsx:174
↓ 1 callersFunctiongetProduct
(id: string)
src/app/api/webhooks/stripe/route.ts:92
↓ 1 callersFunctiongetProduct
(id: string)
src/app/admin/products/[productId]/edit/page.tsx:45
↓ 1 callersFunctiongetProducts
()
src/app/admin/products/page.tsx:31
↓ 1 callersFunctiongetPublicProduct
(id: string)
src/app/(consumer)/products/[productId]/page.tsx:194
↓ 1 callersFunctiongetPublicProduct
(id: string)
src/app/(consumer)/products/[productId]/purchase/page.tsx:78
↓ 1 callersFunctiongetPublicProduct
(id: string)
src/app/(consumer)/products/[productId]/purchase/success/page.tsx:46
↓ 1 callersFunctiongetPublicProducts
()
src/app/(consumer)/page.tsx:23
↓ 1 callersFunctiongetPurchase
({ userId, id }: { userId: string; id: string })
src/app/(consumer)/purchases/[purchaseId]/page.tsx:116
↓ 1 callersFunctiongetPurchaseDetails
()
src/app/admin/page.tsx:83
↓ 1 callersFunctiongetPurchases
(userId: string)
src/app/(consumer)/purchases/page.tsx:47
↓ 1 callersFunctiongetPurchases
()
src/app/admin/sales/page.tsx:22
↓ 1 callersFunctiongetReceiptUrl
(paymentIntent: Stripe.PaymentIntent | string | null)
src/app/(consumer)/purchases/[purchaseId]/page.tsx:163
↓ 1 callersFunctiongetStatusIcon
(status: ProductStatus)
src/features/products/components/ProductTable.tsx:100
↓ 1 callersFunctiongetStripeDetails
( stripeSessionId: string, pricePaidInCents: number, isRefunded: boolean )
src/app/(consumer)/purchases/[purchaseId]/page.tsx:132
↓ 1 callersFunctiongetTotalCourseSections
()
src/app/admin/page.tsx:166
↓ 1 callersFunctiongetTotalCourses
()
src/app/admin/page.tsx:132
↓ 1 callersFunctiongetTotalLessons
()
src/app/admin/page.tsx:155
↓ 1 callersFunctiongetTotalProducts
()
src/app/admin/page.tsx:144
↓ 1 callersFunctiongetTotalStudents
()
src/app/admin/page.tsx:120
↓ 1 callersFunctiongetUser
(id: string)
src/services/clerk.ts:43
↓ 1 callersFunctiongetUser
(id: string)
src/app/api/webhooks/stripe/route.ts:108
next →1–100 of 238, ranked by callers