MCPcopy Create free account

hub / github.com/danablend/next-temu-clone-video / functions

Functions70 in github.com/danablend/next-temu-clone-video

↓ 8 callersFunctionformatPrice
(price: number)
src/lib/utils.ts:8
↓ 6 callersFunctioncn
(...inputs: ClassValue[])
src/lib/utils.ts:4
↓ 6 callersFunctiongetOrCreateCart
(cartId?: string | null)
src/actions/cart-actions.ts:29
↓ 5 callersFunctionurlFor
(source: SanityImageSource)
src/sanity/lib/image.ts:9
↓ 4 callersFunctioncreateCart
()
src/actions/cart-actions.ts:10
↓ 4 callersFunctionupdateCartItem
( cartId: string, sanityProductId: string, data: { title?: string, price?: number,
src/actions/cart-actions.ts:67
↓ 2 callersFunctionassertValue
(v: T | undefined, errorMessage: string)
src/sanity/env.ts:14
↓ 2 callersFunctionhashPassword
(password: string)
src/actions/auth.ts:115
↓ 2 callersFunctionloginUser
(email: string, password: string)
src/actions/auth.ts:151
↓ 1 callersFunctionaddWinningItemToCart
(cartId: string, product: Product)
src/actions/cart-actions.ts:223
↓ 1 callersFunctioncreateCheckoutSession
(cartId: string)
src/actions/stripe-actions.ts:11
↓ 1 callersFunctioncreateSession
(token: string, userId: number)
src/actions/auth.ts:17
↓ 1 callersFunctiondeleteSessionTokenCookie
()
src/actions/auth.ts:92
↓ 1 callersFunctiongenerateSessionToken
()
src/actions/auth.ts:10
↓ 1 callersFunctiongetAllCategories
()
src/sanity/lib/client.ts:20
↓ 1 callersFunctiongetAllProducts
()
src/sanity/lib/client.ts:14
↓ 1 callersFunctiongetCategoryBySlug
(slug: string)
src/sanity/lib/client.ts:26
↓ 1 callersFunctiongetCheckoutSession
(sessionId: string)
src/app/checkout/success/page.tsx:4
↓ 1 callersFunctiongetProductById
(id: string)
src/sanity/lib/client.ts:38
↓ 1 callersFunctiongetProductsByCategorySlug
(slug: string)
src/sanity/lib/client.ts:32
↓ 1 callersFunctiongetSliceStyle
(length: number, index: number)
src/components/layout/WheelOfFortune.tsx:27
↓ 1 callersFunctiongetTextStyle
()
src/components/layout/WheelOfFortune.tsx:67
↓ 1 callersFunctiongetWheelOfFortuneConfiguration
()
src/actions/wheel-of-fortune-actions.ts:6
↓ 1 callersFunctioninitCart
()
src/components/cart/Cart.tsx:95
↓ 1 callersFunctioninvalidateSession
(sessionId: string)
src/actions/auth.ts:68
↓ 1 callersFunctionlogoutUser
()
src/actions/auth.ts:188
↓ 1 callersFunctionregisterUser
(email: string, password: string)
src/actions/auth.ts:124
↓ 1 callersFunctionsearchProducts
(searchQuery: string)
src/sanity/lib/client.ts:44
↓ 1 callersFunctionsetSessionTokenCookie
(token: string, expiresAt: Date)
src/actions/auth.ts:81
↓ 1 callersFunctionsyncCartWithUser
(cartId: string | null)
src/actions/cart-actions.ts:119
↓ 1 callersFunctionumamiTrackCheckoutSuccessEvent
(payload: { [key: string]: string | number | Date })
src/lib/umami.ts:8
↓ 1 callersFunctionvalidateSessionToken
(token: string)
src/actions/auth.ts:30
↓ 1 callersFunctionverifyPassword
(password: string, hash: string)
src/actions/auth.ts:119
FunctionAddToCartButton
({ product }: AddToCartButtonProps)
src/components/product/AddToCartButton.tsx:13
FunctionAnalyticsTracker
({user}: AnalyticsTrackerProps)
src/components/layout/AnalyticsTracker.tsx:11
FunctionAnnouncementBar
()
src/components/layout/Header.tsx:11
FunctionCart
()
src/components/cart/Cart.tsx:78
FunctionCartItem
({item}: {item: CartItemType})
src/components/cart/Cart.tsx:14
FunctionCategoryPage
({ params }: CategoryPageProps)
src/app/category/[slug]/page.tsx:9
FunctionCheckoutSuccessPage
({ searchParams }: { searchParams: Promise<{ session_id: string }> })
src/app/checkout/success/page.tsx:12
FunctionDialogFooter
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>)
src/components/ui/dialog.tsx:70
FunctionDialogHeader
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>)
src/components/ui/dialog.tsx:56
FunctionHeader
({ user, categorySelector }: HeaderProps)
src/components/layout/Header.tsx:26
FunctionHeaderCategorySelector
()
src/components/layout/HeaderCategorySelector.tsx:5
FunctionHeaderSearchBar
()
src/components/layout/HeaderSearchBar.tsx:4
FunctionHome
()
src/app/page.tsx:8
FunctionPOST
(req: Request)
src/app/api/stripe/webhook/route.ts:8
FunctionPriceTag
({price}: { price: number })
src/components/layout/WheelOfFortune.tsx:229
FunctionProductGrid
({ products }: ProductGridProps)
src/components/product/ProductGrid.tsx:8
FunctionProductItem
({ product }: ProductItemProps)
src/components/product/ProductItem.tsx:10
FunctionProductPage
({ params }: { params: Promise<{ id: string }> } )
src/app/product/[id]/page.tsx:11
FunctionRootLayout
({ children, }: Readonly<{ children: React.ReactNode; }>)
src/app/layout.tsx:20
FunctionSalesCampaignBanner
()
src/components/layout/SalesCampaignBanner.tsx:5
FunctionSearchPage
({ searchParams }: SearchPageProps)
src/app/search/page.tsx:9
FunctionSignIn
({ action }: SignInProps)
src/components/auth/SignIn.tsx:15
FunctionSignInPage
()
src/app/auth/sign-in/page.tsx:12
FunctionSignUp
({ action }: SignUpProps)
src/components/auth/SignUp.tsx:15
FunctionSignUpPage
()
src/app/auth/sign-up/page.tsx:12
FunctionStudioPage
()
src/app/studio/[[...tool]]/page.tsx:17
FunctionWheelOfFortune
({ products, winningIndex }: WheelOfFortuneProps)
src/components/layout/WheelOfFortune.tsx:243
FunctionWinningItem
({ product, onClose }: {product: Product, onClose: () => void})
src/components/layout/WheelOfFortune.tsx:92
Functionaction
(prevState: any, formData: FormData)
src/app/auth/sign-up/page.tsx:19
Functionaction
(prevState: any, formData: FormData)
src/app/auth/sign-in/page.tsx:19
FunctionhandleAddToCart
()
src/components/layout/WheelOfFortune.tsx:104
FunctionhandleAddToCart
()
src/components/product/AddToCartButton.tsx:24
FunctionhandleProceedToCheckout
()
src/components/cart/Cart.tsx:105
FunctionhandleScroll
()
src/components/layout/Header.tsx:40
FunctionhandleSpin
()
src/components/layout/WheelOfFortune.tsx:263
Functionmiddleware
(request: NextRequest)
middleware.ts:6
Functionstructure
(S)
src/sanity/structure.ts:4