game-village-politics-frontend/app/pages/village/[id].vue

12 lines
417 B
Vue
Raw Normal View History

<script setup lang="ts">
// The village bar and its tabs live in the game layout; this only waits for the
// village before its screens render.
definePageMeta({ layout: 'game' })
const v = useVillageContext()
</script>
<template>
<NuxtPage v-if="v.village.value && v.resources.value" />
<p v-else-if="!v.error.value" class="px-4 py-16 text-center text-sm text-ink-500">{{ $t('common.loading') }}</p>
</template>