MCPcopy Create free account

hub / github.com/Kuzma02/Electronics-eCommerce-Shop-With-Admin-Dashboard-NextJS-NodeJS / functions

Functions320 in github.com/Kuzma02/Electronics-eCommerce-Shop-With-Admin-Dashboard-NextJS-NodeJS

↓ 28 callersFunctionasyncHandler
(fn)
server/utills/errorHandler.js:139
↓ 22 callersFunctionassert
(cond, message)
server/tests/bulk-upload-smoketest.js:34
↓ 19 callersFunctionsanitize
(text: string | null | undefined)
lib/sanitize.ts:8
↓ 13 callersFunctionlogStep
(step, expected, actual)
server/tests/bulk-upload-smoketest.js:28
↓ 12 callersFunctionsafeValidate
(validationFn, value, fieldName)
server/utills/validation.js:325
↓ 11 callersFunctionsection
(title)
server/tests/bulk-upload-smoketest.js:22
↓ 5 callersFunctioncreateNotification
( userId: string, title: string, message: string, type: NotificationType, priority: NotificationPrio
lib/notification-helpers.ts:7
↓ 5 callersFunctionexcludePassword
(user)
server/controllers/users.js:6
↓ 5 callersFunctiongenerateId
()
server/utills/notificationHelpers.js:8
↓ 4 callersMethodclose
()
server/scripts/migration-validator.js:152
↓ 4 callersFunctionformatCategoryName
(categoryName: string)
utils/categoryFormating.ts:3
↓ 4 callersFunctionisValidEmailAddressFormat
(input: string)
lib/utils.ts:116
↓ 3 callersMethodcreateBackup
()
server/scripts/migration-validator.js:45
↓ 3 callersFunctionsignIn
({ user, account }: { user: AuthUser; account: Account })
app/api/auth/[...nextauth]/route.ts:57
↓ 3 callersMethodvalidateAllMigrations
()
server/scripts/migration-validator.js:116
↓ 2 callersFunctioncomputeBatchStatus
(successCount, errorCount)
server/services/bulkUploadService.js:49
↓ 2 callersFunctionconvertCategoryNameToURLFriendly
(categoryName: string)
utils/categoryFormating.ts:10
↓ 2 callersFunctioncreateBatchWithItems
(tx, batchId, validRows, errorRows)
server/services/bulkUploadService.js:57
↓ 2 callersFunctioncreateOrderUpdateNotification
(userId, orderStatus, orderId, totalAmount = null)
server/utills/notificationHelpers.js:22
↓ 2 callersFunctiondeleteNotification
* Delete single notification
lib/notification-api.ts:92
↓ 2 callersFunctionfetchBatchHistory
()
components/BulkUploadHistory.tsx:51
↓ 2 callersFunctionfetchMerchant
()
app/(dashboard)/admin/merchant/[id]/page.tsx:51
↓ 2 callersFunctiongetBatchSummary
(prisma, batchId)
server/services/bulkUploadService.js:181
↓ 2 callersFunctiongetStatusCodeFromPrismaError
(error: any)
utils/errorHandler.ts:173
↓ 2 callersFunctionhandleApiError
(error: unknown, requestId?: string)
utils/errorHandler.ts:99
↓ 2 callersFunctionhandlePrismaError
(error: any)
utils/errorHandler.ts:47
↓ 2 callersFunctionhandleQuantityChange
(actionName: string)
components/QuantityInput.tsx:25
↓ 2 callersFunctionhandleQuantityChange
(actionName: string)
components/QuantityInputCart.tsx:21
↓ 2 callersFunctionhandleServerError
(error, res, context = "")
server/utills/errorHandler.js:107
↓ 2 callersFunctionisValidNameOrLastname
(input: string)
lib/utils.ts:110
↓ 2 callersFunctionlogError
(error: unknown, context?: string)
utils/errorHandler.ts:26
↓ 2 callersFunctionluhnCheck
(cardNumber: string)
lib/utils.ts:140
↓ 2 callersFunctionsafeValidatePayment
(validationFn, value, fieldName)
server/utills/validation.js:376
↓ 2 callersFunctionsanitizeFormData
(formData: any)
lib/form-sanitize.ts:8
↓ 2 callersFunctionstartTimeout
()
hooks/useSessionTimeout.ts:18
↓ 2 callersFunctionstartTimeout
()
hooks/useSessionTimeoutTest.ts:20
↓ 2 callersFunctionvalidateOrderData
(orderData)
server/utills/validation.js:320
↓ 2 callersFunctionvalidateRow
(row)
server/services/bulkUploadService.js:4
↓ 1 callersFunctionaddOrderProduct
( orderId: string, productId: string, productQuantity: number )
app/checkout/page.tsx:300
↓ 1 callersFunctionanalyzeSecurity
()
server/view-logs.js:35
↓ 1 callersFunctionapplyItemUpdates
(tx, batchId, updates)
server/services/bulkUploadService.js:225
↓ 1 callersFunctionbuildCSV
({ categoryId })
server/tests/bulk-upload-smoketest.js:79
↓ 1 callersFunctionbuildSafeFilterObject
(filterArray)
server/controllers/products.js:40
↓ 1 callersFunctioncanDeleteProductsForBatch
(prisma, batchId)
server/services/bulkUploadService.js:195
↓ 1 callersFunctioncheckBulkUploadResults
()
server/tests/check-bulk-results.js:3
↓ 1 callersFunctioncheckCategories
()
server/scripts/check-categories.js:4
↓ 1 callersFunctioncheckProducts
()
server/tests/check-products-db.js:4
↓ 1 callersFunctioncreateAdminUser
()
server/createAdminUser.js:8
↓ 1 callersMethodcreateBackup
()
server/scripts/backup-database.js:17
↓ 1 callersFunctioncreateDefaultCategories
()
server/scripts/create-default-categories.js:4
↓ 1 callersFunctioncreateSampleNotifications
()
server/scripts/create-sample-notifications.js:6
↓ 1 callersFunctiondeleteBatch
(batchId)
server/tests/bulk-upload-smoketest.js:223
↓ 1 callersFunctiondetectCardType
(cardNumber: string)
lib/utils.ts:203
↓ 1 callersMethodensureBackupDir
()
server/scripts/migration-validator.js:12
↓ 1 callersMethodensureBackupDir
()
server/scripts/backup-database.js:11
↓ 1 callersFunctionensureMigrations
()
server/tests/bulk-upload-smoketest.js:38
↓ 1 callersFunctionensureTestCategory
()
server/tests/bulk-upload-smoketest.js:67
↓ 1 callersFunctionfetchCategories
()
app/(dashboard)/admin/products/new/page.tsx:115
↓ 1 callersFunctionfetchCategories
()
app/(dashboard)/admin/products/[id]/page.tsx:125
↓ 1 callersFunctionfetchMerchants
()
app/(dashboard)/admin/products/new/page.tsx:81
↓ 1 callersFunctionfetchMerchants
()
app/(dashboard)/admin/merchant/page.tsx:23
↓ 1 callersFunctionfetchOrderData
()
app/(dashboard)/admin/orders/[id]/page.tsx:54
↓ 1 callersFunctionfetchOrderProducts
()
app/(dashboard)/admin/orders/[id]/page.tsx:62
↓ 1 callersFunctionfetchOrders
()
components/AdminOrders.tsx:21
↓ 1 callersFunctionfetchProductData
()
app/(dashboard)/admin/products/[id]/page.tsx:107
↓ 1 callersFunctionformatDate
(dateString: string)
components/BulkUploadHistory.tsx:150
↓ 1 callersFunctionformatTime
(seconds: number)
components/SessionTimeoutTest.tsx:36
↓ 1 callersFunctionformatTimeAgo
(date: string)
components/NotificationCard.tsx:4
↓ 1 callersFunctiongenerateProductTemplate
()
server/scripts/generate-product-template.js:7
↓ 1 callersFunctiongetBatchDetail
(batchId)
server/tests/bulk-upload-smoketest.js:198
↓ 1 callersFunctiongetCategories
()
server/tests/test-create-product.js:58
↓ 1 callersFunctiongetPriorityBadge
(priority: NotificationPriority)
components/NotificationCard.tsx:63
↓ 1 callersFunctiongetStatusCodeFromPrismaError
(error)
server/utills/errorHandler.js:89
↓ 1 callersFunctiongetStatusIcon
(status: string)
components/BulkUploadHistory.tsx:134
↓ 1 callersMethodgetTableData
(tableName)
server/scripts/migration-validator.js:81
↓ 1 callersFunctiongetTypeColor
(type: NotificationType)
components/NotificationCard.tsx:48
↓ 1 callersFunctiongetTypeIcon
(type: NotificationType)
components/NotificationCard.tsx:33
↓ 1 callersFunctiongetUserByEmail
()
components/Header.tsx:61
↓ 1 callersFunctiongetUserByEmail
()
components/modules/wishlist/index.tsx:33
↓ 1 callersFunctiongetWishlistByUserId
(id: string)
components/Header.tsx:39
↓ 1 callersFunctiongetWishlistByUserId
(id: string)
components/modules/wishlist/index.tsx:13
↓ 1 callersFunctionhandleDeleteClick
(batchId: string, fileName: string)
components/BulkUploadHistory.tsx:70
↓ 1 callersFunctionhandleLogout
()
components/HeaderTop.tsx:24
↓ 1 callersFunctionhandlePrismaError
(error)
server/utills/errorHandler.js:34
↓ 1 callersFunctionhandleRangeWLabelsValue
(e: React.ChangeEvent<HTMLInputElement>)
components/RangeWithLabels.tsx:20
↓ 1 callersFunctionhandleRemoveItem
(id: string)
components/modules/cart/index.tsx:16
↓ 1 callersFunctionhandleServerError
(error: unknown, res: any, context?: string)
utils/errorHandler.ts:191
↓ 1 callersFunctionhandleStatusFilter
(status: string)
app/notifications/page.tsx:93
↓ 1 callersFunctionhandleTypeFilter
(type: string)
app/notifications/page.tsx:84
↓ 1 callersFunctionimproveCategoryText
(text: string)
app/shop/[[...slug]]/page.tsx:15
↓ 1 callersFunctioninsertDemoData
()
utils/insertDemoData.js:230
↓ 1 callersFunctioninsertDemoData
()
server/utills/insertDemoData.js:241
↓ 1 callersFunctionisAdmin
()
utils/auth.ts:4
↓ 1 callersFunctionisBrowser
()
helpers/is-browser.ts:1
↓ 1 callersFunctionisValidEmail
(email: string)
app/register/page.tsx:21
↓ 1 callersFunctionlistBatches
()
server/tests/bulk-upload-smoketest.js:185
↓ 1 callersFunctionlistUsers
()
server/listUsers.js:6
↓ 1 callersFunctionlogError
(error, context = "")
server/utills/errorHandler.js:13
↓ 1 callersFunctionmakeUserAdmin
()
server/makeUserAdmin.js:6
↓ 1 callersFunctionparseCsvBufferToRows
(buffer)
server/services/bulkUploadService.js:39
next →1–100 of 320, ranked by callers