From 9224b6635f17c4e38e4a35b4aa1a47f94e8a3d2e Mon Sep 17 00:00:00 2001 From: syuilo Date: Sat, 1 Apr 2023 14:01:57 +0900 Subject: [PATCH] refactor(frontend): remove $ts and $t --- packages/frontend/@types/vue.d.ts | 6 ---- .../frontend/src/components/MkContainer.vue | 3 +- .../frontend/src/components/MkFormDialog.vue | 14 ++++---- packages/frontend/src/components/MkGoogle.vue | 3 +- .../frontend/src/components/MkMediaBanner.vue | 5 +-- .../frontend/src/components/MkMediaVideo.vue | 5 +-- .../src/components/MkModalPageWindow.vue | 2 +- packages/frontend/src/components/MkNote.vue | 2 +- .../src/components/MkNoteDetailed.vue | 2 +- packages/frontend/src/components/MkOmit.vue | 3 +- packages/frontend/src/components/MkPoll.vue | 4 +-- .../frontend/src/components/MkPollEditor.vue | 2 +- .../src/components/MkSubNoteContent.vue | 2 +- .../src/components/MkTokenGenerateWindow.vue | 8 ++--- .../frontend/src/components/MkUserInfo.vue | 2 +- .../frontend/src/components/MkUserPopup.vue | 8 ++--- .../frontend/src/components/form/suspense.vue | 6 ++-- .../frontend/src/components/global/MkAd.vue | 7 ++-- packages/frontend/src/init.ts | 6 ---- packages/frontend/src/pages/about.emojis.vue | 6 ++-- packages/frontend/src/pages/admin/relays.vue | 2 +- packages/frontend/src/pages/announcements.vue | 2 +- .../frontend/src/pages/antenna-timeline.vue | 2 +- packages/frontend/src/pages/auth.form.vue | 28 ++++++++-------- packages/frontend/src/pages/auth.vue | 2 +- packages/frontend/src/pages/miauth.vue | 8 ++--- .../page-editor/els/page-editor.el.image.vue | 3 +- .../page-editor/els/page-editor.el.note.vue | 9 +++--- .../page-editor/els/page-editor.el.text.vue | 3 +- .../page-editor/page-editor.container.vue | 6 ++-- .../src/pages/page-editor/page-editor.vue | 28 ++++++++-------- packages/frontend/src/pages/settings/apps.vue | 2 +- .../frontend/src/pages/settings/sounds.vue | 2 +- packages/frontend/src/pages/user/home.vue | 2 +- .../src/pages/user/index.activity.vue | 2 +- .../frontend/src/pages/user/index.photos.vue | 4 +-- .../frontend/src/pages/welcome.entrance.b.vue | 20 ++++++------ .../frontend/src/pages/welcome.entrance.c.vue | 32 ++++++++++--------- packages/frontend/src/pages/welcome.setup.vue | 8 ++--- packages/frontend/src/ui/classic.header.vue | 8 +++-- packages/frontend/src/ui/classic.sidebar.vue | 12 ++++--- packages/frontend/src/ui/visitor/a.vue | 8 +++-- packages/frontend/src/ui/visitor/b.vue | 19 +++++------ packages/frontend/src/ui/visitor/header.vue | 16 ++++++---- packages/frontend/src/ui/visitor/kanban.vue | 10 +++--- .../frontend/src/widgets/WidgetCalendar.vue | 8 ++--- .../frontend/src/widgets/WidgetSlideshow.vue | 2 +- .../frontend/src/widgets/WidgetTimeline.vue | 2 +- .../frontend/src/widgets/WidgetTrends.vue | 2 +- 49 files changed, 183 insertions(+), 165 deletions(-) diff --git a/packages/frontend/@types/vue.d.ts b/packages/frontend/@types/vue.d.ts index d84f83b43..4b7cb045f 100644 --- a/packages/frontend/@types/vue.d.ts +++ b/packages/frontend/@types/vue.d.ts @@ -1,10 +1,4 @@ /// -import type { i18n } from '@/i18n'; - declare module 'vue' { - interface ComponentCustomProperties { - $t: typeof i18n['t']; - $ts: typeof i18n['ts']; - } } diff --git a/packages/frontend/src/components/MkContainer.vue b/packages/frontend/src/components/MkContainer.vue index e021cfbda..1834224b8 100644 --- a/packages/frontend/src/components/MkContainer.vue +++ b/packages/frontend/src/components/MkContainer.vue @@ -26,7 +26,7 @@
@@ -36,6 +36,7 @@