chore: rename to Elk

This commit is contained in:
Anthony Fu 2022-11-23 21:06:27 +08:00
parent 674879cb7f
commit 129e12c217
12 changed files with 35 additions and 69 deletions

View file

@ -1,10 +1,12 @@
<script setup lang="ts">
import { STORAGE_KEY_NOTIFY_TAB } from '~/constants'
definePageMeta({
middleware: 'auth',
})
const tabNames = ['All', 'Mentions'] as const
const tab = $(useLocalStorage<typeof tabNames[number]>('nuxtodon-notifications-tab', 'All'))
const tab = $(useLocalStorage<typeof tabNames[number]>(STORAGE_KEY_NOTIFY_TAB, 'All'))
const paginator = $computed(() => {
return masto.notifications.getIterator(tab === 'All' ? undefined : { types: ['mention'] })