diff --git a/frontend/expensia/app/scripts/store/index.js b/frontend/expensia/app/scripts/store/index.js index 8d5c567..66f3e80 100644 --- a/frontend/expensia/app/scripts/store/index.js +++ b/frontend/expensia/app/scripts/store/index.js @@ -11,19 +11,28 @@ const store = new Vuex.Store({ id: 1, name: 'wife', amount: 2000, - category: 1, + category: { + id: 1, + name: 'test', + }, created: '2022-12-2', }, { id: 2, name: 'country', amount: 20, - category: 2, + category: { + id: 2, + name: 'test2', + }, created: '2022-12-2', }, ], }, mutations: {}, + getters: { + expenses: state => state.expenses, + }, }) export default store; diff --git a/frontend/expensia/app/scripts/views/components/expense/ExpenseList.vue b/frontend/expensia/app/scripts/views/components/expense/ExpenseList.vue new file mode 100644 index 0000000..11278a4 --- /dev/null +++ b/frontend/expensia/app/scripts/views/components/expense/ExpenseList.vue @@ -0,0 +1,35 @@ + + + + + attach_money + {{ expense.amount }} + + + + {{ expense.name }} + {{ expense.category.name }} + + + + + + + + + + + diff --git a/frontend/expensia/app/scripts/views/pages/HomeDashboard.vue b/frontend/expensia/app/scripts/views/pages/HomeDashboard.vue index 1565d16..c4de3fa 100644 --- a/frontend/expensia/app/scripts/views/pages/HomeDashboard.vue +++ b/frontend/expensia/app/scripts/views/pages/HomeDashboard.vue @@ -1,17 +1,18 @@ Dashboard - - - Line item - - +