Add in some hierarchy to the game detail view

This commit is contained in:
jmosrael@gmail.com
2024-05-04 01:21:09 +00:00
parent 2cdc335224
commit b3904e307e

View File

@@ -1,23 +1,30 @@
<template>
<div>#{{ game.id }} - {{game.title}}</div>
<div>{{game.gamemaster}}</div>
<div>
Payout
<div>{{game.payoutEB}} eb</div>
<div>{{game.payoutIP}} IP</div>
<div>{{game.payoutLoot}}</div>
<h1>#{{ game.id }} - {{ game.title }}</h1>
</div>
<div>
<h2>GameMaster: {{ game.gamemaster }}</h2>
</div>
<div>
<h3>Payout</h3>
<div>{{ game.payoutEB }} eb</div>
<div>{{ game.payoutIP }} IP</div>
<div>{{ game.payoutLoot }}</div>
</div>
<div>Picks</div>
<div>
<h3>Picks</h3>
<div v-for="pick in picks">
{{pick.characterName}}
</div>
<div>Apps</div>
<div v-for="app in apps">
{{app.characterName}}
{{ pick.characterName }}
</div>
</div>
<div>
<h3>Apps</h3>
<div v-for="app in apps">
{{ app.characterName }}
</div>
</div>
</template>
<script setup lang="ts">
@@ -58,5 +65,4 @@ async function loadApps() {
const response = await axios.post(`/api/game/${gameId.value}/apps`)
apps.value = response.data
}
</script>