mirror of
https://github.com/zulip/zulip.git
synced 2025-11-04 05:53:43 +00:00
build_emoji: Extract setup_emoji_farm().
This commit is contained in:
committed by
Tim Abbott
parent
dc9ff928f3
commit
aa6f098496
@@ -142,7 +142,7 @@ def setup_emoji_farms(cache_path: str, emoji_data: List[Dict[str, Any]]) -> None
|
||||
dst_file = os.path.join(target_emoji_farm, img_file_name)
|
||||
shutil.copy2(src_file, dst_file)
|
||||
|
||||
for emojiset in ['google']:
|
||||
def setup_emoji_farm(emojiset: str, emoji_data: List[Dict[str, Any]]) -> None:
|
||||
# Copy individual emoji images from npm packages.
|
||||
src_emoji_farm = os.path.join(
|
||||
NODE_MODULES_PATH, 'emoji-datasource-' + emojiset, 'img', emojiset, '64')
|
||||
@@ -174,6 +174,9 @@ def setup_emoji_farms(cache_path: str, emoji_data: List[Dict[str, Any]]) -> None
|
||||
|
||||
generate_sprite_css_files(cache_path, emoji_data, emojiset)
|
||||
|
||||
for emojiset in ['google', 'twitter']:
|
||||
setup_emoji_farm(emojiset, emoji_data)
|
||||
|
||||
def setup_old_emoji_farm(cache_path: str,
|
||||
emoji_map: Dict[str, str],
|
||||
emoji_data: List[Dict[str, Any]]) -> None:
|
||||
|
||||
Reference in New Issue
Block a user