feat: init board game game

This commit is contained in:
Julien Calixte
2025-08-05 22:41:53 +02:00
parent 859d6dfe88
commit e0947ab96d
8 changed files with 131 additions and 54 deletions

View File

@@ -0,0 +1,20 @@
import { boardGames } from '@/modules/5s/types/board-games'
import { BoardGame } from '@/modules/5s/types/workshop'
import { defineStore } from 'pinia'
type State = {
boardGames: BoardGame[]
currentBoardGame: BoardGame | null
}
export const useBoardGameStore = defineStore('day', {
state: (): State => ({
boardGames: [],
currentBoardGame: null
}),
actions: {
initGame() {
this.currentBoardGame = boardGames[0]
}
}
})