MCPcopy Index your code

hub / github.com/aeharding/voyager / functions

Functions1,705 in github.com/aeharding/voyager

↓ 100 callersMethodmock
Set (or replace) the response for an endpoint. Last call wins.
e2e/fixtures/mocks.ts:79
↓ 91 callersMethodsetSetting
( key: T, value: SettingValueTypes[T], specificity?: { /** * Note: user_handle can be
src/services/db/index.ts:674
↓ 89 callersFunctiongetHandle
(item: Pick<Community, "name" | "ap_id" | "local">)
src/helpers/lemmy.ts:49
↓ 77 callersFunctioncx
(...args: (string | Falsey)[])
src/helpers/css.ts:19
↓ 63 callersFunctionsetLoading
(loading: boolean)
src/features/comment/inTree/Comments.tsx:106
↓ 56 callersFunctionuseAppToast
()
src/helpers/useAppToast.tsx:23
↓ 51 callersFunctionuseBuildGeneralBrowseLink
()
src/helpers/routes.ts:7
↓ 45 callersMethodaddEventListener
(listener: BooleanChangeListener)
src/helpers/BooleanWatcher.ts:23
↓ 45 callersFunctionformatNumber
( number: number, roundingThreshold = 1_000, )
src/helpers/number.ts:1
↓ 37 callersMethodremoveEventListener
(listener: BooleanChangeListener)
src/helpers/BooleanWatcher.ts:27
↓ 36 callersFunctionapplyStyle
Apply a style and return the result in the `|`-marker visual format.
src/features/shared/markdown/editing/markdownStyle.test.ts:55
↓ 36 callersMethodwaitForCall
Wait until a matching request is recorded, then return the latest.
e2e/fixtures/mocks.ts:91
↓ 33 callersFunctionuseOptimizedIonRouter
()
src/helpers/useOptimizedIonRouter.tsx:22
↓ 32 callersFunctionpagedResponse
(items: T[], nextPage: string | null = null)
e2e/fixtures/builders.ts:181
↓ 32 callersFunctionuseClient
()
src/helpers/useClient.ts:4
↓ 30 callersMethodfocus
()
src/features/shared/markdown/editing/controller.ts:19
↓ 29 callersFunctionpresentLoginIfNeeded
(reauthAccountHandle?: string)
src/features/auth/SharedDialogContext.tsx:152
↓ 27 callersFunctionisPost
(item: PostView | CommentView)
src/helpers/lemmy.ts:348
↓ 26 callersFunctionmakeNotification
( kind: NotificationView["notification"]["kind"], data: NotificationView["data"], )
src/features/inbox/inboxItemContents.test.tsx:43
↓ 24 callersFunctionisLemmyError
(error: unknown, lemmyErrorValue: LemmyErrorValue)
src/helpers/lemmyErrors.ts:5
↓ 23 callersFunctiondecorate
Parse the decorator's actual output (what the editor renders).
src/features/shared/markdown/editing/rich/markdownDecorator.test.ts:18
↓ 21 callersFunctiontexts
(scope: HTMLElement, selector: string)
src/features/shared/markdown/editing/rich/markdownDecorator.test.ts:41
↓ 20 callersFunctiondismiss
()
src/features/shared/DynamicDismissableModal.tsx:113
↓ 20 callersFunctiongetRemoteHandle
( item: Pick<Community, "name" | "ap_id" | "local">, )
src/helpers/lemmy.ts:53
↓ 20 callersMethodgetSelection
Normalized so `start <= end`.
src/features/shared/markdown/editing/controller.ts:15
↓ 19 callersFunctionisAndroid
()
src/helpers/device.ts:69
↓ 18 callersFunctionbuildBaseData
(modlog: Modlog)
src/features/moderation/logs/types/shared.ts:5
↓ 18 callersFunctioncommentView
(over: { id: number; content: string; post?: Pick<ReturnType<typeof postView>, "post" | "community" | "c
e2e/fixtures/builders.ts:129
↓ 18 callersMethodgetSetting
( key: T, specificity?: { user_handle?: string; community?: string; }, )
src/services/db/index.ts:618
↓ 18 callersFunctionparseUrl
(url: string, baseUrl?: string)
src/helpers/url.ts:29
↓ 14 callersFunctioncakeDate
(date: string)
src/helpers/date.ts:11
↓ 14 callersFunctiongetClient
(url: string, jwt?: string)
src/services/client.ts:21
↓ 14 callersMethodinsertText
Replace the current selection with text; caret lands after it.
src/features/shared/markdown/editing/controller.ts:18
↓ 14 callersMethodreplace
()
src/setupTests.ts:22
↓ 13 callersFunctiontextOf
(node: ReactNode)
src/features/inbox/inboxItemContents.test.tsx:110
↓ 12 callersFunctionat
(value: string, caret: number, ...rest: [number?, boolean?])
src/features/shared/markdown/editing/listContinuation.test.ts:85
↓ 12 callersFunctionextractLemmyLinkFromPotentialFediRedirectService
( url: string, services = FEDI_REDIRECT_SERVICE_COMPATIBLE_HOSTS, )
src/features/share/fediRedirect.ts:34
↓ 12 callersMethodgetValue
()
src/features/shared/markdown/editing/controller.ts:13
↓ 12 callersFunctionisInstalled
()
src/helpers/device.ts:31
↓ 12 callersFunctionpostView
(over: { id: number; name: string; body?: string; url?: string; creator: ReturnType<typeof person>;
e2e/fixtures/builders.ts:68
↓ 11 callersFunctionfindLoneImage
( markdown: string, )
src/helpers/markdown.ts:8
↓ 11 callersFunctionkeywordFoundInSentence
( keyword: string, sentence: string, )
src/helpers/lemmy.ts:296
↓ 11 callersFunctionpostHasFilteredWebsite
( post: Post, websites: string[], )
src/helpers/lemmy.ts:276
↓ 11 callersFunctionpresent
()
src/features/community/MoreActions.tsx:57
↓ 11 callersFunctionuseMode
()
src/helpers/threadiverse.ts:13
↓ 11 callersFunctionwithin
(ancestor: string)
src/features/shared/markdown/editing/rich/markdownDecorator.ts:150
↓ 10 callersMethodcalls
All recorded requests for `"METHOD /api/v4/path"` (query ignored).
e2e/fixtures/mocks.ts:84
↓ 10 callersFunctiongetSite
(existingSite?: GetSiteResponse)
src/features/auth/siteSlice.ts:175
↓ 10 callersFunctionmockThread
(api: MockApi)
e2e/lemmyv1/composing.spec.ts:30
↓ 10 callersMethodsnapshotSelection
* Capture the current selection as the insertion point. Call when a toolbar * interaction begins (pointerdown), before focus leaves the editor — ne
src/features/shared/markdown/editing/controller.ts:25
↓ 10 callersFunctionstopIonicTapClick
()
src/helpers/ionic.ts:86
↓ 10 callersFunctionsv
(variables: CssVariables)
src/helpers/css.ts:4
↓ 10 callersFunctionuseHapticFeedback
()
src/helpers/useHapticFeedback.ts:11
↓ 9 callersFunctioncommentData
(overrides: Record<string, unknown> = {})
src/features/inbox/inboxItemContents.test.tsx:60
↓ 9 callersFunctiongetDepthFromComment
(comment?: Comment)
src/helpers/lemmy.ts:192
↓ 9 callersFunctiongetInboxItemHeader
(item: NotificationView)
src/features/inbox/inboxItemContents.tsx:22
↓ 9 callersFunctionisTouchDevice
()
src/helpers/device.ts:50
↓ 9 callersFunctionmarkNotificationRead
( args: { kind: NotificationDataType; notificationId: number }, read: boolean, )
src/features/inbox/inboxSlice.ts:311
↓ 9 callersFunctionset
(key: string, value: unknown)
src/features/settings/syncStorage.ts:37
↓ 9 callersMethodsetSelection
(start: number, end?: number)
src/features/shared/markdown/editing/controller.ts:16
↓ 9 callersFunctionsetup
(text = "hello world")
src/features/shared/markdown/editing/controller.test.ts:60
↓ 8 callersFunctionget
(key: string)
src/features/settings/syncStorage.ts:31
↓ 8 callersFunctiongetAdminRole
(person: Person | undefined)
src/features/moderation/logs/types/shared.ts:21
↓ 8 callersFunctiongetDefaultServer
()
src/services/app.ts:14
↓ 8 callersFunctiongetInboxItemIcon
(item: NotificationView)
src/features/inbox/inboxItemContents.tsx:191
↓ 8 callersFunctiongetModIcon
(role: ModeratorRole, solid = false)
src/features/moderation/useCanModerate.tsx:89
↓ 8 callersFunctionisAppleDeviceInstallable
()
src/helpers/device.ts:46
↓ 8 callersFunctionisCakeDay
(published: string)
src/helpers/date.ts:27
↓ 8 callersFunctionperson
(over: { id: number; name: string; display_name?: string; })
e2e/fixtures/builders.ts:8
↓ 8 callersFunctionpersonResponse
(subject: ReturnType<typeof person>)
e2e/fixtures/builders.ts:256
↓ 8 callersFunctionsetPostRead
(postId: number)
src/features/post/postSlice.ts:316
↓ 8 callersFunctionsyncMessages
()
src/features/inbox/inboxSlice.ts:197
↓ 8 callersFunctionuseFeedSort
( context: Context, feed?: AnyFeed | undefined, overrideSort?: | VgerSortsByContextByMode[Context]
src/features/feed/sort/useFeedSort.tsx:66
↓ 8 callersFunctionuseFeedSortParams
( context: Context, sort: VgerSortsByContext[Context] | null | undefined, )
src/features/feed/sort/useFeedSort.tsx:192
↓ 7 callersFunctionactionSheetButton
(page: Page, name: string)
e2e/fixtures/ui.ts:8
↓ 7 callersFunctionbgColorToVariable
(bgColor: string)
src/features/settings/appearance/themes/votesTheme/VotesTheme.tsx:45
↓ 7 callersFunctionblocks
(container: HTMLElement)
src/features/shared/markdown/editing/rich/markdownDecorator.test.ts:24
↓ 7 callersFunctionbuildCommunityLink
(community: Community)
src/helpers/appLinkBuilder.ts:5
↓ 7 callersFunctionbuildFediRedirectLink
(fediRedirectHost: string, apId: string)
src/features/share/fediRedirect.ts:26
↓ 7 callersFunctionbuildPostLink
(community: Community, post: Post)
src/helpers/appLinkBuilder.ts:9
↓ 7 callersFunctioncommunity
()
e2e/fixtures/builders.ts:33
↓ 7 callersFunctionfindCurrentPage
()
src/helpers/ionic.ts:13
↓ 7 callersFunctionformatRelativeToNow
( date: Date, ...args: Parameters<typeof formatRelative> extends [unknown, ...infer Rest] ? Rest :
src/features/labels/Ago.tsx:31
↓ 7 callersFunctiongetInstanceFromHandle
(handle: string)
src/features/auth/authSelectors.ts:91
↓ 7 callersFunctiongetModColor
(role: ModeratorRole)
src/features/moderation/useCanModerate.tsx:79
↓ 7 callersFunctiongetSetting
(page: Page, key: string)
e2e/fixtures/db.ts:40
↓ 7 callersFunctiongetVoteErrorMessage
(error: unknown)
src/helpers/lemmyErrors.ts:55
↓ 7 callersFunctiononSubmit
()
src/features/feed/empty/home/StarterPacksModal.tsx:46
↓ 7 callersFunctionpostData
(overrides: Record<string, unknown> = {})
src/features/inbox/inboxItemContents.test.tsx:70
↓ 7 callersFunctionquote
(markdown: string)
src/helpers/markdown.ts:37
↓ 7 callersFunctionreceivedComments
(comments: CommentView[])
src/features/comment/commentSlice.ts:253
↓ 7 callersFunctionupdateConnectedInstance
(state, action: PayloadAction<string>)
src/features/auth/authSlice.ts:138
↓ 6 callersFunctionbuildBaseClientUrl
(url: string)
src/services/client.ts:13
↓ 6 callersFunctionbuildCrosspostBody
(post: Post, includeTitle = true)
src/helpers/lemmy.ts:332
↓ 6 callersFunctioncommunityResponse
()
e2e/fixtures/builders.ts:264
↓ 6 callersFunctioncomposerSubmit
(page: Page)
e2e/lemmyv1/composing.spec.ts:55
↓ 6 callersFunctionel
(scope: HTMLElement, selector: string)
src/features/shared/markdown/editing/rich/markdownDecorator.test.ts:35
↓ 6 callersFunctiongetAllObjectValuesDeep
(obj: any)
src/helpers/object.ts:2
↓ 6 callersFunctiongetCanModerate
( community: Community | boolean | undefined, )
src/features/moderation/useCanModerate.tsx:40
↓ 6 callersFunctiongetDepthFromCommentPath
(path: string)
src/helpers/lemmy.ts:196
next →1–100 of 1,705, ranked by callers