From 39c3995c74380a5b9b473583594966c26c008777 Mon Sep 17 00:00:00 2001 From: syuilo Date: Mon, 9 Jan 2023 16:45:05 +0900 Subject: [PATCH] refactor --- .../src/components/MkAutocomplete.vue | 4 +--- .../frontend/src/components/MkEmojiPicker.vue | 14 +++---------- packages/frontend/src/custom-emojis.ts | 21 +++++++++---------- packages/frontend/src/pages/about.emojis.vue | 7 +++---- .../src/pages/admin/emoji-edit-dialog.vue | 2 +- .../src/pages/admin/overview.stats.vue | 4 +--- .../frontend/src/pages/mfm-cheat-sheet.vue | 4 +--- 7 files changed, 20 insertions(+), 36 deletions(-) diff --git a/packages/frontend/src/components/MkAutocomplete.vue b/packages/frontend/src/components/MkAutocomplete.vue index 0d0c5edbae..b184e4489e 100644 --- a/packages/frontend/src/components/MkAutocomplete.vue +++ b/packages/frontend/src/components/MkAutocomplete.vue @@ -47,9 +47,7 @@ import { emojilist } from '@/scripts/emojilist'; import { instance } from '@/instance'; import { i18n } from '@/i18n'; import { miLocalStorage } from '@/local-storage'; -import { getCustomEmojis } from '@/custom-emojis'; - -const customEmojis = await getCustomEmojis(); +import { customEmojis } from '@/custom-emojis'; type EmojiDef = { emoji: string; diff --git a/packages/frontend/src/components/MkEmojiPicker.vue b/packages/frontend/src/components/MkEmojiPicker.vue index 18950b18d3..a34326822f 100644 --- a/packages/frontend/src/components/MkEmojiPicker.vue +++ b/packages/frontend/src/components/MkEmojiPicker.vue @@ -1,7 +1,7 @@