👽 Update emoji colors fetching as per carloscuesta/gitmoji@9787678

master
KaKi87 3 years ago
parent 6f4a72498c
commit 0b41cd58c3

@ -201,8 +201,8 @@
document.querySelector('.app__scrollTop').onclick = () => window.scrollTo({ top: 0, behavior: 'smooth' });
const
colors = (await (await fetch('https://raw.githubusercontent.com/carloscuesta/gitmoji/master/src/styles/_includes/_vars.scss')).text())
.split('\n').filter(line => line.includes(':')).map(item => item.replace(/[\s$,;]/g, '').split(':')),
colors = (await (await fetch('https://raw.githubusercontent.com/carloscuesta/gitmoji/master/src/components/GitmojiList/emojiColorsMap.js')).text())
.split('\n').filter(line => line.includes(':')).map(item => item.replace(/[\s',;]/g, '').split(':')),
{ gitmojis } = await (await fetch('https://raw.githubusercontent.com/carloscuesta/gitmoji/master/src/data/gitmojis.json')).json();
gitmojis.forEach(({ emoji, code, description, name }) => {
const

Loading…
Cancel
Save