From bc30dc6bffa92946342c18b51378901c90e5f23f Mon Sep 17 00:00:00 2001 From: tamaina Date: Thu, 29 Feb 2024 11:49:40 +0000 Subject: [PATCH] refactor: remove export of unicodeEmojisMap --- packages/frontend/src/components/MkEmojiPicker.vue | 1 - packages/frontend/src/components/MkReactionsViewer.reaction.vue | 2 +- packages/frontend/src/scripts/emojilist.ts | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/packages/frontend/src/components/MkEmojiPicker.vue b/packages/frontend/src/components/MkEmojiPicker.vue index e8ad351a23..06243e5b04 100644 --- a/packages/frontend/src/components/MkEmojiPicker.vue +++ b/packages/frontend/src/components/MkEmojiPicker.vue @@ -108,7 +108,6 @@ import * as Misskey from 'misskey-js'; import XSection from '@/components/MkEmojiPicker.section.vue'; import { emojilist, - unicodeEmojisMap, emojiCharByCategory, UnicodeEmojiDef, unicodeEmojiCategories as categories, diff --git a/packages/frontend/src/components/MkReactionsViewer.reaction.vue b/packages/frontend/src/components/MkReactionsViewer.reaction.vue index acfc37ebb7..c41811febe 100644 --- a/packages/frontend/src/components/MkReactionsViewer.reaction.vue +++ b/packages/frontend/src/components/MkReactionsViewer.reaction.vue @@ -34,7 +34,7 @@ import { i18n } from '@/i18n.js'; import * as sound from '@/scripts/sound.js'; import { checkReactionPermissions } from '@/scripts/check-reaction-permissions.js'; import { customEmojisMap } from '@/custom-emojis.js'; -import { getUnicodeEmoji, unicodeEmojisMap } from '@/scripts/emojilist.js'; +import { getUnicodeEmoji } from '@/scripts/emojilist.js'; const props = defineProps<{ reaction: string; diff --git a/packages/frontend/src/scripts/emojilist.ts b/packages/frontend/src/scripts/emojilist.ts index d31e49c53d..f2fbeae0ed 100644 --- a/packages/frontend/src/scripts/emojilist.ts +++ b/packages/frontend/src/scripts/emojilist.ts @@ -20,7 +20,7 @@ export const emojilist: UnicodeEmojiDef[] = _emojilist.map(x => ({ category: unicodeEmojiCategories[x[2]], })); -export const unicodeEmojisMap = new Map( +const unicodeEmojisMap = new Map( emojilist.map(x => [x.char, x]), );