From 85365da69e3b150003dc5324bbc971e3e82b2e33 Mon Sep 17 00:00:00 2001 From: syuilo Date: Wed, 22 Jun 2022 16:29:21 +0900 Subject: [PATCH] refactor(client): refactor header tab handling --- .../src/components/global/page-header.vue | 89 +++++++++++++------ packages/client/src/pages/about.vue | 8 +- packages/client/src/pages/admin-file.vue | 8 +- packages/client/src/pages/admin/_header_.vue | 87 +++++++++++++----- packages/client/src/pages/admin/emojis.vue | 8 +- packages/client/src/pages/channels.vue | 11 +-- packages/client/src/pages/explore.vue | 11 +-- packages/client/src/pages/instance-info.vue | 11 +-- packages/client/src/pages/notifications.vue | 8 +- .../src/pages/page-editor/page-editor.vue | 14 ++- packages/client/src/pages/pages.vue | 11 +-- packages/client/src/pages/timeline.vue | 16 ++-- packages/client/src/pages/user-info.vue | 11 +-- 13 files changed, 170 insertions(+), 123 deletions(-) diff --git a/packages/client/src/components/global/page-header.vue b/packages/client/src/components/global/page-header.vue index c01631c6a..0ad769983 100644 --- a/packages/client/src/components/global/page-header.vue +++ b/packages/client/src/components/global/page-header.vue @@ -12,16 +12,17 @@ {{ metadata.subtitle }}
- {{ tabs.find(tab => tab.active)?.title }} + {{ tabs.find(tab => tab.key === props.tab)?.title }}
- +
@@ -33,22 +34,25 @@