From 03d506eabf1e6c3f4c66d13e393c36cf6a221af3 Mon Sep 17 00:00:00 2001 From: sustained Date: Tue, 26 Feb 2019 03:54:42 +0000 Subject: [PATCH] Move nav to Vuex, closes #9. --- db.json | 40 ++++++--- src/components/List.vue | 73 ++++++++++++++++- src/store.js | 117 +++++++++++++++++++++++++-- src/views/ViewBoard.vue | 175 +++++++++++----------------------------- 4 files changed, 254 insertions(+), 151 deletions(-) diff --git a/db.json b/db.json index 65bc324..a28ebc4 100644 --- a/db.json +++ b/db.json @@ -81,6 +81,20 @@ "groupId": 3, "title": "Blah", "author": "sustained" + }, + { + "id": 11, + "boardId": 1, + "groupId": 1, + "title": "UYIYF", + "author": "sustained" + }, + { + "id": 12, + "boardId": 1, + "groupId": 1, + "title": "GHOUFH", + "author": "sustained" } ], @@ -91,12 +105,12 @@ "title": "Group One" }, { - "id": 1, + "id": 2, "boardId": 1, "title": "Group One" }, { - "id": 1, + "id": 3, "boardId": 1, "title": "Group One" } @@ -105,7 +119,7 @@ "cards": [ { "id": 1, - "title": "gesgseg", + "title": "Foo bar baz", "listId": 1, "boardId": 1, "author": "sustained", @@ -113,7 +127,7 @@ }, { "id": 2, - "title": "eousgheg", + "title": "Foo doo loo", "listId": 1, "boardId": 1, "author": "sustained", @@ -121,32 +135,32 @@ }, { "id": 3, - "title": "gesughsueg", - "listId": 2, + "title": "Foo da doo", + "listId": 1, "boardId": 1, "author": "sustained", "createdAt": "1550642064565" }, { "id": 4, - "title": "gesoughosueg", - "listId": 1, + "title": "Bar de baz", + "listId": 2, "boardId": 1, "author": "sustained", "createdAt": "1550642064565" }, { "id": 5, - "title": "gesughosuhg", - "listId": 1, + "title": "Bar de diddely doo", + "listId": 2, "boardId": 1, "author": "sustained", "createdAt": "1550642064565" }, { "id": 6, - "title": "goesughoesu", - "listId": 1, + "title": "Bar de blah", + "listId": 2, "boardId": 1, "author": "sustained", "createdAt": "1550642064565" @@ -154,7 +168,7 @@ { "id": 7, "title": "goesughseog", - "listId": 1, + "listId": 3, "boardId": 1, "author": "sustained", "createdAt": "1550642064565" diff --git a/src/components/List.vue b/src/components/List.vue index e98bcde..e3f9ed1 100644 --- a/src/components/List.vue +++ b/src/components/List.vue @@ -1,7 +1,7 @@