From f16a7cbcf24364ec201b3d4c9899a7abc443a93c Mon Sep 17 00:00:00 2001 From: syuilo Date: Sat, 1 Apr 2023 13:52:07 +0900 Subject: [PATCH 1/3] refactor(frontend): remove $i --- packages/frontend/@types/vue.d.ts | 3 --- packages/frontend/src/components/MkNotePreview.vue | 1 + packages/frontend/src/components/MkNoteSimple.vue | 1 + packages/frontend/src/components/MkNoteSub.vue | 1 + packages/frontend/src/components/MkSample.vue | 2 ++ .../frontend/src/components/MkSubNoteContent.vue | 1 + packages/frontend/src/components/MkUserInfo.vue | 1 + packages/frontend/src/components/MkUserPopup.vue | 1 + packages/frontend/src/components/page/page.post.vue | 3 ++- packages/frontend/src/components/page/page.text.vue | 6 ++++-- packages/frontend/src/init.ts | 1 - packages/frontend/src/pages/about.emojis.vue | 3 ++- packages/frontend/src/pages/announcements.vue | 1 + packages/frontend/src/pages/flash/flash.vue | 1 + packages/frontend/src/pages/gallery/post.vue | 1 + packages/frontend/src/pages/page.vue | 1 + .../frontend/src/pages/settings/delete-account.vue | 2 +- packages/frontend/src/pages/user-info.vue | 2 +- packages/frontend/src/pages/welcome.timeline.vue | 13 +++++++------ .../frontend/src/ui/_common_/navbar-for-mobile.vue | 2 +- packages/frontend/src/ui/classic.header.vue | 3 ++- packages/frontend/src/ui/classic.sidebar.vue | 3 ++- 22 files changed, 34 insertions(+), 19 deletions(-) diff --git a/packages/frontend/@types/vue.d.ts b/packages/frontend/@types/vue.d.ts index 13544a2f54..d84f83b43a 100644 --- a/packages/frontend/@types/vue.d.ts +++ b/packages/frontend/@types/vue.d.ts @@ -1,12 +1,9 @@ /// -import type { $i } from '@/account'; -import type { instance } from '@/instance'; import type { i18n } from '@/i18n'; declare module 'vue' { interface ComponentCustomProperties { - $i: typeof $i; $t: typeof i18n['t']; $ts: typeof i18n['ts']; } diff --git a/packages/frontend/src/components/MkNotePreview.vue b/packages/frontend/src/components/MkNotePreview.vue index 1cc01386ba..16196834b7 100644 --- a/packages/frontend/src/components/MkNotePreview.vue +++ b/packages/frontend/src/components/MkNotePreview.vue @@ -16,6 +16,7 @@