Skip to content

Commit

Permalink
add full emoji list from lib
Browse files Browse the repository at this point in the history
  • Loading branch information
leon-luna-ray committed Oct 2, 2023
1 parent 7b026c7 commit 99faf1d
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 6 deletions.
11 changes: 5 additions & 6 deletions components/EmojiGrid.vue
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
<template>
<div class="container grid grid-cols-12">
<div v-for="emoji in emojis.nature" class="emoji-btn" @click="copyToClipboard(emoji)">
<span>
{{ emoji }}
</span>
<div v-for="emoji in emojis" class="emoji-btn" @click="copyToClipboard(emoji.emoji)">
<h1>{{ emoji.emoji }}</h1>
</div>
</div>
<div>Copied to clipboard!</div>
<!-- <div>Copied to clipboard!</div> -->
</template>

<script setup>
import { emojis } from '../lib/emojis'
import { groups, subgroups, hierarchy } from 'emojibase-data/meta/groups.json';
import emojis from 'emojibase-data/en/data.json';
const copyToClipboard = (text) => {
const textarea = document.createElement('textarea');
Expand Down
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
},
"dependencies": {
"autoprefixer": "^10.4.16",
"emojibase": "^15.0.0",
"emojibase-data": "^15.0.0",
"postcss": "^8.4.31",
"tailwindcss": "^3.3.3"
}
Expand Down
10 changes: 10 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2347,6 +2347,16 @@ emoji-regex@^9.2.2:
resolved "https://registry.yarnpkg.com/emoji-regex/-/emoji-regex-9.2.2.tgz#840c8803b0d8047f4ff0cf963176b32d4ef3ed72"
integrity sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==

emojibase-data@^15.0.0:
version "15.0.0"
resolved "https://registry.yarnpkg.com/emojibase-data/-/emojibase-data-15.0.0.tgz#d1f5467f3080688b9605103d0abdcd54bbc76419"
integrity sha512-hqrLNhEeBejKOQp5ArJcofkzV3qZBcp8czXj8nIKUGpBVc50NddNGwir4yAYxn3oNgrSj/lYdB9XxIVAKTkong==

emojibase@^15.0.0:
version "15.0.0"
resolved "https://registry.yarnpkg.com/emojibase/-/emojibase-15.0.0.tgz#f41b7773ec9a8a332373c18628ff4471255bd769"
integrity sha512-bvSIs98sHaVnyKPmW+obRjo49MFx0g+rhfSz6mTePAagEZSlDPosq0b6AcSJa5gt48z3VP2ooXclyBs8vIkpGA==

encodeurl@~1.0.2:
version "1.0.2"
resolved "https://registry.yarnpkg.com/encodeurl/-/encodeurl-1.0.2.tgz#ad3ff4c86ec2d029322f5a02c3a9a606c95b3f59"
Expand Down

0 comments on commit 99faf1d

Please sign in to comment.