feat: notifications UI

minimal, but just works (tm)
This commit is contained in:
zkldi
2022-11-10 00:22:43 +00:00
parent 8d5dbe2ef3
commit 09c84c71a2
10 changed files with 188 additions and 66 deletions
-22
View File
@@ -1595,19 +1595,6 @@ interface BaseNotification {
}
export type NotificationBody =
| {
type: "CHALLENGE_BEAT";
content: {
userID: integer;
challenge: ChallengeWallDocument;
};
}
| {
type: "CHALLENGE_RECEIVED";
content: {
challenge: ChallengeWallDocument;
};
}
| {
type: "QUEST_CHANGED"; // Emitted when a quest the user is subscribed to changed.
content: {
@@ -1640,15 +1627,6 @@ export interface ChallengeSubscriptionDocument {
achievedAt: number | null;
}
export interface ChallengeWallDocument {
chartID: string;
authorID: integer;
type: "lamp" | "score";
game: Game;
playtype: Playtype;
}
interface BaseImportTracker {
timeStarted: number;
importID: string;