From 6365a476e0e8c6b406186a29ee890d0055d563ee Mon Sep 17 00:00:00 2001 From: up9cloud Date: Thu, 21 Feb 2019 07:05:06 +0800 Subject: [PATCH] Add missing emoji Generate GitHub emoji aliases from original source --- build/emoji-aliases.js | 20 + package.json | 3 +- src/plugins/emoji-aliases.js | 4 + src/plugins/emoji.js | 891 +---------------------------------- 4 files changed, 27 insertions(+), 891 deletions(-) create mode 100644 build/emoji-aliases.js create mode 100644 src/plugins/emoji-aliases.js diff --git a/build/emoji-aliases.js b/build/emoji-aliases.js new file mode 100644 index 000000000..928e7f2a2 --- /dev/null +++ b/build/emoji-aliases.js @@ -0,0 +1,20 @@ +const fs = require('fs') + +const data = fs.readFileSync('/dev/stdin', 'utf-8') +const emoji = JSON.parse(data) + +const AllGithubEmoji = [] +for (let i = 0; i < emoji.length; i++) { + let o = emoji[i] + if (o.aliases) { + AllGithubEmoji.push(...o.aliases) + } +} + +const str = `// DO NOT EDIT THIS FILE, IT'S GENERATED +// All from github official gemoji repo +// see https://github.com/github/gemoji/blob/master/db/emoji.json +export default ${JSON.stringify(AllGithubEmoji)} +` + +fs.writeFileSync(__dirname + '/../src/plugins/emoji-aliases.js', str) diff --git a/package.json b/package.json index 5a7b8bc47..6b6ff1a57 100644 --- a/package.json +++ b/package.json @@ -36,7 +36,8 @@ "build:js": "cross-env NODE_ENV=production node build/build.js", "build:ssr": "node build/ssr.js", "build:cover": "node build/cover.js", - "build": "rimraf lib themes && run-s build:js build:css build:css:min build:ssr build:cover", + "build:emoji-aliases": "wget https://raw.githubusercontent.com/github/gemoji/master/db/emoji.json -O - | node build/emoji-aliases.js", + "build": "rimraf lib themes && run-s build:emoji-aliases build:js build:css build:css:min build:ssr build:cover", "pub:next": "cross-env RELEASE_TAG=next sh build/release.sh", "pub": "sh build/release.sh", "postinstall": "opencollective postinstall" diff --git a/src/plugins/emoji-aliases.js b/src/plugins/emoji-aliases.js new file mode 100644 index 000000000..658e34ceb --- /dev/null +++ b/src/plugins/emoji-aliases.js @@ -0,0 +1,4 @@ +// DO NOT EDIT THIS FILE, IT'S GENERATED +// All from github official gemoji repo +// see https://github.com/github/gemoji/blob/master/db/emoji.json +export default ["grinning","smiley","smile","grin","laughing","satisfied","sweat_smile","joy","rofl","relaxed","blush","innocent","slightly_smiling_face","upside_down_face","wink","relieved","heart_eyes","kissing_heart","kissing","kissing_smiling_eyes","kissing_closed_eyes","yum","stuck_out_tongue_winking_eye","stuck_out_tongue_closed_eyes","stuck_out_tongue","money_mouth_face","hugs","nerd_face","sunglasses","clown_face","cowboy_hat_face","smirk","unamused","disappointed","pensive","worried","confused","slightly_frowning_face","frowning_face","persevere","confounded","tired_face","weary","triumph","angry","rage","pout","no_mouth","neutral_face","expressionless","hushed","frowning","anguished","open_mouth","astonished","dizzy_face","flushed","scream","fearful","cold_sweat","cry","disappointed_relieved","drooling_face","sob","sweat","sleepy","sleeping","roll_eyes","thinking","lying_face","grimacing","zipper_mouth_face","nauseated_face","sneezing_face","mask","face_with_thermometer","face_with_head_bandage","smiling_imp","imp","japanese_ogre","japanese_goblin","hankey","poop","shit","ghost","skull","skull_and_crossbones","alien","space_invader","robot","jack_o_lantern","smiley_cat","smile_cat","joy_cat","heart_eyes_cat","smirk_cat","kissing_cat","scream_cat","crying_cat_face","pouting_cat","open_hands","raised_hands","clap","pray","handshake","+1","thumbsup","-1","thumbsdown","fist_oncoming","facepunch","punch","fist_raised","fist","fist_left","fist_right","crossed_fingers","v","metal","ok_hand","point_left","point_right","point_up_2","point_down","point_up","hand","raised_hand","raised_back_of_hand","raised_hand_with_fingers_splayed","vulcan_salute","wave","call_me_hand","muscle","middle_finger","fu","writing_hand","selfie","nail_care","ring","lipstick","kiss","lips","tongue","ear","nose","footprints","eye","eyes","speaking_head","bust_in_silhouette","busts_in_silhouette","baby","boy","girl","man","woman","blonde_woman","blonde_man","person_with_blond_hair","older_man","older_woman","man_with_gua_pi_mao","woman_with_turban","man_with_turban","policewoman","policeman","cop","construction_worker_woman","construction_worker_man","construction_worker","guardswoman","guardsman","female_detective","male_detective","detective","woman_health_worker","man_health_worker","woman_farmer","man_farmer","woman_cook","man_cook","woman_student","man_student","woman_singer","man_singer","woman_teacher","man_teacher","woman_factory_worker","man_factory_worker","woman_technologist","man_technologist","woman_office_worker","man_office_worker","woman_mechanic","man_mechanic","woman_scientist","man_scientist","woman_artist","man_artist","woman_firefighter","man_firefighter","woman_pilot","man_pilot","woman_astronaut","man_astronaut","woman_judge","man_judge","mrs_claus","santa","princess","prince","bride_with_veil","man_in_tuxedo","angel","pregnant_woman","bowing_woman","bowing_man","bow","tipping_hand_woman","information_desk_person","sassy_woman","tipping_hand_man","sassy_man","no_good_woman","no_good","ng_woman","no_good_man","ng_man","ok_woman","ok_man","raising_hand_woman","raising_hand","raising_hand_man","woman_facepalming","man_facepalming","woman_shrugging","man_shrugging","pouting_woman","person_with_pouting_face","pouting_man","frowning_woman","person_frowning","frowning_man","haircut_woman","haircut","haircut_man","massage_woman","massage","massage_man","business_suit_levitating","dancer","man_dancing","dancing_women","dancers","dancing_men","walking_woman","walking_man","walking","running_woman","running_man","runner","running","couple","two_women_holding_hands","two_men_holding_hands","couple_with_heart_woman_man","couple_with_heart","couple_with_heart_woman_woman","couple_with_heart_man_man","couplekiss_man_woman","couplekiss_woman_woman","couplekiss_man_man","family_man_woman_boy","family","family_man_woman_girl","family_man_woman_girl_boy","family_man_woman_boy_boy","family_man_woman_girl_girl","family_woman_woman_boy","family_woman_woman_girl","family_woman_woman_girl_boy","family_woman_woman_boy_boy","family_woman_woman_girl_girl","family_man_man_boy","family_man_man_girl","family_man_man_girl_boy","family_man_man_boy_boy","family_man_man_girl_girl","family_woman_boy","family_woman_girl","family_woman_girl_boy","family_woman_boy_boy","family_woman_girl_girl","family_man_boy","family_man_girl","family_man_girl_boy","family_man_boy_boy","family_man_girl_girl","womans_clothes","shirt","tshirt","jeans","necktie","dress","bikini","kimono","high_heel","sandal","boot","mans_shoe","shoe","athletic_shoe","womans_hat","tophat","mortar_board","crown","rescue_worker_helmet","school_satchel","pouch","purse","handbag","briefcase","eyeglasses","dark_sunglasses","closed_umbrella","open_umbrella","dog","cat","mouse","hamster","rabbit","fox_face","bear","panda_face","koala","tiger","lion","cow","pig","pig_nose","frog","monkey_face","see_no_evil","hear_no_evil","speak_no_evil","monkey","chicken","penguin","bird","baby_chick","hatching_chick","hatched_chick","duck","eagle","owl","bat","wolf","boar","horse","unicorn","bee","honeybee","bug","butterfly","snail","shell","beetle","ant","spider","spider_web","turtle","snake","lizard","scorpion","crab","squid","octopus","shrimp","tropical_fish","fish","blowfish","dolphin","flipper","shark","whale","whale2","crocodile","leopard","tiger2","water_buffalo","ox","cow2","deer","dromedary_camel","camel","elephant","rhinoceros","gorilla","racehorse","pig2","goat","ram","sheep","dog2","poodle","cat2","rooster","turkey","dove","rabbit2","mouse2","rat","chipmunk","feet","paw_prints","dragon","dragon_face","cactus","christmas_tree","evergreen_tree","deciduous_tree","palm_tree","seedling","herb","shamrock","four_leaf_clover","bamboo","tanabata_tree","leaves","fallen_leaf","maple_leaf","mushroom","ear_of_rice","bouquet","tulip","rose","wilted_flower","sunflower","blossom","cherry_blossom","hibiscus","earth_americas","earth_africa","earth_asia","full_moon","waning_gibbous_moon","last_quarter_moon","waning_crescent_moon","new_moon","waxing_crescent_moon","first_quarter_moon","moon","waxing_gibbous_moon","new_moon_with_face","full_moon_with_face","sun_with_face","first_quarter_moon_with_face","last_quarter_moon_with_face","crescent_moon","dizzy","star","star2","sparkles","zap","fire","boom","collision","comet","sunny","sun_behind_small_cloud","partly_sunny","sun_behind_large_cloud","sun_behind_rain_cloud","rainbow","cloud","cloud_with_rain","cloud_with_lightning_and_rain","cloud_with_lightning","cloud_with_snow","snowman_with_snow","snowman","snowflake","wind_face","dash","tornado","fog","ocean","droplet","sweat_drops","umbrella","green_apple","apple","pear","tangerine","orange","mandarin","lemon","banana","watermelon","grapes","strawberry","melon","cherries","peach","pineapple","kiwi_fruit","avocado","tomato","eggplant","cucumber","carrot","corn","hot_pepper","potato","sweet_potato","chestnut","peanuts","honey_pot","croissant","bread","baguette_bread","cheese","egg","fried_egg","bacon","pancakes","fried_shrimp","poultry_leg","meat_on_bone","pizza","hotdog","hamburger","fries","stuffed_flatbread","taco","burrito","green_salad","shallow_pan_of_food","spaghetti","ramen","stew","fish_cake","sushi","bento","curry","rice","rice_ball","rice_cracker","oden","dango","shaved_ice","ice_cream","icecream","cake","birthday","custard","lollipop","candy","chocolate_bar","popcorn","doughnut","cookie","milk_glass","baby_bottle","coffee","tea","sake","beer","beers","clinking_glasses","wine_glass","tumbler_glass","cocktail","tropical_drink","champagne","spoon","fork_and_knife","plate_with_cutlery","soccer","basketball","football","baseball","tennis","volleyball","rugby_football","8ball","ping_pong","badminton","goal_net","ice_hockey","field_hockey","cricket","golf","bow_and_arrow","fishing_pole_and_fish","boxing_glove","martial_arts_uniform","ice_skate","ski","skier","snowboarder","weight_lifting_woman","weight_lifting_man","person_fencing","women_wrestling","men_wrestling","woman_cartwheeling","man_cartwheeling","basketball_woman","basketball_man","woman_playing_handball","man_playing_handball","golfing_woman","golfing_man","surfing_woman","surfing_man","surfer","swimming_woman","swimming_man","swimmer","woman_playing_water_polo","man_playing_water_polo","rowing_woman","rowing_man","rowboat","horse_racing","biking_woman","biking_man","bicyclist","mountain_biking_woman","mountain_biking_man","mountain_bicyclist","running_shirt_with_sash","medal_sports","medal_military","1st_place_medal","2nd_place_medal","3rd_place_medal","trophy","rosette","reminder_ribbon","ticket","tickets","circus_tent","woman_juggling","man_juggling","performing_arts","art","clapper","microphone","headphones","musical_score","musical_keyboard","drum","saxophone","trumpet","guitar","violin","game_die","dart","bowling","video_game","slot_machine","car","red_car","taxi","blue_car","bus","trolleybus","racing_car","police_car","ambulance","fire_engine","minibus","truck","articulated_lorry","tractor","kick_scooter","bike","motor_scooter","motorcycle","rotating_light","oncoming_police_car","oncoming_bus","oncoming_automobile","oncoming_taxi","aerial_tramway","mountain_cableway","suspension_railway","railway_car","train","mountain_railway","monorail","bullettrain_side","bullettrain_front","light_rail","steam_locomotive","train2","metro","tram","station","helicopter","small_airplane","airplane","flight_departure","flight_arrival","rocket","artificial_satellite","seat","canoe","boat","sailboat","motor_boat","speedboat","passenger_ship","ferry","ship","anchor","construction","fuelpump","busstop","vertical_traffic_light","traffic_light","world_map","moyai","statue_of_liberty","fountain","tokyo_tower","european_castle","japanese_castle","stadium","ferris_wheel","roller_coaster","carousel_horse","parasol_on_ground","beach_umbrella","desert_island","mountain","mountain_snow","mount_fuji","volcano","desert","camping","tent","railway_track","motorway","building_construction","factory","house","house_with_garden","houses","derelict_house","office","department_store","post_office","european_post_office","hospital","bank","hotel","convenience_store","school","love_hotel","wedding","classical_building","church","mosque","synagogue","kaaba","shinto_shrine","japan","rice_scene","national_park","sunrise","sunrise_over_mountains","stars","sparkler","fireworks","city_sunrise","city_sunset","cityscape","night_with_stars","milky_way","bridge_at_night","foggy","watch","iphone","calling","computer","keyboard","desktop_computer","printer","computer_mouse","trackball","joystick","clamp","minidisc","floppy_disk","cd","dvd","vhs","camera","camera_flash","video_camera","movie_camera","film_projector","film_strip","telephone_receiver","phone","telephone","pager","fax","tv","radio","studio_microphone","level_slider","control_knobs","stopwatch","timer_clock","alarm_clock","mantelpiece_clock","hourglass","hourglass_flowing_sand","satellite","battery","electric_plug","bulb","flashlight","candle","wastebasket","oil_drum","money_with_wings","dollar","yen","euro","pound","moneybag","credit_card","gem","balance_scale","wrench","hammer","hammer_and_pick","hammer_and_wrench","pick","nut_and_bolt","gear","chains","gun","bomb","hocho","knife","dagger","crossed_swords","shield","smoking","coffin","funeral_urn","amphora","crystal_ball","prayer_beads","barber","alembic","telescope","microscope","hole","pill","syringe","thermometer","toilet","potable_water","shower","bathtub","bath","bellhop_bell","key","old_key","door","couch_and_lamp","bed","sleeping_bed","framed_picture","shopping","shopping_cart","gift","balloon","flags","ribbon","confetti_ball","tada","dolls","izakaya_lantern","lantern","wind_chime","email","envelope","envelope_with_arrow","incoming_envelope","e-mail","love_letter","inbox_tray","outbox_tray","package","label","mailbox_closed","mailbox","mailbox_with_mail","mailbox_with_no_mail","postbox","postal_horn","scroll","page_with_curl","page_facing_up","bookmark_tabs","bar_chart","chart_with_upwards_trend","chart_with_downwards_trend","spiral_notepad","spiral_calendar","calendar","date","card_index","card_file_box","ballot_box","file_cabinet","clipboard","file_folder","open_file_folder","card_index_dividers","newspaper_roll","newspaper","notebook","notebook_with_decorative_cover","ledger","closed_book","green_book","blue_book","orange_book","books","book","open_book","bookmark","link","paperclip","paperclips","triangular_ruler","straight_ruler","pushpin","round_pushpin","scissors","pen","fountain_pen","black_nib","paintbrush","crayon","memo","pencil","pencil2","mag","mag_right","lock_with_ink_pen","closed_lock_with_key","lock","unlock","heart","yellow_heart","green_heart","blue_heart","purple_heart","black_heart","broken_heart","heavy_heart_exclamation","two_hearts","revolving_hearts","heartbeat","heartpulse","sparkling_heart","cupid","gift_heart","heart_decoration","peace_symbol","latin_cross","star_and_crescent","om","wheel_of_dharma","star_of_david","six_pointed_star","menorah","yin_yang","orthodox_cross","place_of_worship","ophiuchus","aries","taurus","gemini","cancer","leo","virgo","libra","scorpius","sagittarius","capricorn","aquarius","pisces","id","atom_symbol","accept","radioactive","biohazard","mobile_phone_off","vibration_mode","u6709","u7121","u7533","u55b6","u6708","eight_pointed_black_star","vs","white_flower","ideograph_advantage","secret","congratulations","u5408","u6e80","u5272","u7981","a","b","ab","cl","o2","sos","x","o","stop_sign","no_entry","name_badge","no_entry_sign","100","anger","hotsprings","no_pedestrians","do_not_litter","no_bicycles","non-potable_water","underage","no_mobile_phones","no_smoking","exclamation","heavy_exclamation_mark","grey_exclamation","question","grey_question","bangbang","interrobang","low_brightness","high_brightness","part_alternation_mark","warning","children_crossing","trident","fleur_de_lis","beginner","recycle","white_check_mark","u6307","chart","sparkle","eight_spoked_asterisk","negative_squared_cross_mark","globe_with_meridians","diamond_shape_with_a_dot_inside","m","cyclone","zzz","atm","wc","wheelchair","parking","u7a7a","sa","passport_control","customs","baggage_claim","left_luggage","mens","womens","baby_symbol","restroom","put_litter_in_its_place","cinema","signal_strength","koko","symbols","information_source","abc","abcd","capital_abcd","ng","ok","up","cool","new","free","zero","one","two","three","four","five","six","seven","eight","nine","keycap_ten","1234","hash","asterisk","arrow_forward","pause_button","play_or_pause_button","stop_button","record_button","next_track_button","previous_track_button","fast_forward","rewind","arrow_double_up","arrow_double_down","arrow_backward","arrow_up_small","arrow_down_small","arrow_right","arrow_left","arrow_up","arrow_down","arrow_upper_right","arrow_lower_right","arrow_lower_left","arrow_upper_left","arrow_up_down","left_right_arrow","arrow_right_hook","leftwards_arrow_with_hook","arrow_heading_up","arrow_heading_down","twisted_rightwards_arrows","repeat","repeat_one","arrows_counterclockwise","arrows_clockwise","musical_note","notes","heavy_plus_sign","heavy_minus_sign","heavy_division_sign","heavy_multiplication_x","heavy_dollar_sign","currency_exchange","tm","copyright","registered","wavy_dash","curly_loop","loop","end","back","on","top","soon","heavy_check_mark","ballot_box_with_check","radio_button","white_circle","black_circle","red_circle","large_blue_circle","small_red_triangle","small_red_triangle_down","small_orange_diamond","small_blue_diamond","large_orange_diamond","large_blue_diamond","white_square_button","black_square_button","black_small_square","white_small_square","black_medium_small_square","white_medium_small_square","black_medium_square","white_medium_square","black_large_square","white_large_square","speaker","mute","sound","loud_sound","bell","no_bell","mega","loudspeaker","eye_speech_bubble","speech_balloon","thought_balloon","right_anger_bubble","spades","clubs","hearts","diamonds","black_joker","flower_playing_cards","mahjong","clock1","clock2","clock3","clock4","clock5","clock6","clock7","clock8","clock9","clock10","clock11","clock12","clock130","clock230","clock330","clock430","clock530","clock630","clock730","clock830","clock930","clock1030","clock1130","clock1230","white_flag","black_flag","checkered_flag","triangular_flag_on_post","rainbow_flag","afghanistan","aland_islands","albania","algeria","american_samoa","andorra","angola","anguilla","antarctica","antigua_barbuda","argentina","armenia","aruba","australia","austria","azerbaijan","bahamas","bahrain","bangladesh","barbados","belarus","belgium","belize","benin","bermuda","bhutan","bolivia","caribbean_netherlands","bosnia_herzegovina","botswana","brazil","british_indian_ocean_territory","british_virgin_islands","brunei","bulgaria","burkina_faso","burundi","cape_verde","cambodia","cameroon","canada","canary_islands","cayman_islands","central_african_republic","chad","chile","cn","christmas_island","cocos_islands","colombia","comoros","congo_brazzaville","congo_kinshasa","cook_islands","costa_rica","cote_divoire","croatia","cuba","curacao","cyprus","czech_republic","denmark","djibouti","dominica","dominican_republic","ecuador","egypt","el_salvador","equatorial_guinea","eritrea","estonia","ethiopia","eu","european_union","falkland_islands","faroe_islands","fiji","finland","fr","french_guiana","french_polynesia","french_southern_territories","gabon","gambia","georgia","de","ghana","gibraltar","greece","greenland","grenada","guadeloupe","guam","guatemala","guernsey","guinea","guinea_bissau","guyana","haiti","honduras","hong_kong","hungary","iceland","india","indonesia","iran","iraq","ireland","isle_of_man","israel","it","jamaica","jp","crossed_flags","jersey","jordan","kazakhstan","kenya","kiribati","kosovo","kuwait","kyrgyzstan","laos","latvia","lebanon","lesotho","liberia","libya","liechtenstein","lithuania","luxembourg","macau","macedonia","madagascar","malawi","malaysia","maldives","mali","malta","marshall_islands","martinique","mauritania","mauritius","mayotte","mexico","micronesia","moldova","monaco","mongolia","montenegro","montserrat","morocco","mozambique","myanmar","namibia","nauru","nepal","netherlands","new_caledonia","new_zealand","nicaragua","niger","nigeria","niue","norfolk_island","northern_mariana_islands","north_korea","norway","oman","pakistan","palau","palestinian_territories","panama","papua_new_guinea","paraguay","peru","philippines","pitcairn_islands","poland","portugal","puerto_rico","qatar","reunion","romania","ru","rwanda","st_barthelemy","st_helena","st_kitts_nevis","st_lucia","st_pierre_miquelon","st_vincent_grenadines","samoa","san_marino","sao_tome_principe","saudi_arabia","senegal","serbia","seychelles","sierra_leone","singapore","sint_maarten","slovakia","slovenia","solomon_islands","somalia","south_africa","south_georgia_south_sandwich_islands","kr","south_sudan","es","sri_lanka","sudan","suriname","swaziland","sweden","switzerland","syria","taiwan","tajikistan","tanzania","thailand","timor_leste","togo","tokelau","tonga","trinidad_tobago","tunisia","tr","turkmenistan","turks_caicos_islands","tuvalu","uganda","ukraine","united_arab_emirates","gb","uk","us","us_virgin_islands","uruguay","uzbekistan","vanuatu","vatican_city","venezuela","vietnam","wallis_futuna","western_sahara","yemen","zambia","zimbabwe","basecamp","basecampy","bowtie","feelsgood","finnadie","goberserk","godmode","hurtrealbad","neckbeard","octocat","rage1","rage2","rage3","rage4","shipit","squirrel","suspect","trollface"] diff --git a/src/plugins/emoji.js b/src/plugins/emoji.js index 31f1059cc..8bb41eff1 100644 --- a/src/plugins/emoji.js +++ b/src/plugins/emoji.js @@ -1,894 +1,5 @@ -const AllGithubEmoji = [ - '+1', - '100', - '1234', - '8ball', - 'a', - 'ab', - 'abc', - 'abcd', - 'accept', - 'aerial_tramway', - 'airplane', - 'alarm_clock', - 'alien', - 'ambulance', - 'anchor', - 'angel', - 'anger', - 'angry', - 'anguished', - 'ant', - 'apple', - 'aquarius', - 'aries', - 'arrow_backward', - 'arrow_double_down', - 'arrow_double_up', - 'arrow_down', - 'arrow_down_small', - 'arrow_forward', - 'arrow_heading_down', - 'arrow_heading_up', - 'arrow_left', - 'arrow_lower_left', - 'arrow_lower_right', - 'arrow_right', - 'arrow_right_hook', - 'arrow_up', - 'arrow_up_down', - 'arrow_up_small', - 'arrow_upper_left', - 'arrow_upper_right', - 'arrows_clockwise', - 'arrows_counterclockwise', - 'art', - 'articulated_lorry', - 'astonished', - 'athletic_shoe', - 'atm', - 'b', - 'baby', - 'baby_bottle', - 'baby_chick', - 'baby_symbol', - 'back', - 'baggage_claim', - 'balloon', - 'ballot_box_with_check', - 'bamboo', - 'banana', - 'bangbang', - 'bank', - 'bar_chart', - 'barber', - 'baseball', - 'basketball', - 'bath', - 'bathtub', - 'battery', - 'bear', - 'bee', - 'beer', - 'beers', - 'beetle', - 'beginner', - 'bell', - 'bento', - 'bicyclist', - 'bike', - 'bikini', - 'bird', - 'birthday', - 'black_circle', - 'black_joker', - 'black_large_square', - 'black_medium_small_square', - 'black_medium_square', - 'black_nib', - 'black_small_square', - 'black_square_button', - 'blossom', - 'blowfish', - 'blue_book', - 'blue_car', - 'blue_heart', - 'blush', - 'boar', - 'boat', - 'bomb', - 'book', - 'bookmark', - 'bookmark_tabs', - 'books', - 'boom', - 'boot', - 'bouquet', - 'bow', - 'bowling', - 'bowtie', - 'boy', - 'bread', - 'bride_with_veil', - 'bridge_at_night', - 'briefcase', - 'broken_heart', - 'bug', - 'bulb', - 'bullettrain_front', - 'bullettrain_side', - 'bus', - 'busstop', - 'bust_in_silhouette', - 'busts_in_silhouette', - 'cactus', - 'cake', - 'calendar', - 'calling', - 'camel', - 'camera', - 'cancer', - 'candy', - 'capital_abcd', - 'capricorn', - 'car', - 'card_index', - 'carousel_horse', - 'cat', - 'cat2', - 'cd', - 'chart', - 'chart_with_downwards_trend', - 'chart_with_upwards_trend', - 'checkered_flag', - 'cherries', - 'cherry_blossom', - 'chestnut', - 'chicken', - 'children_crossing', - 'chocolate_bar', - 'christmas_tree', - 'church', - 'cinema', - 'circus_tent', - 'city_sunrise', - 'city_sunset', - 'cl', - 'clap', - 'clapper', - 'clipboard', - 'clock1', - 'clock10', - 'clock1030', - 'clock11', - 'clock1130', - 'clock12', - 'clock1230', - 'clock130', - 'clock2', - 'clock230', - 'clock3', - 'clock330', - 'clock4', - 'clock430', - 'clock5', - 'clock530', - 'clock6', - 'clock630', - 'clock7', - 'clock730', - 'clock8', - 'clock830', - 'clock9', - 'clock930', - 'closed_book', - 'closed_lock_with_key', - 'closed_umbrella', - 'cloud', - 'clubs', - 'cn', - 'cocktail', - 'coffee', - 'cold_sweat', - 'collision', - 'computer', - 'confetti_ball', - 'confounded', - 'confused', - 'congratulations', - 'construction', - 'construction_worker', - 'convenience_store', - 'cookie', - 'cool', - 'cop', - 'copyright', - 'corn', - 'couple', - 'couple_with_heart', - 'couplekiss', - 'cow', - 'cow2', - 'credit_card', - 'crescent_moon', - 'crocodile', - 'crossed_flags', - 'crown', - 'cry', - 'crying_cat_face', - 'crystal_ball', - 'cupid', - 'curly_loop', - 'currency_exchange', - 'curry', - 'custard', - 'customs', - 'cyclone', - 'dancer', - 'dancers', - 'dango', - 'dart', - 'dash', - 'date', - 'de', - 'deciduous_tree', - 'department_store', - 'diamond_shape_with_a_dot_inside', - 'diamonds', - 'disappointed', - 'disappointed_relieved', - 'dizzy', - 'dizzy_face', - 'do_not_litter', - 'dog', - 'dog2', - 'dollar', - 'dolls', - 'dolphin', - 'door', - 'doughnut', - 'dragon', - 'dragon_face', - 'dress', - 'dromedary_camel', - 'droplet', - 'dvd', - 'e-mail', - 'ear', - 'ear_of_rice', - 'earth_africa', - 'earth_americas', - 'earth_asia', - 'egg', - 'eggplant', - 'eight', - 'eight_pointed_black_star', - 'eight_spoked_asterisk', - 'electric_plug', - 'elephant', - 'email', - 'end', - 'envelope', - 'envelope_with_arrow', - 'es', - 'euro', - 'european_castle', - 'european_post_office', - 'evergreen_tree', - 'exclamation', - 'expressionless', - 'eyeglasses', - 'eyes', - 'facepunch', - 'factory', - 'fallen_leaf', - 'family', - 'fast_forward', - 'fax', - 'fearful', - 'feelsgood', - 'feet', - 'ferris_wheel', - 'file_folder', - 'finnadie', - 'fire', - 'fire_engine', - 'fireworks', - 'first_quarter_moon', - 'first_quarter_moon_with_face', - 'fish', - 'fish_cake', - 'fishing_pole_and_fish', - 'fist', - 'five', - 'flags', - 'flashlight', - 'flipper', - 'floppy_disk', - 'flower_playing_cards', - 'flushed', - 'foggy', - 'football', - 'footprints', - 'fork_and_knife', - 'fountain', - 'four', - 'four_leaf_clover', - 'fr', - 'free', - 'fried_shrimp', - 'fries', - 'frog', - 'frowning', - 'fu', - 'fuelpump', - 'full_moon', - 'full_moon_with_face', - 'game_die', - 'gb', - 'gem', - 'gemini', - 'ghost', - 'gift', - 'gift_heart', - 'girl', - 'globe_with_meridians', - 'goat', - 'goberserk', - 'godmode', - 'golf', - 'grapes', - 'green_apple', - 'green_book', - 'green_heart', - 'grey_exclamation', - 'grey_question', - 'grimacing', - 'grin', - 'grinning', - 'guardsman', - 'guitar', - 'gun', - 'haircut', - 'hamburger', - 'hammer', - 'hamster', - 'hand', - 'handbag', - 'hankey', - 'hash', - 'hatched_chick', - 'hatching_chick', - 'headphones', - 'hear_no_evil', - 'heart', - 'heart_decoration', - 'heart_eyes', - 'heart_eyes_cat', - 'heartbeat', - 'heartpulse', - 'hearts', - 'heavy_check_mark', - 'heavy_division_sign', - 'heavy_dollar_sign', - 'heavy_exclamation_mark', - 'heavy_minus_sign', - 'heavy_multiplication_x', - 'heavy_plus_sign', - 'helicopter', - 'herb', - 'hibiscus', - 'high_brightness', - 'high_heel', - 'hocho', - 'honey_pot', - 'honeybee', - 'horse', - 'horse_racing', - 'hospital', - 'hotel', - 'hotsprings', - 'hourglass', - 'hourglass_flowing_sand', - 'house', - 'house_with_garden', - 'hurtrealbad', - 'hushed', - 'ice_cream', - 'icecream', - 'id', - 'ideograph_advantage', - 'imp', - 'inbox_tray', - 'incoming_envelope', - 'information_desk_person', - 'information_source', - 'innocent', - 'interrobang', - 'iphone', - 'it', - 'izakaya_lantern', - 'jack_o_lantern', - 'japan', - 'japanese_castle', - 'japanese_goblin', - 'japanese_ogre', - 'jeans', - 'joy', - 'joy_cat', - 'jp', - 'key', - 'keycap_ten', - 'kimono', - 'kiss', - 'kissing', - 'kissing_cat', - 'kissing_closed_eyes', - 'kissing_heart', - 'kissing_smiling_eyes', - 'koala', - 'koko', - 'kr', - 'lantern', - 'large_blue_circle', - 'large_blue_diamond', - 'large_orange_diamond', - 'last_quarter_moon', - 'last_quarter_moon_with_face', - 'laughing', - 'leaves', - 'ledger', - 'left_luggage', - 'left_right_arrow', - 'leftwards_arrow_with_hook', - 'lemon', - 'leo', - 'leopard', - 'libra', - 'light_rail', - 'link', - 'lips', - 'lipstick', - 'lock', - 'lock_with_ink_pen', - 'lollipop', - 'loop', - 'loud_sound', - 'loudspeaker', - 'love_hotel', - 'love_letter', - 'low_brightness', - 'm', - 'mag', - 'mag_right', - 'mahjong', - 'mailbox', - 'mailbox_closed', - 'mailbox_with_mail', - 'mailbox_with_no_mail', - 'man', - 'man_with_gua_pi_mao', - 'man_with_turban', - 'mans_shoe', - 'maple_leaf', - 'mask', - 'massage', - 'meat_on_bone', - 'mega', - 'melon', - 'memo', - 'mens', - 'metal', - 'metro', - 'microphone', - 'microscope', - 'milky_way', - 'minibus', - 'minidisc', - 'mobile_phone_off', - 'money_with_wings', - 'moneybag', - 'monkey', - 'monkey_face', - 'monorail', - 'moon', - 'mortar_board', - 'mount_fuji', - 'mountain_bicyclist', - 'mountain_cableway', - 'mountain_railway', - 'mouse', - 'mouse2', - 'movie_camera', - 'moyai', - 'muscle', - 'mushroom', - 'musical_keyboard', - 'musical_note', - 'musical_score', - 'mute', - 'nail_care', - 'name_badge', - 'neckbeard', - 'necktie', - 'negative_squared_cross_mark', - 'neutral_face', - 'new', - 'new_moon', - 'new_moon_with_face', - 'newspaper', - 'ng', - 'night_with_stars', - 'nine', - 'no_bell', - 'no_bicycles', - 'no_entry', - 'no_entry_sign', - 'no_good', - 'no_mobile_phones', - 'no_mouth', - 'no_pedestrians', - 'no_smoking', - 'non-potable_water', - 'nose', - 'notebook', - 'notebook_with_decorative_cover', - 'notes', - 'nut_and_bolt', - 'o', - 'o2', - 'ocean', - 'octocat', - 'octopus', - 'oden', - 'office', - 'ok', - 'ok_hand', - 'ok_woman', - 'older_man', - 'older_woman', - 'on', - 'oncoming_automobile', - 'oncoming_bus', - 'oncoming_police_car', - 'oncoming_taxi', - 'one', - 'open_book', - 'open_file_folder', - 'open_hands', - 'open_mouth', - 'ophiuchus', - 'orange_book', - 'outbox_tray', - 'ox', - 'package', - 'page_facing_up', - 'page_with_curl', - 'pager', - 'palm_tree', - 'panda_face', - 'paperclip', - 'parking', - 'part_alternation_mark', - 'partly_sunny', - 'passport_control', - 'paw_prints', - 'peach', - 'pear', - 'pencil', - 'pencil2', - 'penguin', - 'pensive', - 'performing_arts', - 'persevere', - 'person_frowning', - 'person_with_blond_hair', - 'person_with_pouting_face', - 'phone', - 'pig', - 'pig2', - 'pig_nose', - 'pill', - 'pineapple', - 'pisces', - 'pizza', - 'point_down', - 'point_left', - 'point_right', - 'point_up', - 'point_up_2', - 'police_car', - 'poodle', - 'poop', - 'post_office', - 'postal_horn', - 'postbox', - 'potable_water', - 'pouch', - 'poultry_leg', - 'pound', - 'pouting_cat', - 'pray', - 'princess', - 'punch', - 'purple_heart', - 'purse', - 'pushpin', - 'put_litter_in_its_place', - 'question', - 'rabbit', - 'rabbit2', - 'racehorse', - 'radio', - 'radio_button', - 'rage', - 'rage1', - 'rage2', - 'rage3', - 'rage4', - 'railway_car', - 'rainbow', - 'raised_hand', - 'raised_hands', - 'raising_hand', - 'ram', - 'ramen', - 'rat', - 'recycle', - 'red_car', - 'red_circle', - 'registered', - 'relaxed', - 'relieved', - 'repeat', - 'repeat_one', - 'restroom', - 'revolving_hearts', - 'rewind', - 'ribbon', - 'rice', - 'rice_ball', - 'rice_cracker', - 'rice_scene', - 'ring', - 'rocket', - 'roller_coaster', - 'rooster', - 'rose', - 'rotating_light', - 'round_pushpin', - 'rowboat', - 'ru', - 'rugby_football', - 'runner', - 'running', - 'running_shirt_with_sash', - 'sa', - 'sagittarius', - 'sailboat', - 'sake', - 'sandal', - 'santa', - 'satellite', - 'satisfied', - 'saxophone', - 'school', - 'school_satchel', - 'scissors', - 'scorpius', - 'scream', - 'scream_cat', - 'scroll', - 'seat', - 'secret', - 'see_no_evil', - 'seedling', - 'seven', - 'shaved_ice', - 'sheep', - 'shell', - 'ship', - 'shipit', - 'shirt', - 'shit', - 'shoe', - 'shower', - 'signal_strength', - 'six', - 'six_pointed_star', - 'ski', - 'skull', - 'sleeping', - 'sleepy', - 'slot_machine', - 'small_blue_diamond', - 'small_orange_diamond', - 'small_red_triangle', - 'small_red_triangle_down', - 'smile', - 'smile_cat', - 'smiley', - 'smiley_cat', - 'smiling_imp', - 'smirk', - 'smirk_cat', - 'smoking', - 'snail', - 'snake', - 'snowboarder', - 'snowflake', - 'snowman', - 'sob', - 'soccer', - 'soon', - 'sos', - 'sound', - 'space_invader', - 'spades', - 'spaghetti', - 'sparkle', - 'sparkler', - 'sparkles', - 'sparkling_heart', - 'speak_no_evil', - 'speaker', - 'speech_balloon', - 'speedboat', - 'squirrel', - 'star', - 'star2', - 'stars', - 'station', - 'statue_of_liberty', - 'steam_locomotive', - 'stew', - 'straight_ruler', - 'strawberry', - 'stuck_out_tongue', - 'stuck_out_tongue_closed_eyes', - 'stuck_out_tongue_winking_eye', - 'sun_with_face', - 'sunflower', - 'sunglasses', - 'sunny', - 'sunrise', - 'sunrise_over_mountains', - 'surfer', - 'sushi', - 'suspect', - 'suspension_railway', - 'sweat', - 'sweat_drops', - 'sweat_smile', - 'sweet_potato', - 'swimmer', - 'symbols', - 'syringe', - 'tada', - 'tanabata_tree', - 'tangerine', - 'taurus', - 'taxi', - 'tea', - 'telephone', - 'telephone_receiver', - 'telescope', - 'tennis', - 'tent', - 'thought_balloon', - 'three', - 'thumbsdown', - 'thumbsup', - 'ticket', - 'tiger', - 'tiger2', - 'tired_face', - 'tm', - 'toilet', - 'tokyo_tower', - 'tomato', - 'tongue', - 'top', - 'tophat', - 'tractor', - 'traffic_light', - 'train', - 'train2', - 'tram', - 'triangular_flag_on_post', - 'triangular_ruler', - 'trident', - 'triumph', - 'trolleybus', - 'trollface', - 'trophy', - 'tropical_drink', - 'tropical_fish', - 'truck', - 'trumpet', - 'tshirt', - 'tulip', - 'turtle', - 'tv', - 'twisted_rightwards_arrows', - 'two', - 'two_hearts', - 'two_men_holding_hands', - 'two_women_holding_hands', - 'u5272', - 'u5408', - 'u55b6', - 'u6307', - 'u6708', - 'u6709', - 'u6e80', - 'u7121', - 'u7533', - 'u7981', - 'u7a7a', - 'uk', - 'umbrella', - 'unamused', - 'underage', - 'unlock', - 'up', - 'us', - 'v', - 'vertical_traffic_light', - 'vhs', - 'vibration_mode', - 'video_camera', - 'video_game', - 'violin', - 'virgo', - 'volcano', - 'vs', - 'walking', - 'waning_crescent_moon', - 'waning_gibbous_moon', - 'warning', - 'watch', - 'water_buffalo', - 'watermelon', - 'wave', - 'wavy_dash', - 'waxing_crescent_moon', - 'waxing_gibbous_moon', - 'wc', - 'weary', - 'wedding', - 'whale', - 'whale2', - 'wheelchair', - 'white_check_mark', - 'white_circle', - 'white_flower', - 'white_large_square', - 'white_medium_small_square', - 'white_medium_square', - 'white_small_square', - 'white_square_button', - 'wind_chime', - 'wine_glass', - 'wink', - 'wolf', - 'woman', - 'womans_clothes', - 'womans_hat', - 'womens', - 'worried', - 'wrench', - 'x', - 'yellow_heart', - 'yen', - 'yum', - 'zap', - 'zero', - 'zzz' -] +import AllGithubEmoji from './emoji-aliases.js' -// Emoji from All-Github-Emoji-Icons -// https://github.com/scotch-io/All-Github-Emoji-Icons window.emojify = function (match, $1) { return AllGithubEmoji.indexOf($1) === -1 ? match :