From df80f7807218418afa91e28a00dd82c0fbf37c59 Mon Sep 17 00:00:00 2001 From: Annika Date: Tue, 12 Jul 2022 16:12:03 -0600 Subject: [PATCH] no longer manipulating prop. still can't get formatting to twork --- budgit.client/src/AppState.js | 3 +- .../src/components/AddTransaction.vue | 113 ++++++++++++++++++ budgit.client/src/components/Category.vue | 28 +++++ budgit.client/src/components/Transaction.vue | 54 +++++++-- budgit.client/src/pages/OverviewPage.vue | 46 ++++++- budgit.client/src/pages/TransactionsPage.vue | 7 +- budgit.client/src/router.js | 3 +- .../src/services/CategoriesService.js | 14 +++ .../src/services/TransactionsService.js | 6 +- budgit.client/src/utils/Dollars.js | 8 ++ budgit/server/models/Category.js | 2 +- budgit/server/services/TransactionsService.js | 3 +- 12 files changed, 265 insertions(+), 22 deletions(-) create mode 100644 budgit.client/src/components/AddTransaction.vue create mode 100644 budgit.client/src/components/Category.vue create mode 100644 budgit.client/src/services/CategoriesService.js create mode 100644 budgit.client/src/utils/Dollars.js diff --git a/budgit.client/src/AppState.js b/budgit.client/src/AppState.js index 0f1dd3d..48c126e 100644 --- a/budgit.client/src/AppState.js +++ b/budgit.client/src/AppState.js @@ -4,5 +4,6 @@ import { reactive } from 'vue' export const AppState = reactive({ user: {}, account: {}, - transactions: [] + transactions: [], + categories: [] }) diff --git a/budgit.client/src/components/AddTransaction.vue b/budgit.client/src/components/AddTransaction.vue new file mode 100644 index 0000000..c2ad728 --- /dev/null +++ b/budgit.client/src/components/AddTransaction.vue @@ -0,0 +1,113 @@ + + + + + + + + + + \ No newline at end of file diff --git a/budgit.client/src/components/Category.vue b/budgit.client/src/components/Category.vue new file mode 100644 index 0000000..1ae65f8 --- /dev/null +++ b/budgit.client/src/components/Category.vue @@ -0,0 +1,28 @@ + + + + + + + \ No newline at end of file diff --git a/budgit.client/src/components/Transaction.vue b/budgit.client/src/components/Transaction.vue index 6fa46f4..c2ad728 100644 --- a/budgit.client/src/components/Transaction.vue +++ b/budgit.client/src/components/Transaction.vue @@ -1,28 +1,35 @@ @@ -31,6 +38,8 @@ + + \ No newline at end of file + + + \ No newline at end of file diff --git a/budgit.client/src/pages/TransactionsPage.vue b/budgit.client/src/pages/TransactionsPage.vue index 702c77d..35833e3 100644 --- a/budgit.client/src/pages/TransactionsPage.vue +++ b/budgit.client/src/pages/TransactionsPage.vue @@ -2,7 +2,7 @@

Transactions Container

- +
@@ -11,6 +11,7 @@