MCPcopy Create free account

hub / github.com/ahmedibra28/NEXTjs-boilerplate / functions

Functions167 in github.com/ahmedibra28/NEXTjs-boilerplate

↓ 94 callersFunctioncn
(...inputs: ClassValue[])
lib/utils.ts:4
↓ 67 callersFunctiongetErrorResponse
( error: string | null = null, status: number = 500, prismaError?: Prisma.PrismaClientKnownRequestError,
lib/helpers.ts:17
↓ 24 callersFunctionApiCall
({ key, method, url }: ApiHookParams)
services/api.tsx:69
↓ 23 callersFunctionisAuth
( req: AuthenticatedRequest, permissionKey?: string, )
lib/auth.ts:281
↓ 13 callersFunctionmeta
({ title, description, openGraphImage, author = 'Ahmed Ibrahim', ...props }: Props & Metadata)
lib/meta.ts:13
↓ 12 callersFunctiontoast
({ ...props }: Toast)
components/ui/use-toast.ts:145
↓ 8 callersFunctionencryptPassword
({ password }: { password: string })
lib/helpers.ts:118
↓ 8 callersFunctiongetEnvVariable
(key: string)
lib/helpers.ts:6
↓ 6 callersFunctionuseAuthorization
(requiredPermission?: string)
hooks/useAuthorization.ts:5
↓ 6 callersFunctionuseToast
()
components/ui/use-toast.ts:174
↓ 5 callersFunctionapi
(method: Method, url: string, obj: any = {})
services/api.tsx:14
↓ 5 callersFunctiondispatch
(action: Action)
components/ui/use-toast.ts:136
↓ 4 callersFunctionsortMenuItems
(items: T[])
lib/access-control.ts:33
↓ 4 callersFunctionuseFormField
()
components/ui/form.tsx:42
↓ 3 callersFunctiongetBackupDirectory
()
lib/helpers.ts:136
↓ 3 callersFunctionvalidatePasswordStrength
(password: string)
lib/helpers.ts:123
↓ 2 callersFunctionaddToRemoveQueue
(toastId: string)
components/ui/use-toast.ts:61
↓ 2 callersFunctionbuildClientAccess
(clientPermissions: ClientPermissionRecord[])
lib/access-control.ts:40
↓ 2 callersFunctioncapitalizeFirstLetter
(string: string)
components/navigation.tsx:49
↓ 2 callersFunctiongetDevice
({ req, hasIp = false, }: { req: Request hasIp?: boolean })
lib/getDevice.ts:4
↓ 2 callersFunctiongetUserAccessBundle
(userId: string)
lib/auth.ts:26
↓ 2 callersFunctionhandleEmailFire
(data: Payload)
lib/email-helper.ts:19
↓ 2 callersFunctionhandleFiles
(files: FileList)
components/drag-drop-upload.tsx:69
↓ 2 callersFunctionhandleLogout
()
components/navigation.tsx:34
↓ 2 callersFunctionremoveFile
(url: string)
components/drag-drop-upload.tsx:205
↓ 2 callersFunctionrevokeAffectedSessions
(permissionId: string)
app/api/permissions/[id]/route.ts:12
↓ 2 callersFunctionrevokeAffectedSessions
(clientPermissionId: string)
app/api/client-permissions/[id]/route.ts:12
↓ 1 callersFunctionResetPassword
({ company, url, clientName, osName, ip, }: ResetPasswordProps)
emails/ResetPassword.tsx:22
↓ 1 callersFunctionVerifyAccount
({ company, url, clientName, osName, ip, }: VerifyAccountProps)
emails/VerifyAccount.tsx:22
↓ 1 callersFunctionclientPermissionsList
( items: IClientPermission[], )
app/(site)/admin/roles/page.tsx:214
↓ 1 callersFunctioncurrency
(amount: number, decimal = 3)
lib/currency.ts:1
↓ 1 callersFunctiondeleteHandler
(id: any)
app/(site)/admin/users/page.tsx:148
↓ 1 callersFunctiondeleteHandler
(id: any)
app/(site)/admin/permissions/page.tsx:147
↓ 1 callersFunctiondeleteHandler
(id: any)
app/(site)/admin/roles/page.tsx:242
↓ 1 callersFunctiondeleteHandler
(id: any)
app/(site)/admin/client-permissions/page.tsx:150
↓ 1 callersFunctiondismiss
()
components/ui/use-toast.ts:153
↓ 1 callersFunctiondownloadDBHandler
(db: string)
app/(site)/admin/database/page.tsx:57
↓ 1 callersFunctioneditHandler
(item: IUserRow)
app/(site)/admin/users/page.tsx:164
↓ 1 callersFunctioneditHandler
(item: IPermission)
app/(site)/admin/permissions/page.tsx:160
↓ 1 callersFunctioneditHandler
(item: IRoleRow)
app/(site)/admin/roles/page.tsx:256
↓ 1 callersFunctioneditHandler
(item: ClientPermissionWithKey)
app/(site)/admin/client-permissions/page.tsx:166
↓ 1 callersFunctionexecute
(dbName: string)
app/api/databases/backup/route.ts:67
↓ 1 callersFunctionfetchData
()
hooks/useInterval.ts:11
↓ 1 callersFunctionformatRole
(role: { id: string name: string type: string description: string | null createdAt: Date permissio
app/api/roles/route.ts:37
↓ 1 callersFunctionformatRole
(role: { id: string name: string type: string description: string | null createdAt: Date permissio
app/api/roles/[id]/route.ts:40
↓ 1 callersFunctiongenId
()
components/ui/use-toast.ts:30
↓ 1 callersFunctiongetAvatarUrl
(name: string)
lib/auth.ts:15
↓ 1 callersFunctionhandleCheckboxChange
(index: number)
components/dropdown-checkbox.tsx:19
↓ 1 callersFunctionmatchPassword
({ enteredPassword, password, }: { enteredPassword: string password: string })
lib/helpers.ts:108
↓ 1 callersFunctionnormalizeStatus
(status: string, emailVerified: boolean)
lib/auth.ts:21
↓ 1 callersFunctionnumberFormat
(amount: number)
lib/numberFormat.ts:1
↓ 1 callersFunctionpermissionsList
(items: IPermission[])
app/(site)/admin/roles/page.tsx:190
↓ 1 callersFunctionreducer
(state: State, action: Action)
components/ui/use-toast.ts:77
↓ 1 callersFunctionslugifyRoleType
(value: string)
lib/access-control.ts:183
↓ 1 callersFunctionsocketIO
(socket)
server/socket.js:10
↓ 1 callersFunctionsyncSystemAccessControl
()
lib/access-control.ts:106
↓ 1 callersFunctionuploadFiles
(files: File[])
components/drag-drop-upload.tsx:107
↓ 1 callersFunctionuploadObject
(fileName: string, data: any, bucket: string)
app/api/uploads/route.ts:7
↓ 1 callersFunctionuseColumns
({ editHandler, deleteHandler, }: { editHandler: ( data: { id: string name: string
app/(site)/admin/users/components/columns.tsx:23
↓ 1 callersFunctionuseColumns
({ editHandler, deleteHandler, }: { editHandler: (data: { id: string name: string key: strin
app/(site)/admin/permissions/components/columns.tsx:22
↓ 1 callersFunctionuseColumns
({ editHandler, deleteHandler, }: { editHandler: ( item: { id: string name: string
app/(site)/admin/roles/components/columns.tsx:22
↓ 1 callersFunctionuseColumns
({ editHandler, deleteHandler, }: { editHandler: (data: { id: string name: string key: strin
app/(site)/admin/client-permissions/components/columns.tsx:22
FunctionAccountVerificationLayout
({ children, }: { children: React.ReactNode })
app/(site)/auth/verification/[token]/layout.tsx:10
FunctionAlertDialogFooter
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>)
components/ui/alert-dialog.tsx:62
FunctionAlertDialogHeader
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>)
components/ui/alert-dialog.tsx:48
FunctionApiInfiniteCall
({ key, url }: ApiHookParams)
services/api.tsx:113
FunctionBadge
({ className, variant, ...props }: BadgeProps)
components/ui/badge.tsx:30
FunctionCapitalize
(str: string)
lib/capitalize.ts:1
FunctionClientPermissionsLayout
({ children, }: { children: React.ReactNode })
app/(site)/admin/client-permissions/layout.tsx:10
FunctionCommandDialog
({ children, ...props }: CommandDialogProps)
components/ui/command.tsx:28
FunctionCommandShortcut
({ className, ...props }: React.HTMLAttributes<HTMLSpanElement>)
components/ui/command.tsx:129
FunctionConfirmDialog
({ onClick, message, }: { onClick: any message?: string })
components/confirm-dialog.tsx:11
FunctionConfirmDialog
({ onClick, message, }: { onClick: any message?: string })
components/confirm.tsx:11
FunctionCustomFormField
({ form, name, label, hasLabel = true, createLabel, ...props }: FormProps)
components/custom-form.tsx:91
FunctionDELETE
(req: Request, props: Params)
app/api/users/[id]/route.ts:145
FunctionDELETE
(req: Request, props: Params)
app/api/permissions/[id]/route.ts:90
FunctionDELETE
(req: Request, props: Params)
app/api/roles/[id]/route.ts:127
FunctionDELETE
(req: Request, props: Params)
app/api/client-permissions/[id]/route.ts:100
FunctionDataTable
({ columns, data, setPage, setLimit, limit, setQ, q, isPending, search, importExcelHandler
components/data-table.tsx:51
FunctionDatabasesLayout
({ children, }: { children: React.ReactNode })
app/(site)/admin/database/layout.tsx:10
FunctionDialogFooter
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>)
components/ui/dialog.tsx:70
FunctionDialogHeader
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>)
components/ui/dialog.tsx:56
FunctionDragDropUpload
({ multiple = false, fileType, onUploadSuccess, existingFiles = [], onFileDelete, })
components/drag-drop-upload.tsx:18
FunctionDrawer
({ shouldScaleBackground = true, ...props }: React.ComponentProps<typeof DrawerPrimitive.Root>)
components/ui/drawer.tsx:8
FunctionDrawerFooter
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>)
components/ui/drawer.tsx:69
FunctionDrawerHeader
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>)
components/ui/drawer.tsx:58
FunctionDropdownCheckbox
({ visibleColumns, setVisibleColumns, }: { visibleColumns: { header: string; active: boolean }[] setVi
components/dropdown-checkbox.tsx:10
FunctionDropdownMenuShortcut
({ className, ...props }: React.HTMLAttributes<HTMLSpanElement>)
components/ui/dropdown-menu.tsx:171
FunctionFooter
()
components/footer.tsx:5
FunctionForgotPasswordLayout
({ children, }: { children: React.ReactNode })
app/(site)/auth/forgot-password/layout.tsx:10
FunctionFormButton
({ label, className, type = 'submit', onClick, icon, loading, ...props }: FormButtonProp & Butto
components/custom-form.tsx:305
FunctionFormContainer
({ children, title, margin = '' })
components/form-container.tsx:10
FunctionFormField
({ ...props }: ControllerProps<TFieldValues, TName>)
components/ui/form.tsx:29
FunctionFormView
({ form, loading, handleSubmit, submitHandler, label, height, width, edit, }: Props)
components/form-view.tsx:27
FunctionFormatNumber
({ value, isCurrency, }: { value: number isCurrency: boolean })
components/format-number.tsx:4
FunctionGET
(req: Request)
app/api/users/route.ts:11
FunctionGET
(req: Request, props: Params)
app/api/users/[id]/route.ts:17
FunctionGET
(req: AuthenticatedRequest)
app/api/permissions/route.ts:8
FunctionGET
(req: AuthenticatedRequest)
app/api/profile/route.ts:6
FunctionGET
(req: Request)
app/api/seeds/route.ts:7
next →1–100 of 167, ranked by callers