diff --git a/app/app.vue b/app/app.vue
index 26ceff1..a88ee73 100644
--- a/app/app.vue
+++ b/app/app.vue
@@ -4,9 +4,10 @@ const { user, logout } = useAuth()
const notices = useNotices()
const route = useRoute()
const { current } = useCurrentWorld()
+const unreadReports = useUnreadReports()
-/** Inside a world (village or map) the header is that world's navigation. */
-const inWorld = computed(() => !!current.value && /^\/(village|map)\//.test(route.path))
+/** Inside a world (village, map or reports) the header is that world's navigation. */
+const inWorld = computed(() => !!current.value && /^\/(village|map|reports)\//.test(route.path))
const home = computed(() =>
inWorld.value && current.value?.villageId ? `/village/${current.value.villageId}` : '/worlds',
)
@@ -57,6 +58,13 @@ useHead({ title: () => t('app.title') })
{{ $t('reports.battle.night') }}
+ +{{ $t('reports.battle.no_info') }}
+{{ $t('reports.battle.no_troops') }}
++ {{ + report.wall.after < report.wall.before + ? $t('reports.battle.wall', report.wall) + : $t('reports.battle.wall_held', { level: report.wall.after }) + }} +
++ {{ + report.building.after < report.building.before + ? $t('reports.battle.building', { ...report.building, type: $t(`buildings.${report.building.type}`) }) + : $t('reports.battle.building_held', { type: $t(`buildings.${report.building.type}`), level: report.building.after }) + }} +
++ {{ + report.scouting.through + ? $t('reports.battle.scouts_through', { sent: report.scouting.sent, lost: report.scouting.lost }) + : $t('reports.battle.scouts_failed', { sent: report.scouting.sent }) + }} +
+{{ $t('reports.battle.scouted_buildings') }}
+| + |
+ |
+
|---|---|
| {{ $t('reports.battle.units') }} | +{{ units[unit] }} | +
| {{ $t('reports.battle.losses') }} | ++ {{ lost[unit] ?? 0 }} + | +
| {{ $t('reports.subject') }} | +{{ $t('village.movements.arrival') }} | +{{ $t('village.movements.arrives_in') }} | ++ |
|---|---|---|---|
|
+
+
+
+
+
+
+
+ |
+ {{ formatArrival(Date.parse(m.arrives_at), now, t) }} | +{{ formatDuration(secondsUntil(m.arrives_at)) }} | ++ + | +
{{ $t(list.key === 'incoming' ? 'village.movements.none_incoming' : 'village.movements.none') }}
+{{ $t(`village.support.none_${list.key}`) }}
+{{ error }}
+{{ $t('reports.support.arrived', { to: villageLabel(report.payload.to) }) }}
+{{ $t('common.loading') }}
+{{ error }}
+{{ $t('common.loading') }}
+{{ $t('reports.none') }}
+ +| + + | +{{ $t('reports.subject') }} | +{{ $t('reports.received') }} | +
|---|---|---|
| + + | +
+ |
+ {{ formatArrival(Date.parse(r.happened_at), clock, t) }} | +