MCPcopy Create free account

hub / github.com/Krycha94/fullstack-nextjs-ecommerce / functions

Functions76 in github.com/Krycha94/fullstack-nextjs-ecommerce

↓ 5 callersFunctionuseAuthContext
()
context/AuthContext.tsx:139
↓ 5 callersFunctionuseCartContext
()
context/CartContext.tsx:92
↓ 3 callersFunctiongetUniqueValues
(array: ProductType[], type: string)
utils/helpers.tsx:3
↓ 2 callersFunctionlogout
()
context/AuthContext.tsx:105
↓ 2 callersFunctiontoggleAmount
(id: string, value: string)
context/CartContext.tsx:74
↓ 1 callersFunctionaddToCart
( id: string, size: string, amount: number, product: ProductType )
context/CartContext.tsx:51
↓ 1 callersFunctiongetStripe
()
lib/getStripe.ts:5
↓ 1 callersFunctionlogin
(email: string, password: string)
context/AuthContext.tsx:68
↓ 1 callersFunctionregister
(email: string, password: string)
context/AuthContext.tsx:53
↓ 1 callersFunctionremoveFromCart
(id: string)
context/CartContext.tsx:64
↓ 1 callersFunctionsortSizes
(array: string[])
utils/helpers.tsx:13
↓ 1 callersFunctionupdateUser
(username: string)
context/AuthContext.tsx:115
FunctionAbout
()
components/About/About.tsx:5
FunctionAboutPage
()
app/about/page.tsx:9
FunctionAddToCart
({ product }: AddToCartProps)
components/AddToCart/AddToCart.tsx:13
FunctionAmountButtons
({ amount, increase, decrease, cartView, }: AmountButtonsProps)
components/AmountButtons/AmountButtons.tsx:11
FunctionAuthPage
()
app/auth/page.tsx:9
FunctionAuthProvider
({ children }: { children: ReactNode })
context/AuthContext.tsx:36
FunctionAuthentication
()
components/Authentication/Authentication.tsx:14
FunctionBreadcrumbs
({ title, product }: BreadcrumbsProps)
components/Breadcrumbs/Breadcrumbs.tsx:9
FunctionCartColumns
()
components/CartColumns/CartColumns.tsx:3
FunctionCartContent
()
components/CartContent/CartContent.tsx:10
FunctionCartIcon
()
components/CartIcon/CartIcon.tsx:6
FunctionCartItem
({ id, image, name, size, price, amount }: CartItemType)
components/CartItem/CartItem.tsx:8
FunctionCartPage
()
app/cart/page.tsx:9
FunctionCartProvider
({ children }: { children: ReactNode })
context/CartContext.tsx:48
FunctionCartTotals
()
components/CartTotals/CartTotals.tsx:7
FunctionCollections
()
components/Collections/Collections.tsx:6
FunctionContact
()
components/Contact/Contact.tsx:6
FunctionError
({ children }: { children: React.ReactNode })
components/Error/Error.tsx:3
FunctionFilters
({ state, updateFilters, resetFilters }: FiltersProps)
components/Filters/Filters.tsx:24
FunctionFooter
()
components/Footer/Footer.tsx:3
FunctionHeader
()
components/Header/Header.tsx:15
FunctionHero
()
components/Hero/Hero.tsx:5
FunctionHome
()
app/page.tsx:10
FunctionLoading
({ children }: { children: React.ReactNode })
components/Loading/Loading.tsx:3
FunctionMobileNav
({ isNavOpen, onClose }: MobileNavProps)
components/MobileNav/MobileNav.tsx:13
FunctionPageWrapper
({ children }: { children: React.ReactNode })
components/PageWrapper/PageWrapper.tsx:5
FunctionPopularProducts
({ products }: PopularProductsProps)
components/PopularProducts/PopularProducts.tsx:12
FunctionProduct
({ id, images, name, price, discount, stars }: ProductType)
components/Product/Product.tsx:11
FunctionProductDetails
({ product }: ProductDetailsProps)
components/ProductDetails/ProductDetails.tsx:11
FunctionProductImages
({ images }: ProductImagesProps)
components/ProductImages/ProductImages.tsx:11
FunctionProductList
({ products }: ProductsListProps)
components/ProductList/ProductList.tsx:9
FunctionProductLoading
()
app/products/[productId]/loading.tsx:3
FunctionProducts
({ products }: ProductsProps)
components/Products/Products.tsx:16
FunctionProductsPage
()
app/products/page.tsx:11
FunctionProviders
({ children }: { children: React.ReactNode })
context/Providers.tsx:7
FunctionRootLayout
({ children, }: { children: React.ReactNode; })
app/layout.tsx:18
FunctionSingleProductPage
({ params: { productId } }: Params)
app/products/[productId]/page.tsx:30
FunctionSocials
()
components/Socials/Socials.tsx:6
FunctionSort
({ state, updateSort }: SortProps)
components/Sort/Sort.tsx:13
FunctionStars
({ stars, reviews }: StarsProps)
components/Stars/Stars.tsx:9
FunctionUserPanel
()
components/UserPanel/UserPanel.tsx:7
FunctioncartReducer
(state: CartStateType, action: CartActionType)
reducers/CartReducer.tsx:46
FunctionclearCart
()
context/CartContext.tsx:69
Functiondecrease
()
components/CartItem/CartItem.tsx:15
Functiondecrease
()
components/AddToCart/AddToCart.tsx:29
Functionerror
({ error, reset }: { error: Error; reset: () => void })
app/products/[productId]/error.tsx:6
FunctionfilterReducer
(state: FilterStateType, action: FilterActionType)
reducers/FilterReducer.tsx:51
FunctiongenerateMetadata
({ params: { productId } }: Params)
app/products/[productId]/page.tsx:14
FunctiongenerateStaticParams
()
app/products/[productId]/page.tsx:50
FunctionhandleChange
(e: React.ChangeEvent<HTMLInputElement>)
components/Authentication/Authentication.tsx:20
FunctionhandleCheckout
()
components/CartTotals/CartTotals.tsx:11
FunctionhandleClose
()
components/Header/Header.tsx:21
FunctionhandleLogout
()
components/UserPanel/UserPanel.tsx:11
FunctionhandleOpen
()
components/Header/Header.tsx:20
FunctionhandleSubmit
(e: React.FormEvent<HTMLFormElement>)
components/Authentication/Authentication.tsx:23
Functionhandler
( req: NextApiRequest, res: NextApiResponse )
pages/api/stripe.ts:9
Functionincrease
()
components/CartItem/CartItem.tsx:11
Functionincrease
()
components/AddToCart/AddToCart.tsx:19
FunctionloginWithGithub
()
context/AuthContext.tsx:94
FunctionloginWithGoogle
()
context/AuthContext.tsx:83
FunctionresetFilters
()
components/Products/Products.tsx:48
FunctiontoggleRegister
()
components/Authentication/Authentication.tsx:43
FunctionupdateFilters
(e: any)
components/Products/Products.tsx:33
FunctionupdateSort
(event: React.ChangeEvent<HTMLSelectElement>)
components/Products/Products.tsx:52