MCPcopy Create free account

hub / github.com/AnwarHossainSR/nextjs-16-template / functions

Functions50 in github.com/AnwarHossainSR/nextjs-16-template

↓ 9 callersFunctiongetEnvSafely
(envKey: string)
src/env/config.ts:1
↓ 5 callersFunctioncn
(...inputs: ClassValue[])
src/lib/utils.ts:4
↓ 1 callersFunctiongetCurrentYear
()
src/lib/date.ts:31
↓ 1 callersFunctionmain
()
prisma/seed.ts:13
↓ 1 callersFunctionuseFetch
( key: QueryKey, queryFn: () => Promise<any>, options?: Omit<UseQueryOptions<any>, 'queryFn'> )
src/hooks/useAPiCall.ts:9
↓ 1 callersFunctionusePosts
( query: string = '', category?: string, sortBy: string = 'newest' )
src/hooks/usePosts.ts:24
FunctionAvatar
({ src, alt, fallback, className = '' }: any)
src/components/PostCard.tsx:8
FunctionBadge
({ className, variant, ...props }: BadgeProps)
src/components/ui/badge.tsx:29
FunctionCurrentYear
()
src/components/Footer/index.tsx:7
FunctionDashboardPage
()
src/app/dashboard/page.tsx:8
FunctionError
({ error, reset })
src/app/error.tsx:11
FunctionErrorLayout
({ children }: ChildrenProps)
src/layouts/ErrorLayout/ErrorLayout.tsx:10
FunctionGET
(request: Request)
src/app/api/posts/route.ts:5
FunctionHeader
()
src/components/Header/index.tsx:8
FunctionHeading
({ title, subtitle, center })
src/components/Header/Heading.tsx:9
FunctionHome
()
src/app/page.tsx:7
FunctionInput
({ id, label, type = 'text', disabled, formatPrice, register, required, errors, placeholder,
src/components/inputs/index.tsx:22
FunctionLoading
()
src/app/loading.tsx:5
FunctionMainFooter
()
src/components/Footer/index.tsx:12
FunctionMainNavbar
()
src/components/Navbar.tsx:10
FunctionNotFound
({ error }: any)
src/app/not-found.tsx:8
FunctionNotFoundContent
()
src/app/not-found.tsx:16
FunctionPOST
(req: Request)
src/app/api/webhooks/clerk/route.ts:9
FunctionPostCard
({ id, title, excerpt, authorId, authorName, authorImage, createdAt, coverImage, category,
src/components/PostCard.tsx:46
FunctionPostsPage
()
src/app/posts/page.tsx:22
FunctionPreloadedFonts
()
src/components/PreloadFonts/PreloadFonts.tsx:1
FunctionQueryProvider
({ children })
src/providers/query.tsx:12
FunctionRootLayout
({ children }: ChildrenProps)
src/app/layout.tsx:85
FunctionRootLayoutContent
({ children }: ChildrenProps)
src/app/layout.tsx:54
FunctionSignInPage
()
src/app/sign-in/[[...sign-in]]/page.tsx:4
FunctionSignUpPage
()
src/app/sign-up/[[...sign-up]]/page.tsx:3
FunctionSkeleton
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>)
src/components/ui/skeleton.tsx:5
FunctionThemeProvider
({ children, ...props }: any)
src/providers/theme.tsx:7
FunctionThemeToggle
()
src/components/ThemeToggle.tsx:7
FunctionToasterProvider
()
src/providers/ToasterProvider.tsx:5
FunctiondisplayNumbers
(num: number)
src/lib/utils.ts:13
Functionfetcher
(url: string)
src/lib/fetcher.ts:3
FunctiongenerateSlug
(title: string)
prisma/seed.ts:6
FunctiongetDateCompare
(after: Date)
src/lib/date.ts:10
FunctionhandleReset
()
src/app/error.tsx:20
FunctionhandleToggle
()
src/components/Navbar.tsx:14
Functionlistener
()
src/hooks/useMediaQuery.tsx:11
FunctionlogError
(error: Error)
src/lib/logger.ts:39
FunctionlogInfo
(message: string)
src/lib/logger.ts:33
FunctionmyLoader
({ src }: any)
src/lib/utils.ts:8
Functionres
(data: any)
src/hooks/useAPiCall.ts:32
FunctionsetValue
(value: T | ((prop: T) => T))
src/hooks/useLocalStorage.tsx:18
FunctionuseLocalStorage
( key: string, initialValue: T )
src/hooks/useLocalStorage.tsx:5
FunctionuseMediaQuery
(query: string)
src/hooks/useMediaQuery.tsx:3
FunctionuseMutate
( createFn: (data: any) => Promise<any>, options?: Omit<UseMutationOptions<any, Error, any, unknown>, 'mut
src/hooks/useAPiCall.ts:21