about summary refs log tree commit diff
path: root/app/javascript/mastodon/emoji_data_light.js
blob: f91ee592e8eb2b7426956d2b09113dbdfc0b94d8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
const data = require('./emoji_data_compressed');

// decompress
const emojis = {};
data.emojis.forEach(compressedEmoji => {
  const [ short_names, unified, search ] = compressedEmoji;
  emojis[short_names[0]] = {
    short_names,
    unified,
    search,
  };
});

data.emojis = emojis;

module.exports = data;