MCPcopy Create free account

hub / github.com/BITJEBE/nezha-BITJEBE / functions

Functions231 in github.com/BITJEBE/nezha-BITJEBE

↓ 177 callersFunctioncn
(...inputs: ClassValue[])
src/lib/utils.ts:8
↓ 32 callersFunctionformatNezhaInfo
(now: number, serverInfo: NezhaServer)
src/lib/utils.ts:12
↓ 27 callersFunctionformatBytes
(bytes: number, decimals: number = 2)
src/lib/format.ts:1
↓ 10 callersMethodcall
* 自动选择调用方式(优先使用 WebSocket)
src/lib/rpc2.ts:282
↓ 10 callersFunctionnormalizeBillingCurrency
(currency?: unknown)
src/lib/utils.ts:320
↓ 8 callersFunctionformatMoney
(value: number | null, currency: string)
src/components/AssetSummaryWidget.tsx:82
↓ 8 callersFunctionuuidToNumber
(uuid: string)
src/lib/utils.ts:519
↓ 7 callersFunctionSharedClient
()
src/hooks/use-rpc2.tsx:22
↓ 7 callersFunctiongetKomariNodes
(force = false)
src/lib/utils.ts:903
↓ 6 callersFunctionformatRelativeTime
(timestamp: number)
src/lib/utils.ts:232
↓ 6 callersFunctiongetDaysBetweenDates
(date1: string, date2: string)
src/lib/utils.ts:190
↓ 6 callersMethodsetConnectionState
(state: RPC2ConnectionStateType)
src/lib/rpc2.ts:379
↓ 5 callersFunctioncleanup
()
src/context/websocket-provider.tsx:55
↓ 5 callersFunctionuseWebSocketContext
()
src/hooks/use-websocket-context.ts:5
↓ 4 callersMethodcallViaHTTP
* 通过 HTTP POST 调用 RPC 方法
src/lib/rpc2.ts:194
↓ 4 callersFunctionparsePublicNote
(publicNote: string)
src/lib/utils.ts:445
↓ 4 callersFunctionuseTheme
()
src/hooks/use-theme.ts:5
↓ 3 callersFunctionamountToCny
(amount: number, currency: string, rates: ExchangeRates)
src/components/AssetSummaryWidget.tsx:92
↓ 3 callersFunctioncalcTrafficUsed
(up: number, down: number, type: string)
src/lib/utils.ts:63
↓ 3 callersMethodconnect
* 建立 WebSocket 连接
src/lib/rpc2.ts:65
↓ 3 callersMethodgenerateRequestId
()
src/lib/rpc2.ts:383
↓ 3 callersFunctiongetPayloadConfigFromPayload
(config: ChartConfig, payload: unknown, key: string)
src/components/ui/chart.tsx:259
↓ 3 callersFunctionhandleSelect
(e: Event, newTheme: Theme)
src/components/ThemeSwitcher.tsx:17
↓ 3 callersFunctionparseChineseNumeral
(word: string)
src/components/AssetSummaryWidget.tsx:114
↓ 3 callersFunctionparseTagMetadata
(tags: string)
src/lib/utils.ts:569
↓ 2 callersFunctionGetFontLogoClass
(platform: string)
src/lib/logo-class.tsx:3
↓ 2 callersFunctionGetOsName
(platform: string)
src/lib/logo-class.tsx:82
↓ 2 callersMethodautoConnect
* 自动建立连接(非阻塞)
src/lib/rpc2.ts:113
↓ 2 callersFunctioncalculatePacketLoss
(delays: number[])
src/components/NetworkChart.tsx:27
↓ 2 callersMethodcallViaWebSocket
* 通过 WebSocket 调用 RPC 方法
src/lib/rpc2.ts:153
↓ 2 callersFunctioncnyToCurrency
(amount: number | null, currency: string, rates: ExchangeRates)
src/components/AssetSummaryWidget.tsx:105
↓ 2 callersMethoddisconnect
* 断开 WebSocket 连接
src/lib/rpc2.ts:128
↓ 2 callersFunctionfetchSetting
()
src/lib/nezha-api.ts:434
↓ 2 callersFunctionformatBillingAmount
(amount: string, currency?: string)
src/lib/utils.ts:368
↓ 2 callersFunctiongetData
()
src/context/websocket-provider.tsx:19
↓ 2 callersFunctiongetMedian
(arr: number[])
src/components/NetworkChart.tsx:316
↓ 2 callersFunctiongetMonthlyResetDate
(now: Date, day: number)
src/components/TrafficBar.tsx:11
↓ 2 callersFunctiongetRemainingSourceValue
(billing: BillingData, amount: number, atDate = new Date())
src/components/AssetSummaryWidget.tsx:173
↓ 2 callersFunctionisFollowBackendCurrency
(value?: unknown)
src/lib/utils.ts:384
↓ 2 callersFunctionnormalizeAssetCurrency
(currency?: string)
src/components/AssetSummaryWidget.tsx:78
↓ 2 callersFunctionparseCycleDays
(cycle?: string, startDate?: string, endDate?: string)
src/components/AssetSummaryWidget.tsx:127
↓ 2 callersFunctionparseTrafficResetDay
(value: unknown)
src/lib/utils.ts:617
↓ 2 callersFunctionprocessValues
(values: number[])
src/components/NetworkChart.tsx:323
↓ 2 callersFunctionreadTagCurrency
(server: any)
src/lib/utils.ts:439
↓ 2 callersFunctionresolveThemeBillingCurrency
(server: any, existingCurrency?: string)
src/lib/utils.ts:406
↓ 2 callersFunctionresolveThemeColor
(value: unknown, fallback: ThemeColorKey = "blue")
src/lib/theme-colors.ts:12
↓ 2 callersMethodsendMessage
(message: JSONRPC2Request)
src/lib/rpc2.ts:371
↓ 2 callersMethodstopHeartbeat
* 停止心跳包
src/lib/rpc2.ts:430
↓ 2 callersFunctionstripCurrencyMarks
(amount: string)
src/lib/utils.ts:343
↓ 2 callersFunctionupdateBackground
(newBackground: string | undefined)
src/hooks/use-background.ts:54
↓ 2 callersFunctionuseBackground
()
src/hooks/use-background.ts:16
↓ 2 callersFunctionuseChart
()
src/components/ui/chart.tsx:21
↓ 2 callersFunctionuseCommand
()
src/hooks/use-command.tsx:4
↓ 2 callersFunctionuseStatus
()
src/hooks/use-status.tsx:5
↓ 2 callersFunctionuseTooltip
()
src/hooks/use-tooltip.tsx:4
↓ 1 callersFunctionInjectContext
(content: string)
src/lib/inject.ts:1
↓ 1 callersMethodattemptReconnect
()
src/lib/rpc2.ts:437
↓ 1 callersMethodbatchCall
* 批量调用(仅支持 HTTP)
src/lib/rpc2.ts:240
↓ 1 callersFunctionbuildAssetItem
(now: number, server: NezhaServer, rates: ExchangeRates)
src/components/AssetSummaryWidget.tsx:246
↓ 1 callersFunctionbuildPublicNoteFromNode
(server: any, existingPublicNote?: string)
src/lib/utils.ts:644
↓ 1 callersFunctioncalcResetDays
(resetDay?: number)
src/components/TrafficBar.tsx:16
↓ 1 callersFunctioncheckEmojiSupport
()
src/components/ServerFlag.tsx:18
↓ 1 callersFunctioncheckInitialBackground
()
src/hooks/use-background.ts:26
↓ 1 callersFunctioncheckInlineSettings
()
src/pages/Server.tsx:70
↓ 1 callersFunctioncleanInjectedResources
()
src/lib/inject.ts:8
↓ 1 callersMethodclearPendingRequests
(error: Error)
src/lib/rpc2.ts:387
↓ 1 callersFunctionconnect
()
src/context/websocket-provider.tsx:77
↓ 1 callersFunctioncountryFlagToCode
(flag: string)
src/lib/utils.ts:530
↓ 1 callersFunctionderiveCycleLabel
(billing_cycle?: number)
src/lib/utils.ts:541
↓ 1 callersFunctionexecuteInlineScript
(scriptContent: string)
src/lib/inject.ts:24
↓ 1 callersFunctionexecuteSequentially
()
src/lib/inject.ts:83
↓ 1 callersFunctionfetchLoginUser
()
src/lib/nezha-api.ts:73
↓ 1 callersFunctionfetchMonitor
(server_id: number, hours: number = 24)
src/lib/nezha-api.ts:91
↓ 1 callersFunctionfetchRates
()
src/components/AssetSummaryWidget.tsx:302
↓ 1 callersFunctionfetchServerGroup
()
src/lib/nezha-api.ts:39
↓ 1 callersFunctionfetchService
()
src/lib/nezha-api.ts:333
↓ 1 callersFunctionfetchVisitorInfo
()
src/components/VisitorCapsuleBar.tsx:44
↓ 1 callersFunctionfetchWithTimeout
(url: string, timeoutMs = 4500)
src/components/VisitorCapsuleBar.tsx:16
↓ 1 callersFunctionformatData
(rawData: NezhaMonitor[])
src/components/NetworkChart.tsx:562
↓ 1 callersFunctionformatEndDate
(endDate?: string)
src/components/AssetSummaryWidget.tsx:234
↓ 1 callersFunctionformatTime
(timestamp: number)
src/lib/utils.ts:252
↓ 1 callersFunctiongetCnyLabel
()
src/lib/utils.ts:290
↓ 1 callersFunctiongetColor
(percent: number)
src/components/TrafficBar.tsx:39
↓ 1 callersFunctiongetCurrencyLabel
(currency: string)
src/lib/utils.ts:315
↓ 1 callersFunctiongetDaysBetweenDatesWithAutoRenewal
({ autoRenewal, cycle, startDate, endDate }: BillingData)
src/lib/utils.ts:73
↓ 1 callersFunctiongetDelayColor
(delay: number)
src/components/ServiceTrackerClient.tsx:32
↓ 1 callersFunctiongetGitHash
()
vite.config.ts:10
↓ 1 callersFunctiongetNextCycleTime
(startDate: number, months: number, specifiedDate: number)
src/lib/utils.ts:170
↓ 1 callersFunctiongetSourcePriceText
(billing?: BillingData, currency?: string)
src/components/AssetSummaryWidget.tsx:218
↓ 1 callersFunctiongetStatusColor
(uptime: number)
src/components/ServiceTrackerClient.tsx:38
↓ 1 callersFunctiongetStoredLanguage
()
src/i18n.js:36
↓ 1 callersFunctiongetTypeLabel
(type: string)
src/components/TrafficBar.tsx:29
↓ 1 callersFunctiongetUptimeColor
(uptime: number)
src/components/ServiceTrackerClient.tsx:26
↓ 1 callersMethodgetWebSocketUrl
()
src/lib/rpc2.ts:309
↓ 1 callersMethodhandleMessage
(data: JSONRPC2Response)
src/lib/rpc2.ts:352
↓ 1 callersFunctionhandlePublicNote
(serverKey: string | number, publicNote: string)
src/lib/utils.ts:507
↓ 1 callersFunctionhandleSelect
(e: Event, newLocale: string)
src/components/LanguageSwitcher.tsx:16
↓ 1 callersFunctionhashString
(str: string)
src/components/PlanInfo.tsx:38
↓ 1 callersFunctionkomariToNezhaWebsocketResponse
(data: any)
src/lib/utils.ts:715
↓ 1 callersFunctionloadExternalScript
(scriptElement: HTMLScriptElement)
src/lib/inject.ts:12
next →1–100 of 231, ranked by callers