show basic game information

This commit is contained in:
2024-04-05 16:39:42 +02:00
parent 4799a99c07
commit 3657d6a888
5 changed files with 97 additions and 2 deletions
+9
View File
@@ -0,0 +1,9 @@
<script setup lang="ts">
defineProps(['data'])
</script>
<template>
<div>
{{ data.name }}
</div>
</template>
+9
View File
@@ -0,0 +1,9 @@
<script setup lang="ts">
defineProps(['cards'])
</script>
<template>
<div>
<CardPreview v-for="c in cards" :data="c" :key="c.uuid" />
</div>
</template>
+19
View File
@@ -0,0 +1,19 @@
<script setup lang="ts">
const props = defineProps(['game'])
</script>
<template>
<div>
<div>
market_amount = {{ props.game.market_stack?.length }}
<br>
market = {{ props.game.market }}
<br>
gems = {{ props.game.gem_stack }}
</div>
<div>
players = {{ props.game.players }}
</div>
</div>
</template>