From 57df232b0724a74d9eb5347402889bd33354920b 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 | 97 ++++++++++++++----- packages/client/src/components/ui/window.vue | 3 +- packages/client/src/pages/about.vue | 8 +- packages/client/src/pages/admin-file.vue | 8 +- packages/client/src/pages/admin/_header_.vue | 93 +++++++++++++----- 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 +-- 14 files changed, 185 insertions(+), 125 deletions(-) diff --git a/packages/client/src/components/global/page-header.vue b/packages/client/src/components/global/page-header.vue index c01631c6a..a750fdb30 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 @@