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 @@ - - - - - - - Name - - - - - - - - - - - - {{ station.name }} - - - - - - Add to favorites - - - Details - - - - - - - - - - - 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), })