fix emojilist

This commit is contained in:
tamaina 2022-04-26 11:24:28 +00:00
parent 0329b02a95
commit 11f735b088
2 changed files with 2 additions and 2 deletions

View File

@ -61,7 +61,7 @@
</div> </div>
<div> <div>
<header class="_acrylic">{{ i18n.ts.emoji }}</header> <header class="_acrylic">{{ i18n.ts.emoji }}</header>
<XSection v-for="category in categories" :emojis="emojilist.filter(e => e.category === category).map(e => e.char)" @chosen="chosen">{{ category }}</XSection> <XSection v-for="category in categories" :key="category" :emojis="emojilist.filter(e => e.category === category).map(e => e.char)" @chosen="chosen">{{ category }}</XSection>
</div> </div>
</div> </div>
<div class="tabs"> <div class="tabs">

View File

@ -8,4 +8,4 @@ export type UnicodeEmojiDef = {
} }
// initial converted from https://github.com/muan/emojilib/commit/242fe68be86ed6536843b83f7e32f376468b38fb // initial converted from https://github.com/muan/emojilib/commit/242fe68be86ed6536843b83f7e32f376468b38fb
export const emojilist = await import('../emojilist.json') as UnicodeEmojiDef[]; export const emojilist = (await import('../emojilist.json')).default as UnicodeEmojiDef[];