Added intents.json to act as a multiplier to the emojis score
When the emoji are retrieved, it will apply the intents multiplier to the score if one exists. This will either decrease or increase the score to force it to float to the top or the bottom of the pile. When a multiplier doesn't exist the code multiplies by 1. Updated the awards logic to do the same thing but in jQuery. Changelog: added MR: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/88407
显示
- app/assets/javascripts/awards_handler.js 36 个添加, 4 个删除app/assets/javascripts/awards_handler.js
- app/assets/javascripts/emoji/constants.js 2 个添加, 0 个删除app/assets/javascripts/emoji/constants.js
- app/assets/javascripts/emoji/index.js 11 个添加, 7 个删除app/assets/javascripts/emoji/index.js
- app/assets/javascripts/emoji/utils.js 8 个添加, 0 个删除app/assets/javascripts/emoji/utils.js
- app/assets/javascripts/gfm_auto_complete.js 1 个添加, 1 个删除app/assets/javascripts/gfm_auto_complete.js
- doc/development/fe_guide/emojis.md 4 个添加, 0 个删除doc/development/fe_guide/emojis.md
- fixtures/emojis/intents.json 16 个添加, 0 个删除fixtures/emojis/intents.json
- spec/frontend/__helpers__/emoji.js 10 个添加, 0 个删除spec/frontend/__helpers__/emoji.js
- spec/frontend/awards_handler_spec.js 29 个添加, 0 个删除spec/frontend/awards_handler_spec.js
- spec/frontend/emoji/index_spec.js 73 个添加, 42 个删除spec/frontend/emoji/index_spec.js
- spec/frontend/emoji/utils_spec.js 15 个添加, 0 个删除spec/frontend/emoji/utils_spec.js
加载中
想要评论请 注册 或 登录