Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/BITJEBE/nezha-BITJEBE
/ functions
Functions
231 in github.com/BITJEBE/nezha-BITJEBE
⨍
Functions
231
◇
Types & classes
53
↓ 177 callers
Function
cn
(...inputs: ClassValue[])
src/lib/utils.ts:8
↓ 32 callers
Function
formatNezhaInfo
(now: number, serverInfo: NezhaServer)
src/lib/utils.ts:12
↓ 27 callers
Function
formatBytes
(bytes: number, decimals: number = 2)
src/lib/format.ts:1
↓ 10 callers
Method
call
* 自动选择调用方式(优先使用 WebSocket)
src/lib/rpc2.ts:282
↓ 10 callers
Function
normalizeBillingCurrency
(currency?: unknown)
src/lib/utils.ts:320
↓ 8 callers
Function
formatMoney
(value: number | null, currency: string)
src/components/AssetSummaryWidget.tsx:82
↓ 8 callers
Function
uuidToNumber
(uuid: string)
src/lib/utils.ts:519
↓ 7 callers
Function
SharedClient
()
src/hooks/use-rpc2.tsx:22
↓ 7 callers
Function
getKomariNodes
(force = false)
src/lib/utils.ts:903
↓ 6 callers
Function
formatRelativeTime
(timestamp: number)
src/lib/utils.ts:232
↓ 6 callers
Function
getDaysBetweenDates
(date1: string, date2: string)
src/lib/utils.ts:190
↓ 6 callers
Method
setConnectionState
(state: RPC2ConnectionStateType)
src/lib/rpc2.ts:379
↓ 5 callers
Function
cleanup
()
src/context/websocket-provider.tsx:55
↓ 5 callers
Function
useWebSocketContext
()
src/hooks/use-websocket-context.ts:5
↓ 4 callers
Method
callViaHTTP
* 通过 HTTP POST 调用 RPC 方法
src/lib/rpc2.ts:194
↓ 4 callers
Function
parsePublicNote
(publicNote: string)
src/lib/utils.ts:445
↓ 4 callers
Function
useTheme
()
src/hooks/use-theme.ts:5
↓ 3 callers
Function
amountToCny
(amount: number, currency: string, rates: ExchangeRates)
src/components/AssetSummaryWidget.tsx:92
↓ 3 callers
Function
calcTrafficUsed
(up: number, down: number, type: string)
src/lib/utils.ts:63
↓ 3 callers
Method
connect
* 建立 WebSocket 连接
src/lib/rpc2.ts:65
↓ 3 callers
Method
generateRequestId
()
src/lib/rpc2.ts:383
↓ 3 callers
Function
getPayloadConfigFromPayload
(config: ChartConfig, payload: unknown, key: string)
src/components/ui/chart.tsx:259
↓ 3 callers
Function
handleSelect
(e: Event, newTheme: Theme)
src/components/ThemeSwitcher.tsx:17
↓ 3 callers
Function
parseChineseNumeral
(word: string)
src/components/AssetSummaryWidget.tsx:114
↓ 3 callers
Function
parseTagMetadata
(tags: string)
src/lib/utils.ts:569
↓ 2 callers
Function
GetFontLogoClass
(platform: string)
src/lib/logo-class.tsx:3
↓ 2 callers
Function
GetOsName
(platform: string)
src/lib/logo-class.tsx:82
↓ 2 callers
Method
autoConnect
* 自动建立连接(非阻塞)
src/lib/rpc2.ts:113
↓ 2 callers
Function
calculatePacketLoss
(delays: number[])
src/components/NetworkChart.tsx:27
↓ 2 callers
Method
callViaWebSocket
* 通过 WebSocket 调用 RPC 方法
src/lib/rpc2.ts:153
↓ 2 callers
Function
cnyToCurrency
(amount: number | null, currency: string, rates: ExchangeRates)
src/components/AssetSummaryWidget.tsx:105
↓ 2 callers
Method
disconnect
* 断开 WebSocket 连接
src/lib/rpc2.ts:128
↓ 2 callers
Function
fetchSetting
()
src/lib/nezha-api.ts:434
↓ 2 callers
Function
formatBillingAmount
(amount: string, currency?: string)
src/lib/utils.ts:368
↓ 2 callers
Function
getData
()
src/context/websocket-provider.tsx:19
↓ 2 callers
Function
getMedian
(arr: number[])
src/components/NetworkChart.tsx:316
↓ 2 callers
Function
getMonthlyResetDate
(now: Date, day: number)
src/components/TrafficBar.tsx:11
↓ 2 callers
Function
getRemainingSourceValue
(billing: BillingData, amount: number, atDate = new Date())
src/components/AssetSummaryWidget.tsx:173
↓ 2 callers
Function
isFollowBackendCurrency
(value?: unknown)
src/lib/utils.ts:384
↓ 2 callers
Function
normalizeAssetCurrency
(currency?: string)
src/components/AssetSummaryWidget.tsx:78
↓ 2 callers
Function
parseCycleDays
(cycle?: string, startDate?: string, endDate?: string)
src/components/AssetSummaryWidget.tsx:127
↓ 2 callers
Function
parseTrafficResetDay
(value: unknown)
src/lib/utils.ts:617
↓ 2 callers
Function
processValues
(values: number[])
src/components/NetworkChart.tsx:323
↓ 2 callers
Function
readTagCurrency
(server: any)
src/lib/utils.ts:439
↓ 2 callers
Function
resolveThemeBillingCurrency
(server: any, existingCurrency?: string)
src/lib/utils.ts:406
↓ 2 callers
Function
resolveThemeColor
(value: unknown, fallback: ThemeColorKey = "blue")
src/lib/theme-colors.ts:12
↓ 2 callers
Method
sendMessage
(message: JSONRPC2Request)
src/lib/rpc2.ts:371
↓ 2 callers
Method
stopHeartbeat
* 停止心跳包
src/lib/rpc2.ts:430
↓ 2 callers
Function
stripCurrencyMarks
(amount: string)
src/lib/utils.ts:343
↓ 2 callers
Function
updateBackground
(newBackground: string | undefined)
src/hooks/use-background.ts:54
↓ 2 callers
Function
useBackground
()
src/hooks/use-background.ts:16
↓ 2 callers
Function
useChart
()
src/components/ui/chart.tsx:21
↓ 2 callers
Function
useCommand
()
src/hooks/use-command.tsx:4
↓ 2 callers
Function
useStatus
()
src/hooks/use-status.tsx:5
↓ 2 callers
Function
useTooltip
()
src/hooks/use-tooltip.tsx:4
↓ 1 callers
Function
InjectContext
(content: string)
src/lib/inject.ts:1
↓ 1 callers
Method
attemptReconnect
()
src/lib/rpc2.ts:437
↓ 1 callers
Method
batchCall
* 批量调用(仅支持 HTTP)
src/lib/rpc2.ts:240
↓ 1 callers
Function
buildAssetItem
(now: number, server: NezhaServer, rates: ExchangeRates)
src/components/AssetSummaryWidget.tsx:246
↓ 1 callers
Function
buildPublicNoteFromNode
(server: any, existingPublicNote?: string)
src/lib/utils.ts:644
↓ 1 callers
Function
calcResetDays
(resetDay?: number)
src/components/TrafficBar.tsx:16
↓ 1 callers
Function
checkEmojiSupport
()
src/components/ServerFlag.tsx:18
↓ 1 callers
Function
checkInitialBackground
()
src/hooks/use-background.ts:26
↓ 1 callers
Function
checkInlineSettings
()
src/pages/Server.tsx:70
↓ 1 callers
Function
cleanInjectedResources
()
src/lib/inject.ts:8
↓ 1 callers
Method
clearPendingRequests
(error: Error)
src/lib/rpc2.ts:387
↓ 1 callers
Function
connect
()
src/context/websocket-provider.tsx:77
↓ 1 callers
Function
countryFlagToCode
(flag: string)
src/lib/utils.ts:530
↓ 1 callers
Function
deriveCycleLabel
(billing_cycle?: number)
src/lib/utils.ts:541
↓ 1 callers
Function
executeInlineScript
(scriptContent: string)
src/lib/inject.ts:24
↓ 1 callers
Function
executeSequentially
()
src/lib/inject.ts:83
↓ 1 callers
Function
fetchLoginUser
()
src/lib/nezha-api.ts:73
↓ 1 callers
Function
fetchMonitor
(server_id: number, hours: number = 24)
src/lib/nezha-api.ts:91
↓ 1 callers
Function
fetchRates
()
src/components/AssetSummaryWidget.tsx:302
↓ 1 callers
Function
fetchServerGroup
()
src/lib/nezha-api.ts:39
↓ 1 callers
Function
fetchService
()
src/lib/nezha-api.ts:333
↓ 1 callers
Function
fetchVisitorInfo
()
src/components/VisitorCapsuleBar.tsx:44
↓ 1 callers
Function
fetchWithTimeout
(url: string, timeoutMs = 4500)
src/components/VisitorCapsuleBar.tsx:16
↓ 1 callers
Function
formatData
(rawData: NezhaMonitor[])
src/components/NetworkChart.tsx:562
↓ 1 callers
Function
formatEndDate
(endDate?: string)
src/components/AssetSummaryWidget.tsx:234
↓ 1 callers
Function
formatTime
(timestamp: number)
src/lib/utils.ts:252
↓ 1 callers
Function
getCnyLabel
()
src/lib/utils.ts:290
↓ 1 callers
Function
getColor
(percent: number)
src/components/TrafficBar.tsx:39
↓ 1 callers
Function
getCurrencyLabel
(currency: string)
src/lib/utils.ts:315
↓ 1 callers
Function
getDaysBetweenDatesWithAutoRenewal
({ autoRenewal, cycle, startDate, endDate }: BillingData)
src/lib/utils.ts:73
↓ 1 callers
Function
getDelayColor
(delay: number)
src/components/ServiceTrackerClient.tsx:32
↓ 1 callers
Function
getGitHash
()
vite.config.ts:10
↓ 1 callers
Function
getNextCycleTime
(startDate: number, months: number, specifiedDate: number)
src/lib/utils.ts:170
↓ 1 callers
Function
getSourcePriceText
(billing?: BillingData, currency?: string)
src/components/AssetSummaryWidget.tsx:218
↓ 1 callers
Function
getStatusColor
(uptime: number)
src/components/ServiceTrackerClient.tsx:38
↓ 1 callers
Function
getStoredLanguage
()
src/i18n.js:36
↓ 1 callers
Function
getTypeLabel
(type: string)
src/components/TrafficBar.tsx:29
↓ 1 callers
Function
getUptimeColor
(uptime: number)
src/components/ServiceTrackerClient.tsx:26
↓ 1 callers
Method
getWebSocketUrl
()
src/lib/rpc2.ts:309
↓ 1 callers
Method
handleMessage
(data: JSONRPC2Response)
src/lib/rpc2.ts:352
↓ 1 callers
Function
handlePublicNote
(serverKey: string | number, publicNote: string)
src/lib/utils.ts:507
↓ 1 callers
Function
handleSelect
(e: Event, newLocale: string)
src/components/LanguageSwitcher.tsx:16
↓ 1 callers
Function
hashString
(str: string)
src/components/PlanInfo.tsx:38
↓ 1 callers
Function
komariToNezhaWebsocketResponse
(data: any)
src/lib/utils.ts:715
↓ 1 callers
Function
loadExternalScript
(scriptElement: HTMLScriptElement)
src/lib/inject.ts:12
next →
1–100 of 231, ranked by callers