install and init vue-toasted

This commit is contained in:
Son NK
2019-11-29 00:03:25 +00:00
parent de782b1a74
commit 2532a7dcc1
3 changed files with 9 additions and 0 deletions
+5
View File
@@ -7220,6 +7220,11 @@
"integrity": "sha512-4gDntzrifFnCEvyoO8PqyJDmguXgVPxKiIxrBKjIowvL9l+N66196+72XVYR8BBf1Uv1Fgt3bGevJ+sEmxfZzw==",
"dev": true
},
"vue-toasted": {
"version": "1.1.27",
"resolved": "https://registry.npmjs.org/vue-toasted/-/vue-toasted-1.1.27.tgz",
"integrity": "sha512-GVbwInwnqkVxQ4GU/XYeQt1e0dAXL8sF5Hr1H/coCBbYUan5xP0G2mEz/HRDf1lt73rFQAN/bJcLTOKkqiM6tg=="
},
"watchpack": {
"version": "1.6.0",
"resolved": "https://registry.npmjs.org/watchpack/-/watchpack-1.6.0.tgz",
+1
View File
@@ -16,6 +16,7 @@
"dependencies": {
"v-clipboard": "^2.2.2",
"vue": "^2.6.10",
"vue-toasted": "^1.1.27",
"webextension-polyfill": "^0.3.1"
},
"devDependencies": {
+3
View File
@@ -1,6 +1,7 @@
import Vue from 'vue'
import App from './App'
import Clipboard from 'v-clipboard'
import Toasted from 'vue-toasted';
@@ -8,6 +9,8 @@ global.browser = require('webextension-polyfill')
Vue.prototype.$browser = global.browser
Vue.use(Clipboard)
Vue.use(Toasted, {duration: 1000})
/* eslint-disable no-new */