mirror of
https://github.com/tiennm99/github-readme-stats.git
synced 2026-09-03 12:21:49 +00:00
fix: hide in top_languages interfering with number of languages displayed (#959)
* added a dark theme like the github dark theme * fixed hide in top_languages interfering with number of languages displayed * fixed hide in top_languages interfering with number of languages displayed * fixed hide in top_languages interfering with number of languages displayed * fixed misplaced function argument * style(themes): Add GitHub dark theme (#758) This styling falls in line with the recently released GitHub dark mode Co-authored-by: Anurag Hazra <hazru.anurag@gmail.com> * docs: add covid fund link (#1019) * docs: add `npm install` step to CONTRIBUTING.md (#1015) * fix: apply parseBoolean to hide_border in pin.js (#1014) * feat: limit langs shown on wakatime card (#988) * fix: fixed javascript oof moment Co-authored-by: Issy <48881813+issy@users.noreply.github.com> Co-authored-by: Anurag Hazra <hazru.anurag@gmail.com> Co-authored-by: Mike Beaton <mjsbeaton@gmail.com> Co-authored-by: Florian Bussmann <hallo@florian-bussmann.de>
This commit is contained in:
co-authored by
Issy
Anurag Hazra
Mike Beaton
Florian Bussmann
parent
9773d924fb
commit
465faa7c32
@@ -34,10 +34,15 @@ const fetcher = (variables, token) => {
|
||||
);
|
||||
};
|
||||
|
||||
async function fetchTopLanguages(username, langsCount = 5, exclude_repo = []) {
|
||||
async function fetchTopLanguages(
|
||||
username,
|
||||
langsCount = 5,
|
||||
exclude_repo = [],
|
||||
hide = [],
|
||||
) {
|
||||
if (!username) throw Error("Invalid username");
|
||||
|
||||
langsCount = clampValue(parseInt(langsCount), 1, 10);
|
||||
langsCount = parseInt(langsCount) + hide.length;
|
||||
langsCount = clampValue(langsCount, 1, 10 + hide.length);
|
||||
|
||||
const res = await retryer(fetcher, { login: username });
|
||||
|
||||
|
||||
Reference in New Issue
Block a user