feat(frontend): add initial /settings page
This commit is contained in:
parent
8d208ff7cd
commit
72b54512aa
7 changed files with 222 additions and 13 deletions
|
@ -1,5 +1,8 @@
|
|||
import { PUBLIC_BASE_URL } from "$env/static/public";
|
||||
|
||||
export const MAX_MEMBERS = 500;
|
||||
export const MAX_DESCRIPTION_LENGTH = 1000;
|
||||
|
||||
export interface User {
|
||||
id: string;
|
||||
name: string;
|
||||
|
@ -15,6 +18,7 @@ export interface User {
|
|||
}
|
||||
|
||||
export interface MeUser extends User {
|
||||
max_invites: number;
|
||||
discord: string | null;
|
||||
discord_username: string | null;
|
||||
}
|
||||
|
@ -68,6 +72,12 @@ export interface MemberPartialUser {
|
|||
avatar: string | null;
|
||||
}
|
||||
|
||||
export interface Invite {
|
||||
code: string;
|
||||
created: Date;
|
||||
used: boolean;
|
||||
}
|
||||
|
||||
export interface APIError {
|
||||
code: ErrorCode;
|
||||
message?: string;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue