feat(frontend): add initial /settings page

This commit is contained in:
Sam 2023-03-13 17:11:05 +01:00
parent 8d208ff7cd
commit 72b54512aa
Signed by: sam
GPG key ID: B4EF20DDE721CAA1
7 changed files with 222 additions and 13 deletions

View file

@ -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;