From d6f28022f0cc2ce2321a580c8282827103b343a0 Mon Sep 17 00:00:00 2001 From: Julian Krauser Date: Sat, 16 Nov 2024 12:19:13 +0100 Subject: [PATCH 1/5] 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"; + + diff --git a/src/views/account/View.vue b/src/views/account/View.vue index bf88045..1431f23 100644 --- a/src/views/account/View.vue +++ b/src/views/account/View.vue @@ -7,7 +7,11 @@ diff --git a/src/views/setup/Verify.vue b/src/views/setup/Verify.vue index aad549f..0f6fcf5 100644 --- a/src/views/setup/Verify.vue +++ b/src/views/setup/Verify.vue @@ -23,7 +23,9 @@ class="w-5 h-5 p-2 box-content absolute right-1 top-1/2 -translate-y-1/2 bg-white cursor-pointer" @click="copyToClipboard" /> - +
+ +
From 6f135af4a68b861f4602c51069bf5d1323b17032 Mon Sep 17 00:00:00 2001 From: Julian Krauser Date: Wed, 20 Nov 2024 10:02:25 +0100 Subject: [PATCH 3/5] edit my details --- src/components/Footer.vue | 11 ++- src/components/Header.vue | 5 +- src/router/index.ts | 2 +- src/templates/Main.vue | 6 +- src/views/account/LoginData.vue | 2 +- src/views/account/Me.vue | 125 ++++++++++++++++++++++++++++++++ src/views/account/View.vue | 2 +- 7 files changed, 143 insertions(+), 10 deletions(-) create mode 100644 src/views/account/Me.vue diff --git a/src/components/Footer.vue b/src/components/Footer.vue index d9250df..643ddfb 100644 --- a/src/components/Footer.vue +++ b/src/components/Footer.vue @@ -1,10 +1,17 @@ diff --git a/src/components/Header.vue b/src/components/Header.vue index ac72cc8..1c824c6 100644 --- a/src/components/Header.vue +++ b/src/components/Header.vue @@ -5,8 +5,9 @@

Mitgliederverwaltung

- diff --git a/src/router/index.ts b/src/router/index.ts index 4fff023..b9940b9 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -464,7 +464,7 @@ const router = createRouter({ { path: "me", name: "account-me", - component: () => import("@/views/account/ViewSelect.vue"), + component: () => import("@/views/account/Me.vue"), }, { path: "logindata", diff --git a/src/templates/Main.vue b/src/templates/Main.vue index 1ae8881..7176f8e 100644 --- a/src/templates/Main.vue +++ b/src/templates/Main.vue @@ -5,7 +5,7 @@ :to="{ name: overviewFullOverwrite ?? - `${rootRoute}${useStagedOverviewLink ? ('-' + overviewOverwrite ?? activeNavigation) : ''}-default`, + `${rootRoute}${useStagedOverviewLink ? '-' + (overviewOverwrite ?? activeNavigation) : ''}-default`, }" class="mid:hidden text-primary" > @@ -37,11 +37,11 @@ export default defineComponent({ props: { overviewFullOverwrite: { type: String, - default: "", + default: null, }, overviewOverwrite: { type: String, - default: "", + default: null, }, useStagedOverviewLink: { type: Boolean, diff --git a/src/views/account/LoginData.vue b/src/views/account/LoginData.vue index 7d72eda..6028dad 100644 --- a/src/views/account/LoginData.vue +++ b/src/views/account/LoginData.vue @@ -1,5 +1,5 @@