From 070246ff5b39a81e766f1d495f72304c78d5346f Mon Sep 17 00:00:00 2001 From: Gregor Vostrak Date: Mon, 4 Nov 2024 15:19:35 +0100 Subject: [PATCH] add reporting submenus to navbar --- .../js/Components/NavigationSidebarItem.vue | 122 ++++++++++++++---- .../js/Components/NavigationSidebarLink.vue | 36 ++++++ resources/js/Layouts/AppLayout.vue | 22 +++- resources/js/Pages/Reporting.vue | 8 +- 4 files changed, 156 insertions(+), 32 deletions(-) create mode 100644 resources/js/Components/NavigationSidebarLink.vue diff --git a/resources/js/Components/NavigationSidebarItem.vue b/resources/js/Components/NavigationSidebarItem.vue index 5c2e274c..71e36157 100644 --- a/resources/js/Components/NavigationSidebarItem.vue +++ b/resources/js/Components/NavigationSidebarItem.vue @@ -1,35 +1,109 @@ + diff --git a/resources/js/Components/NavigationSidebarLink.vue b/resources/js/Components/NavigationSidebarLink.vue new file mode 100644 index 00000000..2f5f74de --- /dev/null +++ b/resources/js/Components/NavigationSidebarLink.vue @@ -0,0 +1,36 @@ + + + + + diff --git a/resources/js/Layouts/AppLayout.vue b/resources/js/Layouts/AppLayout.vue index 9f2fb23d..5d42c1a1 100644 --- a/resources/js/Layouts/AppLayout.vue +++ b/resources/js/Layouts/AppLayout.vue @@ -114,13 +114,27 @@ const page = usePage<{ + :href="route('reporting')"> + diff --git a/resources/js/Pages/Reporting.vue b/resources/js/Pages/Reporting.vue index 27dcef3f..c97b3b38 100644 --- a/resources/js/Pages/Reporting.vue +++ b/resources/js/Pages/Reporting.vue @@ -21,10 +21,10 @@ import { import { type GroupingOption, useReportingStore } from '@/utils/useReporting'; import { storeToRefs } from 'pinia'; import TagDropdown from '@/packages/ui/src/Tag/TagDropdown.vue'; -import { type AggregatedTimeEntriesQueryParams, api } from '@/packages/api/src'; -import type { - AggregatedTimeEntriesQueryParams, - CreateReportBodyProperties, +import { + type AggregatedTimeEntriesQueryParams, + type CreateReportBodyProperties, + api, } from '@/packages/api/src'; import ReportingFilterBadge from '@/Components/Common/Reporting/ReportingFilterBadge.vue'; import ProjectMultiselectDropdown from '@/Components/Common/Project/ProjectMultiselectDropdown.vue';