多应用+插件架构,代码干净,二开方便,首家独创一键云编译技术,文档视频完善,免费商用码云13.8K 广告
# Emojis > 原文:[https://docs.gitlab.com/ee/development/fe_guide/emojis.html](https://docs.gitlab.com/ee/development/fe_guide/emojis.html) * [How to update Emojis](#how-to-update-emojis) # Emojis[](#emojis "Permalink") GitLab 支持本机 Unicode 表情符号,当您的平台不支持它时,它有选择地回退到基于图像的表情符号. ## How to update Emojis[](#how-to-update-emojis "Permalink") 1. 更新`gemojione`宝石 2. 从[Gemojione](https://github.com/bonusly/gemojione/blob/master/config/index.json)更新`fixtures/emojis/index.json` [emojis](https://github.com/bonusly/gemojione/blob/master/config/index.json) `fixtures/emojis/index.json` . 将来,我们可以直接从 gem 获取文件. 我们可能应该对 Gemojione 项目进行 PR,以在解析后获得对所有表情符号的访问权,或者仅获取`json`文件本身的原始路径. 3. 确保[`emoji-unicode-version`](https://s0www0npmjs0com.icopy.site/package/emoji-unicode-version)是最新版本. 4. Run `bundle exec rake gemojione:aliases` 5. Run `bundle exec rake gemojione:digests` 6. Run `bundle exec rake gemojione:sprite` 7. 确保为 1x 和 2x 生成新的 Sprite 表 * `app/assets/images/emoji.png` * `app/assets/images/emoji@2x.png` 8. 确保您看到新的单个图像复制到`app/assets/images/emoji/` 9. 确保您可以在 GFM 自动完成功能中看到新的表情符号及其别名 10. 确保您可以在奖励表情符号菜单中看到新的表情符号及其别名 11. 您可能需要为不支持某些表情符号的平台添加新的表情符号 Unicode 支持检查和规则,我们需要回退到图像. 请参阅`app/assets/javascripts/emoji/support/is_emoji_unicode_supported.js`和`app/assets/javascripts/emoji/support/unicode_support_map.js`