mirror of
https://github.com/kokonect-link/cherrypick
synced 2024-11-24 07:06:26 +09:00
refactor: remove export of unicodeEmojisMap
This commit is contained in:
parent
b9bcceddfc
commit
bc30dc6bff
@ -108,7 +108,6 @@ import * as Misskey from 'misskey-js';
|
|||||||
import XSection from '@/components/MkEmojiPicker.section.vue';
|
import XSection from '@/components/MkEmojiPicker.section.vue';
|
||||||
import {
|
import {
|
||||||
emojilist,
|
emojilist,
|
||||||
unicodeEmojisMap,
|
|
||||||
emojiCharByCategory,
|
emojiCharByCategory,
|
||||||
UnicodeEmojiDef,
|
UnicodeEmojiDef,
|
||||||
unicodeEmojiCategories as categories,
|
unicodeEmojiCategories as categories,
|
||||||
|
@ -34,7 +34,7 @@ import { i18n } from '@/i18n.js';
|
|||||||
import * as sound from '@/scripts/sound.js';
|
import * as sound from '@/scripts/sound.js';
|
||||||
import { checkReactionPermissions } from '@/scripts/check-reaction-permissions.js';
|
import { checkReactionPermissions } from '@/scripts/check-reaction-permissions.js';
|
||||||
import { customEmojisMap } from '@/custom-emojis.js';
|
import { customEmojisMap } from '@/custom-emojis.js';
|
||||||
import { getUnicodeEmoji, unicodeEmojisMap } from '@/scripts/emojilist.js';
|
import { getUnicodeEmoji } from '@/scripts/emojilist.js';
|
||||||
|
|
||||||
const props = defineProps<{
|
const props = defineProps<{
|
||||||
reaction: string;
|
reaction: string;
|
||||||
|
@ -20,7 +20,7 @@ export const emojilist: UnicodeEmojiDef[] = _emojilist.map(x => ({
|
|||||||
category: unicodeEmojiCategories[x[2]],
|
category: unicodeEmojiCategories[x[2]],
|
||||||
}));
|
}));
|
||||||
|
|
||||||
export const unicodeEmojisMap = new Map<string, UnicodeEmojiDef>(
|
const unicodeEmojisMap = new Map<string, UnicodeEmojiDef>(
|
||||||
emojilist.map(x => [x.char, x]),
|
emojilist.map(x => [x.char, x]),
|
||||||
);
|
);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user