2026-03-23 17:14:14 -07:00
|
|
|
<template>
|
2026-03-24 09:36:20 -07:00
|
|
|
<TimeRelative :time="signal.created"></TimeRelative>
|
2026-04-21 19:38:46 +00:00
|
|
|
<p>{{ formatAddressShort(signal.address) }}</p>
|
2026-03-25 21:45:13 -07:00
|
|
|
<div v-if="signal.type == 'flyover pool' && signal.pool">
|
2026-03-31 14:52:53 +00:00
|
|
|
<FlyoverPoolCard :location="signal.location" :markers="[]" />
|
2026-03-24 09:36:20 -07:00
|
|
|
</div>
|
2026-03-31 14:52:53 +00:00
|
|
|
<div v-else-if="signal.type == 'publicreport nuisance' && signal.report">
|
2026-04-27 19:53:22 +00:00
|
|
|
<PublicReportCard :report="signal.report" />
|
2026-03-24 08:35:31 -07:00
|
|
|
</div>
|
2026-03-31 14:52:53 +00:00
|
|
|
<div v-else-if="signal.type == 'publicreport water' && signal.report">
|
2026-04-27 19:53:22 +00:00
|
|
|
<PublicReportCard :report="signal.report" />
|
2026-03-24 08:35:31 -07:00
|
|
|
</div>
|
2026-03-31 14:52:53 +00:00
|
|
|
<div v-else>
|
|
|
|
|
<p>No report or pool</p>
|
|
|
|
|
</div>
|
2026-03-23 17:14:14 -07:00
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script setup lang="ts">
|
2026-03-24 09:36:20 -07:00
|
|
|
import FlyoverPoolCard from "@/components/FlyoverPoolCard.vue";
|
2026-04-27 19:53:22 +00:00
|
|
|
import PublicReportCard from "@/components/PublicReportCard.vue";
|
2026-03-23 17:14:14 -07:00
|
|
|
import TimeRelative from "@/components/TimeRelative.vue";
|
2026-04-21 19:38:46 +00:00
|
|
|
import { formatAddressShort } from "@/format";
|
2026-04-09 00:25:21 +00:00
|
|
|
import { Signal } from "@/type/api";
|
2026-03-23 17:14:14 -07:00
|
|
|
interface Props {
|
|
|
|
|
signal: Signal;
|
|
|
|
|
}
|
|
|
|
|
const props = defineProps<Props>();
|
|
|
|
|
</script>
|