Commit Graph

188 Commits

Author SHA1 Message Date
rickstaa
36a8c392d0
fix: improve graphql error handling 2022-10-07 17:40:26 +02:00
Shivam Kotak
343058cc15
fix: adding doc strings to files in src folder where it was missing (#2129)
* fix: adding doc strings to files in src folder where it was missing

* refactor: add docstrings

* style: run formatter

Co-authored-by: rickstaa <rick.staa@outlook.com>
2022-10-07 16:22:02 +02:00
rickstaa
15620a11db
test: fix tests 2022-10-07 12:42:04 +02:00
rickstaa
04595dfe62
style: improve formatting 2022-10-07 11:10:48 +02:00
rickstaa
aae83cb22e
fix: temporary disable multi page star fetch 2022-10-05 00:47:14 +02:00
Matteo Pierro
af97e5765b
fix: fetch all repos for for the stats card (#2100)
* fetch all stars

* stop fetching when there are repos with zero stars

* remove not needed parameters from the query

* add docstring

* removed not needed mock

* style: update formatting

Co-authored-by: rickstaa <rick.staa@outlook.com>
2022-10-04 13:10:50 +02:00
nekiwo
acbc03dc0f
Fix card length during error (#2105)
* Fix card length during error

Fixes #1774
The size of the box should be 550px to allow 25px padding from both sides
I found the width of the text using `getComputedTextLength()` method

* fix: improve error card size

Co-authored-by: rickstaa <rick.staa@outlook.com>
2022-10-04 10:00:48 +02:00
Jagruti Tiwari
c03bb2f250
fix: adding docstrings to the files where it was missing (#2101)
* fix: adding docstrings to missing files

* style: format code

* style: improve formatting

Co-authored-by: Jagruti Tiwari <jagrutit@cdac.in>
Co-authored-by: rickstaa <rick.staa@outlook.com>
2022-10-03 13:03:23 +02:00
Ayushi Vishwakarma
9e1fc0b7da
update default values in readme (#2094)
* update default values in readme

* docs: improve formatting

* docs: improve readme punctation

Co-authored-by: rickstaa <rick.staa@outlook.com>
2022-10-03 09:14:37 +02:00
Rick Staa
9a909ff0a4
build: fix wakatime json import bug (#2050)
* build: fix vercel node version

* build: remove engine property

* fix: add json import workarround

This commit adds a workaround for importing the `languageColors` JSON
file. This needed to be done since Vercel uses v16.4, which does not
support JSON file importing without the `experimental-json-modules`
flag. See https://simonplend.com/import-json-in-es-modules/
for more information. The workaround can be found [here](https://stackoverflow.com/questions/66726365/how-should-i-import-json-in-node).
2022-09-24 15:37:19 +02:00
rickstaa
8886b93a7e
refactor: clean up imports 2022-09-24 14:10:06 +02:00
rickstaa
41d6760abd
fix: fix es6 import file extension 2022-09-24 13:20:52 +02:00
rsk2
107f7ca52c
Feature/grs 1955 change commonjs imports (#1995)
* GRS-1955: Using ES6 import/export in src files

* GRS-1955: Using ES6 import/export in test files

* GRS-1955: Using ES6 import/export in themes index.js

* GRS-1955: Readding blank line at end of top-languages-card.js

* feat: fix test es6 import errors

This commit makes sure jest is set-up to support es6. It also fixes
several test errors and sorts the imports.

* test: update test node version

This commit makes sure node 16 is used in the github actions.

* refactor: run prettier

Co-authored-by: rickstaa <rick.staa@outlook.com>
2022-09-24 10:20:54 +02:00
Rick Staa
f9b9015ec2
feat(stats): add 'not_bold' option to stats card (#1468) 2022-09-17 13:32:40 +02:00
rickstaa
eacc3cd29c
fix: add missing StatsCard types 2022-09-17 11:28:50 +02:00
Rick Staa
c1324b31bf
feat: add 'exclude_repo' option to stats card (#1450)
This commit allows users to exclude repositories for the stats card
using the `exclude_repo` option.
2022-09-16 13:09:19 +02:00
Artem Kostiuk
b0bb994ad3
Fix #1170: Allow customizable width for GitHub Stats Card (#1334)
* Change default stats card width with hide rank

* Add tests for stats card with card_width

* Add card_width Stats Card description to readme

* fix: add icon width to stats-card min width calculation

* fix: fixes rank circle padding problem

This commit fixes a padding problem that was introduced in
f9c0e0bff6. In the new code, the padding
around the rank circle will be 50 when the stats card is bigger than
450. When it is smaller than 450 the left and right padding will shrink
equally.

* style: run prettier

* tests: add extra stats 'card_width' tests

This commit makes sure we also test the stats card width for the case that the 'show_icons'
option is enabled.

* style: run prettier

Co-authored-by: rickstaa <rick.staa@outlook.com>
2022-09-16 12:50:30 +02:00
Steven
4c2307ab4b
Add prettier check to CI (#1999)
* Add prettier check to CI

* Run prettier:format
2022-09-06 09:09:45 +02:00
Adil Hanney
a481021dab
Fix NaN and undefined for empty profiles (#1965)
* totalCommits: don't return NaN

* rank: B+ should cover everyone

Empty profile used to show "undefined" as the rank. Now empty profile shows "A+"... is B+ possible?
2022-08-26 22:28:48 +02:00
Qi Mo Lin
dd5a41d696
feat: add min width languages card (#1953)
* Add min width to languages card

* Add test for min width languages card

* feat: increase lang card min width

Co-authored-by: Rick Staa <rick.staa@outlook.com>
2022-08-18 10:32:03 +02:00
akmhmgc
4b6f4650b2
refactor: improve level calculator (#1946) 2022-08-13 20:24:44 +02:00
Kisaragi
b6d75b2e65
refactor: remove arrow function body braces (#1917) 2022-08-02 12:26:07 +02:00
Cong
7ceec92455
refactor: fix typo in comment (#1912) 2022-08-01 10:13:59 +02:00
Fidel Alejandro Fernández Arias
fd80b67e08
Fixed misspelling (#1885) 2022-07-26 09:04:24 +02:00
Anurag Hazra
4e2f631f95
feat: added accessibility label and title in svg (#1787) 2022-05-26 21:59:51 +05:30
Mr. Green's Workshop
f5c91ccc9c
fix; japanese translation fix (#1783)
The Japanese translation was too long to so text was overlap the numbers. This commit fixes that.
2022-05-23 08:06:30 +02:00
BubbaJJ
1294ab2d0b
added swedish translations (#1747) 2022-05-16 10:07:56 +02:00
Sukka
2fb452c119
chore: replace git.io links (#1724)
* chore: replace `git.io` links

* Update src/common/utils.js

Co-authored-by: Rick Staa <rick.staa@outlook.com>

Co-authored-by: Rick Staa <rick.staa@outlook.com>
2022-05-16 10:04:41 +02:00
Nick Lin
de05a574b1
feat: gradient units to userSpaceOnUse (#1644) 2022-03-19 14:27:58 +05:30
Davoleo
de80488f17
feat: added script to automate language color retrieval (#1654) 2022-03-19 14:26:50 +05:30
Shunsuke Mano
d7d0ba5fbd
fix(style): centering rank text in the circle (#1628) 2022-03-13 02:38:00 +05:30
H.M.Tajul Islam
968d25f4d7
card(translation): bengali language improved (#1620)
Co-authored-by: tajultonim <mail@tajultonim.com>
2022-02-28 23:13:55 +05:30
Nguyễn Đức Chiến
4d442abfb1
Add Vietnamese Language (#1321) 2022-02-23 17:08:11 +01:00
Anurag Hazra
e00fe88ed3
feat: added better error messages (#1608) 2022-02-23 20:52:18 +05:30
Anurag Hazra
d57251cdf1
refactor(cards): added typings for cards and fetchers (#1596)
* refactor(cards): added typings for cards and fetchers

* chore: move types to separate file
2022-02-23 20:15:01 +05:30
Rick Staa
8b9f9317d8
add uzbek translation (#1604)
* Add Uzbek language

* fix: apply proposed changes

Co-authored-by: Bahriddin Mo'minov <64766486+MrMuminov@users.noreply.github.com>
2022-02-20 17:23:13 +01:00
YueYue
36aeb5cbdf
Add traditional Chinese (zh-tw) (#1238)
Add traditional Chinese (zh-tw)
2022-02-17 08:44:52 +01:00
Michał Miszczyszyn
70a59fafbd
Fix grammar in Polish translation and make it more natural (#1267)
* Fix grammar in Polish translation and make it more natural

* docs: improve pl card translation

Co-authored-by: rickstaa <rick.staa@outlook.com>
2022-02-17 08:41:22 +01:00
NicolasGE
a79887ab92
updated fr locale (#1194) 2022-02-17 08:13:40 +01:00
Fayas Noushad
ace8fa9e26
Added Malayalam language (ml) to the stat card (#1591)
* Add malayalam

* Fix translation of waketime
2022-02-16 16:14:46 +01:00
Sem
e9a192a72c
Improved the Dutch strings 2022-02-16 08:32:43 +01:00
Petrus Nguyễn Thái Học
f83080601e
style: update Kotlin color (#1111) 2021-12-29 21:23:50 +05:30
T. de Kimpe
b6c184e8ff
fix: firefox text overflow issue (#1492)
* Fixed Firefox text overflow / overwriting issue

Tests currently don't work becouse it appears that '@supports' is not supported by cssToObject used within the tests. I currently have no idea how to fix that test but the cards themself appear to not be broken

Fixes anuraghazra/github-readme-stats#664

Fixes anuraghazra/github-readme-stats#1134

* Fixed tests by moving to other css-to-object

Moved the `css-to-object` package to @uppercod's version for test fix. This doesn't seem to have the same issues as the older package

* chore: cleanup test

Co-authored-by: Anurag <hazru.anurag@gmail.com>
2021-12-13 20:12:03 +05:30
Anurag Hazra
798bf72dee
fix: auth token header (#1474) 2021-11-25 21:12:27 +05:30
Markus Tyrkkö
28fa0b8877
fix: bug where wakatime api returns undefined languages (#1403)
Co-authored-by: Markus Tyrkkö <markus.tyrkko@nitor.com>
2021-11-05 19:49:51 +05:30
Anurag Hazra
d049f0688d
fix: hotfix for graphql api error (#1409) 2021-10-23 13:50:33 +05:30
Markus Tyrkkö
02e714aeb4
fix: word-wrap bug (#1378)
* Fixed word-wrap bug

* ci(workflow): add 'npm' cache for actions/setup-node in .github/workflows (#1382)

* Revert "ci(workflow): add 'npm' cache for actions/setup-node in .github/workflows (#1382)"

This reverts commit 2723f00cb8.

* chore: remove action cache

* chore: minor change

Co-authored-by: Markus Tyrkkö <markus.tyrkko@nitor.com>
Co-authored-by: Oscar Dominguez <dominguez.celada@gmail.com>
Co-authored-by: Anurag <hazru.anurag@gmail.com>
2021-10-18 19:11:50 +05:30
Anurag Hazra
02ebd3243b
refactor: jsdoc in utils & minor changes (#1377)
* refactor: jsdoc in utils & minor changes

* chore: jsdoc Card class

* chore: jsdoc for getStyles
2021-10-10 20:41:40 +05:30
Anurag Hazra
62d65ab483
refactor: refactor repo card (#1325)
* refactor: refactored repo-card

* test: fix tests

* test: fixed tests

* fix: unprovided description error
2021-09-26 21:02:27 +05:30
Anurag Hazra
97690e173d
feat(layout): improve flexLayout & fixed layout overlaps (#1314)
* feat(layout): improve flexLayout & fixed layout overlaps

* chore: fix vercel build
2021-09-18 22:39:28 +05:30