MCPcopy Create free account

hub / github.com/SagerNet/sing-box-dashboard / functions

Functions401 in github.com/SagerNet/sing-box-dashboard

↓ 61 callersFunctionuseI18n
()
src/app/i18n.tsx:95
↓ 24 callersFunctionsetOpen
(next: boolean)
src/components/ui.tsx:546
↓ 24 callersFunctionuseApi
()
src/app/context.tsx:7
↓ 23 callersFunctioncx
(...classes: (string | false | null | undefined)[])
src/lib/cx.ts:1
↓ 17 callersFunctionnavigate
(path: string)
src/app/context.tsx:40
↓ 17 callersFunctionuseStream
(store: StreamStore<T>)
src/api/stream.ts:169
↓ 15 callersFunctionupdate
()
src/app/hooks.ts:69
↓ 12 callersFunctionformatBytes
(value: number | bigint)
src/api/format.ts:24
↓ 12 callersFunctionnormalizeServerUrl
(url: string)
src/api/config.ts:25
↓ 11 callersFunctionpad2
(value: number)
src/api/format.ts:5
↓ 10 callersMethodsend
(message: MessageInitShape<Req>)
src/api/websocket.ts:68
↓ 10 callersFunctionserver
(id: string)
src/api/config.test.ts:110
↓ 9 callersFunctionisLoopbackHost
(hostname: string)
src/lib/connectivity.ts:33
↓ 9 callersFunctionpeerDisplayName
(peer: TailscalePeer | undefined)
src/lib/tailscaleSSH.ts:96
↓ 9 callersFunctionserverConnectUrl
(url: string)
src/api/config.ts:29
↓ 9 callersFunctionserverDisplayName
(server: Server)
src/api/config.ts:37
↓ 8 callersFunctioncolor
(value?: string)
src/views/SettingsView.tsx:352
↓ 8 callersFunctionguessApiBaseUrl
(href: string)
src/lib/connectivity.ts:20
↓ 7 callersFunctionparseCssColor
(value: string)
src/lib/ansi.ts:150
↓ 7 callersMethodsetItem
(key: string, value: string)
src/api/config.test.ts:22
↓ 7 callersFunctionsetStatusLine
(line: string | null)
src/views/TerminalView.tsx:343
↓ 6 callersMethodgetItem
(key: string)
src/api/config.test.ts:18
↓ 6 callersFunctionisOpaqueNetworkError
(message: string)
src/lib/connectivity.ts:8
↓ 6 callersFunctionisUnknownServiceError
(message: string)
src/lib/connectivity.ts:16
↓ 6 callersFunctionloadServersState
()
src/api/config.ts:63
↓ 6 callersFunctionloadTerminalConfig
()
src/lib/tailscaleSSH.ts:77
↓ 6 callersFunctionnavItem
(page: string, title: string, icon: IconName, active: boolean)
src/App.tsx:376
↓ 5 callersMethodend
(status: GrpcStatus | null, error?: string)
src/api/websocket.ts:100
↓ 5 callersFunctionformatVidPid
(vendorId: number, productId: number)
src/lib/webusb.ts:26
↓ 5 callersFunctionisAccentPreset
(value: string)
src/app/context.tsx:156
↓ 5 callersFunctionisHex
(value)
scripts/gen-terminal-themes.mjs:35
↓ 5 callersFunctionisTerminalCode
(code: Code | undefined)
src/api/stream.ts:28
↓ 5 callersFunctionloadSSHPrefs
()
src/lib/tailscaleSSH.ts:24
↓ 5 callersFunctionloadStoredJson
(key: string)
src/lib/storage.ts:1
↓ 5 callersFunctionparseAnsi
(text: string)
src/lib/ansi.ts:69
↓ 5 callersFunctionremoveServer
(state: ServersState, id: string)
src/api/config.ts:106
↓ 5 callersFunctionstripAnsi
(text: string)
src/lib/ansi.ts:87
↓ 5 callersFunctionupsertServer
(state: ServersState, server: Server)
src/api/config.ts:98
↓ 5 callersFunctionuseDismiss
( ref: RefObject<HTMLElement | null>, open: boolean, onDismiss: () => void, )
src/app/hooks.ts:125
↓ 5 callersFunctionuseIsMobile
()
src/app/context.tsx:75
↓ 4 callersFunctionallPeers
(endpoint: TailscaleEndpointStatus | undefined)
src/lib/tailscaleSSH.ts:92
↓ 4 callersMethodclose
()
src/api/websocket.ts:85
↓ 4 callersFunctioncurrentScheme
()
src/lib/terminalTheme.ts:81
↓ 4 callersFunctionfallbackTheme
(scheme: Scheme)
src/lib/terminalTheme.ts:85
↓ 4 callersFunctionhex2
(value: number)
src/lib/usbInfo.ts:26
↓ 4 callersFunctionmapTransferStatus
(status: USBTransferStatus | undefined)
src/lib/webusb.ts:98
↓ 4 callersFunctionproxyDisplayType
(type: string)
src/api/format.ts:139
↓ 4 callersFunctionreleaseDevice
(device: USBDevice)
src/lib/usbipProvider.ts:421
↓ 4 callersMethodremoveItem
(key: string)
src/api/config.test.ts:26
↓ 4 callersFunctionsaveStoredJson
(key: string, value: unknown)
src/lib/storage.ts:10
↓ 4 callersFunctionuseStreamOutage
( snapshot: StreamSnapshot<unknown>, immediate: boolean, graceMs = RECONNECT_GRACE_MS, )
src/app/hooks.ts:8
↓ 3 callersFunctionansiColorCss
(color: Rgb, background: Rgb)
src/lib/ansi.ts:135
↓ 3 callersMethodattach
(device: USBDevice)
src/lib/usbipProvider.ts:137
↓ 3 callersFunctionbuildSSHSession
( endpointTag: string, peer: TailscalePeer, username: string, terminalType: string, )
src/lib/tailscaleSSH.ts:118
↓ 3 callersFunctionchannel
(i: number)
src/app/context.tsx:206
↓ 3 callersFunctionconsumeArmed
(mods: Modifiers)
src/lib/terminalKeys.ts:125
↓ 3 callersFunctioncreateServerId
()
src/api/config.ts:18
↓ 3 callersMethoddetach
(deviceId: string)
src/lib/usbipProvider.ts:184
↓ 3 callersMethodexactDeviceIdForUsbDevice
(device: USBDevice)
src/lib/usbipProvider.ts:237
↓ 3 callersFunctionformatDateTime
(timestampMs: number, locale?: string)
src/api/format.ts:79
↓ 3 callersFunctionformatRelativeTime
(timestampMs: number, nowMs: number, locale?: string)
src/api/format.ts:83
↓ 3 callersFunctionlinearize
(channel: number)
src/lib/ansi.ts:92
↓ 3 callersFunctionlogsText
()
src/views/LogsView.tsx:91
↓ 3 callersFunctionparseCustomTheme
(json: string)
src/lib/terminalTheme.ts:95
↓ 3 callersFunctionrelativeLuminance
([red, green, blue]: Rgb)
src/lib/ansi.ts:97
↓ 3 callersFunctionresolveThemeSync
(config: TerminalConfig, scheme: Scheme)
src/lib/terminalTheme.ts:121
↓ 3 callersMethodretryNow
()
src/api/daemon.ts:302
↓ 3 callersFunctionrouteFromHash
()
src/App.tsx:83
↓ 3 callersFunctionsaveServersState
(state: ServersState)
src/api/config.ts:94
↓ 3 callersFunctionsaveTerminalConfig
(config: TerminalConfig)
src/lib/tailscaleSSH.ts:85
↓ 3 callersFunctionsetName
(value: string)
src/views/SettingsView.tsx:178
↓ 3 callersMethodsetSnapshot
(next: StreamSnapshot<T>)
src/api/stream.ts:85
↓ 3 callersFunctionshowError
(error: unknown)
src/app/errorStore.ts:21
↓ 3 callersFunctionupdate
(patch: Partial<TerminalConfig>)
src/views/SettingsView.tsx:227
↓ 3 callersFunctionuseDiagnosedConnectError
( message: string | null, serverUrl: string, )
src/app/connectError.ts:24
↓ 3 callersFunctionuseNow
(intervalMs = 1000)
src/app/context.tsx:15
↓ 3 callersFunctionusePendingValue
(serverValue: T)
src/app/hooks.ts:147
↓ 3 callersFunctionuseStreamingAction
()
src/app/hooks.ts:180
↓ 3 callersFunctionuseUnaryOnce
(call: () => Promise<T>, enabled = true)
src/app/hooks.ts:156
↓ 2 callersFunctionaddSession
(options: SSHSessionOptions)
src/views/TerminalView.tsx:161
↓ 2 callersFunctionappendHistory
(history: number[], value: number)
src/api/daemon.ts:376
↓ 2 callersFunctionapplyTheme
(preference: ThemePreference)
src/app/context.tsx:102
↓ 2 callersFunctioncancel
()
src/app/hooks.ts:19
↓ 2 callersMethodclearDetachedBusId
(busId: string)
src/lib/usbipProvider.ts:273
↓ 2 callersMethodclearDetachedBusIds
()
src/lib/usbipProvider.ts:281
↓ 2 callersMethodclose
()
src/lib/usbipProvider.ts:188
↓ 2 callersFunctioncloseOnBackdropClick
(event: React.MouseEvent<HTMLDialogElement>, onClose: () => void)
src/components/ui.tsx:731
↓ 2 callersFunctioncontrastRatio
(left: Rgb, right: Rgb)
src/lib/ansi.ts:101
↓ 2 callersFunctiondescribeError
(error: unknown)
src/api/stream.ts:18
↓ 2 callersFunctiondetectSystemLanguage
()
src/app/i18n.tsx:28
↓ 2 callersFunctiondeviceLabel
(device: USBDevice)
src/lib/usbipProvider.ts:43
↓ 2 callersFunctionemit
()
src/app/errorStore.ts:8
↓ 2 callersFunctionencodeText
(text: string, mods: Modifiers)
src/lib/terminalKeys.ts:68
↓ 2 callersMethodenqueue
(frame: Uint8Array<ArrayBuffer>)
src/api/websocket.ts:90
↓ 2 callersFunctionensureSession
()
src/lib/usbipProvider.ts:473
↓ 2 callersFunctionformatBitrate
(bps: number | bigint)
src/api/format.ts:32
↓ 2 callersFunctionformatUnits
(value: number, base: number)
src/api/format.ts:11
↓ 2 callersFunctionhex
(value: number)
src/lib/webusb.ts:27
↓ 2 callersFunctionisHttpUrl
(value: string)
src/api/format.ts:1
↓ 2 callersFunctionisStartedOnlyToolsSubpage
(page: string)
src/App.tsx:145
next →1–100 of 401, ranked by callers