From 0684f927b4faa93ffbab356dd6c9daecea0a2dfc Mon Sep 17 00:00:00 2001 From: Davide Alberani Date: Sun, 15 Jan 2017 22:35:54 +0100 Subject: [PATCH] #1: draft of user page using Vuex --- package.json | 3 +- src/Toolbar.vue | 113 ++++++++++++++++++++++++++++++++++++++++-------- src/User.vue | 23 +++++----- src/main.js | 25 +++++++++-- src/store.js | 15 +++++++ 5 files changed, 143 insertions(+), 36 deletions(-) create mode 100644 src/store.js diff --git a/package.json b/package.json index f8b98e8..6987847 100644 --- a/package.json +++ b/package.json @@ -22,7 +22,8 @@ "vue-material": "^0.6.3", "vue-resource": "^1.0.3", "vue-router": "^2.1.1", - "vuejs-datepicker": "^0.4.27" + "vuejs-datepicker": "^0.4.27", + "vuex": "^2.1.1" }, "devDependencies": { "autoprefixer": "^6.4.0", diff --git a/src/Toolbar.vue b/src/Toolbar.vue index d7d99bf..e3a6743 100644 --- a/src/Toolbar.vue +++ b/src/Toolbar.vue @@ -1,11 +1,20 @@