elk/pages/notifications.vue

37 lines
765 B
Vue
Raw Normal View History

2022-11-15 22:21:54 +01:00
<script setup lang="ts">
definePageMeta({
middleware: 'auth',
})
2022-11-28 15:25:32 +01:00
const { t } = useI18n()
2022-11-30 00:25:29 +01:00
const tabs = $computed(() => [
{
name: 'all',
to: '/notifications',
2022-11-30 00:25:29 +01:00
display: t('tab.notifications_all'),
},
{
name: 'mention',
to: '/notifications/mention',
2022-11-30 00:25:29 +01:00
display: t('tab.notifications_mention'),
},
] as const)
2022-11-15 22:21:54 +01:00
</script>
<template>
<MainContent>
<template #title>
2022-11-29 21:15:53 +01:00
<NuxtLink to="/notifications" text-lg font-bold flex items-center gap-2 @click="$scrollToTop">
<div i-ri:notification-4-line />
<span>{{ t('nav_side.notifications') }}</span>
</NuxtLink>
2022-11-15 22:21:54 +01:00
</template>
2022-11-24 07:42:26 +01:00
2022-11-23 09:08:49 +01:00
<template #header>
<CommonRouteTabs replace :options="tabs" />
2022-11-23 09:08:49 +01:00
</template>
<NuxtPage />
2022-11-15 22:21:54 +01:00
</MainContent>
</template>