From 6ef9069a2fbec1f6661474e786f003f4c58b43f6 Mon Sep 17 00:00:00 2001 From: Johann150 Date: Tue, 4 Oct 2022 16:02:51 +0200 Subject: [PATCH] client: refactor components/tab.vue to composition API Refactoring this component could be done after changing its method of receiving the list of available tabs by using slots to using an ordinary parameter. This was possible because all uses of this component just provided text as the tab labels. Also removed unused imports of this component. Also removed the use of the click-anime directive. Reviewed-on: https://akkoma.dev/FoundKeyGang/FoundKey/pulls/184 --- packages/client/src/components/tab.vue | 50 +++++++++---------- .../client/src/pages/explore.featured.vue | 13 +++-- packages/client/src/pages/gallery/index.vue | 1 - packages/client/src/pages/my-groups/index.vue | 1 - .../client/src/pages/settings/mute-block.vue | 13 +++-- .../client/src/pages/settings/word-mute.vue | 13 +++-- .../client/src/pages/user/index.timeline.vue | 25 ++++++---- 7 files changed, 67 insertions(+), 49 deletions(-) diff --git a/packages/client/src/components/tab.vue b/packages/client/src/components/tab.vue index 669e9e2e1..aea4ddd5f 100644 --- a/packages/client/src/components/tab.vue +++ b/packages/client/src/components/tab.vue @@ -1,31 +1,29 @@ -