From d82565d67d071dce0208323decc455da9d8625ef Mon Sep 17 00:00:00 2001 From: Ferdinand Thiessen Date: Mon, 8 Jul 2024 16:25:14 +0200 Subject: [PATCH] refactor(core): Split app menu into components This allows to split one large block of code into three components with each one usecase. Allowing for better readability and maintainablility. Signed-off-by: Ferdinand Thiessen --- core/src/components/AppMenu.vue | 279 +++++++-------------------- core/src/components/AppMenuEntry.vue | 128 ++++++++++++ core/src/components/AppMenuIcon.vue | 63 ++++++ 3 files changed, 263 insertions(+), 207 deletions(-) create mode 100644 core/src/components/AppMenuEntry.vue create mode 100644 core/src/components/AppMenuIcon.vue diff --git a/core/src/components/AppMenu.vue b/core/src/components/AppMenu.vue index e84a1250222..33e1a194f3c 100644 --- a/core/src/components/AppMenu.vue +++ b/core/src/components/AppMenu.vue @@ -6,99 +6,99 @@ - - diff --git a/core/src/components/AppMenuEntry.vue b/core/src/components/AppMenuEntry.vue new file mode 100644 index 00000000000..d26e0c1dc06 --- /dev/null +++ b/core/src/components/AppMenuEntry.vue @@ -0,0 +1,128 @@ + + + + + + + + + diff --git a/core/src/components/AppMenuIcon.vue b/core/src/components/AppMenuIcon.vue new file mode 100644 index 00000000000..bdf14cdd0d7 --- /dev/null +++ b/core/src/components/AppMenuIcon.vue @@ -0,0 +1,63 @@ + + + + + + +