MCPcopy Create free account

hub / github.com/adrianhajdin/threads / functions

Functions72 in github.com/adrianhajdin/threads

↓ 34 callersFunctioncn
(...inputs: ClassValue[])
lib/utils.ts:5
↓ 18 callersFunctionconnectToDB
()
lib/mongoose.ts:5
↓ 9 callersFunctionfetchUser
(userId: string)
lib/actions/user.actions.ts:12
↓ 5 callersFunctiondispatch
(action: Action)
components/ui/use-toast.ts:134
↓ 4 callersFunctionuseFormField
()
components/ui/form.tsx:42
↓ 2 callersFunctionaddToRemoveQueue
(toastId: string)
components/ui/use-toast.ts:59
↓ 2 callersFunctionfetchCommunities
({ searchString = "", pageNumber = 1, pageSize = 20, sortBy = "desc", }: { searchString?: string;
lib/actions/community.actions.ts:106
↓ 2 callersFunctionfetchUsers
({ userId, searchString = "", pageNumber = 1, pageSize = 20, sortBy = "desc", }: { userId: string;
lib/actions/user.actions.ts:98
↓ 2 callersFunctionhandleNavigation
(type: string)
components/shared/Pagination.tsx:16
↓ 1 callersFunctionaddCommentToThread
( threadId: string, commentText: string, userId: string, path: string )
lib/actions/thread.actions.ts:203
↓ 1 callersFunctionaddMemberToCommunity
( communityId: string, memberId: string )
lib/actions/community.actions.ts:162
↓ 1 callersFunctioncreateCommunity
( id: string, name: string, username: string, image: string, bio: string, createdById: string // C
lib/actions/community.actions.ts:11
↓ 1 callersFunctioncreateThread
({ text, author, communityId, path }: Params )
lib/actions/thread.actions.ts:58
↓ 1 callersFunctiondeleteCommunity
(communityId: string)
lib/actions/community.actions.ts:272
↓ 1 callersFunctiondeleteThread
(id: string, path: string)
lib/actions/thread.actions.ts:104
↓ 1 callersFunctiondismiss
()
components/ui/use-toast.ts:151
↓ 1 callersFunctionfetchAllChildThreads
(threadId: string)
lib/actions/thread.actions.ts:92
↓ 1 callersFunctionfetchCommunityDetails
(id: string)
lib/actions/community.actions.ts:52
↓ 1 callersFunctionfetchCommunityPosts
(id: string)
lib/actions/community.actions.ts:73
↓ 1 callersFunctionfetchPosts
(pageNumber = 1, pageSize = 20)
lib/actions/thread.actions.ts:11
↓ 1 callersFunctionfetchThreadById
(threadId: string)
lib/actions/thread.actions.ts:160
↓ 1 callersFunctionfetchUserPosts
(userId: string)
lib/actions/user.actions.ts:65
↓ 1 callersFunctionformatDateString
(dateString: string)
lib/utils.ts:16
↓ 1 callersFunctiongenId
()
components/ui/use-toast.ts:28
↓ 1 callersFunctiongetActivity
(userId: string)
lib/actions/user.actions.ts:156
↓ 1 callersFunctiongetUser
()
app/api/uploadthing/core.ts:10
↓ 1 callersFunctionhandleImage
( e: ChangeEvent<HTMLInputElement>, fieldChange: (value: string) => void )
components/forms/AccountProfile.tsx:85
↓ 1 callersFunctionisBase64Image
(imageData: string)
lib/utils.ts:10
↓ 1 callersFunctionreducer
(state: State, action: Action)
components/ui/use-toast.ts:75
↓ 1 callersFunctionremoveUserFromCommunity
( userId: string, communityId: string )
lib/actions/community.actions.ts:204
↓ 1 callersFunctionupdateCommunityInfo
( communityId: string, name: string, username: string, image: string )
lib/actions/community.actions.ts:245
↓ 1 callersFunctionupdateUser
({ userId, bio, name, path, username, image, }: Params)
lib/actions/user.actions.ts:34
↓ 1 callersFunctionuseToast
()
components/ui/use-toast.ts:172
FunctionAccountProfile
({ user, btnTitle }: Props)
components/forms/AccountProfile.tsx:40
FunctionBottombar
()
components/shared/Bottombar.tsx:9
FunctionComment
({ threadId, currentUserImg, currentUserId }: Props)
components/forms/Comment.tsx:29
FunctionCommunityCard
({ id, name, username, imgUrl, bio, members }: Props)
components/cards/CommunityCard.tsx:17
FunctionDeleteThread
({ threadId, currentUserId, authorId, parentId, isComment, }: Props)
components/forms/DeleteThread.tsx:16
FunctionFormField
({ ...props }: ControllerProps<TFieldValues, TName>)
components/ui/form.tsx:29
FunctionHome
({ searchParams, }: { searchParams: { [key: string]: string | undefined }; })
app/(root)/page.tsx:10
FunctionLeftSidebar
()
components/shared/LeftSidebar.tsx:10
FunctionMenubarShortcut
({ className, ...props }: React.HTMLAttributes<HTMLSpanElement>)
components/ui/menubar.tsx:203
FunctionPOST
(request: Request)
app/api/webhook/clerk/route.ts:37
FunctionPage
({ searchParams, }: { searchParams: { [key: string]: string | undefined }; })
app/(root)/communities/page.tsx:11
FunctionPage
({ params }: { params: { id: string } })
app/(root)/communities/[id]/page.tsx:13
FunctionPage
()
app/(root)/activity/page.tsx:8
FunctionPage
({ params }: { params: { id: string } })
app/(root)/profile/[id]/page.tsx:13
FunctionPage
()
app/(root)/profile/edit/page.tsx:9
FunctionPage
({ searchParams, }: { searchParams: { [key: string]: string | undefined }; })
app/(root)/search/page.tsx:10
FunctionPage
()
app/(root)/create-thread/page.tsx:7
FunctionPage
()
app/(auth)/sign-up/[[...sign-up]]/page.tsx:3
FunctionPage
()
app/(auth)/onboarding/page.tsx:7
FunctionPage
()
app/(auth)/sign-in/[[...sign-in]]/page.tsx:3
FunctionPagination
({ pageNumber, isNext, path }: Props)
components/shared/Pagination.tsx:13
FunctionPostThread
({ userId }: Props)
components/forms/PostThread.tsx:27
FunctionProfileHeader
({ accountId, authUserId, name, username, imgUrl, bio, type, }: Props)
components/shared/ProfileHeader.tsx:14
FunctionRightSidebar
()
components/shared/RightSidebar.tsx:8
FunctionRootLayout
({ children, }: { children: React.ReactNode; })
app/(root)/layout.tsx:20
FunctionRootLayout
({ children, }: { children: React.ReactNode; })
app/(auth)/layout.tsx:16
FunctionSearchbar
({ routeType }: Props)
components/shared/Searchbar.tsx:13
FunctionThreadCard
({ id, currentUserId, parentId, content, author, community, createdAt, comments, isComment,
components/cards/ThreadCard.tsx:31
FunctionThreadsTab
({ currentUserId, accountId, accountType }: Props)
components/shared/ThreadsTab.tsx:41
FunctionToaster
()
components/ui/toaster.tsx:13
FunctionTopbar
()
components/shared/Topbar.tsx:6
FunctionUserCard
({ id, name, username, imgUrl, personType }: Props)
components/cards/UserCard.tsx:16
FunctionformatThreadCount
(count: number)
lib/utils.ts:35
FunctiononSubmit
(values: z.infer<typeof CommentValidation>)
components/forms/Comment.tsx:39
FunctiononSubmit
(values: z.infer<typeof ThreadValidation>)
components/forms/PostThread.tsx:41
FunctiononSubmit
(values: z.infer<typeof UserValidation>)
components/forms/AccountProfile.tsx:57
Functionpage
({ params }: { params: { id: string } })
app/(root)/thread/[id]/page.tsx:12
Functiontoast
({ ...props }: Toast)
components/ui/use-toast.ts:143
Functionupdate
(props: ToasterToast)
components/ui/use-toast.ts:146