diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2021-02-27 19:53:20 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2021-02-27 19:53:20 +0900 |
| commit | 21e1906fbf393b82c04d86cd93cc6628ebdfd902 (patch) | |
| tree | b9c92207102fe2aa766813bc8e6c0bd2051d2874 /src/client/instance.ts | |
| parent | refactoring (diff) | |
| download | sharkey-21e1906fbf393b82c04d86cd93cc6628ebdfd902.tar.gz sharkey-21e1906fbf393b82c04d86cd93cc6628ebdfd902.tar.bz2 sharkey-21e1906fbf393b82c04d86cd93cc6628ebdfd902.zip | |
Resolve #7264
Diffstat (limited to 'src/client/instance.ts')
| -rw-r--r-- | src/client/instance.ts | 10 |
1 files changed, 10 insertions, 0 deletions
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 { |