From aa2f401a85f0c0a8ba25ff6bdf533b569eb3166f Mon Sep 17 00:00:00 2001 From: Johann150 Date: Tue, 2 Aug 2022 12:02:28 +0200 Subject: [PATCH] refactor: reduce use of global variables --- .../src/components/file-list-for-admin.vue | 4 ++-- packages/client/src/components/form-dialog.vue | 15 ++++++++------- packages/client/src/components/global/acct.vue | 3 ++- .../client/src/components/global/avatar.vue | 4 ++-- packages/client/src/components/global/error.vue | 3 ++- packages/client/src/components/launch-pad.vue | 6 +++--- packages/client/src/components/media-banner.vue | 5 +++-- .../client/src/components/media-caption.vue | 5 +++-- packages/client/src/components/media-video.vue | 5 +++-- packages/client/src/components/mention.vue | 3 ++- packages/client/src/components/mfm-search.vue | 3 ++- packages/client/src/ui/visitor/b.vue | 17 +++++++++-------- 12 files changed, 41 insertions(+), 32 deletions(-) diff --git a/packages/client/src/components/file-list-for-admin.vue b/packages/client/src/components/file-list-for-admin.vue index 04427de45..5f077466d 100644 --- a/packages/client/src/components/file-list-for-admin.vue +++ b/packages/client/src/components/file-list-for-admin.vue @@ -15,14 +15,14 @@
-
{{ $ts.system }}
+
{{ i18n.ts.system }}
{{ file.type }} {{ bytes(file.size) }}
- {{ $ts.registeredDate }}: + {{ i18n.ts.registeredDate }}:
diff --git a/packages/client/src/components/form-dialog.vue b/packages/client/src/components/form-dialog.vue index f6e547655..fd51936eb 100644 --- a/packages/client/src/components/form-dialog.vue +++ b/packages/client/src/components/form-dialog.vue @@ -8,7 +8,7 @@ @click="cancel()" @ok="ok()" @close="cancel()" - @closed="$emit('closed')" + @closed="emit('closed')" >