From 21e1906fbf393b82c04d86cd93cc6628ebdfd902 Mon Sep 17 00:00:00 2001 From: syuilo Date: Sat, 27 Feb 2021 19:53:20 +0900 Subject: Resolve #7264 --- src/client/instance.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/client/instance.ts') diff --git a/src/client/instance.ts b/src/client/instance.ts index 89c0368599..bd6b1bd571 100644 --- a/src/client/instance.ts +++ b/src/client/instance.ts @@ -37,6 +37,16 @@ export const emojiCategories = computed(() => { return Array.from(categories); }); +export const emojiTags = computed(() => { + const tags = new Set(); + for (const emoji of instance.emojis) { + for (const tag of emoji.aliases) { + tags.add(tag); + } + } + return Array.from(tags); +}); + // このファイルに書きたくないけどここに書かないと何故かVeturが認識しない declare module '@vue/runtime-core' { interface ComponentCustomProperties { -- cgit v1.2.3-freya