mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-03 21:43:21 +00:00 
			
		
		
		
	build_emoji: Generate emoji names and codepoints from emoji_map.
Replaces the hardcoded list of emoji_names and unicode_emoji_names in static/js/emoji.js with a list generated from emoji_map.json, both to get the list out of version control and so we can start modifying it for our autocomplete. This does not change the contents of emoji_names. It sorts and removes duplicates from unicode_emoji_names (causes no change in behavior, since unicode_emoji_names is only used as if it were a set).
This commit is contained in:
		@@ -30,6 +30,7 @@ set_global('page_params', {
 | 
			
		||||
 | 
			
		||||
add_dependencies({
 | 
			
		||||
    marked: 'third/marked/lib/marked.js',
 | 
			
		||||
    emoji_codes: 'generated/emoji/emoji_codes.js',
 | 
			
		||||
    emoji: 'js/emoji.js',
 | 
			
		||||
    people: 'js/people.js',
 | 
			
		||||
    stream_data: 'js/stream_data.js',
 | 
			
		||||
 
 | 
			
		||||
@@ -6,6 +6,7 @@ set_global('page_params', {realm_emoji: {
 | 
			
		||||
add_dependencies({
 | 
			
		||||
    Handlebars: 'handlebars',
 | 
			
		||||
    templates: 'js/templates',
 | 
			
		||||
    emoji_codes: 'generated/emoji/emoji_codes.js',
 | 
			
		||||
    emoji: 'js/emoji',
 | 
			
		||||
    i18n: 'i18next',
 | 
			
		||||
});
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user