MCPcopy Create free account

hub / github.com/Orgnise/webapp / functions

Functions518 in github.com/Orgnise/webapp

↓ 73 callersFunctioncn
(...inputs: ClassValue[])
src/lib/utils.ts:7
↓ 35 callersFunctionuseTeam
()
src/lib/swr/use-team.ts:19
↓ 34 callersFunctioncollections
(client: MongoClient, c: CollectionType)
src/lib/mongodb.ts:14
↓ 34 callersFunctiontoast
({ ...props }: Toast)
src/components/ui/use-toast.ts:140
↓ 32 callersFunctionlog
({ message, type, mention = false, }: { message: string; type?: "alerts" | 'tada' | "errors" | "wait
src/lib/functions/log.ts:8
↓ 26 callersFunctionhandleAndReturnErrorResponse
( err: unknown, headers?: Record<string, string>, )
src/lib/api/errors.ts:174
↓ 25 callersFunctionhasValue
(obj: any)
src/lib/utils.ts:60
↓ 23 callersFunctionuseWorkspaces
()
src/lib/swr/use-workspaces.ts:28
↓ 22 callersMethodtrack
( event: K, properties: EventMap[K], )
src/lib/analytics/interfaces.ts:56
↓ 22 callersFunctionwithTeam
( handler: WithTeamHandler, { requiredPlan = ["free", "pro", "business", "enterprise"], re
src/lib/auth/team.ts:204
↓ 19 callersFunctionuseToast
()
src/components/ui/use-toast.ts:169
↓ 18 callersFunctionfetcher
( input: RequestInfo, init?: RequestInit, )
src/lib/fetcher.ts:6
↓ 16 callersFunctiondisplayToast
({ title, description, variant = "success", }: { title: string; description: string; variant?: "su
src/lib/swr/use-collections.ts:350
↓ 13 callersFunctionuseCollections
()
src/lib/swr/use-collections.ts:37
↓ 12 callersFunctionsignIn
({ account, profile, user }: any)
src/lib/auth/auth.ts:128
↓ 10 callersFunctioncheckWorkspacePermissions
( role: WorkspaceRole | undefined, permission: WorkspacePermission, )
src/lib/constants/workspace-role.ts:54
↓ 10 callersFunctionuseAnalytics
()
src/lib/analytics/useAnalytics.ts:11
↓ 10 callersFunctionwithWorkspace
( handler: WithWorkspaceHandler, { requiredPlan = DEFAULT_REQUIRED_PLANS, requiredTeamRole = DEFAU
src/lib/auth/workspace.ts:47
↓ 9 callersFunctionerrorSchemaFactory
( code: z.infer<typeof ErrorCode>, description: string, )
src/lib/api/errors.ts:194
↓ 9 callersFunctionrandomId
(length: number = 21)
src/lib/utils.ts:133
↓ 8 callersFunctiongetNextPlan
(currentPlanName?: string | null)
src/lib/constants/pricing.ts:254
↓ 8 callersFunctionwithSession
(handler: WithSessionHandler)
src/lib/auth/session.ts:34
↓ 7 callersMethodNOT_FOUND
(message: string)
src/lib/api/errors.ts:79
↓ 7 callersMethoddelete
(key: string)
src/lib/storage.ts:61
↓ 7 callersFunctionsendEmailV2
({ identifier, subject, text, react, }: { identifier: string | Address | Array<string | Address> | u
emails/index.ts:42
↓ 7 callersFunctionuseUsage
()
src/lib/hooks/use-usage.ts:21
↓ 6 callersFunctiongenerateSlug
({ title, didExist = async () => false, suffixLength, }: { title: string; didExist?: (val: string) =
src/lib/utils.ts:92
↓ 6 callersMethodtrackQuery
(collection: string, operation: string)
src/lib/db/query-optimizer.ts:39
↓ 6 callersFunctionuseTeams
()
src/lib/swr/use-teams.ts:18
↓ 5 callersFunctionbuildDomain
(subdomain?: string, staging = false)
src/lib/constants/constants.tsx:20
↓ 5 callersFunctiondispatch
(action: Action)
src/components/ui/use-toast.ts:131
↓ 5 callersFunctiongetPlanFromPriceId
(priceId: string)
src/lib/constants/pricing.ts:244
↓ 5 callersFunctiontimeAgo
( timestamp: Date | null, { withAgo, }: { withAgo?: boolean; } = {}, )
src/lib/utility/datetime.ts:75
↓ 5 callersFunctionupdateWorkspace
( workspace: UpdateWorkspace, workspaceSlug: string, )
src/lib/swr/use-workspaces.ts:41
↓ 4 callersFunctioncapitalize
(str?: string | null)
src/lib/functions/capitalize.ts:1
↓ 4 callersFunctioncheckPermissions
( role: TeamRole | undefined, permission: TeamPermission, )
src/lib/constants/team-role.ts:93
↓ 4 callersFunctioncreateCollection
(collection: typeof CreateCollectionSchema._type)
src/lib/swr/use-collections.ts:60
↓ 4 callersFunctiondisplayToast
({ title, description, variant, duration }: any)
src/app/(dashboard)/[team_slug]/providers.tsx:113
↓ 4 callersFunctiongetTeamOwner
(client: MongoClient, teamId: string)
src/lib/api/team.ts:179
↓ 4 callersFunctionqueryParams
({ set, del, replace, getNewPath, arrayDelimiter = ",", }: { set?: Record<string, st
src/lib/hooks/use-router-stuff.ts:26
↓ 4 callersFunctionupdate
(props: ToasterToast)
src/components/ui/use-toast.ts:143
↓ 4 callersMethodupload
(key: string, body: Blob | Buffer | string, opts?: imageOptions)
src/lib/storage.ts:24
↓ 3 callersFunctionaddInCollectionTree
( tree: TreeNode<Collection>[], id: string | undefined | null, newNode: TreeNode<Collection>, )
src/lib/utility/collection-tree-structure.ts:74
↓ 3 callersFunctionconstructMetadata
({ title = `${process.env.NEXT_PUBLIC_APP_NAME} - Orgnise - Create, Collaborate and orgnise.`, description
src/lib/utility/construct-metadata.ts:4
↓ 3 callersFunctionfindInCollectionTree
( tree: TreeNode<Collection>[], predicate: (node: TreeNode<Collection>) => boolean, )
src/lib/utility/collection-tree-structure.ts:128
↓ 3 callersFunctionhandleThemeChange
(newTheme: string)
src/components/ui/theme-switcher.tsx:19
↓ 3 callersFunctionhashToken
( token: string, { noSecret = false, }: { noSecret?: boolean; } = {}, )
src/lib/auth/utils.ts:19
↓ 3 callersFunctionloadIdentity
()
src/lib/analytics/identity.ts:15
↓ 3 callersFunctionremoveFromCollectionTree
( tree: TreeNode<Collection>[], id: string, )
src/lib/utility/collection-tree-structure.ts:105
↓ 3 callersFunctionupdateInCollectionTree
( tree: TreeNode<Collection>[], id: string, update: Partial<Collection>, )
src/lib/utility/collection-tree-structure.ts:48
↓ 3 callersFunctionupdateTeamAsync
({ name, description, slug }: UpdateTeam, teamSlug: string)
src/lib/swr/use-team.ts:70
↓ 3 callersFunctionuseBoardContext
()
src/components/drag-n-drop/board-context.tsx:54
↓ 3 callersFunctionuseUsers
()
src/lib/swr/use-users.ts:13
↓ 2 callersMethodBAD_REQUEST
(message: string)
src/lib/api/errors.ts:87
↓ 2 callersFunctionUpgradeEmail
({ name = "John Doe", email = "john@doe.co", plan = "Pro", }: { name: string | null; email: string;
emails/upgrade-email.tsx:17
↓ 2 callersFunctionaddToRemoveQueue
(toastId: string)
src/components/ui/use-toast.ts:56
↓ 2 callersFunctionbuildLocalDomain
(subdomain?: string, port = "3000")
src/lib/constants/constants.tsx:27
↓ 2 callersFunctioncreateQueryOptimizer
(client: MongoClient)
src/lib/db/query-optimizer.ts:421
↓ 2 callersFunctioncreateTreeFromCollection
( arr: CollectionDbSchema[], )
src/lib/utility/collection-tree-structure.ts:12
↓ 2 callersFunctiondeleteItem
( itemId: string, itemSlug: string, collectionSlug: string, )
src/lib/swr/use-collections.ts:234
↓ 2 callersFunctionfetchDecoratedTeam
(client: MongoClient, teamId: string, userId: string)
src/lib/api/team.ts:9
↓ 2 callersMethodflushQueue
()
src/lib/analytics/providers/mixpanel.ts:122
↓ 2 callersFunctionfromZodError
(error: ZodError)
src/lib/api/errors.ts:114
↓ 2 callersFunctiongenerateSession
(req: Request, client: MongoClient)
src/lib/auth/session.ts:48
↓ 2 callersFunctiongetEnvironment
()
src/lib/constants/constants.tsx:2
↓ 2 callersFunctiongetIndexStats
(client: MongoClient)
src/lib/db/indexes.ts:286
↓ 2 callersMethodgetMetrics
* Get performance metrics for this query session
src/lib/db/query-optimizer.ts:398
↓ 2 callersFunctiongetSearchParams
(url: string)
src/lib/url.ts:1
↓ 2 callersFunctiongetSession
()
src/lib/auth/utils.ts:15
↓ 2 callersFunctionhandleCreateItem
(object = "item" as "item" | "collection")
src/components/team/workspace/left-panel/collection-list.tsx:94
↓ 2 callersMethodidentify
(userId: string, properties?: Record<string, any>)
src/lib/analytics/interfaces.ts:55
↓ 2 callersFunctionisPreview
()
src/lib/constants/constants.tsx:15
↓ 2 callersFunctionisProduction
()
src/lib/constants/constants.tsx:14
↓ 2 callersFunctionlogWorkspaceAccessDenied
* Structured logging for workspace access denials (sanitized for production)
src/lib/auth/workspace.ts:171
↓ 2 callersMethodpage
(path: string, properties?: Record<string, any>)
src/lib/analytics/interfaces.ts:60
↓ 2 callersFunctionparse
(req: NextRequest)
src/lib/utils.ts:164
↓ 2 callersFunctionpluralize
(word: string, count: number)
src/lib/utils.ts:160
↓ 2 callersMethodqueueEvent
(event: QueuedEvent)
src/lib/analytics/providers/mixpanel.ts:57
↓ 2 callersFunctionrender
({ container })
src/components/drag-n-drop/column-card.tsx:181
↓ 2 callersFunctionreorder
(args: z.infer<typeof ReorderCollectionSchema>)
src/lib/swr/use-collections.ts:281
↓ 2 callersMethodreset
()
src/lib/analytics/interfaces.ts:62
↓ 2 callersFunctionuseRouterStuff
()
src/lib/hooks/use-router-stuff.ts:3
↓ 2 callersFunctionuseWorkspaceUsers
()
src/lib/swr/use-workspace-users.ts:19
↓ 2 callersFunctionvalidateAndCreateObjectId
* Validates and creates ObjectId, handling invalid formats gracefully
src/lib/auth/workspace.ts:159
↓ 1 callersFunctionAddMembers
()
src/components/ui/models/add-workspace-members-modal.tsx:86
↓ 1 callersFunctionApiMiddleware
(req: NextRequest)
src/lib/middleware/api.ts:4
↓ 1 callersMethodCONFLICT
(message: string)
src/lib/api/errors.ts:71
↓ 1 callersFunctionFileToBase64
(file: File)
src/components/ui/editor/image-upload.ts:74
↓ 1 callersFunctionLoginLink
({ email = "john@doe.io", url = "http://localhost:3000/api/auth/callback/email?callbackUrl=http%3A%2F%2Fap
emails/login-link.tsx:17
↓ 1 callersFunctionTeamInvite
({ email = "john@doe.io", appName = "Orgnise", url = "http://localhost:8888/api/auth/callback/email?call
emails/team-invite.tsx:17
↓ 1 callersFunctionUpdateItem
(item: Collection, parent: Collection)
src/lib/swr/use-collections.ts:114
↓ 1 callersFunctionWaitingList
()
emails/waitlist.tsx:13
↓ 1 callersFunctionaddMembers
(members: AddWorkspaceMemberProp[])
src/lib/swr/use-workspace-users.ts:33
↓ 1 callersMethodbase64ToArrayBuffer
(base64: string, opts?: imageOptions)
src/lib/storage.ts:69
↓ 1 callersFunctionbuildAndSave
(items: any)
src/components/team/workspace/left-panel/collection-board.tsx:52
↓ 1 callersFunctioncancelSubscription
(customer?: string)
src/lib/stripe/index.ts:14
↓ 1 callersFunctioncheckDevice
()
src/lib/hooks/use-media-query.ts:13
↓ 1 callersFunctioncheckoutSessionCompleted
(event: Stripe.Event, client: MongoClient)
src/app/api/callback/stripe/checkout-session-complete.ts:15
↓ 1 callersFunctionclearIdentity
()
src/lib/analytics/identity.ts:25
↓ 1 callersMethodclearQueue
()
src/lib/analytics/providers/mixpanel.ts:162
next →1–100 of 518, ranked by callers