MCPcopy Create free account

hub / github.com/adrianhajdin/ai_saas_app / functions

Functions80 in github.com/adrianhajdin/ai_saas_app

↓ 43 callersFunctioncn
(...inputs: ClassValue[])
lib/utils.ts:9
↓ 12 callersFunctionconnectToDatabase
()
lib/database/mongoose.ts:18
↓ 12 callersFunctionhandleError
(error: unknown)
lib/utils.ts:14
↓ 6 callersFunctiongetImageSize
( type: string, image: any, dimension: "width" | "height" )
lib/utils.ts:98
↓ 5 callersFunctiondispatch
(action: Action)
components/ui/use-toast.ts:134
↓ 4 callersFunctiongetUserById
(userId: string)
lib/actions/user.actions.ts:23
↓ 4 callersFunctiontoast
({ ...props }: Toast)
components/ui/use-toast.ts:143
↓ 4 callersFunctionuseFormField
()
components/ui/form.tsx:42
↓ 3 callersFunctionpopulateUser
(query: any)
lib/actions/image.actions.ts:12
↓ 3 callersFunctionuseToast
()
components/ui/use-toast.ts:172
↓ 2 callersFunctionaddToRemoveQueue
(toastId: string)
components/ui/use-toast.ts:59
↓ 2 callersFunctiondebounce
(func: (...args: any[]) => void, delay: number)
lib/utils.ts:88
↓ 2 callersFunctionformUrlQuery
({ searchParams, key, value, }: FormUrlQueryParams)
lib/utils.ts:56
↓ 2 callersFunctiongetImageById
(imageId: string)
lib/actions/image.actions.ts:81
↓ 2 callersFunctiononInputChangeHandler
(fieldName: string, value: string, type: string, onChangeField: (value: string) => void)
components/shared/TransformationForm.tsx:152
↓ 2 callersFunctiononPageChange
(action: string)
components/shared/Collection.tsx:37
↓ 2 callersFunctionupdateCredits
(userId: string, creditFee: number)
lib/actions/user.actions.ts:77
↓ 1 callersFunctionaddImage
({ image, userId, path }: AddImageParams)
lib/actions/image.actions.ts:19
↓ 1 callersFunctioncheckoutCredits
(transaction: CheckoutTransactionParams)
lib/actions/transaction.action.ts:10
↓ 1 callersFunctioncreateTransaction
(transaction: CreateTransactionParams)
lib/actions/transaction.action.ts:41
↓ 1 callersFunctioncreateUser
(user: CreateUserParams)
lib/actions/user.actions.ts:10
↓ 1 callersFunctiondeepMergeObjects
(obj1: any, obj2: any)
lib/utils.ts:134
↓ 1 callersFunctiondeleteImage
(imageId: string)
lib/actions/image.actions.ts:68
↓ 1 callersFunctiondeleteUser
(clerkId: string)
lib/actions/user.actions.ts:55
↓ 1 callersFunctiondismiss
()
components/ui/use-toast.ts:151
↓ 1 callersFunctiondownload
(url: string, filename: string)
lib/utils.ts:113
↓ 1 callersFunctiongenId
()
components/ui/use-toast.ts:28
↓ 1 callersFunctiongetAllImages
({ limit = 9, page = 1, searchQuery = '' }: { limit?: number; page: number; searchQuery?: string; })
lib/actions/image.actions.ts:96
↓ 1 callersFunctiongetUserImages
({ limit = 9, page = 1, userId, }: { limit?: number; page: number; userId: string; })
lib/actions/image.actions.ts:154
↓ 1 callersFunctiononSelectFieldHandler
(value: string, onChangeField: (value: string) => void)
components/shared/TransformationForm.tsx:137
↓ 1 callersFunctionreducer
(state: State, action: Action)
components/ui/use-toast.ts:75
↓ 1 callersFunctionremoveKeysFromQuery
({ searchParams, keysToRemove, }: RemoveUrlQueryParams)
lib/utils.ts:69
↓ 1 callersFunctionshimmer
(w: number, h: number)
lib/utils.ts:31
↓ 1 callersFunctiontoBase64
(str: string)
lib/utils.ts:45
↓ 1 callersFunctionupdateImage
({ image, userId, path }: UpdateImageParams)
lib/actions/image.actions.ts:43
↓ 1 callersFunctionupdateUser
(clerkId: string, user: UpdateUserParams)
lib/actions/user.actions.ts:38
FunctionAddTransformationTypePage
({ params: { type } }: SearchParamProps)
app/(root)/transformations/add/[type]/page.tsx:8
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
({ image }: { image: IImage })
components/shared/Collection.tsx:97
FunctionCheckout
({ plan, amount, credits, buyerId, }: { plan: string; amount: number; credits: number; buyerId
components/shared/Checkout.tsx:11
FunctionCollection
({ hasSearch = false, images, totalPages = 1, page, }: { images: IImage[]; totalPages?: number;
components/shared/Collection.tsx:22
FunctionCredits
()
app/(root)/credits/page.tsx:11
FunctionCustomField
({ control, render, name, formLabel, className, }: CustomFieldProps)
components/shared/CustomField.tsx:23
FunctionDeleteConfirmation
({ imageId }: { imageId: string })
components/shared/DeleteConfirmation.tsx:20
FunctionFormField
({ ...props }: ControllerProps<TFieldValues, TName>)
components/ui/form.tsx:29
FunctionHeader
({ title, subtitle }: { title: string, subtitle?: string })
components/shared/Header.tsx:3
FunctionHome
({ searchParams }: SearchParamProps)
app/(root)/page.tsx:7
FunctionImageDetails
({ params: { id } }: SearchParamProps)
app/(root)/transformations/[id]/page.tsx:12
FunctionInsufficientCreditsModal
()
components/shared/InsufficientCreditsModal.tsx:17
FunctionLayout
({ children }: { children: React.ReactNode })
app/(root)/layout.tsx:5
FunctionLayout
({ children }: { children: React.ReactNode })
app/(auth)/layout.tsx:3
FunctionMediaUploader
({ onValueChange, setImage, image, publicId, type }: MediaUploaderProps)
components/shared/MediaUploader.tsx:17
FunctionMobileNav
()
components/shared/MobileNav.tsx:11
FunctionPOST
(req: Request)
app/api/webhooks/clerk/route.ts:10
FunctionPOST
(request: Request)
app/api/webhooks/stripe/route.ts:6
FunctionPage
({ params: { id } }: SearchParamProps)
app/(root)/transformations/[id]/update/page.tsx:10
FunctionPagination
({ className, ...props }: React.ComponentProps<"nav">)
components/ui/pagination.tsx:7
FunctionPaginationEllipsis
({ className, ...props }: React.ComponentProps<"span">)
components/ui/pagination.tsx:94
FunctionPaginationLink
({ className, isActive, size = "icon", ...props }: PaginationLinkProps)
components/ui/pagination.tsx:42
FunctionPaginationNext
({ className, ...props }: React.ComponentProps<typeof PaginationLink>)
components/ui/pagination.tsx:78
FunctionPaginationPrevious
({ className, ...props }: React.ComponentProps<typeof PaginationLink>)
components/ui/pagination.tsx:62
FunctionProfile
({ searchParams }: SearchParamProps)
app/(root)/profile/page.tsx:10
FunctionRootLayout
({ children, }: Readonly<{ children: React.ReactNode; }>)
app/layout.tsx:19
FunctionSearch
()
components/shared/Search.tsx:10
FunctionSheetFooter
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>)
components/ui/sheet.tsx:91
FunctionSheetHeader
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>)
components/ui/sheet.tsx:77
FunctionSidebar
()
components/shared/Sidebar.tsx:10
FunctionSignInPage
()
app/(auth)/sign-in/[[...sign-in]]/page.tsx:3
FunctionSignUpPage
()
app/(auth)/sign-up/[[...sign-up]]/page.tsx:3
FunctionToaster
()
components/ui/toaster.tsx:13
FunctionTransformationForm
({ action, data = null, userId, type, creditBalance, config = null }: TransformationFormProps)
components/shared/TransformationForm.tsx:46
FunctionTransformedImage
({ image, type, title, transformationConfig, isTransforming, setIsTransforming, hasDownload = false }: Transfo
components/shared/TransformedImage.tsx:9
FunctiondownloadHandler
(e: React.MouseEvent<HTMLButtonElement, MouseEvent>)
components/shared/TransformedImage.tsx:10
FunctiononCheckout
()
components/shared/Checkout.tsx:50
FunctiononSubmit
(values: z.infer<typeof formSchema>)
components/shared/TransformationForm.tsx:71
FunctiononTransformHandler
()
components/shared/TransformationForm.tsx:166
FunctiononUploadErrorHandler
()
components/shared/MediaUploader.tsx:45
FunctiononUploadSuccessHandler
(result: any)
components/shared/MediaUploader.tsx:26
Functionupdate
(props: ToasterToast)
components/ui/use-toast.ts:146