MCPcopy Create free account

hub / github.com/NightClover-code/modern-ecommerce / functions

Functions268 in github.com/NightClover-code/modern-ecommerce

↓ 70 callersFunctioncn
(...inputs: ClassValue[])
apps/web/src/lib/utils.ts:4
↓ 44 callersFunctiontoast
({ ...props }: Toast)
apps/web/src/hooks/use-toast.ts:142
↓ 12 callersFunctionuseToast
()
apps/web/src/hooks/use-toast.ts:171
↓ 11 callersFunctionfetchWithAuth
( url: string, config: FetchWithAuthConfig = {}, )
apps/web/src/lib/fetch-with-auth.ts:9
↓ 7 callersFunctionformatPrice
(price: number)
apps/web/src/lib/utils.ts:18
↓ 6 callersMethodcreate
(user: Partial<User>)
apps/server/src/users/services/users.service.ts:20
↓ 5 callersFunctionSerialize
(dto: ClassConstructor<any>)
apps/server/src/interceptors/serialize.interceptor.ts:11
↓ 5 callersFunctiondispatch
(action: Action)
apps/web/src/hooks/use-toast.ts:133
↓ 5 callersMethodgetModel
()
apps/server/src/ai/services/ai-config.service.ts:31
↓ 5 callersFunctionhashPassword
(password: string)
apps/server/src/utils/password.ts:3
↓ 5 callersMethodrefresh
(refreshToken: string)
apps/server/src/users/services/auth.service.ts:88
↓ 5 callersFunctionuseCart
()
apps/web/src/modules/cart/context/cart-context.tsx:244
↓ 4 callersMethodcalculatePrices
(cart: CartDocument)
apps/server/src/cart/services/cart.service.ts:33
↓ 4 callersMethodfindById
(id: string)
apps/server/src/users/services/users.service.ts:57
↓ 4 callersMethodfindById
(id: string)
apps/server/src/products/services/products.service.ts:76
↓ 4 callersMethodfindOne
(email: string)
apps/server/src/users/services/users.service.ts:53
↓ 4 callersMethodgetCart
(user: UserDocument)
apps/server/src/cart/services/cart.service.ts:20
↓ 4 callersFunctiongetVisiblePages
(current: number, total: number)
apps/web/src/lib/utils.ts:8
↓ 4 callersFunctionuseFormField
()
apps/web/src/components/ui/form.tsx:44
↓ 4 callersFunctionuseUser
()
apps/web/src/modules/auth/hooks/use-user.ts:4
↓ 3 callersMethodfindById
(id: string)
apps/server/src/orders/services/orders.service.ts:52
↓ 3 callersFunctionhandleSubmit
(formData: FormData)
apps/web/src/modules/admin/components/create-product-form.tsx:120
↓ 3 callersFunctionuseCheckout
()
apps/web/src/modules/checkout/context/checkout-context.tsx:47
↓ 3 callersMethodvalidateProduct
(product: any)
apps/server/src/ai/tools/product-generation.tool.ts:127
↓ 2 callersFunctionaddItem
(productId: string, qty: number)
apps/web/src/modules/cart/context/cart-context.tsx:81
↓ 2 callersFunctionaddToRemoveQueue
(toastId: string)
apps/web/src/hooks/use-toast.ts:58
↓ 2 callersMethodcreate
(productData: Partial<Product>)
apps/server/src/products/services/products.service.ts:197
↓ 2 callersMethodgenerateProductImage
( options: ImageGenerationOptions, )
apps/server/src/ai/services/image-generation.service.ts:19
↓ 2 callersMethodgenerateTokens
(user: UserDocument)
apps/server/src/users/services/auth.service.ts:47
↓ 2 callersFunctiongetProducts
( page: number = 1, limit: number = 10, )
apps/web/src/modules/admin/actions/get-products.ts:6
↓ 2 callersFunctionprocessQueue
(error: any, token: string | null = null)
apps/web/src/lib/process-refresh.ts:11
↓ 2 callersFunctionresetRefreshState
()
apps/web/src/lib/process-refresh.ts:23
↓ 2 callersMethodupdate
( id: string, attrs: Partial<User>, isAdmin = false, )
apps/server/src/users/services/users.service.ts:105
↓ 2 callersFunctionupdateQuantity
(productId: string, qty: number)
apps/web/src/modules/cart/context/cart-context.tsx:159
↓ 2 callersMethoduploadImageToCloudinary
(file: Express.Multer.File)
apps/server/src/app/services/app.service.ts:8
↓ 2 callersMethodvalidateUser
(email: string, password: string)
apps/server/src/users/services/auth.service.ts:19
↓ 1 callersMethodaddCartItem
( productId: string, qty: number, user: UserDocument, )
apps/server/src/cart/services/cart.service.ts:44
↓ 1 callersMethodadminUpdate
(id: string, attrs: Partial<User>)
apps/server/src/users/services/users.service.ts:154
↓ 1 callersFunctionbootstrap
()
apps/server/src/main.ts:10
↓ 1 callersFunctionbootstrap
()
apps/server/src/cli.ts:5
↓ 1 callersFunctionclearCart
()
apps/web/src/modules/cart/context/cart-context.tsx:181
↓ 1 callersMethodcreate
( orderAttrs: Partial<Order>, userId: string, )
apps/server/src/orders/services/orders.service.ts:15
↓ 1 callersMethodcreateMany
(users: Partial<User>[])
apps/server/src/users/services/users.service.ts:42
↓ 1 callersMethoddeleteOne
(id: string)
apps/server/src/users/services/users.service.ts:94
↓ 1 callersMethoddeleteOne
(id: string)
apps/server/src/products/services/products.service.ts:182
↓ 1 callersFunctiondeleteProduct
(productId: string)
apps/web/src/modules/admin/actions/delete-product.ts:6
↓ 1 callersFunctiondeleteUser
(userId: string)
apps/web/src/modules/admin/actions/delete-user.ts:6
↓ 1 callersFunctiondismiss
()
apps/web/src/hooks/use-toast.ts:150
↓ 1 callersFunctionfetchSearchResults
()
apps/web/src/modules/products/components/product-grid.tsx:37
↓ 1 callersMethodfindAll
( page: number = 1, limit: number = 20, )
apps/server/src/users/services/users.service.ts:70
↓ 1 callersMethodfindAll
()
apps/server/src/orders/services/orders.service.ts:46
↓ 1 callersMethodfindMany
( keyword?: string, page?: string, limit?: string, )
apps/server/src/products/services/products.service.ts:32
↓ 1 callersMethodfindTopRated
()
apps/server/src/products/services/products.service.ts:21
↓ 1 callersMethodfindUserOrders
(userId: string)
apps/server/src/orders/services/orders.service.ts:101
↓ 1 callersFunctionformatProductInfo
(content: string)
apps/web/src/modules/admin/components/ai-product-creator.tsx:11
↓ 1 callersFunctiongenId
()
apps/web/src/hooks/use-toast.ts:27
↓ 1 callersMethodgenerateBasicInfo
({ userPrompt, category, }: { userPrompt: string; category: string; })
apps/server/src/ai/tools/product-generation.tool.ts:18
↓ 1 callersMethodgenerateBrandAssets
({ brand, productInfo, }: { brand: string; productInfo: any; })
apps/server/src/ai/tools/product-generation.tool.ts:95
↓ 1 callersMethodgenerateProductImages
({ productInfo }: { productInfo: any })
apps/server/src/ai/tools/product-generation.tool.ts:49
↓ 1 callersFunctiongenerateUsers
(count: number)
apps/server/src/utils/seed-users.ts:17
↓ 1 callersFunctiongetAccessToken
()
apps/web/src/modules/auth/api/get-access-token.ts:5
↓ 1 callersFunctiongetCountries
()
apps/web/src/lib/countries.ts:14
↓ 1 callersFunctiongetProduct
(id: string)
apps/web/src/modules/products/actions/get-product.ts:6
↓ 1 callersFunctiongetProducts
( page: number = 1, limit: number = 10, keyword?: string, )
apps/web/src/modules/products/actions/get-products.ts:6
↓ 1 callersMethodgetReplicate
()
apps/server/src/ai/services/ai-config.service.ts:27
↓ 1 callersFunctiongetStatusIcon
()
apps/web/src/modules/ai/components/tools/validation-result.tsx:26
↓ 1 callersFunctiongetUsers
( page: number = 1, limit: number = 20, )
apps/web/src/modules/admin/actions/get-users.ts:6
↓ 1 callersFunctionhandleDelete
(userId: string)
apps/web/src/modules/admin/components/users-list.tsx:27
↓ 1 callersFunctionhandlePaymentSuccess
(paymentResult: PaymentResult)
apps/web/src/modules/orders/components/paypal-button.tsx:25
↓ 1 callersFunctionhandleSubmit
(e: React.FormEvent)
apps/web/src/modules/products/components/review-form.tsx:20
↓ 1 callersMethodhandleUserApproval
({ productInfo, userFeedback, step, }: { productInfo: any; userFeedback: string; ste
apps/server/src/ai/tools/product-generation.tool.ts:171
↓ 1 callersFunctionloadCart
()
apps/web/src/modules/cart/context/cart-context.tsx:30
↓ 1 callersMethodlogin
( @Body() loginDto: LoginDto, @Res({ passthrough: true }) response: Response, )
apps/server/src/users/controller/auth.controller.ts:48
↓ 1 callersFunctionmarkAsDelivered
(orderId: string)
apps/web/src/modules/admin/components/orders-list.tsx:29
↓ 1 callersFunctionmergeCarts
( localItems: CartItem[], serverItems: CartItem[], )
apps/web/src/modules/cart/context/cart-context.tsx:203
↓ 1 callersFunctionreducer
(state: State, action: Action)
apps/web/src/hooks/use-toast.ts:74
↓ 1 callersFunctionrefreshToken
()
apps/web/src/modules/auth/api/refresh-token.ts:4
↓ 1 callersMethodregister
(@Body() registerDto: RegisterDto)
apps/server/src/users/controller/auth.controller.ts:131
↓ 1 callersMethodremoveCartItem
( productId: string, user: UserDocument, )
apps/server/src/cart/services/cart.service.ts:75
↓ 1 callersFunctionremoveItem
(productId: string)
apps/web/src/modules/cart/context/cart-context.tsx:135
↓ 1 callersMethodsaveProduct
(product: { name: string; description: string; brand: string; category: string; price: num
apps/server/src/ai/tools/product-generation.tool.ts:194
↓ 1 callersMethodupdate
(id: string, attrs: Partial<Product>)
apps/server/src/products/services/products.service.ts:99
↓ 1 callersMethodupdateCartItemQty
( productId: string, qty: number, user: UserDocument, )
apps/server/src/cart/services/cart.service.ts:87
↓ 1 callersMethodupdateDelivered
(id: string)
apps/server/src/orders/services/orders.service.ts:85
↓ 1 callersMethodupdatePaid
( id: string, paymentResult: PaymentResult, )
apps/server/src/orders/services/orders.service.ts:65
↓ 1 callersMethoduploadBuffer
(buffer: Buffer)
apps/server/src/cloudinary/services/cloudinary.service.ts:52
↓ 1 callersMethoduploadImage
( file: Express.Multer.File, )
apps/server/src/cloudinary/services/cloudinary.service.ts:7
↓ 1 callersFunctionuseAiProductCreation
()
apps/web/src/modules/admin/hooks/use-ai-product-creation.ts:6
↓ 1 callersFunctionuseLogin
()
apps/web/src/modules/auth/hooks/use-auth.ts:8
↓ 1 callersFunctionuseLogout
()
apps/web/src/modules/auth/hooks/use-auth.ts:56
↓ 1 callersFunctionuseRegister
()
apps/web/src/modules/auth/hooks/use-auth.ts:32
↓ 1 callersFunctionuseScrollToBottom
()
apps/web/src/hooks/use-scroll-to-bottom.tsx:3
↓ 1 callersFunctionvalidateField
(field: keyof ProductFormData, value: any)
apps/web/src/modules/admin/components/create-product-form.tsx:70
↓ 1 callersMethodvalidatePaymentMethod
(paymentMethod: string)
apps/server/src/cart/services/cart.service.ts:122
↓ 1 callersMethodvalidateShippingDetails
(shippingDetails: ShippingDetails)
apps/server/src/cart/services/cart.service.ts:113
↓ 1 callersFunctionverifyPassword
( hashedPassword: string, plainPassword: string, )
apps/server/src/utils/password.ts:12
FunctionAdminLayout
({ children, }: { children: React.ReactNode; })
apps/web/src/app/admin/layout.tsx:8
FunctionAdminOrderDetails
({ order }: AdminOrderDetailsProps)
apps/web/src/modules/admin/components/admin-order-details.tsx:20
FunctionAdminOrderPage
({ params }: AdminOrderPageProps)
apps/web/src/app/admin/orders/[id]/page.tsx:12
FunctionAdminOrdersPage
()
apps/web/src/app/admin/orders/page.tsx:6
next →1–100 of 268, ranked by callers