From d6f28022f0cc2ce2321a580c8282827103b343a0 Mon Sep 17 00:00:00 2001 From: Julian Krauser Date: Sat, 16 Nov 2024 12:19:13 +0100 Subject: [PATCH] base structure --- src/components/admin/RoutingLink.vue | 31 ++++++++++++----------- src/main.css | 3 ++- src/router/index.ts | 20 +++++++++++++++ src/stores/admin/navigation.ts | 2 +- src/views/account/View.vue | 37 ++++++++++++++++++++++++++++ src/views/account/ViewSelect.vue | 3 +++ src/views/admin/View.vue | 29 +++++++++++++++------- 7 files changed, 99 insertions(+), 26 deletions(-) create mode 100644 src/views/account/View.vue create mode 100644 src/views/account/ViewSelect.vue diff --git a/src/components/admin/RoutingLink.vue b/src/components/admin/RoutingLink.vue index 3cc50e4..6226c59 100644 --- a/src/components/admin/RoutingLink.vue +++ b/src/components/admin/RoutingLink.vue @@ -1,35 +1,36 @@ diff --git a/src/main.css b/src/main.css index a5ddd9d..a8dcd0c 100644 --- a/src/main.css +++ b/src/main.css @@ -56,7 +56,8 @@ body { @apply w-full h-full overflow-hidden flex flex-col; } -button:not([headlessui]):not([id*="headlessui"]):not([class*="headlessui"]):not([class*="ql"] *):not([class*="fc"]), +/* :not([headlessui]):not([id*="headlessui"]):not([class*="headlessui"]) */ +button:not([class*="ql"] *):not([class*="fc"]), a[button] { @apply relative box-border h-10 w-full flex justify-center py-2 px-4 text-sm font-medium rounded-md focus:outline-none focus:ring-0; } diff --git a/src/router/index.ts b/src/router/index.ts index 0e7e71e..3cb7111 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -450,6 +450,26 @@ const router = createRouter({ }, ], }, + { + path: "/account", + name: "account", + component: () => import("@/views/account/View.vue"), + beforeEnter: [isAuthenticated], + children: [ + { + path: "", + name: "account-default", + component: () => import("@/views/admin/ViewSelect.vue"), + meta: { type: "read", section: "club" }, + beforeEnter: [abilityAndNavUpdate], + }, + { + path: ":pathMatch(.*)*", + name: "account-404", + component: () => import("@/views/notFound.vue"), + }, + ], + }, { path: "/nopermissions", name: "nopermissions", diff --git a/src/stores/admin/navigation.ts b/src/stores/admin/navigation.ts index 0b74567..bc01984 100644 --- a/src/stores/admin/navigation.ts +++ b/src/stores/admin/navigation.ts @@ -88,7 +88,7 @@ export const useNavigationStore = defineStore("navigation", { main: [ ...(abilityStore.can("read", "club", "member") ? [{ key: "member", title: "Mitglieder" }] : []), ...(abilityStore.can("read", "club", "calendar") ? [{ key: "calendar", title: "Kalender" }] : []), - ...(abilityStore.can("read", "club", "protocoll") ? [{ key: "protocol", title: "Protokolle" }] : []), + ...(abilityStore.can("read", "club", "protocol") ? [{ key: "protocol", title: "Protokolle" }] : []), ...(abilityStore.can("read", "club", "newsletter") ? [{ key: "newsletter", title: "Newsletter" }] : []), ], }, diff --git a/src/views/account/View.vue b/src/views/account/View.vue new file mode 100644 index 0000000..bf88045 --- /dev/null +++ b/src/views/account/View.vue @@ -0,0 +1,37 @@ + + + + + diff --git a/src/views/account/ViewSelect.vue b/src/views/account/ViewSelect.vue new file mode 100644 index 0000000..693ea42 --- /dev/null +++ b/src/views/account/ViewSelect.vue @@ -0,0 +1,3 @@ + diff --git a/src/views/admin/View.vue b/src/views/admin/View.vue index 0376b0c..8d1781b 100644 --- a/src/views/admin/View.vue +++ b/src/views/admin/View.vue @@ -7,10 +7,22 @@ :showTopList="activeNavigationObject.top != null" > @@ -33,14 +45,13 @@ import { RouterView } from "vue-router";