From 717bec80ac39017334b530cb1a73e600a5a3ea41 Mon Sep 17 00:00:00 2001 From: LQ63 Date: Thu, 4 Dec 2025 01:42:35 +0100 Subject: [PATCH] feat(api): Vue Added functionality to Lobby in Vue --- knockoutwhistweb/public/javascripts/events.js | 7 +++++-- knockoutwhistweb/public/javascripts/interact.js | 3 ++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/knockoutwhistweb/public/javascripts/events.js b/knockoutwhistweb/public/javascripts/events.js index e968857..80eb8e6 100644 --- a/knockoutwhistweb/public/javascripts/events.js +++ b/knockoutwhistweb/public/javascripts/events.js @@ -487,8 +487,11 @@ const LobbyComponent = { startGame() { globalThis.startGame() }, - leaveGame() { - + leaveGame(gameId) { + //TODO: Needs implementation + }, + handleKickPlayer(playerId) { + globalThis.handleKickPlayer(playerId) } } }; diff --git a/knockoutwhistweb/public/javascripts/interact.js b/knockoutwhistweb/public/javascripts/interact.js index 0876720..3b4e5ea 100644 --- a/knockoutwhistweb/public/javascripts/interact.js +++ b/knockoutwhistweb/public/javascripts/interact.js @@ -1,5 +1,6 @@ /* -function handlePlayCard(cardidx) {} +function handlePlayCard(cardidx) { +} */ function handleSkipDogLife(button) { // TODO needs implementation