Commit ce1a1aa1 authored by Eric Eastwood's avatar Eric Eastwood

Move 🏳🌈 to flags category

parent 617c4fd9
...@@ -22,7 +22,6 @@ const categoryLabelMap = { ...@@ -22,7 +22,6 @@ const categoryLabelMap = {
objects: 'Objects', objects: 'Objects',
symbols: 'Symbols', symbols: 'Symbols',
flags: 'Flags', flags: 'Flags',
extras: 'Extras',
}; };
const IS_VISIBLE = 'is-visible'; const IS_VISIBLE = 'is-visible';
......
...@@ -33,7 +33,6 @@ export function getEmojiCategoryMap() { ...@@ -33,7 +33,6 @@ export function getEmojiCategoryMap() {
objects: [], objects: [],
symbols: [], symbols: [],
flags: [], flags: [],
extras: [],
}; };
Object.keys(emojiMap).forEach((name) => { Object.keys(emojiMap).forEach((name) => {
const emoji = emojiMap[name]; const emoji = emojiMap[name];
......
...@@ -5376,7 +5376,7 @@ ...@@ -5376,7 +5376,7 @@
"digest": "180e66f19d9285e02d0a5e859722c608206826e80323942b9938fc49d44973b1" "digest": "180e66f19d9285e02d0a5e859722c608206826e80323942b9938fc49d44973b1"
}, },
"gay_pride_flag": { "gay_pride_flag": {
"category": "extras", "category": "flags",
"moji": "🏳🌈", "moji": "🏳🌈",
"description": "gay_pride_flag", "description": "gay_pride_flag",
"unicodeVersion": "6.0", "unicodeVersion": "6.0",
......
...@@ -39,8 +39,13 @@ namespace :gemojione do ...@@ -39,8 +39,13 @@ namespace :gemojione do
fpath = File.join(dir, "#{emoji_hash['unicode']}.png") fpath = File.join(dir, "#{emoji_hash['unicode']}.png")
hash_digest = Digest::SHA256.file(fpath).hexdigest hash_digest = Digest::SHA256.file(fpath).hexdigest
category = emoji_hash['category']
if name == 'gay_pride_flag'
category = 'flags'
end
entry = { entry = {
category: emoji_hash['category'], category: category,
moji: emoji_hash['moji'], moji: emoji_hash['moji'],
description: emoji_hash['description'], description: emoji_hash['description'],
unicodeVersion: Gitlab::Emoji.emoji_unicode_version(name), unicodeVersion: Gitlab::Emoji.emoji_unicode_version(name),
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment