MCPcopy Create free account

hub / github.com/bradtraversy/prostore / functions

Functions182 in github.com/bradtraversy/prostore

FunctionMainNav
({ className, ...props }: React.HTMLAttributes<HTMLElement>)
app/user/main-nav.tsx:18
FunctionMainNav
({ className, ...props }: React.HTMLAttributes<HTMLElement>)
app/admin/main-nav.tsx:26
FunctionMarkAsDeliveredButton
()
app/(root)/order/[id]/order-details-table.tsx:119
FunctionMarkAsPaidButton
()
app/(root)/order/[id]/order-details-table.tsx:95
FunctionMenu
()
components/shared/header/menu.tsx:14
FunctionModeToggle
()
components/shared/header/mode-toggle.tsx:15
FunctionNotFoundPage
()
app/not-found.tsx:7
FunctionOrderDetailsPage
(props: { params: Promise<{ id: string; }>; })
app/(root)/order/[id]/page.tsx:13
FunctionOrderDetailsTable
({ order, paypalClientId, isAdmin, stripeClientSecret, }: { order: Omit<Order, 'paymentResult'>; p
app/(root)/order/[id]/order-details-table.tsx:32
FunctionOrdersPage
(props: { searchParams: Promise<{ page: string }>; })
app/user/orders/page.tsx:19
FunctionPOST
(req: NextRequest)
app/api/webhooks/stripe/route.ts:5
FunctionPagination
({ page, totalPages, urlParamName }: PaginationProps)
components/shared/pagination.tsx:12
FunctionPaymentMethodForm
({ preferredPaymentMethod, }: { preferredPaymentMethod: string | null; })
app/(root)/payment-method/payment-method-form.tsx:23
FunctionPaymentMethodPage
()
app/(root)/payment-method/page.tsx:11
FunctionPlaceOrderButton
()
app/(root)/place-order/place-order-form.tsx:22
FunctionPlaceOrderForm
()
app/(root)/place-order/place-order-form.tsx:9
FunctionPlaceOrderPage
()
app/(root)/place-order/page.tsx:27
FunctionPrintLoadingState
()
app/(root)/order/[id]/order-details-table.tsx:60
FunctionProductCard
({ product }: { product: Product })
components/shared/product/product-card.tsx:8
FunctionProductCarousel
({ data }: { data: Product[] })
components/shared/product/product-carousel.tsx:15
FunctionProductDetailsPage
(props: { params: Promise<{ slug: string }>; })
app/(root)/product/[slug]/page.tsx:13
FunctionProductForm
({ type, product, productId, }: { type: 'Create' | 'Update'; product?: Product; productId?: string
components/admin/product-form.tsx:29
FunctionProductImages
({ images }: { images: string[] })
components/shared/product/product-images.tsx:6
FunctionProductList
({ data, title, limit, }: { data: Product[]; title?: string; limit?: number; })
components/shared/product/product-list.tsx:4
FunctionProductPrice
({ value, className, }: { value: number; className?: string; })
components/shared/product/product-price.tsx:3
FunctionProfile
()
app/user/profile/page.tsx:10
FunctionProfileForm
()
app/user/profile/profile-form.tsx:19
FunctionPurchaseReceiptEmail
({ order }: OrderInformationProps)
email/purchase-receipt.tsx:69
FunctionRating
({ value, caption }: { value: number; caption?: string })
components/shared/product/rating.tsx:1
FunctionRemoveButton
({ item }: { item: CartItem })
app/(root)/cart/cart-table.tsx:55
FunctionReviewForm
({ userId, productId, onReviewSubmitted, }: { userId: string; productId: string; onReviewSubmitted
app/(root)/product/[slug]/review-form.tsx:42
FunctionReviewList
({ userId, productId, productSlug, }: { userId: string; productId: string; productSlug: string; })
app/(root)/product/[slug]/review-list.tsx:20
FunctionRootLayout
({ children, }: Readonly<{ children: React.ReactNode; }>)
app/layout.tsx:19
FunctionRootLayout
({ children, }: Readonly<{ children: React.ReactNode; }>)
app/(root)/layout.tsx:4
FunctionSearch
()
components/shared/header/search.tsx:13
FunctionSearchPage
(props: { searchParams: Promise<{ q?: string; category?: string; price?: string; rating?: st
app/(root)/search/page.tsx:72
FunctionSheetFooter
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>)
components/ui/sheet.tsx:91
FunctionSheetHeader
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>)
components/ui/sheet.tsx:77
FunctionShippingAddressForm
({ address }: { address: ShippingAddress })
app/(root)/shipping-address/shipping-address-form.tsx:25
FunctionShippingAddressPage
()
app/(root)/shipping-address/page.tsx:14
FunctionSignInButton
()
app/(auth)/sign-in/credentials-signin-form.tsx:22
FunctionSignInPage
(props: { searchParams: Promise<{ callbackUrl: string; }>; })
app/(auth)/sign-in/page.tsx:20
FunctionSignUpButton
()
app/(auth)/sign-up/sign-up-form.tsx:22
FunctionSignUpForm
()
app/(auth)/sign-up/sign-up-form.tsx:13
FunctionSignUpPage
(props: { searchParams: Promise<{ callbackUrl: string; }>; })
app/(auth)/sign-up/page.tsx:20
FunctionStatBox
({ label, value }: { label: string; value: number })
components/deal-countdown.tsx:125
FunctionStripeForm
()
app/(root)/order/[id]/stripe-payment.tsx:31
FunctionStripePayment
({ priceInCents, orderId, clientSecret, }: { priceInCents: number; orderId: string; clientSecret:
app/(root)/order/[id]/stripe-payment.tsx:15
FunctionSuccessPage
(props: { params: Promise<{ id: string }>; searchParams: Promise<{ payment_intent: string }>; })
app/(root)/order/[id]/stripe-payment-success/page.tsx:9
FunctionToaster
()
components/ui/toaster.tsx:13
FunctionUnauthorizedPage
()
app/unauthorized/page.tsx:9
FunctionUpdateUserForm
({ user, }: { user: z.infer<typeof updateUserSchema>; })
app/admin/users/[id]/update-user-form.tsx:29
FunctionUserButton
()
components/shared/header/user-button.tsx:14
FunctionUserLayout
({ children, }: Readonly<{ children: React.ReactNode; }>)
app/user/layout.tsx:7
FunctionViewAllProductsButton
()
components/view-all-products-button.tsx:4
Functionauthorize
(credentials)
auth.ts:25
Functionauthorized
({ request, auth })
auth.config.ts:7
Functioncompute
(product)
db/prisma.ts:21
FunctiondeleteOrder
(id: string)
lib/actions/order.actions.ts:387
FunctiondeleteProduct
(id: string)
lib/actions/product.actions.ts:117
FunctiondeleteUser
(id: string)
lib/actions/user.actions.ts:226
FunctiongenerateMetadata
(props: { searchParams: Promise<{ q: string; category: string; price: string; rating: string
app/(root)/search/page.tsx:36
FunctionhandleAddToCart
()
components/shared/product/add-to-cart.tsx:17
FunctionhandleApprovePayPalOrder
(data: { orderID: string })
app/(root)/order/[id]/order-details-table.tsx:85
FunctionhandleCreatePayPalOrder
()
app/(root)/order/[id]/order-details-table.tsx:72
FunctionhandleDeleteClick
()
components/shared/delete-dialog.tsx:28
FunctionhandleOpenForm
()
app/(root)/product/[slug]/review-form.tsx:61
FunctionhandleRemoveFromCart
()
components/shared/product/add-to-cart.tsx:46
FunctionhandleSubmit
(event: React.FormEvent)
app/(root)/place-order/place-order-form.tsx:12
FunctionhandleSubmit
(e: FormEvent)
app/(root)/order/[id]/stripe-payment.tsx:39
Functionjwt
({ token, user, trigger, session })
auth.ts:72
FunctiononSubmit
( values )
components/admin/product-form.tsx:50
FunctiononSubmit
(values: z.infer<typeof updateProfileSchema>)
app/user/profile/profile-form.tsx:32
FunctiononSubmit
(values: z.infer<typeof paymentMethodSchema>)
app/(root)/payment-method/payment-method-form.tsx:40
FunctiononSubmit
( values )
app/(root)/product/[slug]/review-form.tsx:77
FunctiononSubmit
( values )
app/(root)/shipping-address/shipping-address-form.tsx:36
FunctiononSubmit
(values: z.infer<typeof updateUserSchema>)
app/admin/users/[id]/update-user-form.tsx:42
Functionreload
()
app/(root)/product/[slug]/review-list.tsx:41
Functionsession
({ session, user, trigger, token })
auth.ts:59
FunctionsignInWithCredentials
( prevState: unknown, formData: FormData )
lib/actions/user.actions.ts:23
FunctionsignOutUser
()
lib/actions/user.actions.ts:45
FunctionsignUpUser
(prevState: unknown, formData: FormData)
lib/actions/user.actions.ts:58
← previous101–182 of 182, ranked by callers