Add v-clipboard
This commit is contained in:
parent
b7975ed784
commit
ed163876c5
3 changed files with 9 additions and 1 deletions
|
|
@ -9,6 +9,7 @@
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"core-js": "^3.6.5",
|
"core-js": "^3.6.5",
|
||||||
|
"v-clipboard": "^2.2.3",
|
||||||
"vue": "^2.6.11",
|
"vue": "^2.6.11",
|
||||||
"vue-socket.io": "^3.0.10"
|
"vue-socket.io": "^3.0.10"
|
||||||
},
|
},
|
||||||
|
|
|
||||||
6
pnpm-lock.yaml
generated
6
pnpm-lock.yaml
generated
|
|
@ -1,5 +1,6 @@
|
||||||
dependencies:
|
dependencies:
|
||||||
core-js: 3.6.5
|
core-js: 3.6.5
|
||||||
|
v-clipboard: 2.2.3
|
||||||
vue: 2.6.12
|
vue: 2.6.12
|
||||||
vue-socket.io: 3.0.10
|
vue-socket.io: 3.0.10
|
||||||
devDependencies:
|
devDependencies:
|
||||||
|
|
@ -8648,6 +8649,10 @@ packages:
|
||||||
hasBin: true
|
hasBin: true
|
||||||
resolution:
|
resolution:
|
||||||
integrity: sha512-HjSDRw6gZE5JMggctHBcjVak08+KEVhSIiDzFnT9S9aegmp85S/bReBVTb4QTFaRNptJ9kuYaNhnbNEOkbKb/A==
|
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:
|
/v8-compile-cache/2.1.1:
|
||||||
dev: true
|
dev: true
|
||||||
resolution:
|
resolution:
|
||||||
|
|
@ -9161,6 +9166,7 @@ specifiers:
|
||||||
eslint-plugin-vue: ^6.2.2
|
eslint-plugin-vue: ^6.2.2
|
||||||
stylus: ^0.54.7
|
stylus: ^0.54.7
|
||||||
stylus-loader: ^3.0.2
|
stylus-loader: ^3.0.2
|
||||||
|
v-clipboard: ^2.2.3
|
||||||
vue: ^2.6.11
|
vue: ^2.6.11
|
||||||
vue-socket.io: ^3.0.10
|
vue-socket.io: ^3.0.10
|
||||||
vue-template-compiler: ^2.6.11
|
vue-template-compiler: ^2.6.11
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,6 @@
|
||||||
import Vue from 'vue';
|
import Vue from 'vue';
|
||||||
import App from './App.vue';
|
import App from './App.vue';
|
||||||
|
import Clipboard from 'v-clipboard';
|
||||||
import VueSocketIO from 'vue-socket.io';
|
import VueSocketIO from 'vue-socket.io';
|
||||||
|
|
||||||
Vue.config.productionTip = false;
|
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);
|
qs.set(`ws-uri`, ws_uri);
|
||||||
window.history.pushState({}, ``, `/?${qs.toString()}`)
|
window.history.pushState({}, ``, `/?${qs.toString()}`)
|
||||||
|
|
||||||
|
Vue.use(Clipboard);
|
||||||
Vue.use(new VueSocketIO({
|
Vue.use(new VueSocketIO({
|
||||||
debug: true,
|
debug: true,
|
||||||
connection: ws_uri
|
connection: ws_uri
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue