Compare commits

..

4 Commits

Author SHA1 Message Date
TeamCity
ad5add0ffc ci: bump version to v4.54.0 2026-01-22 00:15:50 +00:00
30c05c3014 feat(ui): FRO-26 Nice Tie UI (#115)
Added nice tie UI Component

Co-authored-by: LQ63 <lkhermann@web.de>
Reviewed-on: #115
2026-01-22 01:11:17 +01:00
TeamCity
d75d64113b ci: bump version to v4.53.0 2026-01-21 18:34:01 +00:00
66b55945eb feat: Update CORS allowed origins to use production URL 2026-01-21 19:31:32 +01:00
4 changed files with 20 additions and 5 deletions

View File

@@ -453,3 +453,13 @@
### Features ### Features
* Implement OAuth session management with Redis caching for OpenID user data ([0430c7f](https://git.janis-eccarius.de/KnockOutWhist/KnockOutWhist-Web/commit/0430c7f4deb37661c697406a714e2693bf0c7307)) * Implement OAuth session management with Redis caching for OpenID user data ([0430c7f](https://git.janis-eccarius.de/KnockOutWhist/KnockOutWhist-Web/commit/0430c7f4deb37661c697406a714e2693bf0c7307))
## (2026-01-21)
### Features
* Update CORS allowed origins to use production URL ([66b5594](https://git.janis-eccarius.de/KnockOutWhist/KnockOutWhist-Web/commit/66b55945eb8f095c08a8f859955d31f7fc32ce0e))
## (2026-01-22)
### Features
* **ui:** FRO-26 Nice Tie UI ([#115](https://git.janis-eccarius.de/KnockOutWhist/KnockOutWhist-Web/issues/115)) ([30c05c3](https://git.janis-eccarius.de/KnockOutWhist/KnockOutWhist-Web/commit/30c05c3014e9198e87706518bfa8d070f33242dc))

View File

@@ -1,12 +1,13 @@
package dto package dto
import dto.subDTO.PlayerDTO import de.knockoutwhist.cards.Card
import dto.subDTO.{CardDTO, PlayerDTO}
import logic.game.GameLobby import logic.game.GameLobby
import model.users.User import model.users.User
import scala.util.Try import scala.util.Try
case class TieInfoDTO(gameId: String, currentPlayer: Option[PlayerDTO], self: Option[PlayerDTO], tiedPlayers: Seq[PlayerDTO], highestAmount: Int) case class TieInfoDTO(gameId: String, currentPlayer: Option[PlayerDTO], self: Option[PlayerDTO], tiedPlayers: Seq[PlayerDTO], highestAmount: Int, selectedCards: Map[String, CardDTO], winners: Option[Seq[PlayerDTO]])
object TieInfoDTO { object TieInfoDTO {
@@ -20,7 +21,11 @@ object TieInfoDTO {
currentPlayer = lobby.logic.playerTieLogic.currentTiePlayer().map(PlayerDTO.apply), currentPlayer = lobby.logic.playerTieLogic.currentTiePlayer().map(PlayerDTO.apply),
self = selfPlayer.map(PlayerDTO.apply), self = selfPlayer.map(PlayerDTO.apply),
tiedPlayers = lobby.logic.playerTieLogic.getTiedPlayers.map(PlayerDTO.apply), tiedPlayers = lobby.logic.playerTieLogic.getTiedPlayers.map(PlayerDTO.apply),
highestAmount = lobby.logic.playerTieLogic.highestAllowedNumber() highestAmount = lobby.logic.playerTieLogic.highestAllowedNumber(),
selectedCards = lobby.logic.playerTieLogic.getSelectedCard.map {
case (player, card) => player.id.toString -> CardDTO(card)
},
winners = Some(lobby.logic.playerTieLogic.getSelectedCard.filter((_,card) => card == lobby.logic.playerTieLogic.getSelectedCard.values.maxBy(_.cardValue.ordinal)).keySet.toList.map(PlayerDTO.apply))
) )
} }

View File

@@ -8,7 +8,7 @@ play.http.context="/api"
play.modules.enabled += "modules.GatewayModule" play.modules.enabled += "modules.GatewayModule"
play.filters.cors { play.filters.cors {
allowedOrigins = ["http://localhost:5173"] allowedOrigins = ["https://knockout.janis-eccarius.de"]
allowedCredentials = true allowedCredentials = true
allowedHttpMethods = ["GET", "POST", "PUT", "DELETE", "OPTIONS"] allowedHttpMethods = ["GET", "POST", "PUT", "DELETE", "OPTIONS"]
allowedHttpHeaders = ["Accept", "Content-Type", "Origin", "X-Requested-With"] allowedHttpHeaders = ["Accept", "Content-Type", "Origin", "X-Requested-With"]

View File

@@ -1,3 +1,3 @@
MAJOR=4 MAJOR=4
MINOR=52 MINOR=54
PATCH=0 PATCH=0