Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/aadeshkulkarni/figuringout
/ functions
Functions
86 in github.com/aadeshkulkarni/figuringout
⨍
Functions
86
◇
Types & classes
12
↓ 39 callers
Function
cn
(...inputs: ClassValue[])
lib/utils.ts:4
↓ 6 callers
Function
formatDate
(date: { toLocaleString: (arg0: string, arg1: { weekday: string; year: string; month: string; day: string; hou
app/lib/util.ts:1
↓ 6 callers
Function
usePost
()
app/contexts/PostProvider.tsx:53
↓ 3 callers
Function
usePosts
()
app/contexts/PostsProvider.tsx:45
↓ 2 callers
Function
fetchPostById
(postId: string)
app/actions/posts.ts:58
↓ 2 callers
Function
getAllPosts
()
app/contexts/PostsProvider.tsx:19
↓ 2 callers
Function
getPostById
(postId: string)
app/contexts/PostProvider.tsx:19
↓ 1 callers
Function
fetchPosts
()
app/actions/posts.ts:9
↓ 1 callers
Function
fetchSearchSuggestions
()
app/actions/users.ts:3
↓ 1 callers
Function
init
()
components/post/Post.tsx:17
↓ 1 callers
Function
registerServiceWorker
()
components/pwa/PushNotificationManager.tsx:31
↓ 1 callers
Function
sendNotification
(message: string)
app/actions/pwa.ts:28
↓ 1 callers
Function
subscribeUser
(sub: PushSubscription)
app/actions/pwa.ts:14
↓ 1 callers
Function
unsubscribeUser
()
app/actions/pwa.ts:21
↓ 1 callers
Function
urlBase64ToUint8Array
(base64String: string)
components/pwa/PushNotificationManager.tsx:6
Function
CommandDialog
({ children, ...props }: CommandDialogProps)
components/ui/command.tsx:28
Function
CommandShortcut
({ className, ...props }: React.HTMLAttributes<HTMLSpanElement>)
components/ui/command.tsx:129
Function
CommentMenu
({ isAuthor })
components/comments/CommentMenu.tsx:15
Function
Comments
()
components/comments/Comments.tsx:24
Function
CreateComment
({ postId, total })
components/comments/CreateComment.tsx:27
Function
CreatePost
({ openOnLoad = false, children}: { openOnLoad?: boolean, children?: React.ReactElement })
components/posts/CreatePost.tsx:24
Function
DialogFooter
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>)
components/ui/dialog.tsx:70
Function
DialogHeader
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>)
components/ui/dialog.tsx:56
Function
DropdownMenuShortcut
({ className, ...props }: React.HTMLAttributes<HTMLSpanElement>)
components/ui/dropdown-menu.tsx:171
Function
Footer
()
components/Footer.tsx:4
Function
GET
()
app/api/post/route.ts:7
Function
GET
(request: Request, { params }: { params: Promise<{ slug: string }> })
app/api/post/like/[postId]/route.ts:7
Function
GET
(request: Request, { params }: { params: Promise<{ slug: string }> })
app/api/post/comment/[postId]/route.ts:7
Function
GoBack
()
components/GoBack.tsx:8
Function
Header
()
components/Header.tsx:18
Function
Home
()
app/page.tsx:9
Function
InstallPrompt
()
components/pwa/InstallPrompt.tsx:8
Function
LandingLayout
({ children }: { children: React.ReactNode })
app/(policies)/layout.tsx:4
Function
Login
()
app/login/page.tsx:6
Function
Nav
()
components/Header.tsx:30
Function
NoPosts
()
components/posts/Post.tsx:94
Function
POST
(req: Request)
app/api/post/route.ts:18
Function
POST
(request: Request)
app/api/post/comment/route.ts:8
Function
Page
({ params }: { params: Promise<{ postId: string }> })
app/post/[postId]/page.tsx:4
Function
PoliciesPage
()
app/(policies)/policies/page.tsx:4
Function
Post
({ postId }: { postId: string })
components/post/Post.tsx:14
Function
Post
({ _id, user, content, likes, comments, createdAt })
components/posts/Post.tsx:15
Function
PostActions
()
components/post/PostActions.tsx:9
Function
PostContent
()
components/post/PostContent.tsx:5
Function
PostFooter
()
components/post/PostFooter.tsx:6
Function
PostHeader
()
components/post/PostHeader.tsx:9
Function
PostList
()
components/posts/PostList.tsx:7
Function
PostListShimmer
()
components/shimmer/PostListShimmer.tsx:4
Function
PostMenu
({ isAuthor })
components/posts/PostMenu.tsx:16
Function
PostProvider
({ value, children }: { value: Object; children: React.ReactNode })
app/contexts/PostProvider.tsx:16
Function
PostSchimmer
()
components/posts/Post.tsx:102
Function
PostShimmer
()
components/shimmer/PostShimmer.tsx:4
Function
PostsProvider
({ children }: { children: React.ReactNode })
app/contexts/PostsProvider.tsx:16
Function
Providers
({ children }: { children: React.ReactNode })
app/providers.tsx:7
Function
PushNotificationManager
()
components/pwa/PushNotificationManager.tsx:19
Function
RootLayout
({ children, }: Readonly<{ children: React.ReactNode; }>)
app/layout.tsx:26
Function
Search
()
app/search/page.tsx:18
Function
SheetFooter
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>)
components/ui/sheet.tsx:91
Function
SheetHeader
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>)
components/ui/sheet.tsx:77
Function
SideNavbar
()
components/SideNavbar.tsx:41
Function
Signup
()
app/signup/page.tsx:16
Function
TermsAndConditions
()
app/(policies)/terms/page.tsx:5
Function
ThemeProvider
({ children, ...props }: ThemeProviderProps)
components/ThemeProvider.tsx:7
Function
ThemeToggle
()
components/ThemeToggle.tsx:15
Function
Toaster
({ ...props }: ToasterProps)
components/ui/sonner.tsx:8
Function
addComment
(postId: string, comment: string)
app/contexts/PostProvider.tsx:31
Function
createPost
()
components/posts/CreatePost.tsx:41
Function
editPost
(e: React.MouseEvent<HTMLElement>)
components/posts/PostMenu.tsx:18
Function
headers
()
next.config.ts:21
Function
likePost
(event:any)
components/post/PostActions.tsx:17
Function
likePost
(e: React.MouseEvent<HTMLButtonElement>)
components/posts/Post.tsx:24
Function
likePost
(postId: string)
app/contexts/PostProvider.tsx:24
Function
likePost
(userId: string)
app/contexts/PostsProvider.tsx:24
Function
manifest
()
app/manifest.ts:3
Function
onChange
(e: ChangeEvent<HTMLInputElement>)
app/signup/page.tsx:20
Function
onContentChange
(e: ChangeEvent<HTMLTextAreaElement>)
components/comments/CreateComment.tsx:36
Function
onContentChange
(e: ChangeEvent<HTMLTextAreaElement>)
components/posts/CreatePost.tsx:33
Function
page
()
app/activity/page.tsx:4
Function
page
()
app/profile/page.tsx:3
Function
page
()
app/create/page.tsx:8
Function
page
()
app/(policies)/contact/page.tsx:4
Function
page
()
app/(policies)/privacy/page.tsx:5
Function
sendTestNotification
()
components/pwa/PushNotificationManager.tsx:56
Function
signup
()
app/signup/page.tsx:23
Function
subscribeToPush
()
components/pwa/PushNotificationManager.tsx:40
Function
unsubscribeFromPush
()
components/pwa/PushNotificationManager.tsx:50