MCPcopy Create free account

hub / github.com/adrianhajdin/event_platform / functions

Functions70 in github.com/adrianhajdin/event_platform

↓ 42 callersFunctioncn
(...inputs: ClassValue[])
lib/utils.ts:8
↓ 16 callersFunctionconnectToDatabase
()
lib/database/index.ts:7
↓ 16 callersFunctionhandleError
(error: unknown)
lib/utils.ts:90
↓ 6 callersFunctionformatDateTime
(dateString: Date)
lib/utils.ts:12
↓ 5 callersFunctionauth
(req: Request)
app/api/uploadthing/core.ts:5
↓ 4 callersFunctionpopulateEvent
(query: any)
lib/actions/event.actions.ts:24
↓ 4 callersFunctionuseFormField
()
components/ui/form.tsx:42
↓ 3 callersFunctionformUrlQuery
({ params, key, value }: UrlQueryParams)
lib/utils.ts:60
↓ 2 callersFunctiongetAllCategories
()
lib/actions/category.actions.ts:20
↓ 2 callersFunctiongetEventById
(eventId: string)
lib/actions/event.actions.ts:48
↓ 2 callersFunctiononClick
(btnType: string)
components/shared/Pagination.tsx:18
↓ 2 callersFunctionremoveKeysFromQuery
({ params, keysToRemove }: RemoveUrlQueryParams)
lib/utils.ts:74
↓ 1 callersFunctioncheckoutOrder
(order: CheckoutOrderParams)
lib/actions/order.actions.ts:13
↓ 1 callersFunctionconvertFileToUrl
(file: File)
lib/utils.ts:48
↓ 1 callersFunctioncreateCategory
({ categoryName }: CreateCategoryParams)
lib/actions/category.actions.ts:8
↓ 1 callersFunctioncreateEvent
({ userId, event, path }: CreateEventParams)
lib/actions/event.actions.ts:31
↓ 1 callersFunctioncreateOrder
(order: CreateOrderParams)
lib/actions/order.actions.ts:47
↓ 1 callersFunctioncreateUser
(user: CreateUserParams)
lib/actions/user.actions.ts:13
↓ 1 callersFunctiondeleteEvent
({ eventId, path }: DeleteEventParams)
lib/actions/event.actions.ts:86
↓ 1 callersFunctiondeleteUser
(clerkId: string)
lib/actions/user.actions.ts:50
↓ 1 callersFunctionformatPrice
(price: string)
lib/utils.ts:50
↓ 1 callersFunctiongetAllEvents
({ query, limit = 6, page, category }: GetAllEventsParams)
lib/actions/event.actions.ts:98
↓ 1 callersFunctiongetCategories
()
components/shared/CategoryFilter.tsx:22
↓ 1 callersFunctiongetCategories
()
components/shared/Dropdown.tsx:43
↓ 1 callersFunctiongetCategoryByName
(name: string)
lib/actions/event.actions.ts:20
↓ 1 callersFunctiongetEventsByUser
({ userId, limit = 6, page }: GetEventsByUserParams)
lib/actions/event.actions.ts:127
↓ 1 callersFunctiongetOrdersByEvent
({ searchString, eventId }: GetOrdersByEventParams)
lib/actions/order.actions.ts:64
↓ 1 callersFunctiongetOrdersByUser
({ userId, limit = 3, page }: GetOrdersByUserParams)
lib/actions/order.actions.ts:120
↓ 1 callersFunctiongetRelatedEventsByCategory
({ categoryId, eventId, limit = 3, page = 1, }: GetRelatedEventsByCategoryParams)
lib/actions/event.actions.ts:149
↓ 1 callersFunctiononSelectCategory
(category: string)
components/shared/CategoryFilter.tsx:31
↓ 1 callersFunctionupdateEvent
({ userId, event, path }: UpdateEventParams)
lib/actions/event.actions.ts:63
↓ 1 callersFunctionupdateUser
(clerkId: string, user: UpdateUserParams)
lib/actions/user.actions.ts:37
FunctionAlertDialogFooter
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>)
components/ui/alert-dialog.tsx:62
FunctionAlertDialogHeader
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>)
components/ui/alert-dialog.tsx:48
FunctionCard
({ event, hasOrderLink, hidePrice }: CardProps)
components/shared/Card.tsx:15
FunctionCategoryFilter
()
components/shared/CategoryFilter.tsx:16
FunctionCheckout
({ event, userId }: { event: IEvent, userId: string })
components/shared/Checkout.tsx:10
FunctionCheckoutButton
({ event }: { event: IEvent })
components/shared/CheckoutButton.tsx:10
FunctionCollection
({ data, emptyTitle, emptyStateSubtext, page, totalPages = 0, collectionType, urlParamName, }: C
components/shared/Collection.tsx:17
FunctionCreateEvent
()
app/(root)/events/create/page.tsx:4
FunctionDeleteConfirmation
({ eventId }: { eventId: string })
components/shared/DeleteConfirmation.tsx:21
FunctionDropdown
({ value, onChangeHandler }: DropdownProps)
components/shared/Dropdown.tsx:29
FunctionDropdownMenuShortcut
({ className, ...props }: React.HTMLAttributes<HTMLSpanElement>)
components/ui/dropdown-menu.tsx:171
FunctionEventDetails
({ params: { id }, searchParams }: SearchParamProps)
app/(root)/events/[id]/page.tsx:8
FunctionEventForm
({ userId, type, event, eventId }: EventFormProps)
components/shared/EventForm.tsx:33
FunctionFileUploader
({ imageUrl, onFieldChange, setFiles }: FileUploaderProps)
components/shared/FileUploader.tsx:17
FunctionFooter
()
components/shared/Footer.tsx:4
FunctionFormField
({ ...props }: ControllerProps<TFieldValues, TName>)
components/ui/form.tsx:29
FunctionHeader
()
components/shared/Header.tsx:8
FunctionHome
({ searchParams }: SearchParamProps)
app/(root)/page.tsx:10
FunctionLayout
({ children }: { children: React.ReactNode })
app/(auth)/layout.tsx:1
FunctionMobileNav
()
components/shared/MobileNav.tsx:14
FunctionNavItems
()
components/shared/NavItems.tsx:8
FunctionOrders
({ searchParams }: SearchParamProps)
app/(root)/orders/page.tsx:7
FunctionPOST
(req: Request)
app/api/webhook/clerk/route.ts:8
FunctionPOST
(request: Request)
app/api/webhook/stripe/route.ts:5
FunctionPage
()
app/(auth)/sign-up/[[...sign-up]]/page.tsx:3
FunctionPage
()
app/(auth)/sign-in/[[...sign-in]]/page.tsx:3
FunctionPagination
({ page, totalPages, urlParamName }: PaginationProps)
components/shared/Pagination.tsx:14
FunctionProfilePage
({ searchParams }: SearchParamProps)
app/(root)/profile/page.tsx:11
FunctionRootLayout
({ children, }: { children: React.ReactNode })
app/layout.tsx:21
FunctionRootLayout
({ children, }: { children: React.ReactNode })
app/(root)/layout.tsx:4
FunctionSearch
({ placeholder = 'Search title...' }: { placeholder?: string })
components/shared/Search.tsx:9
FunctionSheetFooter
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>)
components/ui/sheet.tsx:91
FunctionSheetHeader
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>)
components/ui/sheet.tsx:77
FunctionUpdateEvent
({ params: { id } }: UpdateEventProps)
app/(root)/events/[id]/update/page.tsx:11
FunctiongetUserById
(userId: string)
lib/actions/user.actions.ts:24
FunctionhandleAddCategory
()
components/shared/Dropdown.tsx:33
FunctiononCheckout
()
components/shared/Checkout.tsx:23
FunctiononSubmit
(values: z.infer<typeof eventFormSchema>)
components/shared/EventForm.tsx:51