From 0c077f3f1203bb68e2815a742efd130362d9bbff Mon Sep 17 00:00:00 2001 From: Jonas Heinrich Date: Sat, 17 Oct 2020 18:11:04 +0200 Subject: [PATCH] added vue-router --- package-lock.json | 5 ++ package.json | 4 +- src/App.vue | 88 +-------------------- src/components/Table/Table.vue | 136 --------------------------------- src/main.js | 3 + 5 files changed, 12 insertions(+), 224 deletions(-) delete mode 100644 src/components/Table/Table.vue diff --git a/package-lock.json b/package-lock.json index 59ac535..079c53f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -11067,6 +11067,11 @@ "resolved": "https://registry.npmjs.org/vue-resize/-/vue-resize-0.4.5.tgz", "integrity": "sha512-bhP7MlgJQ8TIkZJXAfDf78uJO+mEI3CaLABLjv0WNzr4CcGRGPIAItyWYnP6LsPA4Oq0WE+suidNs6dgpO4RHg==" }, + "vue-router": { + "version": "3.4.7", + "resolved": "https://registry.npmjs.org/vue-router/-/vue-router-3.4.7.tgz", + "integrity": "sha512-CbHXue5BLrDivOk5O4eZ0WT4Yj8XwdXa4kCnsEIOzYUPF/07ZukayA2jGxDCJxLc9SgVQX9QX0OuGOwGlVB4Qg==" + }, "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 ab369ec..9de44a8 100644 --- a/package.json +++ b/package.json @@ -31,10 +31,12 @@ }, "dependencies": { "@nextcloud/l10n": "^1.4.1", + "@nextcloud/router": "^1.2.0", "@nextcloud/vue": "^2.7.0", "howler": "^2.2.0", "jquery": "^3.5.1", - "vue": "^2.6.12" + "vue": "^2.6.12", + "vue-router": "^3.4.7" }, "browserslist": [ "extends @nextcloud/browserslist-config" diff --git a/src/App.vue b/src/App.vue index 5b53be6..4437b0a 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,89 +1,3 @@ - - - - diff --git a/src/components/Table/Table.vue b/src/components/Table/Table.vue deleted file mode 100644 index 525e14b..0000000 --- a/src/components/Table/Table.vue +++ /dev/null @@ -1,136 +0,0 @@ - - - - - diff --git a/src/main.js b/src/main.js index ad8efaf..4d1aa2a 100644 --- a/src/main.js +++ b/src/main.js @@ -20,6 +20,8 @@ * */ import Vue from 'vue' +import router from './router' + import { translate, translatePlural } from '@nextcloud/l10n' import App from './App' @@ -32,5 +34,6 @@ Vue.prototype.$jquery = jquery export default new Vue({ el: '#content', + router, render: h => h(App), })