WIP: Working login, and creation of Lobby, aswell as showing new Users

This commit is contained in:
Pablu23
2025-10-10 16:02:32 +02:00
parent 9a44b91099
commit 9dffac4de3
11 changed files with 334 additions and 277 deletions

22
src/app.d.ts vendored
View File

@@ -5,11 +5,7 @@ declare global {
namespace App {
// interface Error {}
interface Locals {
// user: {
// isLoggedIn: boolean;
// email: string | null;
// username: string | null;
// }
user: User | null;
}
// interface PageData {}
// interface PageState {}
@@ -18,15 +14,15 @@ declare global {
}
export interface User {
email: string | null;
username: string | null;
}
export interface Player {
id: number;
name: string;
isHost: boolean;
email: string;
username: string;
}
//
// export interface Player {
// id: number;
// name: string;
// isHost: boolean;
// }
export interface GameMode {
id: string;