MCPcopy Create free account

hub / github.com/CottonCandyZ/bangumi-electron / functions

Functions1,380 in github.com/CottonCandyZ/bangumi-electron

↓ 305 callersFunctioncn
(...inputs: ClassValue[])
app/bangumi/src/renderer/src/lib/utils.ts:7
↓ 41 callersFunctionget
(name: Parameters<typeof app.getPath>[0])
app/bangumi/src/main/env.ts:44
↓ 29 callersFunctionuseSession
()
app/bangumi/src/renderer/src/data/hooks/session.ts:59
↓ 27 callersFunctionisRoutePathActive
(pathname: string, to: string)
app/bangumi/src/renderer/src/modules/panel/left-panel/panels/mono-list-panel/shared.tsx:190
↓ 25 callersFunctionuseAuthQuery
({ queryKey, queryFn, queryProps, needKeepPreviousData, ...props }: { queryKey: QueryKeyWithRoot
app/bangumi/src/renderer/src/data/hooks/factory.ts:161
↓ 22 callersFunctionnextFetchWithOptionalAuth
( request: Parameters<typeof nextFetch>[0], options?: JsonFetchOptions, )
app/bangumi/src/renderer/src/data/fetch/config/base.ts:127
↓ 21 callersFunctionuseInfinityQueryOptionalAuth
({ queryKey, queryFn, queryProps, qFLimit, enabled = true, needKeepPreviousData = true, refetchP
app/bangumi/src/renderer/src/data/hooks/factory.ts:323
↓ 18 callersFunctionisEmpty
(str: string)
app/bangumi/src/renderer/src/lib/utils/string.ts:1
↓ 17 callersFunctionsetOpen
(open: boolean)
app/bangumi/src/renderer/src/modules/dialog/sheet/collection-sheet.tsx:11
↓ 17 callersFunctionsetState
(nextState: AppUpdateState)
app/bangumi/src/main/update.ts:218
↓ 16 callersFunctionrenderBBCode
(content: string)
app/bangumi/src/renderer/src/lib/utils/bbcode.ts:141
↓ 16 callersFunctionusePageScrollRestoreReady
(ready: boolean)
app/bangumi/src/renderer/src/components/scroll/page-scroll-wrapper.tsx:32
↓ 16 callersFunctionuseQueryKeyWithUserId
(queryKey: QueryKeyWithRoot, ...tail: QueryKey)
app/bangumi/src/renderer/src/data/hooks/factory.ts:458
↓ 16 callersFunctionuseSubjectInfoQuery
({ subjectId: id, dbStaleTime, enabled, needKeepPreviousData, }: { subjectId: SubjectId | undefined
app/bangumi/src/renderer/src/data/hooks/db/subject.ts:14
↓ 14 callersFunctionCOLLECTION_TYPE_MAP
(subjectType: SubjectType)
app/bangumi/src/renderer/src/lib/utils/map.ts:32
↓ 14 callersFunctionformatRecentUnixTime
( timestamp: number, { absoluteFormat = 'YYYY-MM-DD HH:mm', recentLimitSeconds = 60 * 60 * 24 * 2,
app/bangumi/src/renderer/src/lib/utils/date.ts:12
↓ 14 callersFunctionreadUpdateChannel
()
app/bangumi/src/main/update.ts:48
↓ 13 callersFunctionclamp
(value: number, min: number = -Infinity, max: number = Infinity)
app/bangumi/src/renderer/src/lib/utils/tool.ts:19
↓ 12 callersFunctiontrimInfiniteQueryPagesIf
({ pageLimit = DEFAULT_INFINITE_REFETCH_PAGE_LIMIT, queryClient, queryKey, shouldTrim, }: { pageLimi
app/bangumi/src/renderer/src/data/hooks/infinite-query.ts:5
↓ 12 callersFunctionuseMutationMustAuth
({ mutationKey, mutationFn, ...props }: { mutationFn: Fn<P, R> } & Omit<UseMutationOptions<R, Error, P
app/bangumi/src/renderer/src/data/hooks/factory.ts:433
↓ 11 callersFunctionuseMonoListPanelOpenHandler
( tab: MonoListPanelTabInput, options?: OpenMonoListPanelOptions, )
app/bangumi/src/renderer/src/modules/panel/left-panel/open-mono-list-panel.tsx:42
↓ 10 callersFunctionsetPage
(nextValue: number)
app/bangumi/src/renderer/src/components/big-pagination.tsx:20
↓ 9 callersFunctionappendOptionalArg
(commandArgs, name, value)
app/bangumi/scripts/velopack-mac.mjs:245
↓ 9 callersFunctionappendOptionalArg
(commandArgs, name, value)
app/bangumi/scripts/velopack-win.mjs:139
↓ 9 callersFunctionfail
(message)
app/bangumi/scripts/with-electron-node-path.mjs:48
↓ 9 callersFunctionisHotkeyEnabled
(hotkey: unknown)
app/bangumi/src/renderer/src/lib/shortcut.ts:51
↓ 9 callersFunctionuseSearchParams
(onChange?: () => void)
app/bangumi/src/renderer/src/hooks/use-search-params.ts:23
↓ 8 callersFunctioncreateBaseState
( status: AppUpdateState['status'], channel = readUpdateChannel(), )
app/bangumi/src/main/update.ts:204
↓ 8 callersFunctiongetUpdateSourceUrl
()
app/bangumi/src/main/update.ts:52
↓ 8 callersFunctionisRecord
(value: unknown)
app/bangumi/src/shared/config.ts:99
↓ 8 callersFunctionresetOffset
(params: URLSearchParams)
app/bangumi/src/renderer/src/hooks/use-search-params.ts:63
↓ 8 callersFunctionuseActivePanelItemRef
(active: boolean)
app/bangumi/src/renderer/src/modules/panel/left-panel/panels/mono-list-panel/shared.tsx:177
↓ 8 callersFunctionuseSessionUsername
()
app/bangumi/src/renderer/src/data/hooks/session.ts:63
↓ 7 callersFunctioncreateQueryKeyWithUserId
( queryKey: QueryKeyWithRoot, userId: QueryKey[number], ...tail: QueryKey )
app/bangumi/src/renderer/src/data/hooks/factory.ts:42
↓ 7 callersFunctionfail
(message)
app/bangumi/scripts/velopack-mac.mjs:322
↓ 7 callersFunctiongetOrCreateMainWindow
()
app/bangumi/src/main/index.ts:47
↓ 7 callersFunctionsetPresented
( window: BrowserWindow, presented: boolean, options?: { restorePreviousFocus?: boolean }, )
app/bangumi/src/main/command-window.ts:83
↓ 7 callersFunctiontrimInfiniteQueryPages
({ pageLimit = DEFAULT_INFINITE_REFETCH_PAGE_LIMIT, queryClient, queryKey, }: { pageLimit?: number q
app/bangumi/src/renderer/src/data/hooks/infinite-query.ts:25
↓ 7 callersFunctionuseIsRouteActive
(to: string)
app/bangumi/src/renderer/src/modules/panel/left-panel/panels/mono-list-panel/shared.tsx:172
↓ 6 callersFunctionfail
(message)
app/bangumi/scripts/velopack-win.mjs:191
↓ 6 callersFunctiongetIconPath
()
app/bangumi/src/main/helper.ts:14
↓ 6 callersFunctiongetUpdateStateFromAsset
( status: AppUpdateState['status'], asset: VelopackAsset, channel = readUpdateChannel(), )
app/bangumi/src/main/update.ts:223
↓ 6 callersFunctionnonEmpty
(value: T[] | undefined)
app/bangumi/src/renderer/src/data/fetch/api/serach.ts:4
↓ 6 callersFunctionnormalizeAppConfig
(value: unknown)
app/bangumi/src/shared/config.ts:125
↓ 6 callersFunctionparseRangeFilter
(values: string[])
app/bangumi/src/renderer/src/modules/panel/right-panel/panels/search-filter-panel.tsx:330
↓ 6 callersFunctionsplitRelationLabels
(relation?: string)
app/bangumi/src/renderer/src/lib/utils/relation.ts:1
↓ 6 callersFunctionuseMonoListPanelRefreshAction
({ disabled, onRefresh, refreshing, tabId, }: { disabled?: boolean onRefresh: () => Promise<unknow
app/bangumi/src/renderer/src/modules/panel/left-panel/panels/mono-list-panel/use-panel-refresh-action.ts:5
↓ 6 callersFunctionwithUpdatePath
(text: string, label: string, value?: string)
app/bangumi/src/renderer/src/modules/main/settings/about.tsx:226
↓ 5 callersFunctioncreateUpdateManager
(sourceUrl = getUpdateSourceUrl(), channel = readUpdateChannel())
app/bangumi/src/main/update.ts:107
↓ 5 callersFunctiondialogAtomFactory
()
app/bangumi/src/renderer/src/state/utils.ts:5
↓ 5 callersFunctionfinish
(value: string | Error)
app/bangumi/src/main/tipc/turnstile.ts:38
↓ 5 callersFunctiongetIndexDisplayTitle
(index: { id: number; title: string })
app/bangumi/src/renderer/src/modules/common/index-title.ts:1
↓ 5 callersFunctiongetSubjectMergeKey
(subjectId: number)
app/bangumi/src/renderer/src/modules/main/mono/content.tsx:310
↓ 5 callersFunctiongetVelopackChannel
(channel = readUpdateChannel())
app/bangumi/src/main/update.ts:62
↓ 5 callersFunctionlimitTimelineItems
(items: T[], limit: number | undefined)
app/bangumi/src/renderer/src/modules/common/user/timeline.tsx:492
↓ 5 callersFunctionnormalizeShortcut
(key: keyof AppConfig['shortcuts'])
app/bangumi/src/shared/config.ts:131
↓ 5 callersFunctionrange
(start: number, end: number, padded = false)
app/bangumi/src/renderer/src/components/comment/dynamic-smile.tsx:92
↓ 5 callersFunctionreadAppConfig
()
app/bangumi/src/main/tipc/config.ts:17
↓ 5 callersFunctionuseAppConfig
()
app/bangumi/src/renderer/src/state/app-config.ts:37
↓ 5 callersFunctionuseCarousel
()
app/bangumi/src/renderer/src/components/ui/carousel.tsx:33
↓ 5 callersFunctionuseMutationSubjectCollection
({ mutationKey, onSuccess, onMutate, onSettled, onError, }: ApiMutationOptionsWithoutToken<typeof Ad
app/bangumi/src/renderer/src/data/hooks/api/collection.ts:188
↓ 5 callersFunctionuseStateHook
({ key }: { key: string })
app/bangumi/src/renderer/src/hooks/use-cache-state.ts:4
↓ 4 callersFunctionapiFetchWithOptionalAuth
( request: Parameters<typeof apiFetch>[0], options?: JsonFetchOptions, )
app/bangumi/src/renderer/src/data/fetch/config/base.ts:102
↓ 4 callersFunctioncanReact
(target: ReactionTarget | undefined)
app/bangumi/src/renderer/src/data/fetch/api/reaction.ts:39
↓ 4 callersMethodexpire
()
app/bangumi/src/renderer/src/lib/utils/error.ts:37
↓ 4 callersFunctionfail
(message)
app/bangumi/scripts/with-github-token.mjs:52
↓ 4 callersFunctiongetHotkeyForHook
(hotkey: unknown)
app/bangumi/src/renderer/src/lib/shortcut.ts:47
↓ 4 callersFunctiongetPackagesDir
(packageId = VELOPACK_PACKAGE_ID)
app/bangumi/src/main/update.ts:182
↓ 4 callersFunctiongetUrlAttr
(attrs?: Record<string, unknown>)
app/bangumi/src/renderer/src/lib/utils/bbcode.ts:163
↓ 4 callersFunctionhasDraggedFile
(event: React.DragEvent)
app/bangumi/src/renderer/src/modules/main/settings/index.tsx:48
↓ 4 callersFunctionhasVisibleCommentContent
(comment: Comment)
app/bangumi/src/renderer/src/components/comment/comment-box.tsx:165
↓ 4 callersFunctionisCollectionEpisode
( episodes: Episode[] | CollectionEpisode[], )
app/bangumi/src/renderer/src/modules/common/episodes/grid/hover-content.tsx:16
↓ 4 callersFunctionmergeAppConfig
( base: AppConfig = DEFAULT_APP_CONFIG, patch: AppConfigPatch = {}, )
app/bangumi/src/shared/config.ts:102
↓ 4 callersFunctionnormalizeHotkeyValue
(hotkey: unknown)
app/bangumi/src/renderer/src/lib/shortcut.ts:43
↓ 4 callersFunctionnormalizeImageUrl
(url: string | undefined)
app/bangumi/src/renderer/src/data/fetch/api/community.ts:296
↓ 4 callersFunctionrange
(start: number, end: number, padded = false)
app/bangumi/src/renderer/src/components/comment/bangumi-smile.tsx:146
↓ 4 callersFunctionrefreshMenu
()
app/bangumi/src/main/tray.ts:47
↓ 4 callersFunctionrun
(command, commandArgs, options = {})
app/bangumi/scripts/velopack-mac.mjs:298
↓ 4 callersFunctionunlinkIfExists
(filePath: string)
app/bangumi/src/main/update.ts:497
↓ 4 callersFunctionuseFormField
()
app/bangumi/src/renderer/src/components/ui/form.tsx:43
↓ 4 callersFunctionuseQuerySubjectCollection
({ subjectId, username, enabled, needKeepPreviousData, }: { subjectId: SubjectId | undefined usern
app/bangumi/src/renderer/src/data/hooks/api/collection.ts:169
↓ 4 callersFunctionuseRecentGroupTopicsQuery
({ enabled, mode = 'all', limit = 20, refetchPageLimit, }: { enabled?: boolean mode?: 'all' | 'joi
app/bangumi/src/renderer/src/data/hooks/api/community.ts:144
↓ 4 callersFunctionuseTheme
()
app/bangumi/src/renderer/src/modules/wrapper/theme-wrapper.tsx:92
↓ 4 callersFunctionwrite
(level: LogLevel, scope: string, message: string, data?: unknown)
app/bangumi/src/renderer/src/lib/logger.ts:31
↓ 3 callersFunctionanimateFromTo
(begin: number, end: number)
app/bangumi/src/renderer/src/components/carousel/big-carousel.tsx:62
↓ 3 callersFunctionappPath
()
app/bangumi/src/main/env.ts:36
↓ 3 callersFunctionappendAuthHeader
(options: { headers?: HeadersInit })
app/bangumi/src/renderer/src/data/fetch/config/base.ts:46
↓ 3 callersFunctioncalculatePopSizePosition
( pop: DOMRect, hover: DOMRect, viewMargins: ViewMargins = { top: 8, left: 8, right: 8, bottom: 8 }, i
app/bangumi/src/renderer/src/components/hover-pop-card/utils.ts:56
↓ 3 callersFunctioncanEditReply
(target: ReplyTarget)
app/bangumi/src/renderer/src/data/fetch/api/reply.ts:131
↓ 3 callersFunctioncheckForUpdates
()
app/bangumi/src/main/update.ts:583
↓ 3 callersFunctioncreateRangeFilter
(value: RangeValue)
app/bangumi/src/renderer/src/modules/panel/right-panel/panels/search-filter-panel.tsx:336
↓ 3 callersFunctionflushBufferedLogs
()
app/bangumi/src/main/lib/logger.ts:71
↓ 3 callersFunctionflushPendingOpen
()
app/bangumi/src/main/command-window.ts:191
↓ 3 callersFunctionformatBuildTime
(value?: string)
app/bangumi/src/renderer/src/modules/main/settings/about.tsx:182
↓ 3 callersFunctionformatHotkeyForDisplay
(hotkey: unknown)
app/bangumi/src/renderer/src/lib/shortcut.ts:55
↓ 3 callersFunctiongetErrorMessage
(error: unknown)
app/bangumi/src/main/update.ts:252
↓ 3 callersFunctiongetIndexRelatedMeta
(item: IndexRelated)
app/bangumi/src/renderer/src/modules/common/index-related-meta.ts:28
↓ 3 callersFunctiongetMonoPreviewImage
(mono: { images?: MonoImageSet })
app/bangumi/src/renderer/src/modules/common/mono-image.ts:8
↓ 3 callersFunctiongetPackagePath
(asset?: VelopackAsset | null)
app/bangumi/src/main/update.ts:194
↓ 3 callersFunctiongetPanelEpisode
(item: Episode | CollectionEpisode)
app/bangumi/src/renderer/src/modules/panel/left-panel/panels/mono-list-panel/subject-content.tsx:334
next →1–100 of 1,380, ranked by callers