MCPcopy Create free account

hub / github.com/dhatGuy/PERN-Store / functions

Functions186 in github.com/dhatGuy/PERN-Store

↓ 12 callersFunctionuseUser
()
client/src/context/UserContext.jsx:77
↓ 12 callersFunctionusersInDb
()
server/helpers/test_helper.js:3
↓ 11 callersFunctionformatCurrency
(amount)
client/src/helpers/formatCurrency.js:1
↓ 9 callersFunctionuseCart
()
client/src/context/CartContext.jsx:119
↓ 7 callersFunctiongetUserByEmailDb
(email)
server/db/user.db.js:33
↓ 7 callersFunctionhandleSubmit
(e)
client/src/components/ReviewModal.jsx:56
↓ 4 callersFunctionnext
(data)
client/src/pages/Checkout.jsx:28
↓ 4 callersMethodsignRefreshToken
(data)
server/services/auth.service.js:301
↓ 4 callersMethodsignToken
(data)
server/services/auth.service.js:292
↓ 3 callersFunctioncreateCartDb
(userId)
server/db/cart.db.js:3
↓ 3 callersMethodcreateOrder
(amount, itemTotal, ref, paymentMethod)
client/src/services/order.service.js:4
↓ 3 callersFunctioncreateTransporter
()
server/services/mail.service.js:8
↓ 3 callersFunctiongetProductDb
({ id })
server/db/product.db.js:23
↓ 3 callersFunctiongetUserByUsernameDb
(username)
server/db/user.db.js:25
↓ 2 callersFunctionaddItem
(product, quantity)
client/src/context/CartContext.jsx:51
↓ 2 callersMethodaddToCart
(product_id, quantity)
client/src/services/cart.service.js:7
↓ 2 callersFunctionchangeUserPasswordDb
(hashedPassword, email)
server/db/user.db.js:77
↓ 2 callersFunctioncreateUserDb
({ username, password, email, fullname })
server/db/user.db.js:8
↓ 2 callersFunctioncreateUserGoogleDb
({ sub, defaultUsername, email, name })
server/db/user.db.js:67
↓ 2 callersMethodforgotPassword
(email)
client/src/services/auth.service.js:25
↓ 2 callersMethodgetAllOrders
(page)
client/src/services/order.service.js:12
↓ 2 callersMethodgetCart
()
client/src/services/cart.service.js:4
↓ 2 callersFunctiongetUserByIdDb
(id)
server/db/user.db.js:18
↓ 2 callersFunctionisValidTokenDb
({ token, email, curDate })
server/db/auth.db.js:3
↓ 2 callersFunctionsetTokenStatusDb
(email)
server/db/auth.db.js:23
↓ 2 callersFunctionvalidateUser
(email, password)
server/helpers/validateUser.js:1
↓ 1 callersFunctionaddItemDb
({ cart_id, product_id, quantity })
server/db/cart.db.js:28
↓ 1 callersFunctionaddReview
()
client/src/components/ReviewModal.jsx:28
↓ 1 callersMethodaddReview
(product_id, rating, content)
client/src/services/review.service.js:14
↓ 1 callersFunctionaddToCart
(e)
client/src/components/Product.jsx:14
↓ 1 callersFunctionaddToCart
(e)
client/src/pages/ProductDetails.jsx:20
↓ 1 callersMethodcheckToken
(token, email)
client/src/services/auth.service.js:31
↓ 1 callersFunctioncreateOrderDb
({ cartId, amount, itemTotal, userId, ref, paymentMethod, })
server/db/orders.db.js:3
↓ 1 callersFunctioncreateProductDb
({ name, price, description, image_url })
server/db/product.db.js:15
↓ 1 callersFunctioncreateResetTokenDb
({ email, expireDate, fpSalt })
server/db/auth.db.js:14
↓ 1 callersFunctiondecrease
()
client/src/components/CartItem.jsx:11
↓ 1 callersFunctiondecreaseItemQuantityDb
({ cart_id, product_id })
server/db/cart.db.js:73
↓ 1 callersFunctiondecrement
(product_id)
client/src/context/CartContext.jsx:89
↓ 1 callersMethoddecrement
(product_id)
client/src/services/cart.service.js:21
↓ 1 callersFunctiondeleteItem
(product_id)
client/src/context/CartContext.jsx:65
↓ 1 callersFunctiondeleteItemDb
({ cart_id, product_id })
server/db/cart.db.js:45
↓ 1 callersFunctiondeleteProductDb
({ id })
server/db/product.db.js:67
↓ 1 callersFunctiondeleteResetTokenDb
(curDate)
server/db/auth.db.js:32
↓ 1 callersFunctiondeleteUserDb
(id)
server/db/user.db.js:59
↓ 1 callersFunctionemptyCartDb
(cartId)
server/db/cart.db.js:86
↓ 1 callersFunctionfetchData
()
client/src/pages/ProductDetails.jsx:35
↓ 1 callersMethodforgotPassword
(email)
server/services/auth.service.js:196
↓ 1 callersMethodgenerateRefreshToken
(data)
server/services/auth.service.js:184
↓ 1 callersFunctiongetAllOrdersDb
({ userId, limit, offset })
server/db/orders.db.js:29
↓ 1 callersFunctiongetAllProductsDb
({ limit, offset })
server/db/product.db.js:3
↓ 1 callersFunctiongetAllUsersDb
()
server/db/user.db.js:3
↓ 1 callersFunctiongetCartDb
(userId)
server/db/cart.db.js:12
↓ 1 callersMethodgetCurrentUser
()
client/src/services/auth.service.js:55
↓ 1 callersMethodgetOrder
(id)
client/src/services/order.service.js:15
↓ 1 callersFunctiongetOrderDb
({ id, userId })
server/db/orders.db.js:42
↓ 1 callersMethodgetProduct
(id)
client/src/services/product.service.js:7
↓ 1 callersMethodgetProductByName
(name)
client/src/services/product.service.js:10
↓ 1 callersFunctiongetProductByNameDb
({ name })
server/db/product.db.js:47
↓ 1 callersFunctiongetProductBySlugDb
({ slug })
server/db/product.db.js:35
↓ 1 callersMethodgetProducts
(page)
client/src/services/product.service.js:4
↓ 1 callersFunctiongoToDetails
(order)
client/src/pages/Orders.jsx:27
↓ 1 callersMethodgoogleLogin
(code)
client/src/services/auth.service.js:12
↓ 1 callersMethodgoogleLogin
(code)
server/services/auth.service.js:134
↓ 1 callersFunctionhandleGoogleLogin
(googleData)
client/src/pages/Login.jsx:38
↓ 1 callersFunctionhandleSubmit
(e, elements, stripe)
client/src/components/PaymentForm.jsx:21
↓ 1 callersFunctionhashPassword
(password)
server/helpers/hashPassword.js:3
↓ 1 callersFunctionincrease
()
client/src/components/CartItem.jsx:8
↓ 1 callersFunctionincreaseItemQuantityDb
({ cart_id, product_id })
server/db/cart.db.js:54
↓ 1 callersFunctionincrement
(product_id)
client/src/context/CartContext.jsx:78
↓ 1 callersMethodincrement
(product_id)
client/src/services/cart.service.js:17
↓ 1 callersMethodlogin
(email, password)
client/src/services/auth.service.js:4
↓ 1 callersMethodlogin
(email, password)
server/services/auth.service.js:84
↓ 1 callersFunctionlogout
()
client/src/context/UserContext.jsx:51
↓ 1 callersMethodlogout
()
client/src/services/auth.service.js:19
↓ 1 callersFunctionnextStep
()
client/src/pages/Checkout.jsx:25
↓ 1 callersMethodremoveFromCart
(product_id)
client/src/services/cart.service.js:11
↓ 1 callersMethodresetPassword
(token, email, password, password2)
client/src/services/auth.service.js:38
↓ 1 callersMethodresetPassword
(password, password2, token, email)
server/services/auth.service.js:235
↓ 1 callersFunctionsaveLocalCart
()
client/src/context/CartContext.jsx:18
↓ 1 callersFunctionsetUserInfo
(data)
client/src/context/UserContext.jsx:41
↓ 1 callersMethodsignUp
(user)
server/services/auth.service.js:27
↓ 1 callersFunctionupdateProductDb
({ name, price, description, image_url, id })
server/db/product.db.js:59
↓ 1 callersFunctionupdateReview
()
client/src/components/ReviewModal.jsx:42
↓ 1 callersMethodupdateReview
(id, product_id, content, rating)
client/src/services/review.service.js:22
↓ 1 callersFunctionupdateUserData
({ fullname, email, username, address, city, state, country })
client/src/context/UserContext.jsx:28
↓ 1 callersFunctionupdateUserDb
({ username, email, fullname, id, address, city, state, country, })
server/db/user.db.js:41
↓ 1 callersFunctionuseOrders
()
client/src/context/OrderContext.jsx:11
↓ 1 callersFunctionuseProduct
()
client/src/context/ProductContext.jsx:28
↓ 1 callersMethodverifyGoogleIdToken
(code)
server/services/auth.service.js:275
↓ 1 callersMethodverifyRefreshToken
(token)
server/services/auth.service.js:310
↓ 1 callersMethodverifyResetToken
(token, email)
server/services/auth.service.js:220
FunctionAccount
()
client/src/pages/Account.jsx:11
FunctionAccountForm
({ setShowSettings, userData })
client/src/components/AccountForm.jsx:7
FunctionApp
()
client/src/App.jsx:22
FunctionCart
()
client/src/pages/Cart.jsx:18
FunctionCartItem
({ item })
client/src/components/CartItem.jsx:5
FunctionCartProvider
({ children })
client/src/context/CartContext.jsx:8
FunctionCheckout
()
client/src/pages/Checkout.jsx:8
FunctionConfirmation
()
client/src/pages/Confirmation.jsx:8
FunctionForgotPasswordModal
()
client/src/components/ForgotPasswordModal.jsx:18
next →1–100 of 186, ranked by callers