From ccfa7a8d10ca6a82cfe6069223da4af3b4b6cc37 Mon Sep 17 00:00:00 2001 From: patak <583075+patak-dev@users.noreply.github.com> Date: Wed, 21 Feb 2024 16:20:08 +0100 Subject: [PATCH] refactor: no reactivity transform (#2600) --- components/account/AccountAvatar.vue | 4 +- components/account/AccountBigCard.vue | 2 +- components/account/AccountFollowButton.vue | 34 ++-- .../account/AccountFollowRequestButton.vue | 20 +-- components/account/AccountHandle.vue | 2 +- components/account/AccountHeader.vue | 38 ++--- components/account/AccountHoverCard.vue | 2 +- components/account/AccountMoreButton.vue | 18 +-- components/account/AccountPaginator.vue | 4 +- components/account/AccountTabs.vue | 12 +- components/aria/AriaAnnouncer.vue | 10 +- components/command/CommandItem.vue | 10 +- components/command/CommandKey.vue | 2 +- components/command/CommandPanel.vue | 68 ++++---- components/common/CommonPaginator.vue | 2 +- components/common/CommonRouteTabs.vue | 16 +- components/common/CommonTabs.vue | 4 +- components/common/CommonTrending.vue | 8 +- components/common/CommonTrendingCharts.vue | 8 +- components/common/LocalizedNumber.vue | 6 +- components/common/dropdown/Dropdown.vue | 4 +- components/content/ContentCode.vue | 4 +- components/conversation/ConversationCard.vue | 2 +- components/emoji/Emoji.vue | 10 +- components/list/ListEntry.vue | 30 ++-- components/list/Lists.vue | 10 +- .../magickeys/MagickeysKeyboardShortcuts.vue | 6 +- components/nav/NavSideItem.vue | 6 +- .../NotificationGroupedFollow.vue | 6 +- .../notification/NotificationGroupedLikes.vue | 4 +- .../NotificationPreferences.client.vue | 56 +++---- components/publish/PublishAttachment.vue | 4 +- .../publish/PublishEmojiPicker.client.vue | 20 +-- components/publish/PublishLanguagePicker.vue | 8 +- .../publish/PublishVisibilityPicker.vue | 2 +- components/publish/PublishWidget.vue | 56 +++---- .../publish/PublishWidgetFull.client.vue | 10 +- components/pwa/PwaBadge.client.vue | 4 +- components/pwa/PwaInstallPrompt.client.vue | 6 +- components/pwa/PwaPrompt.client.vue | 6 +- components/search/SearchHashtagInfo.vue | 2 +- .../settings/SettingsProfileMetadata.vue | 6 +- components/settings/SettingsThemeColors.vue | 6 +- components/status/StatusActions.vue | 6 +- components/status/StatusActionsMore.vue | 30 ++-- components/status/StatusAttachment.vue | 22 +-- components/status/StatusBody.vue | 2 +- components/status/StatusCard.vue | 32 ++-- components/status/StatusContent.vue | 20 +-- components/status/StatusDetails.vue | 6 +- components/status/StatusEmbeddedMedia.vue | 2 +- .../status/StatusFavouritedBoostedBy.vue | 6 +- components/status/StatusLink.vue | 6 +- components/status/StatusPoll.vue | 6 +- components/status/StatusPreviewCard.vue | 2 +- components/status/StatusPreviewCardNormal.vue | 6 +- components/status/StatusPreviewGitHub.vue | 6 +- components/status/StatusPreviewStackBlitz.vue | 14 +- components/status/StatusReplyingTo.vue | 2 +- components/status/StatusTranslation.vue | 6 +- .../status/StatusVisibilityIndicator.vue | 2 +- components/tag/TagActionButton.vue | 6 +- components/tag/TagCard.vue | 8 +- components/timeline/TimelineDomainBlocks.vue | 6 +- components/timeline/TimelinePaginator.vue | 4 +- components/tiptap/TiptapEmojiList.vue | 12 +- components/tiptap/TiptapHashtagList.vue | 12 +- components/tiptap/TiptapMentionList.vue | 12 +- components/user/UserSignIn.vue | 42 ++--- composables/aria.ts | 14 +- composables/emojis.ts | 4 +- composables/i18n.ts | 4 +- composables/masto/notification.ts | 12 +- composables/masto/publish.ts | 150 +++++++++--------- composables/masto/relationship.ts | 18 +-- composables/masto/search.ts | 8 +- composables/masto/status.ts | 46 +++--- composables/masto/translate.ts | 18 +-- composables/paginator.ts | 15 +- .../push-notifications/usePushManager.ts | 6 +- composables/users.ts | 6 +- nuxt.config.ts | 2 + pages/[[server]]/@[account]/[status].vue | 12 +- pages/[[server]]/@[account]/index.vue | 6 +- .../[[server]]/@[account]/index/followers.vue | 4 +- .../[[server]]/@[account]/index/following.vue | 4 +- pages/[[server]]/@[account]/index/index.vue | 4 +- pages/[[server]]/@[account]/index/media.vue | 4 +- .../@[account]/index/with_replies.vue | 4 +- pages/[[server]]/explore.vue | 12 +- pages/[[server]]/explore/tags.vue | 4 +- pages/[[server]]/list/[list]/index.vue | 16 +- .../[[server]]/list/[list]/index/accounts.vue | 4 +- pages/[[server]]/list/[list]/index/index.vue | 6 +- pages/[[server]]/lists.vue | 16 +- pages/[[server]]/search.vue | 10 +- pages/[[server]]/tags/[tag].vue | 14 +- pages/notifications.vue | 18 +-- pages/notifications/[filter].vue | 2 +- pages/settings/about/index.vue | 4 +- pages/settings/profile/appearance.vue | 26 +-- plugins/setup-i18n.client.ts | 12 +- 102 files changed, 649 insertions(+), 652 deletions(-) diff --git a/components/account/AccountAvatar.vue b/components/account/AccountAvatar.vue index 26953d8d..c7f52056 100644 --- a/components/account/AccountAvatar.vue +++ b/components/account/AccountAvatar.vue @@ -6,8 +6,8 @@ defineProps<{ square?: boolean }>() -const loaded = $ref(false) -const error = $ref(false) +const loaded = ref(false) +const error = ref(false)