uploading files and a lot more

This commit is contained in:
Zoe
2024-09-08 07:15:43 -05:00
parent 13218116e3
commit 86ef860568
28 changed files with 1447 additions and 107 deletions

6
ui/types/file.ts Normal file
View 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
View 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
},
}