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 @@
-
-
- Start
-
-
-
+
+
+
-
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 @@
-
-
+
mdi-pdf-box
-
+
Toggle Share PDF
@@ -151,7 +150,7 @@
Toggle Theme
-
+
Toggle Camera
-
+
h(App)
}).$mount('#app')
diff --git a/src/plugins/axios.js b/src/plugins/axios.js
index 753eee7..5c523e8 100644
--- a/src/plugins/axios.js
+++ b/src/plugins/axios.js
@@ -9,7 +9,7 @@ import axios from "axios";
// axios.defaults.headers.post['Content-Type'] = 'application/x-www-form-urlencoded';
let config = {
- // baseURL: process.env.baseURL || process.env.apiUrl || ""
+ baseURL: process.env.baseURL || process.env.apiUrl || "http://localhost:5000/api/"
// timeout: 60 * 1000, // Timeout
// withCredentials: true, // Check cross-site Access-Control
};
diff --git a/src/router/index.js b/src/router/index.js
new file mode 100644
index 0000000..6ceb41a
--- /dev/null
+++ b/src/router/index.js
@@ -0,0 +1,20 @@
+import Vue from 'vue'
+import VueRouter from 'vue-router'
+
+Vue.use(VueRouter)
+
+ const routes = [
+ {
+ path: '/',
+ name: 'Home',
+ component: () => import(/* webpackChunkName: "about" */ '../views/Home.vue')
+ }
+]
+
+const router = new VueRouter({
+ mode: 'history',
+ base: process.env.BASE_URL,
+ routes
+})
+
+export default router
diff --git a/src/views/Home.vue b/src/views/Home.vue
new file mode 100644
index 0000000..d777a2c
--- /dev/null
+++ b/src/views/Home.vue
@@ -0,0 +1,40 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Password Login
+
+ Login
+
+
+
+
+
+