MCPcopy Create free account

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

Functions238 in github.com/WebDevSimplified/course-platform

↓ 1 callersFunctiongetUserCountry
()
src/lib/userCountryHeader.ts:17
↓ 1 callersFunctiongetUserCourseAccessIdTag
({ courseId, userId, }: { courseId: string userId: string })
src/features/courses/db/cache/userCourseAccess.ts:8
↓ 1 callersFunctiongetUserCourses
(userId: string)
src/app/(consumer)/courses/page.tsx:130
↓ 1 callersFunctiongetUserLessonCompleteGlobalTag
()
src/features/lessons/db/cache/userLessonComplete.ts:4
↓ 1 callersFunctioninsertCourse
(data: typeof CourseTable.$inferInsert)
src/features/courses/db/courses.ts:6
↓ 1 callersFunctioninsertLesson
(data: typeof LessonTable.$inferInsert)
src/features/lessons/db/lessons.ts:16
↓ 1 callersFunctioninsertProduct
( data: typeof ProductTable.$inferInsert & { courseIds: string[] } )
src/features/products/db/products.ts:33
↓ 1 callersFunctioninsertPurchase
( data: typeof PurchaseTable.$inferInsert, trx: Omit<typeof db, "$client"> = db )
src/features/purchases/db/purchases.ts:6
↓ 1 callersFunctioninsertSection
( data: typeof CourseSectionTable.$inferInsert )
src/features/courseSections/db/sections.ts:16
↓ 1 callersFunctionreducer
(state: State, action: Action)
src/hooks/use-toast.ts:72
↓ 1 callersFunctionrevalidateUserLessonCompleteCache
({ lessonId, userId, }: { lessonId: string userId: string })
src/features/lessons/db/cache/userLessonComplete.ts:22
↓ 1 callersFunctionrevokeUserCourseAccess
( { userId, productId, }: { userId: string productId: string }, trx: Omit<typeof db, "
src/features/courses/db/userCourseAcccess.ts:31
↓ 1 callersFunctionsetUserCountryHeader
( headers: Headers, country: string | undefined )
src/lib/userCountryHeader.ts:6
↓ 1 callersFunctiontoast
({ ...props }: Toast)
src/hooks/use-toast.ts:140
↓ 1 callersFunctionupdatePurchase
( id: string, data: Partial<typeof PurchaseTable.$inferInsert>, trx: Omit<typeof db, "$client"> = db )
src/features/purchases/db/purchases.ts:30
↓ 1 callersFunctionupdateUser
( { clerkUserId }: { clerkUserId: string }, data: Partial<typeof UserTable.$inferInsert> )
src/features/users/db/users.ts:22
↓ 1 callersFunctionuseToast
()
src/hooks/use-toast.ts:169
FunctionActionButton
({ action, requireAreYouSure = false, ...props }: Omit<ComponentPropsWithRef<typeof Button>, "onClick">
src/components/ActionButton.tsx:20
FunctionAdminLayout
({ children, }: Readonly<{ children: ReactNode }>)
src/app/admin/layout.tsx:6
FunctionAdminLink
()
src/app/(consumer)/layout.tsx:67
FunctionAdminPage
()
src/app/admin/page.tsx:27
FunctionAlertDialogFooter
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>)
src/components/ui/alert-dialog.tsx:62
FunctionAlertDialogHeader
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>)
src/components/ui/alert-dialog.tsx:48
FunctionAuthLayout
({ children, }: { children: React.ReactNode })
src/app/(auth)/layout.tsx:1
FunctionBadge
({ className, variant, ...props }: BadgeProps)
src/components/ui/badge.tsx:30
FunctionCommandDialog
({ children, ...props }: DialogProps)
src/components/ui/command.tsx:26
FunctionCommandShortcut
({ className, ...props }: React.HTMLAttributes<HTMLSpanElement>)
src/components/ui/command.tsx:127
FunctionConsumerLayout
({ children, }: Readonly<{ children: ReactNode }>)
src/app/(consumer)/layout.tsx:8
FunctionCourseForm
({ course, }: { course?: { id: string name: string description: string } })
src/features/courses/components/CourseForm.tsx:22
FunctionCourseGrid
()
src/app/(consumer)/courses/page.tsx:57
FunctionCoursePage
({ params, }: { params: Promise<{ courseId: string }> })
src/app/(consumer)/courses/[courseId]/page.tsx:9
FunctionCoursePageClient
({ course, }: { course: { id: string courseSections: { id: string name: string l
src/app/(consumer)/courses/[courseId]/_client.tsx:15
FunctionCoursePageLayout
({ params, children, }: { params: Promise<{ courseId: string }> children: ReactNode })
src/app/(consumer)/courses/[courseId]/layout.tsx:21
FunctionCourseTable
({ courses, }: { courses: { id: string name: string sectionsCount: number lessonsCount: nu
src/features/courses/components/CourseTable.tsx:16
FunctionCoursesPage
()
src/app/(consumer)/courses/page.tsx:38
FunctionCoursesPage
()
src/app/admin/courses/page.tsx:19
FunctionDialogFooter
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>)
src/components/ui/dialog.tsx:70
FunctionDialogHeader
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>)
src/components/ui/dialog.tsx:56
FunctionEditCoursePage
({ params, }: { params: Promise<{ courseId: string }> })
src/app/admin/courses/[courseId]/edit/page.tsx:22
FunctionEditProductPage
({ params, }: { params: Promise<{ productId: string }> })
src/app/admin/products/[productId]/edit/page.tsx:11
FunctionFormField
({ ...props }: ControllerProps<TFieldValues, TName>)
src/components/ui/form.tsx:31
FunctionGET
(request: Request)
src/app/api/clerk/syncUsers/route.ts:6
FunctionGET
(request: NextRequest)
src/app/api/webhooks/stripe/route.ts:12
FunctionHomePage
()
src/app/(consumer)/page.tsx:9
FunctionLessonForm
({ sections, defaultSectionId, onSuccess, lesson, }: { sections: { id: string name: string
src/features/lessons/components/LessonForm.tsx:31
FunctionLessonFormDialog
({ sections, defaultSectionId, lesson, children, }: { children: ReactNode sections: { id: string;
src/features/lessons/components/LessonFormDialog.tsx:13
FunctionLessonPage
({ params, }: { params: Promise<{ courseId: string; lessonId: string }> })
src/app/(consumer)/courses/[courseId]/lessons/[lessonId]/page.tsx:29
FunctionLoadingSkeleton
()
src/app/(consumer)/courses/[courseId]/lessons/[lessonId]/page.tsx:46
FunctionLoadingSpinner
({ className, ...props }: ComponentProps<typeof Loader2Icon>)
src/components/LoadingSpinner.tsx:5
FunctionLoadingTextSwap
({ isLoading, children, }: { isLoading: boolean children: ReactNode })
src/components/ActionButton.tsx:72
FunctionMultiSelect
({ options, getValue, getLabel, selectedValues, onSelectedValuesChange, selectPlaceholder, searc
src/components/ui/custom/multi-select.tsx:23
FunctionNavbar
()
src/app/(consumer)/layout.tsx:19
FunctionNavbar
()
src/app/admin/layout.tsx:17
FunctionNewCoursePage
()
src/app/admin/courses/new/page.tsx:4
FunctionNewProductPage
()
src/app/admin/products/new/page.tsx:9
FunctionPOST
(req: Request)
src/app/api/webhooks/clerk/route.ts:8
FunctionPOST
(request: NextRequest)
src/app/api/webhooks/stripe/route.ts:32
FunctionPage
()
src/app/(auth)/sign-up/[[...sign-up]]/page.tsx:3
FunctionPage
()
src/app/(auth)/sign-in/[[...sign-in]]/page.tsx:3
FunctionPageHeader
({ title, children, className, }: { title: string children?: ReactNode className?: string })
src/components/PageHeader.tsx:4
FunctionPrice
({ price }: { price: number })
src/features/products/components/ProductCard.tsx:54
FunctionPrice
({ price }: { price: number })
src/app/(consumer)/products/[productId]/page.tsx:176
FunctionProductCard
({ id, imageUrl, name, priceInDollars, description, }: { id: string imageUrl: string name: str
src/features/products/components/ProductCard.tsx:16
FunctionProductForm
({ product, courses, }: { product?: { id: string name: string description: string priceI
src/features/products/components/ProductForm.tsx:31
FunctionProductPage
({ params, }: { params: Promise<{ productId: string }> })
src/app/(consumer)/products/[productId]/page.tsx:38
FunctionProductPurchaseFailurePage
()
src/app/(consumer)/products/purchase-failure/page.tsx:4
FunctionProductPurchaseSuccessPage
({ params, }: { params: Promise<{ productId: string }> })
src/app/(consumer)/products/[productId]/purchase/success/page.tsx:11
FunctionProductTable
({ products, }: { products: { id: string name: string description: string imageUrl: string
src/features/products/components/ProductTable.tsx:19
FunctionProductsPage
()
src/app/admin/products/page.tsx:15
FunctionPurchaseButton
({ productId }: { productId: string })
src/app/(consumer)/products/[productId]/page.tsx:160
FunctionPurchasePage
({ params, searchParams, }: { params: Promise<{ productId: string }> searchParams: Promise<{ authMode:
src/app/(consumer)/products/[productId]/purchase/page.tsx:16
FunctionPurchasePage
({ params, }: { params: Promise<{ purchaseId: string }> })
src/app/(consumer)/purchases/[purchaseId]/page.tsx:27
FunctionPurchaseTable
({ purchases, }: { purchases: { id: string pricePaidInCents: number createdAt: Date refund
src/features/purchases/components/PurchaseTable.tsx:20
FunctionPurchasesPage
()
src/app/(consumer)/purchases/page.tsx:16
FunctionPurchasesPage
()
src/app/admin/sales/page.tsx:10
FunctionRequiredLabelIcon
({ className, ...props }: ComponentPropsWithoutRef<typeof AsteriskIcon>)
src/components/RequiredLabelIcon.tsx:5
FunctionRootLayout
({ children, }: Readonly<{ children: React.ReactNode }>)
src/app/layout.tsx:11
FunctionSectionForm
({ section, courseId, onSuccess, }: { section?: { id: string name: string status: CourseSe
src/features/courseSections/components/SectionForm.tsx:29
FunctionSectionFormDialog
({ courseId, section, children, }: { courseId: string children: ReactNode section?: { id: string;
src/features/courseSections/components/SectionFormDialog.tsx:13
FunctionSkeletonArray
({ amount, children, }: { amount: number children: ReactNode })
src/components/Skeleton.tsx:19
FunctionSkeletonButton
({ className }: { className?: string })
src/components/Skeleton.tsx:5
FunctionSkeletonCourseCard
()
src/app/(consumer)/courses/page.tsx:109
FunctionSkeletonText
({ rows = 1, size = "md", className, }: { rows?: number size?: "md" | "lg" className?: string })
src/components/Skeleton.tsx:29
FunctionSortableItem
({ id, children, className, }: { id: string children: ReactNode className?: string })
src/components/SortableList.tsx:65
FunctionSortableLessonList
({ sections, lessons, }: { sections: { id: string name: string }[] lessons: { id: string
src/features/lessons/components/SortableLessonList.tsx:13
FunctionSortableList
({ items, onOrderChange, children, }: { items: T[] onOrderChange: ( newOrder: string[] ) => Pr
src/components/SortableList.tsx:16
FunctionSortableSectionList
({ courseId, sections, }: { courseId: string sections: { id: string name: string status: C
src/features/courseSections/components/SortableSectionList.tsx:13
FunctionStatCard
({ title, children }: { title: string; children: ReactNode })
src/app/admin/page.tsx:72
FunctionStripeCheckoutForm
({ product, user, }: { product: { priceInDollars: number name: string id: string imageUr
src/services/stripe/components/StripeCheckoutForm.tsx:10
FunctionSuspendedComponent
({ params, searchParams, }: { params: Promise<{ productId: string }> searchParams: Promise<{ authMode:
src/app/(consumer)/products/[productId]/purchase/page.tsx:30
FunctionSuspenseBoundary
({ course, }: { course: { name: string id: string courseSections: { name: string i
src/app/(consumer)/courses/[courseId]/layout.tsx:79
FunctionSuspenseBoundary
({ lesson, courseId, }: { lesson: { id: string youtubeVideoId: string name: string descr
src/app/(consumer)/courses/[courseId]/lessons/[lessonId]/page.tsx:50
FunctionSuspenseBoundary
()
src/app/(consumer)/purchases/page.tsx:27
FunctionSuspenseBoundary
({ purchaseId }: { purchaseId: string })
src/app/(consumer)/purchases/[purchaseId]/page.tsx:43
FunctionToLessonButton
({ children, courseId, lessonFunc, lesson, }: { children: ReactNode courseId: string lesson: {
src/app/(consumer)/courses/[courseId]/lessons/[lessonId]/page.tsx:150
FunctionToaster
()
src/components/ui/toaster.tsx:13
FunctionUserPurchaseTable
({ purchases, }: { purchases: { id: string pricePaidInCents: number createdAt: Date refund
src/features/purchases/components/UserPurchaseTable.tsx:20
FunctionUserPurchaseTableSkeleton
()
src/features/purchases/components/UserPurchaseTable.tsx:84
FunctionUserPurchaseTableSkeleton
()
src/features/purchases/components/PurchaseTable.tsx:101
FunctionYouTubeVideoPlayer
({ videoId, onFinishedVideo, }: { videoId: string onFinishedVideo?: () => void })
src/features/lessons/components/YouTubeVideoPlayer.tsx:5
← previousnext →101–200 of 238, ranked by callers