From c5a344c2a035bc06ee6637491f3a11747a5958b4 Mon Sep 17 00:00:00 2001 From: Lhcfl Date: Mon, 22 Apr 2024 10:32:41 +0800 Subject: [PATCH 1/6] refactor: make isSignedIn a function --- .../client/src/components/MkFollowButton.vue | 2 +- packages/client/src/components/MkMention.vue | 2 +- packages/client/src/components/MkNote.vue | 4 ++-- packages/client/src/components/MkNoteSub.vue | 2 +- .../components/MkPushNotificationAllowButton.vue | 8 ++++---- .../components/MkReactionsViewer.reaction.vue | 8 +++++--- .../client/src/components/MkReactionsViewer.vue | 2 +- .../client/src/components/MkRenoteButton.vue | 2 +- packages/client/src/components/MkTimeline.vue | 4 ++-- packages/client/src/components/MkUserInfo.vue | 4 ++-- packages/client/src/init.ts | 4 ++-- packages/client/src/me.ts | 2 +- packages/client/src/navbar.ts | 14 +++++++------- packages/client/src/pages/announcements.vue | 6 +++--- packages/client/src/pages/auth.vue | 8 ++++---- packages/client/src/pages/clip.vue | 2 +- packages/client/src/pages/explore.users.vue | 10 +++++----- packages/client/src/pages/gallery/post.vue | 4 ++-- packages/client/src/pages/page.vue | 4 ++-- packages/client/src/pages/settings/drive.vue | 2 +- .../src/pages/settings/preferences-backups.vue | 4 ++-- packages/client/src/pages/timeline.vue | 16 ++++++++-------- packages/client/src/pages/user/home.vue | 6 +++--- packages/client/src/pages/user/index.vue | 2 +- packages/client/src/pizzax.ts | 14 +++++++------- packages/client/src/scripts/get-note-menu.ts | 2 +- packages/client/src/scripts/get-user-menu.ts | 4 ++-- packages/client/src/scripts/please-login.ts | 4 ++-- packages/client/src/scripts/use-note-capture.ts | 8 ++++---- packages/client/src/store.ts | 4 ++-- packages/client/src/theme-store.ts | 4 ++-- packages/client/src/ui/_common_/common.vue | 2 +- packages/client/src/ui/deck.vue | 2 +- packages/client/src/ui/deck/tl-column.vue | 4 ++-- 34 files changed, 86 insertions(+), 84 deletions(-) diff --git a/packages/client/src/components/MkFollowButton.vue b/packages/client/src/components/MkFollowButton.vue index 0920001c7b..a018c47b55 100644 --- a/packages/client/src/components/MkFollowButton.vue +++ b/packages/client/src/components/MkFollowButton.vue @@ -8,7 +8,7 @@