evilSpins v1
All checks were successful
Deploy App / build (push) Successful in 43s
Deploy App / deploy (push) Successful in 41s

This commit is contained in:
valere
2025-11-04 22:41:41 +01:00
parent deb15b3ea1
commit 34d22b3b17
49 changed files with 5791 additions and 2447 deletions

View File

@@ -0,0 +1,36 @@
<template>
<div
ref="deck"
class="deck flex flex-wrap justify-center gap-4"
:class="{ 'pb-36': playerStore.currentTrack }"
>
<card
v-for="(track, i) in tracks"
:key="track.id"
:track="track"
tabindex="i"
:is-face-up="isCardRevealed(track.id)"
/>
</div>
</template>
<script setup lang="ts">
import { computed, ref } from 'vue'
import { useDataStore } from '~/store/data'
import { useCardStore } from '~/store/card'
import { usePlayerStore } from '~/store/player'
import type { Box } from '~~/types/types'
const props = defineProps<{
box: Box
}>()
const cardStore = useCardStore()
const dataStore = useDataStore()
const playerStore = usePlayerStore()
const deck = ref()
const tracks = computed(() => dataStore.getTracksByboxId(props.box.id))
const isCardRevealed = (trackId: number) => cardStore.isCardRevealed(trackId)
</script>