Add room participant moderation

This commit is contained in:
2026-09-03 11:35:05 +02:00
parent e30d2e61aa
commit 2f05e56089
14 changed files with 453 additions and 15 deletions
+8
View File
@@ -1,3 +1,10 @@
export type DashboardRoomPlayer = {
id: number;
name: string;
is_moderator: boolean;
is_owner: boolean;
};
export type DashboardRoom = {
id: string;
title: string | null;
@@ -5,6 +12,7 @@ export type DashboardRoom = {
current_round: number;
players_count: number;
active_player_count: number;
players: DashboardRoomPlayer[];
last_activity_at: string | null;
closed_at: string | null;
};
+2
View File
@@ -160,6 +160,7 @@ export type RoomVoteDeckEmits = {
export type RoomStateChange =
| 'player_joined'
| 'player_updated'
| 'player_kicked'
| 'vote_changed'
| 'cards_revealed'
| 'votes_reset'
@@ -173,6 +174,7 @@ export type RoomStateChangedPayload = {
version: number;
change: RoomStateChange;
state: RoomRealtimeState | null;
affected_player_id?: number;
};
export type RoomRealtimeState = Pick<