MCPcopy Create free account

hub / github.com/ShouChenICU/FastSend / functions

Functions112 in github.com/ShouChenICU/FastSend

↓ 13 callersMethodsendData
* 发送数据,注意只能串行调用 * @param data 要发送的数据
app/utils/PeerDataChannel.ts:124
↓ 9 callersFunctiondispose
()
app/stores/recipientTransfer.ts:84
↓ 6 callersFunctiondisposePeer
(peer: any)
server/api/connect.ts:38
↓ 6 callersFunctiongetPathSegment
* 统一校验路径片段,避免文件系统 API 接收到 undefined。
app/stores/recipientTransfer.ts:313
↓ 5 callersFunctiondispose
()
app/stores/senderTransfer.ts:63
↓ 5 callersMethoddispose
* 关闭对等连接并清理资源
app/utils/PeerDataChannel.ts:224
↓ 4 callersFunctionapplyTransferSelection
( type: 'transFile' | 'transDir' | 'syncDir', fileMap: FlatFileMap )
app/stores/home.ts:28
↓ 4 callersFunctioncreateMessageState
()
app/types/transfer.ts:126
↓ 3 callersFunctioncloseCurFileWriter
* 关闭当前文件写入流,用于文件传输完成或异常时清理资源。
app/stores/recipientTransfer.ts:133
↓ 3 callersFunctionformatTime
(milliseconds: number)
app/utils/index.ts:235
↓ 3 callersFunctioninitCurFile
(key?: string)
app/stores/recipientTransfer.ts:142
↓ 3 callersFunctionrequestFile
(key: string)
app/stores/recipientTransfer.ts:293
↓ 3 callersFunctionsaveTransCount
()
server/utils/TransCount.ts:15
↓ 2 callersMethodaddICECandidate
* 添加一个 ICE candidate * @param candidate ICE candidate
app/utils/PeerDataChannel.ts:198
↓ 2 callersFunctioncalcMD5
(file: File | Blob)
app/utils/index.ts:218
↓ 2 callersFunctioncleanup
()
app/utils/files.ts:139
↓ 2 callersFunctioncreateRecipientCurrentFileState
()
app/types/transfer.ts:166
↓ 2 callersFunctioncreateRecipientStatusState
()
app/types/transfer.ts:180
↓ 2 callersFunctioncreateSenderCurrentFileState
()
app/types/transfer.ts:136
↓ 2 callersFunctioncreateSenderStatusState
()
app/types/transfer.ts:150
↓ 2 callersFunctioncreateSyncDirState
()
app/types/transfer.ts:198
↓ 2 callersFunctiondealFilesFormFile
(file: File)
app/utils/files.ts:58
↓ 2 callersFunctiondealFilesFormList
(fl: Array<File>)
app/utils/files.ts:38
↓ 2 callersFunctionfileMapWithoutRoot
(fileMap: any)
app/utils/files.ts:154
↓ 2 callersFunctiongenDigitCode
(length: number)
server/api/connect.ts:149
↓ 2 callersFunctionheartbeat
(peer: any)
server/api/connect.ts:48
↓ 2 callersFunctioninitAvatar
()
app/stores/user.ts:45
↓ 2 callersFunctionisModernFileAPIAvailable
()
app/utils/index.ts:29
↓ 2 callersFunctionselectDir
()
app/utils/files.ts:73
↓ 2 callersFunctionsetAvatarURL
(url: string)
app/stores/user.ts:33
↓ 2 callersFunctionsetNickname
(nickname: string)
app/stores/user.ts:27
↓ 2 callersMethodsetRemoteSDP
* 设置远程 SDP * @param sdp SDP描述
app/utils/PeerDataChannel.ts:179
↓ 2 callersMethodsetupDataChannel
()
app/utils/PeerDataChannel.ts:77
↓ 1 callersFunctioncalcPeerFileHash
(key: string)
app/stores/recipientTransfer.ts:302
↓ 1 callersFunctioncalcSpeedFn
()
app/stores/recipientTransfer.ts:101
↓ 1 callersFunctioncleanupEmptyDirs
* 删除文件后尝试清理空的父目录。 * 从被删除文件的父目录向上逐级检查,如果目录为空则移除。
app/stores/recipientTransfer.ts:324
↓ 1 callersFunctioncloneFlatFileMap
(fileMap: FlatFileMap)
app/types/transfer.ts:219
↓ 1 callersFunctionconfirmUser
(isTrust: boolean)
app/stores/senderTransfer.ts:83
↓ 1 callersFunctioncopyToClipboard
(content: string | ImageData)
app/utils/index.ts:153
↓ 1 callersFunctiondealFilesFromHandler
(fh: FileSystemDirectoryHandle)
app/utils/files.ts:27
↓ 1 callersFunctiondealFilesFromHandlerLoop
( fh: FileSystemFileHandle | FileSystemDirectoryHandle, paths: Array<string>, result: any )
app/utils/files.ts:1
↓ 1 callersFunctiondoDownloadFromBlob
(blob: Blob | File, filename: string)
app/utils/index.ts:147
↓ 1 callersFunctiondoDownloadFromHref
(href: string, filename: string)
app/utils/index.ts:131
↓ 1 callersFunctiondownloadFile
()
app/stores/recipientTransfer.ts:113
↓ 1 callersMethodenqueue
(e: T)
app/utils/PeerDataChannel.ts:254
↓ 1 callersFunctiongenRandomString
(length: number)
app/utils/index.ts:58
↓ 1 callersMethodgetReceivedBufferSize
* 获取接收缓存的大小 * @returns 接收缓存的大小
app/utils/PeerDataChannel.ts:214
↓ 1 callersFunctiongetTransCount
()
server/utils/TransCount.ts:25
↓ 1 callersFunctiongetValFromLocalStorage
(key: string, defVal?: T)
app/utils/index.ts:203
↓ 1 callersFunctionhandleBufferData
(buf: ArrayBuffer)
app/stores/recipientTransfer.ts:117
↓ 1 callersFunctionhandleObjData
(obj: any)
app/stores/recipientTransfer.ts:159
↓ 1 callersFunctionhandleObjData
(obj: any)
app/stores/senderTransfer.ts:114
↓ 1 callersFunctionincreaseTransCount
()
server/utils/TransCount.ts:19
↓ 1 callersFunctioninitPDC
()
app/stores/recipientTransfer.ts:248
↓ 1 callersFunctioninitPDC
()
app/stores/senderTransfer.ts:207
↓ 1 callersFunctioninitReceive
(peer: any, code: string)
server/api/connect.ts:81
↓ 1 callersFunctioninitSend
(peer: any)
server/api/connect.ts:58
↓ 1 callersMethodinitializeDataChannel
()
app/utils/PeerDataChannel.ts:72
↓ 1 callersFunctionpersistAvatar
()
app/stores/user.ts:21
↓ 1 callersFunctionpersistNickname
()
app/stores/user.ts:15
↓ 1 callersFunctionresetState
()
app/stores/recipientTransfer.ts:59
↓ 1 callersFunctionresetState
()
app/stores/senderTransfer.ts:50
↓ 1 callersFunctionselectAvatar
(cb: (url: string) => void)
app/utils/index.ts:73
↓ 1 callersFunctionselectFile
(accept?: string)
app/utils/files.ts:112
↓ 1 callersMethodsetupPeerConnection
()
app/utils/PeerDataChannel.ts:56
↓ 1 callersFunctionsupportsDirectorySelection
()
app/utils/index.ts:47
FunctionbuildSenderPayload
* 为发送端构造最终发送给接收端的载荷。 * 目录同步场景下会自动提取根目录名,并生成去根后的文件树。
app/stores/transferConfig.ts:35
FunctioncalcSpeedFn
()
app/stores/senderTransfer.ts:74
Functioncleanup
()
app/stores/recipientTransfer.ts:645
Functioncleanup
()
app/stores/senderTransfer.ts:331
FunctionclearDeferredPrompt
()
app/stores/app.ts:17
FunctionclearTransferFiles
()
app/stores/transferConfig.ts:25
Functionclose
(peer)
server/api/connect.ts:113
Methodconstructor
* 创建一个新的 PeerDataChannel 实例 * @param config 配置
app/utils/PeerDataChannel.ts:44
Methodconstructor
(handler: (e: T) => Promise<void>)
app/utils/PeerDataChannel.ts:250
FunctioncopyLink
()
app/stores/senderTransfer.ts:236
FunctiondoReceive
()
app/stores/recipientTransfer.ts:433
Functionerror
(peer, error)
server/api/connect.ts:143
FunctiongetResponseByCache
(cacheName, request)
public/sw.js:5
FunctiongetScrollTop
()
app/utils/index.ts:7
MethodhandleConnectionStateChange
()
app/utils/PeerDataChannel.ts:84
MethodhandleDataChannel
(e: RTCDataChannelEvent)
app/utils/PeerDataChannel.ts:67
FunctionhandleDropFile
(event: DragEvent)
app/stores/home.ts:77
FunctionhandleReceiveCodeChange
()
app/stores/home.ts:117
FunctionhumanFileSize
(bytes: number, decimals = 2)
app/utils/index.ts:122
Functioninitialize
(receiveCode: string)
app/stores/recipientTransfer.ts:589
Functioninitialize
()
app/stores/senderTransfer.ts:256
Functioninitialize
()
app/stores/home.ts:21
FunctioninitializeFromStorage
()
app/stores/user.ts:72
MethodisConnected
* 检查连接是否断开 * @returns 如果连接则为 True,否则为 false
app/utils/PeerDataChannel.ts:206
FunctionisStandalone
()
app/utils/index.ts:190
Functionmessage
(peer: any, msg)
server/api/connect.ts:118
MethodonData
(data: ArrayBuffer | string)
app/utils/PeerDataChannel.ts:93
Functionopen
(peer)
server/api/connect.ts:108
FunctionopenAvatarPicker
()
app/stores/user.ts:64
MethodreNegotiation
* 重协商 SDP
app/utils/PeerDataChannel.ts:163
FunctionredirectHomeIfInvalidCode
(receiveCode: string)
app/stores/recipientTransfer.ts:637
FunctionrenderQRCode
(canvas: HTMLCanvasElement | null)
app/stores/senderTransfer.ts:249
FunctionresetUserInfo
()
app/stores/user.ts:59
FunctionselectSyncDir
()
app/stores/recipientTransfer.ts:364
next →1–100 of 112, ranked by callers