From a7aa79eb465b8d4b3f4590680bc4cb7efe7e741e Mon Sep 17 00:00:00 2001 From: pawlaczyk Date: Sat, 5 Jan 2019 21:10:07 +0100 Subject: [PATCH] Dodanie regul i seleketa do typu karty --- frontend/app/src/components/Navbar.vue | 2 +- frontend/app/src/components/Popup.vue | 18 +++++++++++++----- frontend/app/src/store/store.js | 2 +- frontend/app/src/views/Cards.vue | 2 +- frontend/app/src/views/Game.vue | 24 +++++++++++------------- frontend/app/src/views/Users.vue | 17 ++++++++--------- 6 files changed, 35 insertions(+), 30 deletions(-) diff --git a/frontend/app/src/components/Navbar.vue b/frontend/app/src/components/Navbar.vue index 1a516b3..1f88db8 100644 --- a/frontend/app/src/components/Navbar.vue +++ b/frontend/app/src/components/Navbar.vue @@ -43,7 +43,7 @@ - +

Edżentelmeni

diff --git a/frontend/app/src/components/Popup.vue b/frontend/app/src/components/Popup.vue index 87b65e2..836b319 100644 --- a/frontend/app/src/components/Popup.vue +++ b/frontend/app/src/components/Popup.vue @@ -9,8 +9,15 @@ - - + + Add Project @@ -26,12 +33,13 @@ import format from 'date-fns/format' export default { data(){ return{ - title: '', - content: '', + cardText: '', + cardType: '', due: null, inputRules: [ - v => v.length >= 3 || 'Minimum length is 3 characters' + v => v.length >= 2 || 'Treść karty musi mieć minimum 2 znaki' ],//array of diferent rules + cardTypeRules: [ v=> v.length > 0 || 'Typ karty jest wymagany' ], loading: false, dialog: false } diff --git a/frontend/app/src/store/store.js b/frontend/app/src/store/store.js index c63c467..54d287b 100644 --- a/frontend/app/src/store/store.js +++ b/frontend/app/src/store/store.js @@ -7,8 +7,8 @@ export const store = new Vuex.Store({ state: { links:[ { icon: 'dashboard', text: 'Gra', route: '/'}, - { icon: "folder", text: 'Karty', route: '/karty'}, { icon: 'person', text: 'Dżentelmani', route: '/dzentelmani'}, + { icon: "folder", text: 'Wszystkie Karty', route: '/karty'}, // { icon: 'exit_to_app', text: 'Wyloguj', route: '/logout'}, // { icon: 'get_app', text: 'Zaloguj', route: '/login'}, // { icon: 'account_circle', text: 'Rejestracja', route: '/register'}, diff --git a/frontend/app/src/views/Cards.vue b/frontend/app/src/views/Cards.vue index d67093c..504a4ba 100644 --- a/frontend/app/src/views/Cards.vue +++ b/frontend/app/src/views/Cards.vue @@ -1,6 +1,6 @@