From 047262ab20c83232c01b102961dfdc299073ea1a Mon Sep 17 00:00:00 2001 From: syuilo Date: Thu, 5 Jan 2023 21:04:56 +0900 Subject: [PATCH] refactor --- .../frontend/src/components/MkAbuseReport.vue | 4 +- .../src/components/MkFileListForAdmin.vue | 3 - .../src/components/MkForgotPassword.vue | 11 +- .../frontend/src/components/MkFormDialog.vue | 18 +- .../MkNotificationSettingWindow.vue | 8 +- .../frontend/src/components/MkPagination.vue | 4 +- packages/frontend/src/components/MkSignin.vue | 16 +- packages/frontend/src/components/MkSignup.vue | 22 +-- .../src/components/MkTokenGenerateWindow.vue | 10 +- .../frontend/src/components/form/section.vue | 34 ++-- .../frontend/src/components/form/split.vue | 2 +- packages/frontend/src/pages/about-misskey.vue | 9 +- packages/frontend/src/pages/about.vue | 48 ++--- packages/frontend/src/pages/admin-file.vue | 18 +- packages/frontend/src/pages/admin/ads.vue | 12 +- .../src/pages/admin/announcements.vue | 2 +- .../src/pages/admin/bot-protection.vue | 22 +-- .../src/pages/admin/email-settings.vue | 51 +++--- .../src/pages/admin/emoji-edit-dialog.vue | 12 +- .../src/pages/admin/instance-block.vue | 4 +- .../src/pages/admin/integrations.discord.vue | 12 +- .../src/pages/admin/integrations.github.vue | 12 +- .../src/pages/admin/integrations.twitter.vue | 12 +- .../frontend/src/pages/admin/integrations.vue | 50 +++--- .../src/pages/admin/object-storage.vue | 26 +-- .../src/pages/admin/proxy-account.vue | 24 +-- .../frontend/src/pages/admin/security.vue | 44 ++--- .../frontend/src/pages/admin/settings.vue | 168 ++++++++++-------- packages/frontend/src/pages/api-console.vue | 14 +- .../frontend/src/pages/channel-editor.vue | 8 +- packages/frontend/src/pages/channel.vue | 6 +- packages/frontend/src/pages/channels.vue | 6 +- packages/frontend/src/pages/explore.users.vue | 18 +- packages/frontend/src/pages/explore.vue | 6 +- .../frontend/src/pages/flash/flash-edit.vue | 26 +-- packages/frontend/src/pages/flash/flash.vue | 2 +- packages/frontend/src/pages/gallery/index.vue | 4 +- packages/frontend/src/pages/instance-info.vue | 42 +++-- .../frontend/src/pages/my-antennas/editor.vue | 93 +++++----- .../frontend/src/pages/my-clips/index.vue | 2 +- packages/frontend/src/pages/my-lists/list.vue | 2 +- packages/frontend/src/pages/note.vue | 12 +- .../src/pages/page-editor/page-editor.vue | 14 +- packages/frontend/src/pages/page.vue | 2 +- packages/frontend/src/pages/registry.keys.vue | 38 ++-- .../frontend/src/pages/registry.value.vue | 58 +++--- .../frontend/src/pages/reset-password.vue | 6 +- .../src/pages/settings/account-info.vue | 2 +- .../frontend/src/pages/settings/accounts.vue | 2 +- packages/frontend/src/pages/settings/api.vue | 8 +- packages/frontend/src/pages/settings/apps.vue | 10 +- .../src/pages/settings/custom-css.vue | 6 +- packages/frontend/src/pages/settings/deck.vue | 6 +- .../src/pages/settings/delete-account.vue | 8 +- .../frontend/src/pages/settings/drive.vue | 65 +++---- .../frontend/src/pages/settings/email.vue | 41 +++-- .../frontend/src/pages/settings/general.vue | 96 +++++----- .../src/pages/settings/import-export.vue | 22 +-- .../src/pages/settings/instance-mute.vue | 6 +- .../src/pages/settings/integration.vue | 2 +- .../src/pages/settings/mute-block.vue | 2 +- .../frontend/src/pages/settings/navbar.vue | 8 +- .../src/pages/settings/notifications.vue | 33 ++-- .../frontend/src/pages/settings/other.vue | 12 +- .../src/pages/settings/plugin.install.vue | 8 +- .../frontend/src/pages/settings/plugin.vue | 12 +- .../pages/settings/preferences-backups.vue | 26 +-- .../frontend/src/pages/settings/privacy.vue | 52 +++--- .../frontend/src/pages/settings/profile.vue | 32 ++-- .../frontend/src/pages/settings/reaction.vue | 12 +- .../frontend/src/pages/settings/security.vue | 2 +- .../src/pages/settings/sounds.sound.vue | 4 +- .../frontend/src/pages/settings/sounds.vue | 18 +- .../pages/settings/statusbar.statusbar.vue | 36 ++-- .../frontend/src/pages/settings/statusbar.vue | 4 +- .../src/pages/settings/theme.install.vue | 6 +- .../src/pages/settings/theme.manage.vue | 12 +- .../frontend/src/pages/settings/theme.vue | 10 +- .../src/pages/settings/webhook.edit.vue | 28 +-- .../src/pages/settings/webhook.new.vue | 26 +-- .../frontend/src/pages/settings/webhook.vue | 14 +- .../frontend/src/pages/settings/word-mute.vue | 20 +-- packages/frontend/src/pages/theme-editor.vue | 20 +-- packages/frontend/src/pages/user-info.vue | 98 +++++----- packages/frontend/src/pages/user/clips.vue | 2 +- packages/frontend/src/pages/user/home.vue | 2 +- packages/frontend/src/pages/user/pages.vue | 2 +- .../frontend/src/pages/user/reactions.vue | 2 +- packages/frontend/src/pages/welcome.setup.vue | 8 +- packages/frontend/src/style.scss | 31 ++-- 90 files changed, 949 insertions(+), 884 deletions(-) diff --git a/packages/frontend/src/components/MkAbuseReport.vue b/packages/frontend/src/components/MkAbuseReport.vue index c06579288..cdfe323d5 100644 --- a/packages/frontend/src/components/MkAbuseReport.vue +++ b/packages/frontend/src/components/MkAbuseReport.vue @@ -1,5 +1,5 @@ -
+
diff --git a/packages/frontend/src/components/MkNotificationSettingWindow.vue b/packages/frontend/src/components/MkNotificationSettingWindow.vue index 754d8d687..e58a11bf5 100644 --- a/packages/frontend/src/components/MkNotificationSettingWindow.vue +++ b/packages/frontend/src/components/MkNotificationSettingWindow.vue @@ -12,20 +12,20 @@ -
+
diff --git a/packages/frontend/src/components/MkPagination.vue b/packages/frontend/src/components/MkPagination.vue index 2c0a30a88..b92e6d236 100644 --- a/packages/frontend/src/components/MkPagination.vue +++ b/packages/frontend/src/components/MkPagination.vue @@ -14,14 +14,14 @@
-
+
{{ i18n.ts.loadMore }}
-
+
{{ i18n.ts.loadMore }} diff --git a/packages/frontend/src/components/MkSignin.vue b/packages/frontend/src/components/MkSignin.vue index 96f18f8d6..281c935eb 100644 --- a/packages/frontend/src/components/MkSignin.vue +++ b/packages/frontend/src/components/MkSignin.vue @@ -1,20 +1,20 @@ diff --git a/packages/frontend/src/components/MkSignup.vue b/packages/frontend/src/components/MkSignup.vue index d987425ca..66a14e560 100644 --- a/packages/frontend/src/components/MkSignup.vue +++ b/packages/frontend/src/components/MkSignup.vue @@ -1,10 +1,10 @@ - + - + - + - + - - - - {{ i18n.ts.start }} + + + + {{ i18n.ts.start }} diff --git a/packages/frontend/src/components/MkTokenGenerateWindow.vue b/packages/frontend/src/components/MkTokenGenerateWindow.vue index 894336136..1762a0d33 100644 --- a/packages/frontend/src/components/MkTokenGenerateWindow.vue +++ b/packages/frontend/src/components/MkTokenGenerateWindow.vue @@ -13,21 +13,21 @@ -
-
+
+
{{ information }}
-
+
-
{{ $ts.permission }}
+
{{ $ts.permission }}
{{ i18n.ts.disableAll }} {{ i18n.ts.enableAll }}
- {{ $t(`_permissions.${kind}`) }} + {{ $t(`_permissions.${kind}`) }}
diff --git a/packages/frontend/src/components/form/section.vue b/packages/frontend/src/components/form/section.vue index c6e34ef1c..a83816497 100644 --- a/packages/frontend/src/components/form/section.vue +++ b/packages/frontend/src/components/form/section.vue @@ -1,35 +1,27 @@ diff --git a/packages/frontend/src/components/form/split.vue b/packages/frontend/src/components/form/split.vue index 301a8a84e..3cee41e3d 100644 --- a/packages/frontend/src/components/form/split.vue +++ b/packages/frontend/src/components/form/split.vue @@ -1,5 +1,5 @@ diff --git a/packages/frontend/src/pages/about-misskey.vue b/packages/frontend/src/pages/about-misskey.vue index 5085b1252..2f88dae73 100644 --- a/packages/frontend/src/pages/about-misskey.vue +++ b/packages/frontend/src/pages/about-misskey.vue @@ -3,18 +3,17 @@
-
-
-
+
+
Misskey
v{{ version }}
-
+
{{ i18n.ts._aboutMisskey.about }}
{{ i18n.ts.learnMore }}
-
+
I #Misskey
diff --git a/packages/frontend/src/pages/about.vue b/packages/frontend/src/pages/about.vue index 1d6a844fb..27470d1a8 100644 --- a/packages/frontend/src/pages/about.vue +++ b/packages/frontend/src/pages/about.vue @@ -2,8 +2,8 @@ -
-
+
+
@@ -12,44 +12,48 @@
- + - - - - -
+
+ + + + +
+
+ {{ i18n.ts.aboutMisskey }}
- {{ i18n.ts.aboutMisskey }} - - - - - - - - - - - {{ i18n.ts.tos }} +
+ + + + + + + + + + + {{ i18n.ts.tos }} +
- + - + diff --git a/packages/frontend/src/pages/admin-file.vue b/packages/frontend/src/pages/admin-file.vue index a11249e75..92972c116 100644 --- a/packages/frontend/src/pages/admin-file.vue +++ b/packages/frontend/src/pages/admin-file.vue @@ -2,11 +2,11 @@ -
- +
+ -
+
@@ -31,29 +31,29 @@ -
+
NSFW
-
+
{{ i18n.ts.delete }}
-
+
{{ i18n.ts.requireAdminForView }} - + - +
-
+
diff --git a/packages/frontend/src/pages/admin/ads.vue b/packages/frontend/src/pages/admin/ads.vue index 2ec926c65..e7ab1c855 100644 --- a/packages/frontend/src/pages/admin/ads.vue +++ b/packages/frontend/src/pages/admin/ads.vue @@ -3,15 +3,15 @@
-
+
- + - + - + @@ -33,10 +33,10 @@ - + -
+
{{ i18n.ts.save }} {{ i18n.ts.remove }}
diff --git a/packages/frontend/src/pages/admin/announcements.vue b/packages/frontend/src/pages/admin/announcements.vue index 607ad8aa0..f5c2f1195 100644 --- a/packages/frontend/src/pages/admin/announcements.vue +++ b/packages/frontend/src/pages/admin/announcements.vue @@ -3,7 +3,7 @@
-
+
diff --git a/packages/frontend/src/pages/admin/bot-protection.vue b/packages/frontend/src/pages/admin/bot-protection.vue index d03961cf9..c213e9805 100644 --- a/packages/frontend/src/pages/admin/bot-protection.vue +++ b/packages/frontend/src/pages/admin/bot-protection.vue @@ -1,8 +1,8 @@