From 58bfb4dca4a0b0f0d8468667f5a6b0f0bdc374f5 Mon Sep 17 00:00:00 2001 From: syuilo Date: Sat, 7 Jan 2023 15:09:46 +0900 Subject: [PATCH] refactor --- .../src/components/MkAbuseReportWindow.vue | 2 +- packages/frontend/src/components/MkAsUi.vue | 6 +- packages/frontend/src/components/MkDialog.vue | 4 +- .../components/MkFileCaptionEditWindow.vue | 2 +- .../src/components/MkForgotPassword.vue | 2 +- .../frontend/src/components/MkFormDialog.vue | 44 ++++++------ .../{form/input.vue => MkInput.vue} | 0 .../src/components/MkInstanceStats.vue | 2 +- .../frontend/src/components/MkPollEditor.vue | 4 +- .../{form/radio.vue => MkRadio.vue} | 0 .../{form/radios.vue => MkRadios.vue} | 2 +- .../{form/range.vue => MkRange.vue} | 0 packages/frontend/src/components/MkSample.vue | 6 +- .../{form/select.vue => MkSelect.vue} | 0 packages/frontend/src/components/MkSignin.vue | 2 +- packages/frontend/src/components/MkSignup.vue | 2 +- .../{form/textarea.vue => MkTextarea.vue} | 0 .../src/components/MkTokenGenerateWindow.vue | 2 +- .../src/components/MkUserSelectDialog.vue | 2 +- .../frontend/src/components/MkWidgets.vue | 2 +- .../src/components/page/page.number-input.vue | 2 +- .../src/components/page/page.post.vue | 2 +- .../src/components/page/page.radio-button.vue | 2 +- .../src/components/page/page.text-input.vue | 2 +- .../components/page/page.textarea-input.vue | 2 +- .../src/components/page/page.textarea.vue | 2 +- packages/frontend/src/pages/about.emojis.vue | 4 +- .../frontend/src/pages/about.federation.vue | 4 +- packages/frontend/src/pages/admin/abuses.vue | 4 +- packages/frontend/src/pages/admin/ads.vue | 10 +-- .../src/pages/admin/announcements.vue | 4 +- .../src/pages/admin/bot-protection.vue | 32 ++++----- .../src/pages/admin/email-settings.vue | 22 +++--- .../src/pages/admin/emoji-edit-dialog.vue | 2 +- packages/frontend/src/pages/admin/emojis.vue | 2 +- packages/frontend/src/pages/admin/files.vue | 4 +- .../src/pages/admin/instance-block.vue | 6 +- .../src/pages/admin/integrations.discord.vue | 10 +-- .../src/pages/admin/integrations.github.vue | 10 +-- .../src/pages/admin/integrations.twitter.vue | 10 +-- .../src/pages/admin/object-storage.vue | 30 ++++---- .../src/pages/admin/overview.heatmap.vue | 2 +- .../frontend/src/pages/admin/security.vue | 18 ++--- .../frontend/src/pages/admin/settings.vue | 72 +++++++++---------- packages/frontend/src/pages/admin/users.vue | 4 +- packages/frontend/src/pages/api-console.vue | 4 +- .../frontend/src/pages/channel-editor.vue | 4 +- packages/frontend/src/pages/explore.vue | 4 +- .../frontend/src/pages/flash/flash-edit.vue | 4 +- packages/frontend/src/pages/flash/flash.vue | 2 +- packages/frontend/src/pages/gallery/edit.vue | 12 ++-- packages/frontend/src/pages/gallery/index.vue | 2 +- packages/frontend/src/pages/instance-info.vue | 2 +- .../frontend/src/pages/mfm-cheat-sheet.vue | 2 +- .../frontend/src/pages/my-antennas/editor.vue | 6 +- .../page-editor/els/page-editor.el.note.vue | 2 +- .../src/pages/page-editor/page-editor.vue | 6 +- .../frontend/src/pages/registry.value.vue | 6 +- .../frontend/src/pages/reset-password.vue | 6 +- packages/frontend/src/pages/settings/2fa.vue | 2 +- .../src/pages/settings/custom-css.vue | 6 +- packages/frontend/src/pages/settings/deck.vue | 8 +-- .../frontend/src/pages/settings/email.vue | 6 +- .../frontend/src/pages/settings/general.vue | 38 +++++----- .../src/pages/settings/instance-mute.vue | 6 +- .../frontend/src/pages/settings/navbar.vue | 12 ++-- .../src/pages/settings/plugin.install.vue | 6 +- .../frontend/src/pages/settings/privacy.vue | 10 +-- .../frontend/src/pages/settings/profile.vue | 34 ++++----- .../frontend/src/pages/settings/reaction.vue | 16 ++--- .../src/pages/settings/sounds.sound.vue | 12 ++-- .../frontend/src/pages/settings/sounds.vue | 6 +- .../pages/settings/statusbar.statusbar.vue | 32 ++++----- .../frontend/src/pages/settings/statusbar.vue | 2 +- .../src/pages/settings/theme.install.vue | 6 +- .../src/pages/settings/theme.manage.vue | 22 +++--- .../frontend/src/pages/settings/theme.vue | 10 +-- .../src/pages/settings/webhook.edit.vue | 14 ++-- .../src/pages/settings/webhook.new.vue | 14 ++-- .../frontend/src/pages/settings/word-mute.vue | 10 +-- packages/frontend/src/pages/theme-editor.vue | 10 +-- packages/frontend/src/pages/user-info.vue | 14 ++-- packages/frontend/src/pages/welcome.setup.vue | 2 +- 83 files changed, 353 insertions(+), 353 deletions(-) rename packages/frontend/src/components/{form/input.vue => MkInput.vue} (100%) rename packages/frontend/src/components/{form/radio.vue => MkRadio.vue} (100%) rename packages/frontend/src/components/{form/radios.vue => MkRadios.vue} (97%) rename packages/frontend/src/components/{form/range.vue => MkRange.vue} (100%) rename packages/frontend/src/components/{form/select.vue => MkSelect.vue} (100%) rename packages/frontend/src/components/{form/textarea.vue => MkTextarea.vue} (100%) diff --git a/packages/frontend/src/components/MkAbuseReportWindow.vue b/packages/frontend/src/components/MkAbuseReportWindow.vue index d4f9622fb..a76a1e0f5 100644 --- a/packages/frontend/src/components/MkAbuseReportWindow.vue +++ b/packages/frontend/src/components/MkAbuseReportWindow.vue @@ -28,7 +28,7 @@ import { ref, shallowRef } from 'vue'; import * as Misskey from 'misskey-js'; import MkWindow from '@/components/MkWindow.vue'; -import MkTextarea from '@/components/form/textarea.vue'; +import MkTextarea from '@/components/MkTextarea.vue'; import MkButton from '@/components/MkButton.vue'; import * as os from '@/os'; import { i18n } from '@/i18n'; diff --git a/packages/frontend/src/components/MkAsUi.vue b/packages/frontend/src/components/MkAsUi.vue index 9115de93c..b6b49725d 100644 --- a/packages/frontend/src/components/MkAsUi.vue +++ b/packages/frontend/src/components/MkAsUi.vue @@ -51,10 +51,10 @@ import { computed, defineAsyncComponent, onMounted, onUnmounted, Ref } from 'vue'; import * as os from '@/os'; import MkButton from '@/components/MkButton.vue'; -import MkInput from '@/components/form/input.vue'; +import MkInput from '@/components/MkInput.vue'; import MkSwitch from '@/components/MkSwitch.vue'; -import MkTextarea from '@/components/form/textarea.vue'; -import MkSelect from '@/components/form/select.vue'; +import MkTextarea from '@/components/MkTextarea.vue'; +import MkSelect from '@/components/MkSelect.vue'; import { AsUiComponent } from '@/scripts/aiscript/ui'; import FormFolder from '@/components/form/folder.vue'; diff --git a/packages/frontend/src/components/MkDialog.vue b/packages/frontend/src/components/MkDialog.vue index 18c9f9203..c90163051 100644 --- a/packages/frontend/src/components/MkDialog.vue +++ b/packages/frontend/src/components/MkDialog.vue @@ -42,8 +42,8 @@ import { onBeforeUnmount, onMounted, ref, shallowRef } from 'vue'; import MkModal from '@/components/MkModal.vue'; import MkButton from '@/components/MkButton.vue'; -import MkInput from '@/components/form/input.vue'; -import MkSelect from '@/components/form/select.vue'; +import MkInput from '@/components/MkInput.vue'; +import MkSelect from '@/components/MkSelect.vue'; import { i18n } from '@/i18n'; type Input = { diff --git a/packages/frontend/src/components/MkFileCaptionEditWindow.vue b/packages/frontend/src/components/MkFileCaptionEditWindow.vue index f7b7430bf..95eef45df 100644 --- a/packages/frontend/src/components/MkFileCaptionEditWindow.vue +++ b/packages/frontend/src/components/MkFileCaptionEditWindow.vue @@ -23,7 +23,7 @@ import { } from 'vue'; import * as Misskey from 'misskey-js'; import MkModalWindow from '@/components/MkModalWindow.vue'; -import MkTextarea from '@/components/form/textarea.vue'; +import MkTextarea from '@/components/MkTextarea.vue'; import MkDriveFileThumbnail from '@/components/MkDriveFileThumbnail.vue'; import { i18n } from '@/i18n'; diff --git a/packages/frontend/src/components/MkForgotPassword.vue b/packages/frontend/src/components/MkForgotPassword.vue index dc38e4277..0befa7e3a 100644 --- a/packages/frontend/src/components/MkForgotPassword.vue +++ b/packages/frontend/src/components/MkForgotPassword.vue @@ -36,7 +36,7 @@ import { } from 'vue'; import MkModalWindow from '@/components/MkModalWindow.vue'; import MkButton from '@/components/MkButton.vue'; -import MkInput from '@/components/form/input.vue'; +import MkInput from '@/components/MkInput.vue'; import * as os from '@/os'; import { instance } from '@/instance'; import { i18n } from '@/i18n'; diff --git a/packages/frontend/src/components/MkFormDialog.vue b/packages/frontend/src/components/MkFormDialog.vue index d9a07b45d..d95d339a7 100644 --- a/packages/frontend/src/components/MkFormDialog.vue +++ b/packages/frontend/src/components/MkFormDialog.vue @@ -17,34 +17,34 @@