From 907d9999dcc189f619bc3599d04869b404a074f0 Mon Sep 17 00:00:00 2001 From: Ayo Ayco Date: Wed, 6 Sep 2023 11:13:16 +0200 Subject: [PATCH] feat: filter notifications by type (#2371) Co-authored-by: Xabi Co-authored-by: userquin --- components/common/CommonRouteTabs.vue | 51 ++++++++++++++++- components/notification/NotificationCard.vue | 4 +- components/timeline/TimelineMentions.vue | 12 ---- components/timeline/TimelineNotifications.vue | 10 +++- composables/notification.ts | 20 +++++++ constants/index.ts | 4 ++ locales/en.json | 12 ++++ pages/notifications.vue | 55 +++++++++++++++++-- pages/notifications/[filter].vue | 24 ++++++++ pages/notifications/mention.vue | 10 ---- 10 files changed, 171 insertions(+), 31 deletions(-) delete mode 100644 components/timeline/TimelineMentions.vue create mode 100644 composables/notification.ts create mode 100644 pages/notifications/[filter].vue delete mode 100644 pages/notifications/mention.vue diff --git a/components/common/CommonRouteTabs.vue b/components/common/CommonRouteTabs.vue index e0eefc4f..95a994d1 100644 --- a/components/common/CommonRouteTabs.vue +++ b/components/common/CommonRouteTabs.vue @@ -1,6 +1,8 @@ - - diff --git a/components/timeline/TimelineNotifications.vue b/components/timeline/TimelineNotifications.vue index 480c13b4..eb52eb1e 100644 --- a/components/timeline/TimelineNotifications.vue +++ b/components/timeline/TimelineNotifications.vue @@ -1,6 +1,14 @@ diff --git a/pages/notifications/[filter].vue b/pages/notifications/[filter].vue new file mode 100644 index 00000000..9834c20d --- /dev/null +++ b/pages/notifications/[filter].vue @@ -0,0 +1,24 @@ + + + diff --git a/pages/notifications/mention.vue b/pages/notifications/mention.vue deleted file mode 100644 index e65a7522..00000000 --- a/pages/notifications/mention.vue +++ /dev/null @@ -1,10 +0,0 @@ - - -