From bf03b38bd75ebde5ea054a7e4cf34a205830ae33 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Fri, 19 Nov 2021 09:10:58 +0100 Subject: [PATCH 1/3] Populate default emojis in frequently used more sensible Signed-off-by: Joas Schilling --- src/utils/frequently.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/frequently.js b/src/utils/frequently.js index b1f61314..342480b3 100644 --- a/src/utils/frequently.js +++ b/src/utils/frequently.js @@ -48,7 +48,7 @@ function get(maxNumber) { let defaultLength = Math.min(maxNumber, DEFAULTS.length) for (let i = 0; i < defaultLength; i++) { - defaults[DEFAULTS[i]] = defaultLength - i + defaults[DEFAULTS[i]] = parseInt((defaultLength - i) / 4, 10) + 1 result.push(DEFAULTS[i]) } From 789c366f3f8d61fe244382673d074b15c8ee0490 Mon Sep 17 00:00:00 2001 From: Boris Serebrov Date: Sun, 21 Nov 2021 19:18:18 +0200 Subject: [PATCH 2/3] Fix frequently test. --- spec/frequently-spec.js | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/spec/frequently-spec.js b/spec/frequently-spec.js index e2ef9857..6f34c853 100644 --- a/spec/frequently-spec.js +++ b/spec/frequently-spec.js @@ -61,21 +61,21 @@ describe('Picker frequnt category', () => { ) expect(window.localStorage['emoji-mart.frequently']).toEqual( JSON.stringify({ - '+1': 16, - grinning: 15, - kissing_heart: 14, - heart_eyes: 13, - laughing: 12, - stuck_out_tongue_winking_eye: 11, - sweat_smile: 10, - joy: 9, - scream: 8, - disappointed: 7, - unamused: 6, - weary: 5, - sob: 4, - sunglasses: 3, - heart: 2, + '+1': 5, + grinning: 4, + kissing_heart: 4, + heart_eyes: 4, + laughing: 4, + stuck_out_tongue_winking_eye: 3, + sweat_smile: 3, + joy: 3, + scream: 3, + disappointed: 2, + unamused: 2, + weary: 2, + sob: 2, + sunglasses: 1, + heart: 1, poop: 1, nerd_face: 25, space_invader: 24, From 792535c6481b6a5c3af98959e3e9c8f75d37469c Mon Sep 17 00:00:00 2001 From: Boris Serebrov Date: Sun, 21 Nov 2021 19:18:28 +0200 Subject: [PATCH 3/3] Fix status badge --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index e6b5d681..5a4c3b9f 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -[![Build Status](https://travis-ci.org/serebrov/emoji-mart-vue.svg?branch=master)](https://travis-ci.org/serebrov/emoji-mart-vue) +[![Build Status - CircleCI](https://circleci.com/gh/serebrov/emoji-mart-vue/tree/master.svg?style=svg)](https://circleci.com/gh/serebrov/emoji-mart-vue/tree/master) [![codecov](https://codecov.io/gh/serebrov/emoji-mart-vue/branch/master/graph/badge.svg)](https://codecov.io/gh/serebrov/emoji-mart-vue)