remove vue-notification-bell package and its component

This commit is contained in:
Dannon Baker
2023-05-26 18:04:06 +02:00
committed by davelopez
parent 3695935d53
commit 3de9b4507d
3 changed files with 1 additions and 86 deletions
-1
View File
@@ -99,7 +99,6 @@
"vue": "^2.7.14",
"vue-infinite-scroll": "^2.0.2",
"vue-multiselect": "^2.1.7",
"vue-notification-bell": "^0.9.12",
"vue-observe-visibility": "^1.0.0",
"vue-prismjs": "^1.2.0",
"vue-router": "^3.6.5",
@@ -1,63 +0,0 @@
<template>
<div @click="printNotifications()">
<b-nav-item> <notification-bell icon-color="white" :count="count" :size="20"> </notification-bell> </b-nav-item>
</div>
</template>
<script>
import axios from "axios";
import { BNavItem } from "bootstrap-vue";
import { getGalaxyInstance } from "app";
import NotificationBell from "vue-notification-bell";
import { errorMessageAsString } from "utils/simple-error";
export default {
components: {
NotificationBell,
BNavItem,
},
data() {
const Galaxy = getGalaxyInstance();
return {
notificationsUrl: `${Galaxy.root}api/notifications`,
notifications: null,
errorMessage: null,
showNotifications: false,
};
},
computed: {
loading() {
return this.notifications == null;
},
count() {
return this.notifications ? this.notifications.length : 0;
},
},
created() {
this.loadNotifications();
},
methods: {
loadNotifications() {
setInterval(() => {
axios
.get(this.notificationsUrl)
.then((response) => {
this.notifications = response.data;
})
.catch(this.handleError);
}, 60000);
},
handleError(error) {
this.errorMessage = errorMessageAsString(error);
},
printNotifications() {
console.log("pushing to router");
this.$router.push("notifications");
},
toggleShowNotifications() {
console.log("inside show notifications");
this.showNotifications = !this.showNotifications;
},
},
};
</script>
+1 -22
View File
@@ -7876,7 +7876,7 @@ lodash.uniqby@4.5.0:
lodash._baseiteratee "~4.7.0"
lodash._baseuniq "~4.6.0"
lodash@^4.17.15, lodash@^4.17.19, lodash@^4.17.21, lodash@latest:
lodash@^4.17.15, lodash@^4.17.19, lodash@^4.17.21:
version "4.17.21"
resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.21.tgz#679591c564c3bffaae8454cf0b3df370c3d6911c"
integrity sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==
@@ -8488,11 +8488,6 @@ obuf@^1.0.0, obuf@^1.1.2:
resolved "https://registry.npmjs.org/obuf/-/obuf-1.1.2.tgz"
integrity sha512-PX1wu0AmAdPqOL1mWhqmlOd8kOIZQwGZw6rh7uby9fTc5lhaOWFLX3I6R1hrF9k3zUY40e6igsLGkDXK92LJNg==
odometer@^0.4.8:
version "0.4.8"
resolved "https://registry.yarnpkg.com/odometer/-/odometer-0.4.8.tgz#2f6703bf4c6b384c278236d04d4bc8171abe4374"
integrity sha512-bfKuAhWE/qMCiX9bwX90c5bTpt7MDVeq1e6YsOHQrYokNhv9jhS5JbR9kg6i+FeWmDgalf3VUtwNx1aVaZ8cgg==
on-finished@2.4.1:
version "2.4.1"
resolved "https://registry.npmjs.org/on-finished/-/on-finished-2.4.1.tgz"
@@ -11197,27 +11192,11 @@ vue-multiselect@^2.1.7:
resolved "https://registry.yarnpkg.com/vue-multiselect/-/vue-multiselect-2.1.7.tgz#f27afe3d46482b94810382af7a4826219255c47d"
integrity sha512-KIegcN+Ntwg3cbkY/jhw2s/+XJUM0Lpi/LcKFYCS8PrZHcWBl2iKCVze7ZCnRj3w8H7/lUJ9v7rj9KQiNxApBw==
vue-notification-bell@^0.9.12:
version "0.9.12"
resolved "https://registry.yarnpkg.com/vue-notification-bell/-/vue-notification-bell-0.9.12.tgz#f0098c16a8e4405dd506467da08c22079b3a836e"
integrity sha512-5HyYg0hpeJRRAax6vslfF/yA3qt5soUxnNozhbWIvwlSntv99HM7zSD5a9gWJ5wKYpgpXm/svf0GfxIBkw8jXw==
dependencies:
odometer "^0.4.8"
vue "^2.6.10"
vue-odometer "^1.0.2"
vue-observe-visibility@^1.0.0:
version "1.0.0"
resolved "https://registry.npmjs.org/vue-observe-visibility/-/vue-observe-visibility-1.0.0.tgz"
integrity sha512-s5TFh3s3h3Mhd3jaz3zGzkVHKHnc/0C/gNr30olO99+yw2hl3WBhK3ng3/f9OF+qkW4+l7GkmwfAzDAcY3lCFg==
vue-odometer@^1.0.2:
version "1.0.2"
resolved "https://registry.yarnpkg.com/vue-odometer/-/vue-odometer-1.0.2.tgz#ccd43c4a6edae2c432959ea4bd63ece2cfe01a34"
integrity sha512-xQj1kdRrQDGhjZ9nb66I6wykR9lG5yvy74PLBpTHw7raGqahBgZOCvPWvC4nol8B8bJQeFWmpCBUidVjtouyng==
dependencies:
lodash latest
vue-prismjs@^1.2.0:
version "1.2.0"
resolved "https://registry.npmjs.org/vue-prismjs/-/vue-prismjs-1.2.0.tgz"