add debug mode
All checks were successful
Deploy App / build (push) Successful in 1m4s
Deploy App / deploy (push) Successful in 19s

This commit is contained in:
valere
2025-11-27 08:52:17 +01:00
parent 27697ca797
commit a79f044096
3 changed files with 25 additions and 9 deletions

View File

@@ -1,5 +1,5 @@
import { defineStore } from 'pinia'
import type { Track } from '~~/types/types'
interface CardPosition {
x: number
y: number
@@ -42,6 +42,14 @@ export const useCardStore = defineStore('card', {
return this.cardPositions[boxId]?.[trackId]
},
// Basculer l'état de révélation de toutes les cartes
revealAllCards(tracks: Track[]) {
tracks.forEach((track) => {
this.revealCard(track.id)
})
this.saveToLocalStorage()
},
// Sauvegarder l'état dans le localStorage
saveToLocalStorage() {
if (typeof window !== 'undefined') {