-
-
diff --git a/src/components/ingame/PlayedCardsC.vue b/src/components/ingame/PlayedCardsC.vue
index 027ca69..eb418ad 100644
--- a/src/components/ingame/PlayedCardsC.vue
+++ b/src/components/ingame/PlayedCardsC.vue
@@ -6,12 +6,15 @@ const props = defineProps<{ trick: Trick }>()
const {trick } = toRefs(props)
const playedCards = computed(() => {
- return [...trick.value.cards].map(card => {
- return {
- cardId: card[1].path,
- player: card[0].name
- }
- })
+ if (!trick.value) return []
+ let result: { cardId: string, player: string }[] = []
+ for (const key in trick.value.cards) {
+ result.push({
+ cardId: trick.value.cards[key]?.path ?? '',
+ player: key
+ })
+ }
+ return result;
})
function getCardImagePath(cardPath: string) {
diff --git a/src/components/ingame/ScoreboardC.vue b/src/components/ingame/ScoreboardC.vue
index 1bff232..b7d15cd 100644
--- a/src/components/ingame/ScoreboardC.vue
+++ b/src/components/ingame/ScoreboardC.vue
@@ -1,15 +1,18 @@
diff --git a/src/components/ingame/TurnC.vue b/src/components/ingame/TurnC.vue
index 12f4478..d4259fa 100644
--- a/src/components/ingame/TurnC.vue
+++ b/src/components/ingame/TurnC.vue
@@ -1,26 +1,26 @@
-
+
Current Player
{{
- props.queue.currentPlayer?.name
+ currentPlayer?.name
}}
-
+
Next Players
-
+
{{ player.name }}
@@ -35,4 +35,7 @@ const safeNextPlayers = computed(() => props.queue.players ?? [])
.turn-tracker-container {
max-width: 320px;
}
+.no-background {
+ background: none !important;
+}
diff --git a/src/components/lobby/LobbyComponent.vue b/src/components/lobby/LobbyComponent.vue
index 586adbf..6516e85 100644
--- a/src/components/lobby/LobbyComponent.vue
+++ b/src/components/lobby/LobbyComponent.vue
@@ -1,22 +1,18 @@
-
+
+
@@ -28,6 +39,6 @@ if (ui.gameId) {
.lobby-background {
background-color: var(--body-background-color);
width: 100%;
- min-height:100vh;
+ min-height: 100vh;
}
diff --git a/src/views/JoinGameView.vue b/src/views/JoinGameView.vue
index aab8b5a..2a57f38 100644
--- a/src/views/JoinGameView.vue
+++ b/src/views/JoinGameView.vue
@@ -22,7 +22,7 @@ const startGameQuasar = async() => {
icon: 'check_circle',
position: 'top'
});
- router.push("/lobby")
+ router.replace("/game")
}).catch(() => {
$q.notify({
message: `Lobby "${lobbyCode.value}" nicht gefunden`,
diff --git a/src/views/LoginView.vue b/src/views/LoginView.vue
index 9a460c9..50997d6 100644
--- a/src/views/LoginView.vue
+++ b/src/views/LoginView.vue
@@ -80,7 +80,7 @@ const onSubmit = () => {
loginError.value = ''
axios.post(`${api}/login`, {username: username.value, password: password.value}, {withCredentials: true}).then((response) => {
uInfo.setUserInfo(response.data.user.username, response.data.user.id)
- router.push("/mainmenu")
+ router.push("/")
}).catch(() => {
loginError.value = 'Invalid username or password'
}).finally(() =>