From aab1c769814b08c257cad3025422a0eea3bfba4f Mon Sep 17 00:00:00 2001
From: syuilo <4439005+syuilo@users.noreply.github.com>
Date: Sun, 1 Sep 2024 08:44:55 +0900
Subject: [PATCH] wip
---
.../src/components/EmCustomEmoji.vue | 5 +-
.../src/components/EmInstanceTicker.vue | 17 ++---
.../src/components/EmNoteDetailed.vue | 2 +-
packages/frontend-embed/src/pages/clip.vue | 2 +-
packages/frontend-embed/src/pages/tag.vue | 2 +-
.../src/pages/user-timeline.vue | 2 +-
.../src/to-be-shared/media-proxy.ts | 53 ----------------
packages/frontend-shared/js/const.ts | 4 --
packages/frontend-shared/js/media-proxy.ts | 62 +++++++++++++++++++
packages/frontend/src/boot/common.ts | 33 +++++-----
packages/frontend/src/boot/main-boot.ts | 5 +-
.../frontend/src/components/MkChannelList.vue | 6 +-
.../src/components/MkCropperDialog.vue | 7 ++-
.../src/components/MkDonation.stories.impl.ts | 2 +-
.../frontend/src/components/MkDonation.vue | 6 +-
.../src/components/MkFeaturedPhotos.vue | 5 +-
.../src/components/MkForgotPassword.vue | 7 ++-
.../frontend/src/components/MkFormDialog.vue | 5 +-
.../src/components/MkInstanceCardMini.vue | 7 ++-
.../src/components/MkInstanceTicker.vue | 8 +--
packages/frontend/src/components/MkLink.vue | 7 ++-
.../frontend/src/components/MkMediaImage.vue | 7 ++-
.../frontend/src/components/MkMention.vue | 7 ++-
packages/frontend/src/components/MkNote.vue | 9 +--
.../src/components/MkNoteDetailed.vue | 9 +--
packages/frontend/src/components/MkNotes.vue | 5 +-
.../src/components/MkNotification.vue | 3 +-
.../src/components/MkNotifications.vue | 5 +-
.../frontend/src/components/MkPagination.vue | 5 +-
.../frontend/src/components/MkPostForm.vue | 5 +-
.../MkPushNotificationAllowButton.vue | 11 ++--
.../src/components/MkSignupDialog.form.vue | 29 ++++-----
.../MkSignupDialog.rules.stories.impl.ts | 2 +-
.../src/components/MkSignupDialog.rules.vue | 19 +++---
.../components/MkSourceCodeAvailablePopup.vue | 8 ++-
.../frontend/src/components/MkTimeline.vue | 5 +-
.../src/components/MkTutorialDialog.vue | 7 ++-
.../frontend/src/components/MkUserInfo.vue | 6 +-
.../frontend/src/components/MkUserList.vue | 6 +-
.../frontend/src/components/MkUserPopup.vue | 10 +--
.../src/components/MkUserSetupDialog.vue | 12 ++--
.../src/components/MkVisitorDashboard.vue | 16 ++---
.../frontend/src/components/global/MkAd.vue | 9 +--
.../src/components/global/MkAvatar.vue | 9 +--
.../src/components/global/MkCustomEmoji.vue | 7 ++-
.../src/components/global/MkError.vue | 6 +-
.../frontend/src/components/global/MkUrl.vue | 7 ++-
.../src/components/page/page.text.vue | 7 ++-
packages/frontend/src/const.ts | 6 +-
packages/frontend/src/local-storage.ts | 1 -
packages/frontend/src/pages/_error_.vue | 7 ++-
packages/frontend/src/pages/about-misskey.vue | 15 ++---
.../frontend/src/pages/about.overview.vue | 38 ++++++------
.../src/pages/admin/bot-protection.vue | 4 +-
.../frontend/src/pages/admin/branding.vue | 4 +-
.../src/pages/admin/email-settings.vue | 7 ++-
.../src/pages/admin/external-services.vue | 4 +-
packages/frontend/src/pages/admin/index.vue | 17 ++---
.../src/pages/admin/instance-block.vue | 4 +-
.../frontend/src/pages/admin/moderation.vue | 4 +-
.../src/pages/admin/object-storage.vue | 4 +-
.../src/pages/admin/other-settings.vue | 4 +-
.../src/pages/admin/proxy-account.vue | 4 +-
.../frontend/src/pages/admin/roles.editor.vue | 7 ++-
.../frontend/src/pages/admin/roles.role.vue | 5 +-
packages/frontend/src/pages/admin/roles.vue | 4 +-
.../frontend/src/pages/admin/security.vue | 4 +-
.../frontend/src/pages/admin/server-rules.vue | 10 +--
.../frontend/src/pages/admin/settings.vue | 10 +--
packages/frontend/src/pages/ads.vue | 6 +-
packages/frontend/src/pages/contact.vue | 16 ++---
.../frontend/src/pages/drive.file.info.vue | 9 +--
packages/frontend/src/pages/favorites.vue | 5 +-
.../frontend/src/pages/follow-requests.vue | 5 +-
packages/frontend/src/pages/instance-info.vue | 7 ++-
packages/frontend/src/pages/invite.vue | 13 ++--
packages/frontend/src/pages/list.vue | 7 ++-
.../frontend/src/pages/my-antennas/index.vue | 5 +-
.../frontend/src/pages/my-lists/index.vue | 5 +-
packages/frontend/src/pages/not-found.vue | 7 ++-
packages/frontend/src/pages/page.vue | 9 +--
packages/frontend/src/pages/role.vue | 9 +--
packages/frontend/src/pages/search.note.vue | 9 +--
packages/frontend/src/pages/search.vue | 8 ++-
packages/frontend/src/pages/settings/apps.vue | 5 +-
.../frontend/src/pages/settings/email.vue | 9 +--
.../frontend/src/pages/settings/index.vue | 5 +-
.../src/pages/settings/mute-block.vue | 9 +--
.../frontend/src/pages/settings/theme.vue | 9 +--
packages/frontend/src/pages/timeline.vue | 18 +++---
packages/frontend/src/pages/user/home.vue | 12 ++--
.../frontend/src/pages/user/index.files.vue | 7 ++-
.../frontend/src/pages/welcome.entrance.a.vue | 11 ++--
packages/frontend/src/pages/welcome.vue | 4 +-
.../frontend/src/scripts/check-permissions.ts | 18 +++---
packages/frontend/src/scripts/clear-cache.ts | 4 +-
.../frontend/src/scripts/get-note-menu.ts | 21 +++----
.../frontend/src/scripts/get-user-menu.ts | 6 +-
packages/frontend/src/scripts/media-proxy.ts | 53 ----------------
packages/frontend/src/scripts/upload.ts | 22 +++----
.../src/{instance.ts => server-metadata.ts} | 34 +++-------
packages/frontend/src/timelines.ts | 12 ++--
packages/frontend/src/ui/_common_/common.ts | 23 +++----
.../src/ui/_common_/navbar-for-mobile.vue | 9 +--
packages/frontend/src/ui/_common_/navbar.vue | 11 ++--
.../src/ui/_common_/statusbar-federation.vue | 9 +--
packages/frontend/src/ui/classic.header.vue | 7 ++-
packages/frontend/src/ui/classic.sidebar.vue | 7 ++-
packages/frontend/src/ui/deck/tl-column.vue | 7 ++-
packages/frontend/src/ui/visitor.vue | 9 +--
.../src/widgets/WidgetBirthdayFollowings.vue | 5 +-
.../frontend/src/widgets/WidgetFederation.vue | 9 +--
.../src/widgets/WidgetInstanceCloud.vue | 9 +--
.../src/widgets/WidgetInstanceInfo.vue | 10 +--
.../frontend/src/widgets/WidgetPhotos.vue | 7 ++-
packages/frontend/src/widgets/WidgetRss.vue | 5 +-
.../frontend/src/widgets/WidgetTimeline.vue | 8 ++-
117 files changed, 587 insertions(+), 568 deletions(-)
delete mode 100644 packages/frontend-embed/src/to-be-shared/media-proxy.ts
create mode 100644 packages/frontend-shared/js/media-proxy.ts
delete mode 100644 packages/frontend/src/scripts/media-proxy.ts
rename packages/frontend/src/{instance.ts => server-metadata.ts} (51%)
diff --git a/packages/frontend-embed/src/components/EmCustomEmoji.vue b/packages/frontend-embed/src/components/EmCustomEmoji.vue
index b4ebf96ebf37..fa4f1862c8a8 100644
--- a/packages/frontend-embed/src/components/EmCustomEmoji.vue
+++ b/packages/frontend-embed/src/components/EmCustomEmoji.vue
@@ -25,9 +25,10 @@ SPDX-License-Identifier: AGPL-3.0-only