ui(admin): add "working" React admin ui
This commit is contained in:
parent
d1c7494933
commit
5402584508
199 changed files with 13387 additions and 151 deletions
29
resources/scripts/api/definitions/admin/models.d.ts
vendored
Normal file
29
resources/scripts/api/definitions/admin/models.d.ts
vendored
Normal file
|
@ -0,0 +1,29 @@
|
|||
import { ModelWithRelationships, UUID } from '@/api/definitions';
|
||||
import { Server } from '@/api/admin/server';
|
||||
|
||||
interface User extends ModelWithRelationships {
|
||||
id: number;
|
||||
uuid: UUID;
|
||||
externalId: string;
|
||||
username: string;
|
||||
email: string;
|
||||
language: string;
|
||||
adminRoleId: number | null;
|
||||
roleName: string;
|
||||
isRootAdmin: boolean;
|
||||
isUsingTwoFactor: boolean;
|
||||
avatarUrl: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
relationships: {
|
||||
role: UserRole | null;
|
||||
// TODO: just use an API call, this is probably a bad idea for performance.
|
||||
servers?: Server[];
|
||||
};
|
||||
}
|
||||
|
||||
interface UserRole extends ModelWithRelationships {
|
||||
id: number;
|
||||
name: string;
|
||||
description: string;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue