actually start implementing the backend slowly

This commit is contained in:
Soph :3 2026-01-04 15:49:32 +02:00
parent 37ae49b66e
commit 342fd30d62
19 changed files with 977 additions and 136 deletions

View file

@ -8,33 +8,39 @@ export type UserId = Puuid<"user">;
export type GroupId = Puuid<"group">;
export type ServerId = Puuid<"srv">;
export const Status: Record<string, 1|2|3> = {
OFFLINE: 1,
DND: 2,
ONLINE: 3
}
export interface User {
id: UserId
name: string,
status: 1|2|3,
image: string
}
export interface Group {
id: GroupId
name: string
members: number
}
export interface Server {
id: ServerId
name: string
image: string
}
export interface Data {
friends: User[],
groups: Group[],
servers: Server[],
export type OverviewUser = {
id: string;
username: string;
image: string;
};
export type OverviewServer = {
id: string;
name: string;
ownerId: string;
image: string;
};
export type OverviewGroup = {
id: string;
name: string;
ownerId: string;
members: number;
image: string;
};
export interface OverviewData {
friends: OverviewUser[],
groups: OverviewGroup[],
servers: OverviewServer[],
};
export interface UserWithStatus extends OverviewUser {
status: 1|2|3,
statusMessage: string
}