mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-21 05:45:46 +00:00
init
This commit is contained in:
Vendored
+35
@@ -0,0 +1,35 @@
|
||||
type ErrorApiResponse = {
|
||||
code: number;
|
||||
status: 'error';
|
||||
message: string;
|
||||
errors?: { [key: string]: string };
|
||||
};
|
||||
|
||||
type SuccessApiResponse<T = unknown> = {
|
||||
code: number;
|
||||
status: 'success';
|
||||
message: string;
|
||||
meta?: {
|
||||
page: number;
|
||||
limit: number;
|
||||
total_pages: number;
|
||||
total_results: number;
|
||||
};
|
||||
data: T;
|
||||
};
|
||||
|
||||
type BaseApiResponse<T = unknown> = ErrorApiResponse | SuccessApiResponse<T>;
|
||||
|
||||
export type User = {
|
||||
id: number;
|
||||
email: string;
|
||||
npk: string;
|
||||
name: string;
|
||||
image?: string | null;
|
||||
created_at: string;
|
||||
updated_at: string;
|
||||
};
|
||||
|
||||
export type UserWithRoles = User & {
|
||||
roles: RoleWithPermissions[];
|
||||
};
|
||||
Vendored
+1
@@ -0,0 +1 @@
|
||||
export type UIStore = {};
|
||||
Vendored
+11
@@ -0,0 +1,11 @@
|
||||
type Color =
|
||||
| 'primary'
|
||||
| 'secondary'
|
||||
| 'accent'
|
||||
| 'neutral'
|
||||
| 'info'
|
||||
| 'success'
|
||||
| 'warning'
|
||||
| 'error';
|
||||
|
||||
export { Color };
|
||||
Reference in New Issue
Block a user