From 937921eb0f9b5644c16a53549d560cadc6254425 Mon Sep 17 00:00:00 2001 From: Mika Date: Tue, 9 Jul 2024 17:51:16 +0200 Subject: [PATCH] web: refactor toolbox items --- web/src/components/HeaderBar.vue | 104 +++++++++++++++++++++---- web/src/components/ListViewElement.vue | 21 +++-- web/src/components/loginPage.vue | 4 +- 3 files changed, 102 insertions(+), 27 deletions(-) diff --git a/web/src/components/HeaderBar.vue b/web/src/components/HeaderBar.vue index 776babb..5fc8845 100644 --- a/web/src/components/HeaderBar.vue +++ b/web/src/components/HeaderBar.vue @@ -5,21 +5,85 @@ dark prominent > - - - -
- - - - - - + + + +
+ + + + + + + Add License + + + Add an extra License to the database + + +
+ +
+
+ + + +
+
+ + + +
+
+ + + all fields marked with * are required +
+
+ + + + +
+
+ + + + +
+ import { store } from '@/store'; -import { Plus } from 'lucide-vue-next'; -import { LogOut } from 'lucide-vue-next'; -import { Trash2 } from 'lucide-vue-next'; -import { Pencil } from 'lucide-vue-next'; +import { Plus, LogOut, Trash2, Pencil, CalendarCheck, CalendarX } from 'lucide-vue-next'; +import { ref } from 'vue'; +import { useDate } from 'vuetify' // Used for unifying Date inputs to ISO + function handlelogout() { console.log('logout'); store.setToken(null); } +const add = ref(false); +// References for Add License Dialog +const addLicenseName = ref(''); +const addAmount = ref(''); +const addNotes = ref(''); + + diff --git a/web/src/components/ListViewElement.vue b/web/src/components/ListViewElement.vue index a13fcbf..2a5ce93 100644 --- a/web/src/components/ListViewElement.vue +++ b/web/src/components/ListViewElement.vue @@ -4,6 +4,7 @@ width="93vw" rounded="lg" class="mt-3" + style="border-left: .5rem outset #0FA4AF" > @@ -36,18 +37,16 @@ {{ props.endDate }} -
+ -
- - - - - - - {{ props.amount }} - - +
+ + + + + + {{ props.amount }} +
diff --git a/web/src/components/loginPage.vue b/web/src/components/loginPage.vue index 8623033..dfc3b64 100644 --- a/web/src/components/loginPage.vue +++ b/web/src/components/loginPage.vue @@ -6,8 +6,8 @@ Login - - + +