From 9baa128cad51a321e49c4021fa8b6528114faca6 Mon Sep 17 00:00:00 2001 From: Mustafa Yontar Date: Sun, 12 Apr 2020 03:09:25 +0300 Subject: [PATCH] add login screen add router --- package-lock.json | 42 ++++++++++++++++++++++++++++++++++++++---- package.json | 2 ++ src/App.vue | 36 +++--------------------------------- src/lib/VueJanus.vue | 9 ++++----- src/main.js | 3 ++- src/plugins/axios.js | 2 +- src/router/index.js | 20 ++++++++++++++++++++ src/views/Home.vue | 40 ++++++++++++++++++++++++++++++++++++++++ 8 files changed, 110 insertions(+), 44 deletions(-) create mode 100644 src/router/index.js create mode 100644 src/views/Home.vue diff --git a/package-lock.json b/package-lock.json index 18fd454..135598f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1273,12 +1273,41 @@ } }, "@vue/cli-plugin-router": { - "version": "4.2.3", - "resolved": "https://registry.npmjs.org/@vue/cli-plugin-router/-/cli-plugin-router-4.2.3.tgz", - "integrity": "sha512-RGtgFQCTMS1X1wtFt752RMgr/LlF9cfpH37MkwjhF2wpnyTp+hkKl/09QORAKW91I8iFpZFH7xZKMBS3r1WbCw==", + "version": "4.3.1", + "resolved": "https://registry.npm.taobao.org/@vue/cli-plugin-router/download/@vue/cli-plugin-router-4.3.1.tgz", + "integrity": "sha1-C6WJ9Omh8+ZKj/bM2S984oRVhr8=", "dev": true, "requires": { - "@vue/cli-shared-utils": "^4.2.3" + "@vue/cli-shared-utils": "^4.3.1" + }, + "dependencies": { + "@vue/cli-shared-utils": { + "version": "4.3.1", + "resolved": "https://registry.npm.taobao.org/@vue/cli-shared-utils/download/@vue/cli-shared-utils-4.3.1.tgz", + "integrity": "sha1-p0v01Tgl1KSwWoSwPgI5dIcbw4o=", + "dev": true, + "requires": { + "@hapi/joi": "^15.0.1", + "chalk": "^2.4.2", + "execa": "^1.0.0", + "launch-editor": "^2.2.1", + "lru-cache": "^5.1.1", + "node-ipc": "^9.1.1", + "open": "^6.3.0", + "ora": "^3.4.0", + "read-pkg": "^5.1.1", + "request": "^2.88.2", + "request-promise-native": "^1.0.8", + "semver": "^6.1.0", + "strip-ansi": "^6.0.0" + } + }, + "semver": { + "version": "6.3.0", + "resolved": "https://registry.npm.taobao.org/semver/download/semver-6.3.0.tgz?cache=0&sync_timestamp=1586534511518&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fsemver%2Fdownload%2Fsemver-6.3.0.tgz", + "integrity": "sha1-7gpkyK9ejO6mdoexM3YeG+y9HT0=", + "dev": true + } } }, "@vue/cli-plugin-vuex": { @@ -11290,6 +11319,11 @@ } } }, + "vue-router": { + "version": "3.1.6", + "resolved": "https://registry.npm.taobao.org/vue-router/download/vue-router-3.1.6.tgz?cache=0&sync_timestamp=1586343646335&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fvue-router%2Fdownload%2Fvue-router-3.1.6.tgz", + "integrity": "sha1-RfWjo4Q+MXAsBh3YKTk1VOQyj4k=" + }, "vue-style-loader": { "version": "4.1.2", "resolved": "https://registry.npmjs.org/vue-style-loader/-/vue-style-loader-4.1.2.tgz", diff --git a/package.json b/package.json index 7f9426d..a2d954c 100644 --- a/package.json +++ b/package.json @@ -12,12 +12,14 @@ "jquery": "^3.4.1", "pdfjs-dist": "^2.3.200", "vue": "^2.6.11", + "vue-router": "^3.1.6", "vuetify": "^2.2.11", "webrtc-adapter": "^7.5.1" }, "devDependencies": { "@vue/cli-plugin-babel": "~4.2.0", "@vue/cli-plugin-eslint": "~4.2.0", + "@vue/cli-plugin-router": "^4.3.1", "@vue/cli-service": "~4.2.0", "axios": "^0.18.0", "babel-eslint": "^10.0.3", diff --git a/src/App.vue b/src/App.vue index 89918a0..c3e43f8 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,36 +1,6 @@ - diff --git a/src/lib/VueJanus.vue b/src/lib/VueJanus.vue index d08e7c4..0b5581e 100644 --- a/src/lib/VueJanus.vue +++ b/src/lib/VueJanus.vue @@ -1,7 +1,6 @@ Toggle Share PDF @@ -151,7 +150,7 @@ Toggle Theme - +