2024-03-04 06:51:40 +03:00
|
|
|
<script setup lang="ts">
|
2024-03-05 12:58:34 +03:00
|
|
|
import ScheduledStatusCard from '~/components/status/ScheduledStatusCard.vue'
|
|
|
|
|
|
|
|
definePageMeta({
|
|
|
|
middleware: 'auth',
|
|
|
|
})
|
|
|
|
|
|
|
|
const { t } = useI18n()
|
|
|
|
|
|
|
|
useHydratedHead({
|
|
|
|
title: () => t('account.scheduled_posts'),
|
|
|
|
})
|
|
|
|
|
2024-03-04 06:51:40 +03:00
|
|
|
const client = useMastoClient()
|
|
|
|
const scheduledPosts = await client.v1.scheduledStatuses.list()
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<template>
|
2024-03-05 12:58:34 +03:00
|
|
|
<MainContent>
|
|
|
|
<template #title>
|
|
|
|
<NuxtLink to="/public/pinned" timeline-title-style flex items-center gap-2 @click="$scrollToTop">
|
|
|
|
<div i-ri:calendar-schedule-line />
|
|
|
|
<span>{{ t('account.scheduled_posts') }}</span>
|
|
|
|
</NuxtLink>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<div v-for="scheduledPost in scheduledPosts" :key="scheduledPost.id" p4>
|
|
|
|
<ScheduledStatusCard :scheduled-status="scheduledPost" />
|
2024-03-04 06:51:40 +03:00
|
|
|
</div>
|
2024-03-05 12:58:34 +03:00
|
|
|
</MainContent>
|
2024-03-04 06:51:40 +03:00
|
|
|
</template>
|