feat: hide wakatime languages (#1212)

* feat: added option to hide languages

* feat: recalculate percentages for hidden languages

* refactor: reverted langs_count and did some formatting

* doc: added hide to readme

* feat: make languages var mutable and improve filter logic

Co-authored-by: Adrian Kunz <clashsoft@hotmail.com>

* refactor: improve code and added tests

Co-authored-by: Adrian Kunz <clashsoft@hotmail.com>
Co-authored-by: Anurag <hazru.anurag@gmail.com>
This commit is contained in:
Julian Holfeld
2021-08-27 21:05:10 +02:00
committed by GitHub
parent 8f316346c1
commit 1a3edcaae0
8 changed files with 82 additions and 37 deletions
+2
View File
@@ -230,6 +230,7 @@ function measureText(str, fontSize = 10) {
.reduce((cur, acc) => acc + cur) * fontSize
);
}
const lowercaseTrim = (name) => name.toLowerCase().trim();
module.exports = {
renderError,
@@ -248,4 +249,5 @@ module.exports = {
logger,
CONSTANTS,
CustomError,
lowercaseTrim,
};