From 5b8f1fbead93efb53b385bd16a3383744f3ca594 Mon Sep 17 00:00:00 2001 From: Tobias Zoghaib Date: Tue, 24 Sep 2024 13:55:48 +0200 Subject: [PATCH] Multiple addresses & payments of an account configurable in frontend --- software/backend/data/accounts.json | 7 + software/src/components/cardView.vue | 13 +- software/src/components/confirmDialog.vue | 12 +- software/src/locales/de.json | 5 +- software/src/locales/en.json | 5 +- .../src/pages/accountPage/accountDataCard.vue | 112 ++++------- .../pages/accountPage/accountManagingCard.vue | 29 +-- .../src/pages/accountPage/addressesCard.vue | 64 ++++++ software/src/pages/accountPage/index.vue | 14 ++ .../src/pages/accountPage/paymentsCard.vue | 49 +++++ software/src/pages/loginPage/loginForm.vue | 24 ++- software/src/pages/loginPage/registerForm.vue | 118 ++++++------ .../src/pages/preferencesPage/pageSetup.vue | 36 ++-- .../src/pages/preferencesPage/systemSetup.vue | 40 ++-- .../src/pages/productsPage/productCard.vue | 120 ++++++------ .../productsPage/productDetailsDialog.vue | 182 +++++++++--------- 16 files changed, 460 insertions(+), 370 deletions(-) create mode 100644 software/src/pages/accountPage/addressesCard.vue create mode 100644 software/src/pages/accountPage/paymentsCard.vue diff --git a/software/backend/data/accounts.json b/software/backend/data/accounts.json index 8ac9104..8c312ec 100644 --- a/software/backend/data/accounts.json +++ b/software/backend/data/accounts.json @@ -92,6 +92,13 @@ "houseNumber": 36, "postalCode": 30171, "city": "Hannover" + }, + { + "accountId": 3, + "street": "Else-Ury-Weg", + "houseNumber": 20, + "postalCode": 30629, + "city": "Hannover" } ], "payments": [ diff --git a/software/src/components/cardView.vue b/software/src/components/cardView.vue index c37ebba..5e997c2 100644 --- a/software/src/components/cardView.vue +++ b/software/src/components/cardView.vue @@ -16,16 +16,19 @@ defineProps({ :title="title" :subtitle="subtitle" :prepend-icon="icon" - class="card-outter" > - + + + + + + + + - - \ No newline at end of file diff --git a/software/src/components/confirmDialog.vue b/software/src/components/confirmDialog.vue index 1cbee80..a5f028f 100644 --- a/software/src/components/confirmDialog.vue +++ b/software/src/components/confirmDialog.vue @@ -23,13 +23,11 @@ function confirmPressed() { max-width="400" v-model="showDialog" > - - - - {{ description }} - - - + + + {{ description }} + +