MCPcopy Create free account

hub / github.com/MaxLeiter/Drift / functions

Functions265 in github.com/MaxLeiter/Drift

↓ 84 callersFunctioncn
(...inputs: ClassValue[])
src/lib/cn.ts:4
↓ 28 callersFunctionsetToast
(toast: ToastProps)
src/app/components/toasts/index.tsx:19
↓ 19 callersFunctionparseQueryParam
(query: string | string[] | undefined)
src/lib/server/parse-query-param.ts:5
↓ 12 callersFunctionuseToasts
()
src/app/components/toasts/index.tsx:18
↓ 11 callersFunctionwithMethods
(methods: string[], handler: NextApiHandler)
src/lib/api-middleware/with-methods.ts:5
↓ 10 callersFunctionverifyApiUser
( req: NextApiRequest, res: NextApiResponse )
src/lib/server/verify-api-user.ts:15
↓ 9 callersFunctionfetchWithUser
(url: string, options: RequestInit = {})
src/app/lib/fetch-with-user.ts:6
↓ 9 callersFunctiongetMetadata
({ title, description = "A self-hostable clone of GitHub Gist", hidden = false, overrides }: { overrides?
src/app/lib/metadata.tsx:50
↓ 7 callersFunctionbyteToMB
(bytes: number)
src/lib/byte-to-mb.ts:1
↓ 7 callersFunctionuseSessionSWR
(swrOpts: SWRConfiguration = {})
src/lib/use-session-swr.ts:4
↓ 6 callersFunctiongetPostById
( postId: ServerPost["id"], options?: GetPostByIdOptions )
src/lib/server/prisma.ts:258
↓ 6 callersFunctiongetSession
(params?: Params)
src/lib/server/session.ts:10
↓ 6 callersFunctiononSubmit
(e: React.FormEvent<HTMLFormElement>)
src/app/(drift)/settings/components/sections/profile.tsx:32
↓ 5 callersFunctiongetCurrentUser
(params?: Params)
src/lib/server/session.ts:15
↓ 5 callersFunctiononSubmit
(e)
src/app/components/password-modal/index.tsx:33
↓ 5 callersFunctionredirect
({ url, baseUrl })
src/lib/server/auth.ts:253
↓ 5 callersFunctionserverPostToClientPost
( post: ServerPostWithFiles | ServerPostWithFilesAndAuthor )
src/lib/server/prisma.ts:107
↓ 4 callersFunctiongetHtmlFromFile
({ content, title }: { content: string title: string })
src/lib/server/get-html-from-drift-file.ts:5
↓ 4 callersFunctionthrowIfUndefined
( key: keyof Environment, justWarn?: boolean )
src/lib/config.ts:33
↓ 4 callersFunctionundefinedIfHidden
(value: T)
src/app/lib/metadata.tsx:61
↓ 3 callersFunctioncreatePost
( response: GistResponse, override: Partial<AdditionalPostInformation> = {} )
src/lib/gist/__tests__-backup/index.ts:38
↓ 3 callersFunctiondeletePost
(id: string)
src/app/(drift)/admin/components/tables.tsx:119
↓ 3 callersFunctiongenerateUUID
()
src/lib/generate-uuid.ts:1
↓ 3 callersFunctiongetAllPosts
( options?: Prisma.PostFindManyArgs )
src/lib/server/prisma.ts:272
↓ 3 callersFunctionisCredentialEnabled
()
src/lib/server/auth-props.ts:21
↓ 2 callersFunctioncopyToClipboard
(text: string)
src/app/lib/copy-to-clipboard.ts:1
↓ 2 callersFunctiondeleteUser
(id: string | undefined)
src/pages/api/user/[userId]/index.ts:63
↓ 2 callersFunctiongetAuthProviders
()
src/lib/server/auth-props.ts:25
↓ 2 callersFunctiongetDuration
(timeAgoInSeconds: number)
src/app/lib/time-ago.ts:13
↓ 2 callersFunctiongetPostsByUser
( userId: ServerUser["id"], withFiles?: boolean )
src/lib/server/prisma.ts:165
↓ 2 callersFunctiongetRequiresPasscode
()
src/app/api/auth/requires-passcode/route.ts:4
↓ 2 callersFunctiongetURLFriendlyTitle
(title: string)
src/app/lib/get-url-friendly-title.tsx:1
↓ 2 callersFunctiongetUserById
( userId: ServerUser["id"], selects?: Prisma.UserFindUniqueArgs["select"] )
src/lib/server/prisma.ts:199
↓ 2 callersFunctiongetWelcomeContent
()
src/pages/api/welcome.ts:9
↓ 2 callersFunctionisAllowedVisibilityForWebpage
( visibility: ServerPost["visibility"] )
src/lib/constants.ts:5
↓ 2 callersFunctionisGithubEnabled
()
src/lib/server/auth-props.ts:9
↓ 2 callersFunctionisKeycloakEnabled
()
src/lib/server/auth-props.ts:13
↓ 2 callersFunctionresponseToGist
(response: GistResponse)
src/lib/gist/fetch.ts:47
↓ 2 callersFunctionsearchPosts
( query: string, { userId }: { userId?: ServerUser["id"] } = {} )
src/lib/server/prisma.ts:307
↓ 2 callersFunctionstringToBoolean
(str: EnvironmentValue)
src/lib/config.ts:22
↓ 2 callersFunctiontimeAgo
(date: Date)
src/app/lib/time-ago.ts:31
↓ 2 callersFunctiontimeUntil
(date: Date)
src/app/lib/time-ago.ts:41
↓ 1 callersFunctionHeaderButtons
()
src/app/components/header/buttons.tsx:117
↓ 1 callersFunctionbounce
()
src/app/components/cmdk/index.tsx:39
↓ 1 callersFunctionconfig
(env: Environment)
src/lib/config.ts:21
↓ 1 callersFunctioncreateApiToken
( userId: ServerUser["id"], name: string )
src/lib/server/prisma.ts:347
↓ 1 callersFunctioncreatePostFromGist
( { userId, visibility, password, expiresAt }: AdditionalPostInformation, gist: Gist )
src/lib/gist/transform.ts:13
↓ 1 callersFunctioncreateToken
(newToken: string)
src/app/hooks/swr/use-api-tokens.ts:27
↓ 1 callersFunctioncredentialsOptions
()
src/lib/server/auth.ts:15
↓ 1 callersFunctiondeleteUser
(id: string)
src/app/(drift)/admin/components/tables.tsx:27
↓ 1 callersFunctioneditACopy
()
src/app/components/post-list/list-item.tsx:49
↓ 1 callersFunctionexpireToken
(id: string)
src/app/hooks/swr/use-api-tokens.ts:50
↓ 1 callersFunctionfetchHTML
()
src/app/(drift)/(posts)/components/preview/index.tsx:26
↓ 1 callersFunctionfetchPosts
()
src/app/components/post-list/index.tsx:52
↓ 1 callersFunctionfileType
()
src/lib/server/get-html-from-drift-file.ts:24
↓ 1 callersFunctiongenerateApiToken
()
src/lib/server/prisma.ts:343
↓ 1 callersFunctiongetAllUsers
( options?: Prisma.UserFindManyArgs )
src/lib/server/prisma.ts:289
↓ 1 callersFunctiongetFileById
(fileId: ServerFile["id"])
src/lib/server/prisma.ts:365
↓ 1 callersFunctiongetIconFromFilename
(filename: string)
src/app/components/post-list/list-item.tsx:57
↓ 1 callersFunctiongetPasscode
()
src/app/(drift)/(auth)/signup/page.tsx:7
↓ 1 callersFunctiongetPosts
()
src/app/components/cmdk/pages/posts.tsx:20
↓ 1 callersFunctiongetProviderIcon
(provider: string)
src/app/(drift)/(auth)/components/index.tsx:187
↓ 1 callersFunctiongetTitleForPostCopy
(title?: string)
src/app/lib/get-title-for-post-copy.ts:17
↓ 1 callersFunctionhandleDelete
( req: NextApiRequest, res: NextApiResponse<unknown> )
src/pages/api/post/[id].ts:121
↓ 1 callersFunctionhandleGet
(req: NextApiRequest, res: NextApiResponse<unknown>)
src/pages/api/post/[id].ts:10
↓ 1 callersFunctionhandlePost
(req: NextApiRequest, res: NextApiResponse<unknown>)
src/pages/api/post/index.ts:10
↓ 1 callersFunctionhandlePut
(req: NextApiRequest, res: NextApiResponse<unknown>)
src/pages/api/post/[id].ts:74
↓ 1 callersFunctionhandler
(req: NextRequest)
src/pages/api/og.tsx:57
↓ 1 callersFunctiononClose
()
src/app/(drift)/(posts)/post/[id]/components/post-files/password-modal-wrapper.tsx:68
↓ 1 callersFunctiononRevoke
(tokenId: string)
src/app/(drift)/settings/components/sections/api-keys.tsx:61
↓ 1 callersFunctionparseAndCheckAuthToken
(req: NextApiRequest)
src/lib/server/verify-api-user.ts:34
↓ 1 callersFunctionproviders
()
src/lib/server/auth.ts:40
↓ 1 callersFunctionremoveDoc
(i: number)
src/app/(drift)/(posts)/new/components/new.tsx:224
↓ 1 callersFunctionreplaceLastInString
( string: string, search: string, replace: string )
src/app/lib/get-title-for-post-copy.ts:1
↓ 1 callersFunctionupdateDocContent
(i: number)
src/app/(drift)/(posts)/new/components/new.tsx:216
↓ 1 callersFunctionupdateDocTitle
(i: number)
src/app/(drift)/(posts)/new/components/new.tsx:208
↓ 1 callersFunctionuseApiTokens
({ userId, initialTokens }: UseApiTokens)
src/app/hooks/swr/use-api-tokens.ts:18
↓ 1 callersFunctionvalidNodeEnvs
(str: EnvironmentValue)
src/lib/config.ts:60
↓ 1 callersFunctionviewParentClick
()
src/app/components/post-list/list-item.tsx:53
FunctionAPIKeys
({ tokens: initialTokens }: { tokens?: SerializedApiToken[] })
src/app/(drift)/settings/components/sections/api-keys.tsx:19
FunctionAdminLayout
({ children }: { children: React.ReactNode })
src/app/(drift)/admin/layout.tsx:5
FunctionAdminLoading
()
src/app/(drift)/admin/loading.tsx:4
FunctionAdminPage
()
src/app/(drift)/admin/page.tsx:12
FunctionAlertDialogFooter
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>)
src/app/components/alert-dialog.tsx:73
FunctionAlertDialogHeader
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>)
src/app/components/alert-dialog.tsx:59
FunctionAlertDialogPortal
({ className, children, ...props }: AlertDialogPrimitive.AlertDialogPortalProps)
src/app/components/alert-dialog.tsx:13
FunctionAuth
({ page, credentialAuth, requiresServerPassword, authProviders }: { page: "signup" | "signin" credential
src/app/(drift)/(auth)/components/index.tsx:18
FunctionAvatar
()
src/app/(drift)/author/[username]/page.tsx:40
FunctionBadge
({ className, variant, ...props }: BadgeProps)
src/app/components/badges/badge.tsx:29
FunctionButtonDropdown
( props )
src/app/components/button-dropdown/index.tsx:15
FunctionButtonGroup
({ children, verticalIfMobile, ...props }: { verticalIfMobile?: boolean } & React.HTMLAttributes<HTMLDivEl
src/app/components/button-group/index.tsx:3
FunctionCalendar
({ className, classNames, showOutsideDays = true, ...props }: CalendarProps)
src/app/components/calendar.tsx:12
FunctionCmdK
()
src/app/components/cmdk/index.tsx:10
FunctionCommandShortcut
({ className, ...props }: React.HTMLAttributes<HTMLSpanElement>)
src/app/components/cmdk/cmdk.tsx:137
FunctionCreatedAgoBadge
({ createdAt }: { createdAt: string | Date })
src/app/components/badges/created-ago-badge/index.tsx:9
FunctionDatePicker
({ expiresAt, setExpiresAt }: { expiresAt?: Date setExpiresAt: React.Dispatch<React.SetStateAction<Date |
src/app/components/date-picker.tsx:12
FunctionDescription
({ onChange, description }: props)
src/app/(drift)/(posts)/new/components/description/index.tsx:12
FunctionDialogFooter
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>)
src/app/components/dialog.tsx:79
FunctionDialogHeader
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>)
src/app/components/dialog.tsx:65
FunctionDialogPortal
({ className, children, ...props }: DialogPrimitive.DialogPortalProps)
src/app/components/dialog.tsx:13
next →1–100 of 265, ranked by callers