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

@@ -3,11 +3,9 @@
</template>
<script setup lang="ts">
import { onMounted } from 'vue'
import { useRoute } from 'vue-router'
import { useUiStore } from '~/store/ui'
import { useDataStore } from '~/store/data'
import { usePlayerStore } from '~/store/player'
// Configuration du layout
definePageMeta({
@@ -23,13 +21,8 @@ onMounted(async () => {
const idParam = Array.isArray(route.params.id) ? route.params.id[0] : route.params.id
if (typeof idParam === 'string' && idParam.length > 0) {
uiStore.selectBox(idParam)
// Lire automatiquement la box si on est sur la page d'une box
const box = dataStore.boxes.find(b => b.id === idParam)
if (box) {
const player = usePlayerStore()
player.playBox(box).catch(console.error)
}
// player.playBox(box).catch(console.error)
// }
}
})
</script>