mirror of https://github.com/kern/filepizza
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
727 B
TypeScript
31 lines
727 B
TypeScript
import type { DataConnection } from 'peerjs'
|
|
|
|
export type UploadedFile = File & { entryFullPath?: string }
|
|
|
|
export enum UploaderConnectionStatus {
|
|
Pending = 'PENDING',
|
|
Ready = 'READY',
|
|
Paused = 'PAUSED',
|
|
Uploading = 'UPLOADING',
|
|
Done = 'DONE',
|
|
Authenticating = 'AUTHENTICATING',
|
|
InvalidPassword = 'INVALID_PASSWORD',
|
|
Closed = 'CLOSED',
|
|
}
|
|
|
|
export type UploaderConnection = {
|
|
status: UploaderConnectionStatus
|
|
dataConnection: DataConnection
|
|
browserName?: string
|
|
browserVersion?: string
|
|
osName?: string
|
|
osVersion?: string
|
|
mobileVendor?: string
|
|
mobileModel?: string
|
|
uploadingFileName?: string
|
|
uploadingOffset?: number
|
|
completedFiles: number
|
|
totalFiles: number
|
|
currentFileProgress: number
|
|
}
|