diff --git a/src/api/board.js b/src/api/board.js new file mode 100644 index 0000000..3ad0c8c --- /dev/null +++ b/src/api/board.js @@ -0,0 +1,18 @@ +import Axios from 'axios' + +import base from './base.js' + +const BOARDS_URL = `${base.baseUrl}/boards` + +export default { + async get (boardId) { + const { data: board } = await Axios.get(`${BOARDS_URL}/${boardId}`) + return board + }, + + async browse (params) { + const query = base.buildQueryString(params) + const { data: boards } = await Axios.get(`${BOARDS_URL}?${query}`) + return boards + } +} diff --git a/src/components/BoardListItem.vue b/src/components/BoardListItem.vue new file mode 100644 index 0000000..8662541 --- /dev/null +++ b/src/components/BoardListItem.vue @@ -0,0 +1,129 @@ + + + + + + {{ board.id }}. {{ board.title }} + + + + + Created + + + + Last Updated + + + + + + + + {{ board.description }} + + + + {{ lane.worklist.items.length }} + + {{ lane.worklist.title }} + + + + No lanes + + + + + + + + + diff --git a/src/views/BoardList.vue b/src/views/BoardList.vue index e7209b1..7ee443a 100644 --- a/src/views/BoardList.vue +++ b/src/views/BoardList.vue @@ -1,5 +1,59 @@ - - Board list here + + Boards + + + + + +
+ Created + +
+ Last Updated + + +