From ed163876c5dac506f5f8846445bdccaaf18a3669 Mon Sep 17 00:00:00 2001 From: Oliver-Akins Date: Fri, 2 Oct 2020 17:55:49 -0600 Subject: [PATCH] Add v-clipboard --- package.json | 1 + pnpm-lock.yaml | 6 ++++++ src/main.js | 3 ++- 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index b2fcd83..edcbff5 100644 --- a/package.json +++ b/package.json @@ -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" }, diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 55fdb65..3428757 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -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 diff --git a/src/main.js b/src/main.js index cbac006..6398154 100644 --- a/src/main.js +++ b/src/main.js @@ -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