Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Krycha94/fullstack-nextjs-ecommerce
/ functions
Functions
76 in github.com/Krycha94/fullstack-nextjs-ecommerce
⨍
Functions
76
◇
Types & classes
0
↓ 5 callers
Function
useAuthContext
()
context/AuthContext.tsx:139
↓ 5 callers
Function
useCartContext
()
context/CartContext.tsx:92
↓ 3 callers
Function
getUniqueValues
(array: ProductType[], type: string)
utils/helpers.tsx:3
↓ 2 callers
Function
logout
()
context/AuthContext.tsx:105
↓ 2 callers
Function
toggleAmount
(id: string, value: string)
context/CartContext.tsx:74
↓ 1 callers
Function
addToCart
( id: string, size: string, amount: number, product: ProductType )
context/CartContext.tsx:51
↓ 1 callers
Function
getStripe
()
lib/getStripe.ts:5
↓ 1 callers
Function
login
(email: string, password: string)
context/AuthContext.tsx:68
↓ 1 callers
Function
register
(email: string, password: string)
context/AuthContext.tsx:53
↓ 1 callers
Function
removeFromCart
(id: string)
context/CartContext.tsx:64
↓ 1 callers
Function
sortSizes
(array: string[])
utils/helpers.tsx:13
↓ 1 callers
Function
updateUser
(username: string)
context/AuthContext.tsx:115
Function
About
()
components/About/About.tsx:5
Function
AboutPage
()
app/about/page.tsx:9
Function
AddToCart
({ product }: AddToCartProps)
components/AddToCart/AddToCart.tsx:13
Function
AmountButtons
({ amount, increase, decrease, cartView, }: AmountButtonsProps)
components/AmountButtons/AmountButtons.tsx:11
Function
AuthPage
()
app/auth/page.tsx:9
Function
AuthProvider
({ children }: { children: ReactNode })
context/AuthContext.tsx:36
Function
Authentication
()
components/Authentication/Authentication.tsx:14
Function
Breadcrumbs
({ title, product }: BreadcrumbsProps)
components/Breadcrumbs/Breadcrumbs.tsx:9
Function
CartColumns
()
components/CartColumns/CartColumns.tsx:3
Function
CartContent
()
components/CartContent/CartContent.tsx:10
Function
CartIcon
()
components/CartIcon/CartIcon.tsx:6
Function
CartItem
({ id, image, name, size, price, amount }: CartItemType)
components/CartItem/CartItem.tsx:8
Function
CartPage
()
app/cart/page.tsx:9
Function
CartProvider
({ children }: { children: ReactNode })
context/CartContext.tsx:48
Function
CartTotals
()
components/CartTotals/CartTotals.tsx:7
Function
Collections
()
components/Collections/Collections.tsx:6
Function
Contact
()
components/Contact/Contact.tsx:6
Function
Error
({ children }: { children: React.ReactNode })
components/Error/Error.tsx:3
Function
Filters
({ state, updateFilters, resetFilters }: FiltersProps)
components/Filters/Filters.tsx:24
Function
Footer
()
components/Footer/Footer.tsx:3
Function
Header
()
components/Header/Header.tsx:15
Function
Hero
()
components/Hero/Hero.tsx:5
Function
Home
()
app/page.tsx:10
Function
Loading
({ children }: { children: React.ReactNode })
components/Loading/Loading.tsx:3
Function
MobileNav
({ isNavOpen, onClose }: MobileNavProps)
components/MobileNav/MobileNav.tsx:13
Function
PageWrapper
({ children }: { children: React.ReactNode })
components/PageWrapper/PageWrapper.tsx:5
Function
PopularProducts
({ products }: PopularProductsProps)
components/PopularProducts/PopularProducts.tsx:12
Function
Product
({ id, images, name, price, discount, stars }: ProductType)
components/Product/Product.tsx:11
Function
ProductDetails
({ product }: ProductDetailsProps)
components/ProductDetails/ProductDetails.tsx:11
Function
ProductImages
({ images }: ProductImagesProps)
components/ProductImages/ProductImages.tsx:11
Function
ProductList
({ products }: ProductsListProps)
components/ProductList/ProductList.tsx:9
Function
ProductLoading
()
app/products/[productId]/loading.tsx:3
Function
Products
({ products }: ProductsProps)
components/Products/Products.tsx:16
Function
ProductsPage
()
app/products/page.tsx:11
Function
Providers
({ children }: { children: React.ReactNode })
context/Providers.tsx:7
Function
RootLayout
({ children, }: { children: React.ReactNode; })
app/layout.tsx:18
Function
SingleProductPage
({ params: { productId } }: Params)
app/products/[productId]/page.tsx:30
Function
Socials
()
components/Socials/Socials.tsx:6
Function
Sort
({ state, updateSort }: SortProps)
components/Sort/Sort.tsx:13
Function
Stars
({ stars, reviews }: StarsProps)
components/Stars/Stars.tsx:9
Function
UserPanel
()
components/UserPanel/UserPanel.tsx:7
Function
cartReducer
(state: CartStateType, action: CartActionType)
reducers/CartReducer.tsx:46
Function
clearCart
()
context/CartContext.tsx:69
Function
decrease
()
components/CartItem/CartItem.tsx:15
Function
decrease
()
components/AddToCart/AddToCart.tsx:29
Function
error
({ error, reset }: { error: Error; reset: () => void })
app/products/[productId]/error.tsx:6
Function
filterReducer
(state: FilterStateType, action: FilterActionType)
reducers/FilterReducer.tsx:51
Function
generateMetadata
({ params: { productId } }: Params)
app/products/[productId]/page.tsx:14
Function
generateStaticParams
()
app/products/[productId]/page.tsx:50
Function
handleChange
(e: React.ChangeEvent<HTMLInputElement>)
components/Authentication/Authentication.tsx:20
Function
handleCheckout
()
components/CartTotals/CartTotals.tsx:11
Function
handleClose
()
components/Header/Header.tsx:21
Function
handleLogout
()
components/UserPanel/UserPanel.tsx:11
Function
handleOpen
()
components/Header/Header.tsx:20
Function
handleSubmit
(e: React.FormEvent<HTMLFormElement>)
components/Authentication/Authentication.tsx:23
Function
handler
( req: NextApiRequest, res: NextApiResponse )
pages/api/stripe.ts:9
Function
increase
()
components/CartItem/CartItem.tsx:11
Function
increase
()
components/AddToCart/AddToCart.tsx:19
Function
loginWithGithub
()
context/AuthContext.tsx:94
Function
loginWithGoogle
()
context/AuthContext.tsx:83
Function
resetFilters
()
components/Products/Products.tsx:48
Function
toggleRegister
()
components/Authentication/Authentication.tsx:43
Function
updateFilters
(e: any)
components/Products/Products.tsx:33
Function
updateSort
(event: React.ChangeEvent<HTMLSelectElement>)
components/Products/Products.tsx:52