MCPcopy Create free account

hub / github.com/Y80/bmm / functions

Functions544 in github.com/Y80/bmm

↓ 51 callersFunctionrunAction
( actionRes: ActionResult<U, Data>, opts: { okMsg?: string errToast?: { title?: string; hidden?: b
src/utils/client.ts:13
↓ 28 callersFunctiongetAuthedUserId
()
src/lib/auth/index.ts:38
↓ 13 callersFunctionusePageUtil
()
src/hooks/usePageUtil.ts:6
↓ 12 callersFunctioncount
()
src/controllers/User.controller.ts:10
↓ 12 callersFunctionexitWithDbClose
(code = 0)
scripts/utils.mjs:128
↓ 12 callersFunctionfetchHtml
(url: string)
src/utils/fetch-html.ts:10
↓ 12 callersFunctiongetBookmarkHost
(url: string)
src/utils/bookmark-host.ts:10
↓ 10 callersFunctionaction
(...args: ActionArgs)
src/actions/make-action.ts:43
↓ 10 callersFunctioncreatePublicBookmark
(input: { name?: string; url?: string })
src/controllers/tests/bookmark-host-check.test.ts:46
↓ 9 callersMethodcanParse
(err: any)
src/lib/SqlXError.ts:64
↓ 9 callersFunctioncreateFetchNetworkErrorMessage
(error: unknown)
src/utils/http.ts:79
↓ 9 callersFunctionparseAiJsonObject
(text: string, schema: T)
src/lib/ai/json.ts:60
↓ 8 callersFunctionextractArticleFromHtml
(html: string, url: string)
src/utils/extract-article.ts:105
↓ 8 callersFunctionisFetchTimeoutError
(error: unknown)
src/utils/http.ts:71
↓ 8 callersFunctionlimiter
(userId: UserId, tagId?: TagId)
src/controllers/UserTag.controller.ts:47
↓ 8 callersFunctionloadEnv
(options = {})
scripts/utils.mjs:73
↓ 7 callersFunctioncreateHtmlResponse
(body: Buffer, opts?: { status?: number headers?: Record<string, string> effectiveUrl?: string })
src/utils/fetch-html.test.ts:17
↓ 7 callersFunctioncreateValidPassword
()
src/controllers/tests/credentials.test.ts:8
↓ 7 callersFunctiondeclareLocalType
()
scripts/utils.mjs:139
↓ 7 callersFunctionmockFetchStatus
(status: number)
src/controllers/tests/bookmark-host-check.test.ts:37
↓ 7 callersFunctiontestDbConnect
()
scripts/utils.mjs:22
↓ 6 callersFunctiongetBookmarkHostKey
(url: string)
src/controllers/BookmarkHostCheck.controller.ts:65
↓ 6 callersFunctiongetRawConfig
()
src/controllers/AiProvider.controller.ts:120
↓ 6 callersFunctionto
( promise: Promise<T>, errorExt?: object )
src/utils/index.ts:15
↓ 6 callersFunctionuseSlug
()
src/hooks/useSlug.ts:22
↓ 6 callersFunctionuseUserContext
()
src/app/user/ctx.tsx:23
↓ 6 callersFunctionuserLimiter
(userId: UserId, bookmarkId?: BookmarkId)
src/controllers/UserBookmark.controller.ts:45
↓ 5 callersFunctionapplyUrlProxy
(url: string, proxyUrl?: string | null)
src/utils/http.ts:27
↓ 5 callersFunctioncreateBookmarkName
(prefix = 'host-check')
src/controllers/tests/bookmark-host-check.test.ts:29
↓ 5 callersFunctiongenerateAiObject
( params: GenerateAiObjectParams<T> )
src/lib/ai/generateObject.ts:12
↓ 5 callersFunctiongetHeader
(headers: Record<string, string>, name: string)
src/utils/http.ts:66
↓ 5 callersFunctiongetPinyin
(word: string)
src/utils/index.ts:98
↓ 5 callersFunctionmakeActionInput
( input: MakeActionOptionsWithHandler<Args, Data> )
src/actions/make-action.ts:28
↓ 5 callersFunctionnormalizeText
(text = '')
src/utils/extract-article.ts:14
↓ 5 callersFunctionparseSlug
(slug?: string)
src/hooks/useSlug.ts:3
↓ 5 callersFunctionprobeWebsiteIcon
( url: string, opts: { timeout?: number createImage?: () => ProbeImage } = {} )
src/utils/website-icon.ts:30
↓ 5 callersFunctionuseAdminContext
()
src/app/admin/ctx.tsx:25
↓ 4 callersFunctionbatchCreateTags
(num = 5)
tests/db/utils.ts:18
↓ 4 callersFunctionbuildWebsiteIconCandidates
(url: string)
src/utils/website-icon.ts:20
↓ 4 callersFunctioncheckEnvs
()
scripts/utils.mjs:105
↓ 4 callersFunctioncreateBookmarkFilterByKeyword
( table: typeof schema.publicBookmarks | typeof schema.userBookmarks, kw: string )
src/controllers/common.ts:4
↓ 4 callersFunctiongetDisplayName
(user: SelectUser)
src/app/admin/user/list/page.tsx:52
↓ 4 callersFunctiongetTagLinkAttrs
(tag: SelectTag)
src/utils/index.ts:128
↓ 4 callersFunctionpageSpace
(urlOrPath?: 'auto' | (string & {}) | null)
src/utils/index.ts:114
↓ 4 callersFunctionresetProbeState
()
src/components/BookmarkIconDropdown.tsx:160
↓ 4 callersFunctionrobustUrl
(url?: string)
src/utils/index.ts:4
↓ 4 callersFunctiontraverse
(nodes: CategoryNode['nodes'])
src/components/UploadPage/index.tsx:138
↓ 4 callersFunctionupdateTags
(tags)
src/app/user/ctx.tsx:42
↓ 4 callersFunctionupdateTags
(tags)
src/app/admin/ctx.tsx:44
↓ 4 callersFunctionuseIsClient
()
src/hooks/useIsClient.ts:7
↓ 4 callersFunctionuserLimiter
(userId: UserId, id?: number)
src/controllers/UserReadLater.controller.ts:26
↓ 4 callersFunctionvalidateItem
(key: keyof typeof invalidInfos)
src/components/BookmarkSlugPage.tsx:90
↓ 3 callersFunctioncalcForegroundColor
(originColor: string, isDarkBg?: boolean)
src/utils/color.ts:7
↓ 3 callersFunctioncloneThirdPartyIconApiConfigs
(list: ThirdPartyIconApiConfig[])
src/components/BookmarkIconDropdown.tsx:86
↓ 3 callersFunctioncreateProbeImageFactory
( results: Record<string, 'load' | 'error' | 'pending'>, visited: string[] = [] )
src/utils/website-icon.test.ts:89
↓ 3 callersFunctiondbExecute
(sql = '')
scripts/utils.mjs:7
↓ 3 callersFunctionextractAiJsonText
(text: string)
src/lib/ai/extractJsonText.ts:3
↓ 3 callersFunctionfullSetBookmarkToTag
* 完全更新 PublicBookmarkToTag 表,使与 bId 关联关联的 tId 全是 tagIds 中的 id
src/controllers/UserBookmark.controller.ts:28
↓ 3 callersFunctiongetArticleHost
(url: string)
src/app/user/read-later/ClientPage.tsx:57
↓ 3 callersFunctiongetDefaultThirdPartyIconApiConfigs
()
src/components/BookmarkIconDropdown.tsx:90
↓ 3 callersFunctiongetEmptyConfig
()
src/controllers/AiProvider.controller.ts:89
↓ 3 callersFunctionnormalizeCharset
将常见编码名映射为 iconv-lite 支持的名称
src/utils/fetch-html.ts:86
↓ 3 callersFunctiononDone
(_result: boolean)
src/utils/website-icon.ts:101
↓ 3 callersFunctionrenderWideCard
(content: ReactNode)
src/components/HomeBody/components/Banner.tsx:48
↓ 3 callersFunctionresolveThirdPartyIconApiSrc
(srcTemplate: string, host: string)
src/components/BookmarkIconDropdown.tsx:113
↓ 3 callersFunctionsaveConfig
(nextConfig: EditableConfig, okMsg = '配置已保存')
src/app/admin/ai-provider/page.tsx:147
↓ 3 callersFunctionsort
(orders: { id: TagId; order: SelectTag['sortOrder'] }[])
src/controllers/UserTag.controller.ts:143
↓ 3 callersFunctiontestTagNameOrPinyin
( input: string, tag: Partial<Pick<SelectTag, 'name' | 'pinyin'>> )
src/utils/index.ts:74
↓ 3 callersFunctiontoEditableConfig
(config: SafeAiProvidersConfig)
src/app/admin/ai-provider/page.tsx:78
↓ 3 callersFunctiontoSafeConfig
(config: AiProvidersConfig)
src/controllers/AiProvider.controller.ts:93
↓ 3 callersFunctionuseHomePageContext
()
src/components/HomeBody/ctx.ts:12
↓ 3 callersFunctionuseIsDark
()
src/hooks/useIsDark.ts:3
↓ 3 callersFunctionuseOnClickTag
({ tags }: { tags: SelectTag[] })
src/hooks/useOnClickTag.ts:13
↓ 2 callersFunctionanalyzeRelatedTags
(tag: string, tags: string[])
src/lib/ai/index.ts:34
↓ 2 callersFunctionappendHostCheckSummary
( item: T, check: CheckHostResult | null | undefined )
src/controllers/BookmarkHostCheck.controller.ts:105
↓ 2 callersFunctionbackfillBookmarkTable
(db, table, label, getBookmarkHostKey)
scripts/backfill-bookmark-host-keys.mjs:7
↓ 2 callersFunctionchangeColor
(tag: SelectTag)
src/components/TagListPage.tsx:153
↓ 2 callersFunctionchangePageSize
(value: string)
src/components/ui/PaginationControls.tsx:27
↓ 2 callersFunctioncleanup
()
src/utils/website-icon.ts:86
↓ 2 callersFunctioncleanup
({ newline = true } = {})
scripts/reset-user-password.mjs:63
↓ 2 callersFunctioncreateBookmarkHostCheckFilter
( table: { hostKey: any }, status: BookmarkHostCheckFilterStatus )
src/controllers/BookmarkHostCheck.controller.ts:69
↓ 2 callersFunctioncreateFindManyFilters
(query: z.output<typeof findManyBookmarksSchema>)
src/controllers/PublicBookmark.controller.ts:42
↓ 2 callersFunctioncreateFindManyFilters
(query: z.output<typeof findManyBookmarksSchema>, userId: UserId)
src/controllers/UserBookmark.controller.ts:50
↓ 2 callersFunctioncreateTagFilterByKeyword
( table: typeof schema.publicTags | typeof schema.userTags, kw: string )
src/controllers/common.ts:17
↓ 2 callersFunctioncreateThirdPartyIconApiConfig
( value: Partial<Omit<ThirdPartyIconApiConfig, 'id'>> = {} )
src/components/BookmarkIconDropdown.tsx:70
↓ 2 callersFunctioncreateThirdPartyIconApiConfigId
()
src/components/BookmarkIconDropdown.tsx:80
↓ 2 callersFunctiondetectWebsiteIcon
(targetUrl: string)
src/components/BookmarkIconDropdown.tsx:171
↓ 2 callersFunctiondoFetch
(config: FetchRequestConfig)
src/utils/http.ts:41
↓ 2 callersFunctionfindJsonObjectTexts
(text: string)
src/lib/ai/json.ts:7
↓ 2 callersFunctionfullSetBookmarkToTag
(bId: BookmarkId, tagIds: TagId[])
src/controllers/PublicBookmark.controller.ts:28
↓ 2 callersFunctiongetInnerText
* 获取文档的 body.innerText * @param html 网站的 HTML 文档字符串 * @returns <body> 标签的 innerText,通常是在浏览器中用户实际能看到的所有文本
src/lib/ai/payload.ts:8
↓ 2 callersFunctiongetOpenAICompatibleModel
()
src/lib/ai/providers.ts:6
↓ 2 callersFunctiongetPageSizeCacheKey
(pathname: string)
src/components/TagListPage.tsx:37
↓ 2 callersFunctiongetPageSizeCacheKey
(pathname: string)
src/components/BookmarkListPage.tsx:91
↓ 2 callersFunctiongetRemainingTimeout
()
src/controllers/BookmarkHostCheck.controller.ts:133
↓ 2 callersFunctiongetResponseBodyText
(response: FetchResponse)
src/controllers/BookmarkHostCheck.controller.ts:155
↓ 2 callersFunctiongetSelectionKey
(selection: unknown)
src/components/BookmarkListPage.tsx:80
↓ 2 callersFunctioninitGlobalData
(params: InitGlobalDataParams<T>)
src/utils/global-data.ts:14
↓ 2 callersMethodisLibsqlError
(err: any)
src/lib/SqlXError.ts:60
↓ 2 callersMethodisPgError
(err: any)
src/lib/SqlXError.ts:56
next →1–100 of 544, ranked by callers