mirror of
https://github.com/elk-zone/elk.git
synced 2024-12-15 15:41:47 +03:00
21 lines
696 B
Vue
21 lines
696 B
Vue
<script setup lang="ts">
|
|
const props = defineProps<{
|
|
modelValue?: boolean
|
|
}>()
|
|
|
|
const params = useRoute().params
|
|
const id = computed(() => params.post as string)
|
|
|
|
const masto = await useMasto()
|
|
const { data: status } = await useAsyncData(`${id}-status`, () => masto.statuses.fetch(params.post as string))
|
|
const { data: context } = await useAsyncData(`${id}-context`, () => masto.statuses.fetchContext(params.post as string))
|
|
</script>
|
|
|
|
<template>
|
|
<StatusDetails :status="status" />
|
|
<template v-for="comment of context?.descendants" :key="comment.id">
|
|
<StatusCard :status="comment" border="t border" pt-4 />
|
|
</template>
|
|
<pre>{{ status }}</pre>
|
|
<pre>{{ context }}</pre>
|
|
</template>
|