Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit465faa7

Browse files
mushahidqissyanuraghazramikebeatonflorianbussmann
authored
fix: hide in top_languages interfering with number of languages displayed (anuraghazra#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 (anuraghazra#758)This styling falls in line with the recently released GitHub dark modeCo-authored-by: Anurag Hazra <hazru.anurag@gmail.com>* docs: add covid fund link (anuraghazra#1019)* docs: add `npm install` step to CONTRIBUTING.md (anuraghazra#1015)* fix: apply parseBoolean to hide_border in pin.js (anuraghazra#1014)* feat: limit langs shown on wakatime card (anuraghazra#988)* fix: fixed javascript oof momentCo-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>
1 parent9773d92 commit465faa7

File tree

3 files changed

+15
-3
lines changed

3 files changed

+15
-3
lines changed

‎api/top-langs.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ module.exports = async (req, res) => {
4747
username,
4848
langs_count,
4949
parseArray(exclude_repo),
50+
parseArray(hide),
5051
);
5152

5253
constcacheSeconds=clampValue(

‎src/fetchers/top-languages-fetcher.js

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,15 @@ const fetcher = (variables, token) => {
3434
);
3535
};
3636

37-
asyncfunctionfetchTopLanguages(username,langsCount=5,exclude_repo=[]){
37+
asyncfunctionfetchTopLanguages(
38+
username,
39+
langsCount=5,
40+
exclude_repo=[],
41+
hide=[],
42+
){
3843
if(!username)throwError("Invalid username");
39-
40-
langsCount=clampValue(parseInt(langsCount),1,10);
44+
langsCount=parseInt(langsCount)+hide.length;
45+
langsCount=clampValue(langsCount,1,10+hide.length);
4146

4247
constres=awaitretryer(fetcher,{login:username});
4348

‎themes/index.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -268,6 +268,12 @@ const themes = {
268268
icon_color:"ff1aff",
269269
text_color:"8080ff",
270270
bg_color:"141439",
271+
},
272+
github_dark:{
273+
title_color:"58a6ff",
274+
icon_color:"da3633",
275+
text_color:"c9d1d9",
276+
bg_color:"0d1117",
271277
},
272278
ocean_dark:{
273279
title_color:"8957B2",

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp