2023-08-14 03:57:34 +00:00
|
|
|
<template>
|
|
|
|
<div class="ExtraNotifications">
|
2023-08-19 01:19:41 +00:00
|
|
|
<div class="notification unseen">
|
2023-08-19 01:48:32 +00:00
|
|
|
<div class="notification-overlay" />
|
2023-08-19 01:19:41 +00:00
|
|
|
<router-link
|
|
|
|
v-if="shouldShowChats"
|
2023-08-19 01:29:01 +00:00
|
|
|
class="button-unstyled -link extra-notification"
|
2023-08-19 01:19:41 +00:00
|
|
|
:to="{ name: 'chats', params: { username: currentUser.screen_name } }"
|
|
|
|
>
|
2023-08-19 01:35:56 +00:00
|
|
|
<FAIcon
|
|
|
|
fixed-width
|
|
|
|
class="fa-scale-110 icon"
|
|
|
|
icon="comments"
|
|
|
|
/>
|
2023-08-19 01:19:41 +00:00
|
|
|
{{ $tc('notifications.unread_chats', unreadChatCount, { num: unreadChatCount }) }}
|
|
|
|
</router-link>
|
|
|
|
</div>
|
|
|
|
<div class="notification unseen">
|
2023-08-19 01:48:32 +00:00
|
|
|
<div class="notification-overlay" />
|
2023-08-19 01:19:41 +00:00
|
|
|
<router-link
|
|
|
|
v-if="shouldShowAnnouncements"
|
2023-08-19 01:29:01 +00:00
|
|
|
class="button-unstyled -link extra-notification"
|
2023-08-19 01:19:41 +00:00
|
|
|
:to="{ name: 'announcements' }"
|
|
|
|
>
|
2023-08-19 01:35:56 +00:00
|
|
|
<FAIcon
|
|
|
|
fixed-width
|
|
|
|
class="fa-scale-110 icon"
|
|
|
|
icon="bullhorn"
|
|
|
|
/>
|
2023-08-19 01:19:41 +00:00
|
|
|
{{ $tc('notifications.unread_announcements', unreadAnnouncementCount, { num: unreadAnnouncementCount }) }}
|
|
|
|
</router-link>
|
|
|
|
</div>
|
|
|
|
<div class="notification unseen">
|
2023-08-19 01:48:32 +00:00
|
|
|
<div class="notification-overlay" />
|
2023-08-19 01:19:41 +00:00
|
|
|
<router-link
|
|
|
|
v-if="shouldShowFollowRequests"
|
2023-08-19 01:29:01 +00:00
|
|
|
class="button-unstyled -link extra-notification"
|
2023-08-19 01:19:41 +00:00
|
|
|
:to="{ name: 'friend-requests' }"
|
|
|
|
>
|
2023-08-19 01:35:56 +00:00
|
|
|
<FAIcon
|
|
|
|
fixed-width
|
|
|
|
class="fa-scale-110 icon"
|
|
|
|
icon="user-plus"
|
|
|
|
/>
|
2023-08-19 01:19:41 +00:00
|
|
|
{{ $tc('notifications.unread_follow_requests', followRequestCount, { num: followRequestCount }) }}
|
|
|
|
</router-link>
|
|
|
|
</div>
|
2023-08-19 00:34:27 +00:00
|
|
|
<i18n-t
|
|
|
|
v-if="shouldShowCustomizationTip"
|
|
|
|
tag="span"
|
2023-08-19 01:29:01 +00:00
|
|
|
class="notification tip extra-notification"
|
2023-08-19 00:34:27 +00:00
|
|
|
keypath="notifications.configuration_tip"
|
|
|
|
>
|
|
|
|
<template #theSettings>
|
|
|
|
<button
|
|
|
|
class="button-unstyled -link"
|
|
|
|
@click="openNotificationSettings"
|
|
|
|
>
|
|
|
|
{{ $t('notifications.configuration_tip_settings') }}
|
|
|
|
</button>
|
|
|
|
</template>
|
|
|
|
<template #dismiss>
|
|
|
|
<button
|
|
|
|
class="button-unstyled -link"
|
|
|
|
@click="dismissConfigurationTip"
|
|
|
|
>
|
|
|
|
{{ $t('notifications.configuration_tip_dismiss') }}
|
|
|
|
</button>
|
|
|
|
</template>
|
|
|
|
</i18n-t>
|
2023-08-14 03:57:34 +00:00
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script src="./extra_notifications.js" />
|
|
|
|
|
|
|
|
<style lang="scss">
|
|
|
|
@import "../../variables";
|
|
|
|
|
|
|
|
.ExtraNotifications {
|
|
|
|
width: 100%;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
align-items: stretch;
|
|
|
|
|
2023-08-19 01:19:41 +00:00
|
|
|
.notification {
|
2023-08-14 03:57:34 +00:00
|
|
|
width: 100%;
|
|
|
|
border-bottom: 1px solid;
|
|
|
|
border-color: $fallback--border;
|
|
|
|
border-color: var(--border, $fallback--border);
|
2023-08-19 01:29:01 +00:00
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
align-items: stretch;
|
|
|
|
}
|
|
|
|
|
|
|
|
.extra-notification {
|
|
|
|
padding: 1em;
|
2023-08-14 03:57:34 +00:00
|
|
|
}
|
2023-08-19 00:34:27 +00:00
|
|
|
|
2023-08-19 01:35:56 +00:00
|
|
|
.icon {
|
|
|
|
margin-right: 0.5em;
|
|
|
|
}
|
|
|
|
|
2023-08-19 00:34:27 +00:00
|
|
|
.tip {
|
|
|
|
display: inline;
|
|
|
|
}
|
2023-08-14 03:57:34 +00:00
|
|
|
}
|
|
|
|
</style>
|