mirror of
https://github.com/elk-zone/elk.git
synced 2024-11-13 20:39:58 +00:00
37 lines
765 B
Vue
37 lines
765 B
Vue
<script setup lang="ts">
|
|
definePageMeta({
|
|
middleware: 'auth',
|
|
})
|
|
|
|
const { t } = useI18n()
|
|
|
|
const tabs = $computed(() => [
|
|
{
|
|
name: 'all',
|
|
to: '/notifications',
|
|
display: t('tab.notifications_all'),
|
|
},
|
|
{
|
|
name: 'mention',
|
|
to: '/notifications/mention',
|
|
display: t('tab.notifications_mention'),
|
|
},
|
|
] as const)
|
|
</script>
|
|
|
|
<template>
|
|
<MainContent>
|
|
<template #title>
|
|
<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>
|
|
</template>
|
|
|
|
<template #header>
|
|
<CommonRouteTabs replace :options="tabs" />
|
|
</template>
|
|
<NuxtPage />
|
|
</MainContent>
|
|
</template>
|