uploading files and a lot more
This commit is contained in:
6
ui/types/file.ts
Normal file
6
ui/types/file.ts
Normal file
@@ -0,0 +1,6 @@
|
||||
export interface File {
|
||||
name: string,
|
||||
is_dir: boolean,
|
||||
size: number,
|
||||
last_modified: string
|
||||
}
|
||||
29
ui/types/user.ts
Normal file
29
ui/types/user.ts
Normal file
@@ -0,0 +1,29 @@
|
||||
export interface User {
|
||||
id: number,
|
||||
username: string,
|
||||
email: string,
|
||||
plan: {
|
||||
id: number,
|
||||
max_storage: number
|
||||
}
|
||||
}
|
||||
|
||||
export interface FileUpload {
|
||||
id: string,
|
||||
uploading: boolean,
|
||||
file: File,
|
||||
startTime: number,
|
||||
speed: number,
|
||||
remainingTime: number,
|
||||
controller: XMLHttpRequest,
|
||||
length: {
|
||||
total: number,
|
||||
loaded: number,
|
||||
},
|
||||
status: {
|
||||
error: boolean,
|
||||
aborted: boolean,
|
||||
code: number,
|
||||
message: string
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user