Added long line truncation for frontend highlighting
This adds an truncating algorithm. We are measuring if we have highlight clusters and in case the string is too long and has highlights clusters we will truncate centered on the largest cluster. Changelog: fixed
显示
- app/assets/javascripts/search/results/components/blob_chunks.vue 14 个添加, 6 个删除...ets/javascripts/search/results/components/blob_chunks.vue
- app/assets/javascripts/search/results/constants.js 3 个添加, 0 个删除app/assets/javascripts/search/results/constants.js
- app/assets/javascripts/search/results/utils.js 328 个添加, 11 个删除app/assets/javascripts/search/results/utils.js
- spec/frontend/search/results/components/blob_chunks_spec.js 61 个添加, 0 个删除spec/frontend/search/results/components/blob_chunks_spec.js
- spec/frontend/search/results/utils_spec.js 128 个添加, 29 个删除spec/frontend/search/results/utils_spec.js
- yarn.lock 2 个添加, 6 个删除yarn.lock
加载中
想要评论请 注册 或 登录