From 8f7f89e0bd29f3349943227d43a2edc6d118472b Mon Sep 17 00:00:00 2001 From: Emily Date: Wed, 9 Apr 2025 17:35:40 +0200 Subject: [PATCH] update UI --- dashboard/components/layout/TopNavigation.vue | 9 -- .../components/layout/VerticalBottomMenu.vue | 145 ++++++++++++++++++ .../components/layout/VerticalNavigation.vue | 42 +---- dashboard/layouts/dashboard.vue | 2 +- dashboard/pages/account.vue | 9 ++ dashboard/pages/billing.vue | 9 ++ dashboard/pages/settings.vue | 13 +- 7 files changed, 175 insertions(+), 54 deletions(-) create mode 100644 dashboard/components/layout/VerticalBottomMenu.vue create mode 100644 dashboard/pages/account.vue create mode 100644 dashboard/pages/billing.vue diff --git a/dashboard/components/layout/TopNavigation.vue b/dashboard/components/layout/TopNavigation.vue index 0b8988f..2893d02 100644 --- a/dashboard/components/layout/TopNavigation.vue +++ b/dashboard/components/layout/TopNavigation.vue @@ -52,15 +52,6 @@ const { safeSnapshotDates } = useSnapshot(); Docs - -
- - - -
- diff --git a/dashboard/components/layout/VerticalBottomMenu.vue b/dashboard/components/layout/VerticalBottomMenu.vue new file mode 100644 index 0000000..a95ace2 --- /dev/null +++ b/dashboard/components/layout/VerticalBottomMenu.vue @@ -0,0 +1,145 @@ + + + \ No newline at end of file diff --git a/dashboard/components/layout/VerticalNavigation.vue b/dashboard/components/layout/VerticalNavigation.vue index fd6e584..2307862 100644 --- a/dashboard/components/layout/VerticalNavigation.vue +++ b/dashboard/components/layout/VerticalNavigation.vue @@ -32,7 +32,7 @@ const { data: pendingInvites, refresh: refreshInvites } = useFetch('/api/project headers: useComputedHeaders({}) }); -const { userRoles, setLoggedUser } = useLoggedUser(); +const { userRoles } = useLoggedUser(); const { projectList } = useProject(); const debugMode = process.dev; @@ -92,29 +92,11 @@ async function generatePDF() { } } -const { setToken } = useAccessToken(); -const router = useRouter(); const { actions } = useProject(); const modal = useModal(); - -function onLogout() { - modal.open(DialogConfirmLogout, { - onSuccess() { - modal.close(); - console.log('LOGOUT'); - setToken(''); - setLoggedUser(undefined); - router.push('/login'); - }, - onCancel() { - modal.close(); - } - }) -} - const { data: maxProjects } = useFetch("/api/user/max_projects", { headers: computed(() => { return { @@ -149,12 +131,12 @@ function openPendingInvites() {