Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/adrianhajdin/event_platform
/ functions
Functions
70 in github.com/adrianhajdin/event_platform
⨍
Functions
70
◇
Types & classes
7
↓ 42 callers
Function
cn
(...inputs: ClassValue[])
lib/utils.ts:8
↓ 16 callers
Function
connectToDatabase
()
lib/database/index.ts:7
↓ 16 callers
Function
handleError
(error: unknown)
lib/utils.ts:90
↓ 6 callers
Function
formatDateTime
(dateString: Date)
lib/utils.ts:12
↓ 5 callers
Function
auth
(req: Request)
app/api/uploadthing/core.ts:5
↓ 4 callers
Function
populateEvent
(query: any)
lib/actions/event.actions.ts:24
↓ 4 callers
Function
useFormField
()
components/ui/form.tsx:42
↓ 3 callers
Function
formUrlQuery
({ params, key, value }: UrlQueryParams)
lib/utils.ts:60
↓ 2 callers
Function
getAllCategories
()
lib/actions/category.actions.ts:20
↓ 2 callers
Function
getEventById
(eventId: string)
lib/actions/event.actions.ts:48
↓ 2 callers
Function
onClick
(btnType: string)
components/shared/Pagination.tsx:18
↓ 2 callers
Function
removeKeysFromQuery
({ params, keysToRemove }: RemoveUrlQueryParams)
lib/utils.ts:74
↓ 1 callers
Function
checkoutOrder
(order: CheckoutOrderParams)
lib/actions/order.actions.ts:13
↓ 1 callers
Function
convertFileToUrl
(file: File)
lib/utils.ts:48
↓ 1 callers
Function
createCategory
({ categoryName }: CreateCategoryParams)
lib/actions/category.actions.ts:8
↓ 1 callers
Function
createEvent
({ userId, event, path }: CreateEventParams)
lib/actions/event.actions.ts:31
↓ 1 callers
Function
createOrder
(order: CreateOrderParams)
lib/actions/order.actions.ts:47
↓ 1 callers
Function
createUser
(user: CreateUserParams)
lib/actions/user.actions.ts:13
↓ 1 callers
Function
deleteEvent
({ eventId, path }: DeleteEventParams)
lib/actions/event.actions.ts:86
↓ 1 callers
Function
deleteUser
(clerkId: string)
lib/actions/user.actions.ts:50
↓ 1 callers
Function
formatPrice
(price: string)
lib/utils.ts:50
↓ 1 callers
Function
getAllEvents
({ query, limit = 6, page, category }: GetAllEventsParams)
lib/actions/event.actions.ts:98
↓ 1 callers
Function
getCategories
()
components/shared/CategoryFilter.tsx:22
↓ 1 callers
Function
getCategories
()
components/shared/Dropdown.tsx:43
↓ 1 callers
Function
getCategoryByName
(name: string)
lib/actions/event.actions.ts:20
↓ 1 callers
Function
getEventsByUser
({ userId, limit = 6, page }: GetEventsByUserParams)
lib/actions/event.actions.ts:127
↓ 1 callers
Function
getOrdersByEvent
({ searchString, eventId }: GetOrdersByEventParams)
lib/actions/order.actions.ts:64
↓ 1 callers
Function
getOrdersByUser
({ userId, limit = 3, page }: GetOrdersByUserParams)
lib/actions/order.actions.ts:120
↓ 1 callers
Function
getRelatedEventsByCategory
({ categoryId, eventId, limit = 3, page = 1, }: GetRelatedEventsByCategoryParams)
lib/actions/event.actions.ts:149
↓ 1 callers
Function
onSelectCategory
(category: string)
components/shared/CategoryFilter.tsx:31
↓ 1 callers
Function
updateEvent
({ userId, event, path }: UpdateEventParams)
lib/actions/event.actions.ts:63
↓ 1 callers
Function
updateUser
(clerkId: string, user: UpdateUserParams)
lib/actions/user.actions.ts:37
Function
AlertDialogFooter
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>)
components/ui/alert-dialog.tsx:62
Function
AlertDialogHeader
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>)
components/ui/alert-dialog.tsx:48
Function
Card
({ event, hasOrderLink, hidePrice }: CardProps)
components/shared/Card.tsx:15
Function
CategoryFilter
()
components/shared/CategoryFilter.tsx:16
Function
Checkout
({ event, userId }: { event: IEvent, userId: string })
components/shared/Checkout.tsx:10
Function
CheckoutButton
({ event }: { event: IEvent })
components/shared/CheckoutButton.tsx:10
Function
Collection
({ data, emptyTitle, emptyStateSubtext, page, totalPages = 0, collectionType, urlParamName, }: C
components/shared/Collection.tsx:17
Function
CreateEvent
()
app/(root)/events/create/page.tsx:4
Function
DeleteConfirmation
({ eventId }: { eventId: string })
components/shared/DeleteConfirmation.tsx:21
Function
Dropdown
({ value, onChangeHandler }: DropdownProps)
components/shared/Dropdown.tsx:29
Function
DropdownMenuShortcut
({ className, ...props }: React.HTMLAttributes<HTMLSpanElement>)
components/ui/dropdown-menu.tsx:171
Function
EventDetails
({ params: { id }, searchParams }: SearchParamProps)
app/(root)/events/[id]/page.tsx:8
Function
EventForm
({ userId, type, event, eventId }: EventFormProps)
components/shared/EventForm.tsx:33
Function
FileUploader
({ imageUrl, onFieldChange, setFiles }: FileUploaderProps)
components/shared/FileUploader.tsx:17
Function
Footer
()
components/shared/Footer.tsx:4
Function
FormField
({ ...props }: ControllerProps<TFieldValues, TName>)
components/ui/form.tsx:29
Function
Header
()
components/shared/Header.tsx:8
Function
Home
({ searchParams }: SearchParamProps)
app/(root)/page.tsx:10
Function
Layout
({ children }: { children: React.ReactNode })
app/(auth)/layout.tsx:1
Function
MobileNav
()
components/shared/MobileNav.tsx:14
Function
NavItems
()
components/shared/NavItems.tsx:8
Function
Orders
({ searchParams }: SearchParamProps)
app/(root)/orders/page.tsx:7
Function
POST
(req: Request)
app/api/webhook/clerk/route.ts:8
Function
POST
(request: Request)
app/api/webhook/stripe/route.ts:5
Function
Page
()
app/(auth)/sign-up/[[...sign-up]]/page.tsx:3
Function
Page
()
app/(auth)/sign-in/[[...sign-in]]/page.tsx:3
Function
Pagination
({ page, totalPages, urlParamName }: PaginationProps)
components/shared/Pagination.tsx:14
Function
ProfilePage
({ searchParams }: SearchParamProps)
app/(root)/profile/page.tsx:11
Function
RootLayout
({ children, }: { children: React.ReactNode })
app/layout.tsx:21
Function
RootLayout
({ children, }: { children: React.ReactNode })
app/(root)/layout.tsx:4
Function
Search
({ placeholder = 'Search title...' }: { placeholder?: string })
components/shared/Search.tsx:9
Function
SheetFooter
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>)
components/ui/sheet.tsx:91
Function
SheetHeader
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>)
components/ui/sheet.tsx:77
Function
UpdateEvent
({ params: { id } }: UpdateEventProps)
app/(root)/events/[id]/update/page.tsx:11
Function
getUserById
(userId: string)
lib/actions/user.actions.ts:24
Function
handleAddCategory
()
components/shared/Dropdown.tsx:33
Function
onCheckout
()
components/shared/Checkout.tsx:23
Function
onSubmit
(values: z.infer<typeof eventFormSchema>)
components/shared/EventForm.tsx:51