cleanup and game UI beginnings

This commit is contained in:
DecDuck
2024-10-15 20:05:13 +11:00
parent ccaa0ed23c
commit 0cb6bfb8bf
17 changed files with 447 additions and 40 deletions
+15 -10
View File
@@ -1,3 +1,17 @@
import type { User } from "@prisma/client";
import type { Component } from "vue"
export type NavigationItem = {
prefix: string,
route: string,
label: string,
}
export type QuickActionNav = {
icon: Component,
notifications?: number,
action: () => Promise<void>,
}
export type AppState = {
status: AppStatus;
user?: User;
@@ -8,13 +22,4 @@ export enum AppStatus {
SignedOut = "SignedOut",
SignedIn = "SignedIn",
SignedInNeedsReauth = "SignedInNeedsReauth",
}
export type User = {
id: string;
username: string;
admin: boolean;
email: string;
displayName: string;
profilePicture: string;
};
}