feat: content filters (#279)

This commit is contained in:
Ayo Ayco 2022-12-04 20:28:26 +01:00 committed by GitHub
parent 337d2a8b43
commit 4f8f2ed1f1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
14 changed files with 44 additions and 27 deletions

View file

@ -52,7 +52,7 @@ onReactivated(() => {
<div v-if="status" min-h-100vh>
<template v-if="context">
<template v-for="comment of context?.ancestors" :key="comment.id">
<StatusCard :status="comment" border="t base" py3 />
<StatusCard :status="comment" context="account" border="t base" py3 />
</template>
</template>
@ -73,7 +73,7 @@ onReactivated(() => {
<template v-if="context">
<template v-for="comment of context?.descendants" :key="comment.id">
<StatusCard :status="comment" border="t base" py3 />
<StatusCard :status="comment" context="account" border="t base" py3 />
</template>
</template>

View file

@ -46,7 +46,7 @@ const paginator = $computed(() => tabs.find(t => t.name === tab)!.paginator)
<div>
<CommonTabs v-model="tab" :options="tabs" command />
<KeepAlive>
<TimelinePaginator :key="tab" :paginator="paginator" />
<TimelinePaginator :key="tab" :paginator="paginator" context="account" />
</KeepAlive>
</div>
</template>