set route /mix & /draggable
All checks were successful
Deploy App / build (push) Successful in 3m13s
Deploy App / deploy (push) Successful in 18s

This commit is contained in:
valere
2025-12-17 19:34:25 +01:00
parent 65aaa71a3d
commit dc2cba500c
6 changed files with 87 additions and 119 deletions

View File

@@ -1,5 +1,9 @@
<template>
<div class="deck">
<button class="px-4 py-2 text-black hover:text-black bg-esyellow transition-colors relative z-30"
@click="cardStore.revealAllCards(tracks)">
reveal
</button>
<draggable v-model="tracks" item-key="id" class="draggable-container" @start="drag = true" @end="onDragEnd">
<template #item="{ element: track }">
<card :key="track.id" :track="track" tabindex="0" :is-face-up="track.isFaceUp" class="draggable-item"
@@ -12,7 +16,9 @@
<script setup>
import { useDataStore } from '~/store/data'
import draggable from 'vuedraggable'
import { useCardStore } from '~/store/card'
const cardStore = useCardStore()
const drag = ref(false)
const tracks = ref([])
// Configuration du layout