Admin page

This commit is contained in:
2026-10-29 21:42:26 -03:00
parent 07e61d9dd1
commit f7f34e1a57
18 changed files with 369 additions and 13 deletions
+24
View File
@@ -0,0 +1,24 @@
export interface MeResponse {
id: string;
name: string;
admin: boolean;
}
// What the admin users API returns, storage_used is the size of the encrypted files
export interface AdminUserEntry {
id: string;
name: string;
admin: boolean;
date_created: string;
has_key: boolean;
file_count: number;
storage_used: number;
}
// Only returned once, when the user is created
export interface CreatedUser {
id: string;
name: string;
admin: boolean;
code: string;
}