This commit is contained in:
syuilo
2021-02-27 19:53:20 +09:00
parent 10af8c8db7
commit 21e1906fbf
3 changed files with 143 additions and 98 deletions

View File

@ -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 {