From 64c80504b5d14a179508bd764e107741a80e8be6 Mon Sep 17 00:00:00 2001 From: Patryk Niedźwiedziński Date: Mon, 12 Aug 2019 11:37:07 +0200 Subject: Add router --- package-lock.json | 5 +++++ package.json | 3 ++- public/index.html | 2 +- src/App.vue | 13 +++++++++---- src/assets/krajka-logo.svg | 36 ++++++++++++++++++++++++++++++++++++ src/assets/krajka.svg | 18 ++++++++++++++++++ src/components/NavLink.vue | 14 ++++++++++++++ src/main.js | 14 ++++++++++---- src/router/index.js | 18 ++++++++++++++++++ src/views/DownloadView.vue | 3 +++ src/views/GalleryView.vue | 3 +++ src/views/HomeView.vue | 13 +++++++++++++ src/views/PageNotFoundView.vue | 6 ++++++ 13 files changed, 138 insertions(+), 10 deletions(-) create mode 100644 src/assets/krajka-logo.svg create mode 100644 src/assets/krajka.svg create mode 100644 src/components/NavLink.vue create mode 100644 src/router/index.js create mode 100644 src/views/DownloadView.vue create mode 100644 src/views/GalleryView.vue create mode 100644 src/views/HomeView.vue create mode 100644 src/views/PageNotFoundView.vue diff --git a/package-lock.json b/package-lock.json index 20d181b..156f08a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10957,6 +10957,11 @@ } } }, + "vue-router": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/vue-router/-/vue-router-3.1.2.tgz", + "integrity": "sha512-WssQEHSEvIS1/CI4CO2T8LJdoK4Q9Ngox28K7FDNMTfzNTk2WS5D0dDlqYCaPG+AG4Z8wJkn1KrBc7AhspZJUQ==" + }, "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 408b15d..2be369d 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,8 @@ }, "dependencies": { "core-js": "^2.6.5", - "vue": "^2.6.10" + "vue": "^2.6.10", + "vue-router": "^3.1.2" }, "devDependencies": { "@vue/cli-plugin-babel": "^3.10.0", diff --git a/public/index.html b/public/index.html index d5438c9..32ae880 100644 --- a/public/index.html +++ b/public/index.html @@ -5,7 +5,7 @@ - puszcza + 19 PDH Puszcza