mirror of
https://github.com/elk-zone/elk.git
synced 2024-11-05 08:29:57 +00:00
31 lines
781 B
Vue
31 lines
781 B
Vue
<script lang="ts" setup>
|
|
const { t } = useI18n()
|
|
|
|
const { client } = $(useMasto())
|
|
const paginator = client.v1.lists.list()
|
|
|
|
useHeadFixed({
|
|
title: () => t('nav.lists'),
|
|
})
|
|
</script>
|
|
|
|
<template>
|
|
<MainContent>
|
|
<template #title>
|
|
<NuxtLink to="/lists" timeline-title-style flex items-center gap-2 @click="$scrollToTop">
|
|
<div i-ri:list-check />
|
|
<span text-lg font-bold>{{ t('nav.lists') }}</span>
|
|
</NuxtLink>
|
|
</template>
|
|
<slot>
|
|
<CommonPaginator :paginator="paginator">
|
|
<template #default="{ item }">
|
|
<NuxtLink :to="`list/${item.id}`" block p4 hover:bg-active flex justify-between>
|
|
{{ item.title }}
|
|
</NuxtLink>
|
|
</template>
|
|
</CommonPaginator>
|
|
</slot>
|
|
</MainContent>
|
|
</template>
|