Add v-clipboard

This commit is contained in:
Oliver-Akins 2020-10-02 17:55:49 -06:00
parent b7975ed784
commit ed163876c5
3 changed files with 9 additions and 1 deletions

View file

@ -9,6 +9,7 @@
},
"dependencies": {
"core-js": "^3.6.5",
"v-clipboard": "^2.2.3",
"vue": "^2.6.11",
"vue-socket.io": "^3.0.10"
},

6
pnpm-lock.yaml generated
View file

@ -1,5 +1,6 @@
dependencies:
core-js: 3.6.5
v-clipboard: 2.2.3
vue: 2.6.12
vue-socket.io: 3.0.10
devDependencies:
@ -8648,6 +8649,10 @@ packages:
hasBin: true
resolution:
integrity: sha512-HjSDRw6gZE5JMggctHBcjVak08+KEVhSIiDzFnT9S9aegmp85S/bReBVTb4QTFaRNptJ9kuYaNhnbNEOkbKb/A==
/v-clipboard/2.2.3:
dev: false
resolution:
integrity: sha512-Wg+ObZoYK6McHb5OOCFWvm0R7xHp0/p0G1ocx/8bO22jvA/yVY05rADbfiztwCokXBNfQuGv/XSd1ozcTFgekw==
/v8-compile-cache/2.1.1:
dev: true
resolution:
@ -9161,6 +9166,7 @@ specifiers:
eslint-plugin-vue: ^6.2.2
stylus: ^0.54.7
stylus-loader: ^3.0.2
v-clipboard: ^2.2.3
vue: ^2.6.11
vue-socket.io: ^3.0.10
vue-template-compiler: ^2.6.11

View file

@ -1,5 +1,6 @@
import Vue from 'vue';
import App from './App.vue';
import Clipboard from 'v-clipboard';
import VueSocketIO from 'vue-socket.io';
Vue.config.productionTip = false;
@ -22,7 +23,7 @@ while ((!ws_uri || ws_uri.length == 0) || !ws_uri.match(/^(wss?|https?):\/\//))
qs.set(`ws-uri`, ws_uri);
window.history.pushState({}, ``, `/?${qs.toString()}`)
Vue.use(Clipboard);
Vue.use(new VueSocketIO({
debug: true,
connection: ws_uri