From 2c22837d9f9b1827f40969a1b1ddb82fb9ebe42d Mon Sep 17 00:00:00 2001 From: venashial Date: Thu, 27 May 2021 09:32:34 -0700 Subject: [PATCH] Fix notification & follow list sorting, Add notification badge + loading animation (#206) * Order notifications and followed mods Fixes modrinth/knossos#195 * Add user notification badge on avatar Closes modrinth/knossos#145 * Add loading animation * Chain calls, remove console.log * Chain calls * Fix formatting to match prettier * Remove unused userFollows * Create user vuex store * Add notification count indication on dashboard * Fix background for light mode * Move delay check to action, add force parameter * Slightly decrease notification badge opacity on dashboard * Remove SVG for image masking, use border around bubble Also adds CSS for when the dropdown is opened/hovered * Fix merge conflicts Co-authored-by: Geometrically <18202329+Geometrically@users.noreply.github.com> --- components/ui/AvatarIcon.vue | 76 +++++++++++++++ components/ui/search/LogoAnimated.vue | 130 ++++++++++++++++++++++++++ layouts/default.vue | 27 ++++-- nuxt.config.js | 1 + pages/dashboard.vue | 16 ++++ pages/dashboard/follows.vue | 3 +- pages/dashboard/notifications.vue | 3 +- pages/mods.vue | 3 + plugins/user.js | 3 + store/auth.js | 15 --- store/user.js | 35 +++++++ 11 files changed, 287 insertions(+), 25 deletions(-) create mode 100644 components/ui/AvatarIcon.vue create mode 100644 components/ui/search/LogoAnimated.vue create mode 100644 plugins/user.js create mode 100644 store/user.js diff --git a/components/ui/AvatarIcon.vue b/components/ui/AvatarIcon.vue new file mode 100644 index 000000000..f24ef2dbf --- /dev/null +++ b/components/ui/AvatarIcon.vue @@ -0,0 +1,76 @@ + + + + + + diff --git a/components/ui/search/LogoAnimated.vue b/components/ui/search/LogoAnimated.vue new file mode 100644 index 000000000..8f07e1726 --- /dev/null +++ b/components/ui/search/LogoAnimated.vue @@ -0,0 +1,130 @@ + + + + + diff --git a/layouts/default.vue b/layouts/default.vue index 421fe062d..4246c56bc 100644 --- a/layouts/default.vue +++ b/layouts/default.vue @@ -59,7 +59,10 @@ @@ -77,6 +80,12 @@ Notifications +
  • + + + Settings + +