Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/danablend/next-temu-clone-video
/ functions
Functions
70 in github.com/danablend/next-temu-clone-video
⨍
Functions
70
◇
Types & classes
0
↓ 8 callers
Function
formatPrice
(price: number)
src/lib/utils.ts:8
↓ 6 callers
Function
cn
(...inputs: ClassValue[])
src/lib/utils.ts:4
↓ 6 callers
Function
getOrCreateCart
(cartId?: string | null)
src/actions/cart-actions.ts:29
↓ 5 callers
Function
urlFor
(source: SanityImageSource)
src/sanity/lib/image.ts:9
↓ 4 callers
Function
createCart
()
src/actions/cart-actions.ts:10
↓ 4 callers
Function
updateCartItem
( cartId: string, sanityProductId: string, data: { title?: string, price?: number,
src/actions/cart-actions.ts:67
↓ 2 callers
Function
assertValue
(v: T | undefined, errorMessage: string)
src/sanity/env.ts:14
↓ 2 callers
Function
hashPassword
(password: string)
src/actions/auth.ts:115
↓ 2 callers
Function
loginUser
(email: string, password: string)
src/actions/auth.ts:151
↓ 1 callers
Function
addWinningItemToCart
(cartId: string, product: Product)
src/actions/cart-actions.ts:223
↓ 1 callers
Function
createCheckoutSession
(cartId: string)
src/actions/stripe-actions.ts:11
↓ 1 callers
Function
createSession
(token: string, userId: number)
src/actions/auth.ts:17
↓ 1 callers
Function
deleteSessionTokenCookie
()
src/actions/auth.ts:92
↓ 1 callers
Function
generateSessionToken
()
src/actions/auth.ts:10
↓ 1 callers
Function
getAllCategories
()
src/sanity/lib/client.ts:20
↓ 1 callers
Function
getAllProducts
()
src/sanity/lib/client.ts:14
↓ 1 callers
Function
getCategoryBySlug
(slug: string)
src/sanity/lib/client.ts:26
↓ 1 callers
Function
getCheckoutSession
(sessionId: string)
src/app/checkout/success/page.tsx:4
↓ 1 callers
Function
getProductById
(id: string)
src/sanity/lib/client.ts:38
↓ 1 callers
Function
getProductsByCategorySlug
(slug: string)
src/sanity/lib/client.ts:32
↓ 1 callers
Function
getSliceStyle
(length: number, index: number)
src/components/layout/WheelOfFortune.tsx:27
↓ 1 callers
Function
getTextStyle
()
src/components/layout/WheelOfFortune.tsx:67
↓ 1 callers
Function
getWheelOfFortuneConfiguration
()
src/actions/wheel-of-fortune-actions.ts:6
↓ 1 callers
Function
initCart
()
src/components/cart/Cart.tsx:95
↓ 1 callers
Function
invalidateSession
(sessionId: string)
src/actions/auth.ts:68
↓ 1 callers
Function
logoutUser
()
src/actions/auth.ts:188
↓ 1 callers
Function
registerUser
(email: string, password: string)
src/actions/auth.ts:124
↓ 1 callers
Function
searchProducts
(searchQuery: string)
src/sanity/lib/client.ts:44
↓ 1 callers
Function
setSessionTokenCookie
(token: string, expiresAt: Date)
src/actions/auth.ts:81
↓ 1 callers
Function
syncCartWithUser
(cartId: string | null)
src/actions/cart-actions.ts:119
↓ 1 callers
Function
umamiTrackCheckoutSuccessEvent
(payload: { [key: string]: string | number | Date })
src/lib/umami.ts:8
↓ 1 callers
Function
validateSessionToken
(token: string)
src/actions/auth.ts:30
↓ 1 callers
Function
verifyPassword
(password: string, hash: string)
src/actions/auth.ts:119
Function
AddToCartButton
({ product }: AddToCartButtonProps)
src/components/product/AddToCartButton.tsx:13
Function
AnalyticsTracker
({user}: AnalyticsTrackerProps)
src/components/layout/AnalyticsTracker.tsx:11
Function
AnnouncementBar
()
src/components/layout/Header.tsx:11
Function
Cart
()
src/components/cart/Cart.tsx:78
Function
CartItem
({item}: {item: CartItemType})
src/components/cart/Cart.tsx:14
Function
CategoryPage
({ params }: CategoryPageProps)
src/app/category/[slug]/page.tsx:9
Function
CheckoutSuccessPage
({ searchParams }: { searchParams: Promise<{ session_id: string }> })
src/app/checkout/success/page.tsx:12
Function
DialogFooter
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>)
src/components/ui/dialog.tsx:70
Function
DialogHeader
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>)
src/components/ui/dialog.tsx:56
Function
Header
({ user, categorySelector }: HeaderProps)
src/components/layout/Header.tsx:26
Function
HeaderCategorySelector
()
src/components/layout/HeaderCategorySelector.tsx:5
Function
HeaderSearchBar
()
src/components/layout/HeaderSearchBar.tsx:4
Function
Home
()
src/app/page.tsx:8
Function
POST
(req: Request)
src/app/api/stripe/webhook/route.ts:8
Function
PriceTag
({price}: { price: number })
src/components/layout/WheelOfFortune.tsx:229
Function
ProductGrid
({ products }: ProductGridProps)
src/components/product/ProductGrid.tsx:8
Function
ProductItem
({ product }: ProductItemProps)
src/components/product/ProductItem.tsx:10
Function
ProductPage
({ params }: { params: Promise<{ id: string }> } )
src/app/product/[id]/page.tsx:11
Function
RootLayout
({ children, }: Readonly<{ children: React.ReactNode; }>)
src/app/layout.tsx:20
Function
SalesCampaignBanner
()
src/components/layout/SalesCampaignBanner.tsx:5
Function
SearchPage
({ searchParams }: SearchPageProps)
src/app/search/page.tsx:9
Function
SignIn
({ action }: SignInProps)
src/components/auth/SignIn.tsx:15
Function
SignInPage
()
src/app/auth/sign-in/page.tsx:12
Function
SignUp
({ action }: SignUpProps)
src/components/auth/SignUp.tsx:15
Function
SignUpPage
()
src/app/auth/sign-up/page.tsx:12
Function
StudioPage
()
src/app/studio/[[...tool]]/page.tsx:17
Function
WheelOfFortune
({ products, winningIndex }: WheelOfFortuneProps)
src/components/layout/WheelOfFortune.tsx:243
Function
WinningItem
({ product, onClose }: {product: Product, onClose: () => void})
src/components/layout/WheelOfFortune.tsx:92
Function
action
(prevState: any, formData: FormData)
src/app/auth/sign-up/page.tsx:19
Function
action
(prevState: any, formData: FormData)
src/app/auth/sign-in/page.tsx:19
Function
handleAddToCart
()
src/components/layout/WheelOfFortune.tsx:104
Function
handleAddToCart
()
src/components/product/AddToCartButton.tsx:24
Function
handleProceedToCheckout
()
src/components/cart/Cart.tsx:105
Function
handleScroll
()
src/components/layout/Header.tsx:40
Function
handleSpin
()
src/components/layout/WheelOfFortune.tsx:263
Function
middleware
(request: NextRequest)
middleware.ts:6
Function
structure
(S)
src/sanity/structure.ts:4