From c0caee78c20d79207d4122db9ecf2524af429634 Mon Sep 17 00:00:00 2001 From: Denis Lugowski Date: Sun, 16 Mar 2025 08:11:09 +0100 Subject: [PATCH] feat(frontend): Add DeleteModal --- legalconsenthub/components/DeleteModal.vue | 25 +++++ legalconsenthub/components/Login.vue | 6 +- legalconsenthub/components/Register.vue | 10 +- .../pages/application-forms/[id].vue | 2 +- legalconsenthub/pages/create.vue | 2 +- legalconsenthub/pages/index.vue | 92 ++++++++++++++----- legalconsenthub/utils/date.ts | 10 ++ 7 files changed, 113 insertions(+), 34 deletions(-) create mode 100644 legalconsenthub/components/DeleteModal.vue create mode 100644 legalconsenthub/utils/date.ts diff --git a/legalconsenthub/components/DeleteModal.vue b/legalconsenthub/components/DeleteModal.vue new file mode 100644 index 0000000..8ac73f6 --- /dev/null +++ b/legalconsenthub/components/DeleteModal.vue @@ -0,0 +1,25 @@ + + + diff --git a/legalconsenthub/components/Login.vue b/legalconsenthub/components/Login.vue index 858c5b9..62509ef 100644 --- a/legalconsenthub/components/Login.vue +++ b/legalconsenthub/components/Login.vue @@ -4,12 +4,12 @@
- +
- +
@@ -17,7 +17,7 @@ - diff --git a/legalconsenthub/utils/date.ts b/legalconsenthub/utils/date.ts new file mode 100644 index 0000000..cbe902f --- /dev/null +++ b/legalconsenthub/utils/date.ts @@ -0,0 +1,10 @@ +export function formatDate(date: Date): string { + return date.toLocaleString('de-DE', { + weekday: 'short', + day: '2-digit', + month: '2-digit', + year: '2-digit', + hour: '2-digit', + minute: '2-digit' + }) +}