* fix: prevent crash if undefined color is passed to func fallbackColor
* feat: allow users to pass ring_color param
Before this commit, the ring color was always equal to the title color.
This commit allows the user to pass a ring_color property to allow him
to style the ring color the way he pleases to. If no ring_color is
passed we default to the title color.
* docs: improves ring color documentation
* fix: improve code style
Co-authored-by: rickstaa <rick.staa@outlook.com>
* refactor: use default value for languages
* fix: truncated compact progress bar
* test: add test for truncated compact progress bar with langs_count set
* 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>
* ci: add e2e vercel test action
This commit adds several end-to-end tests that can be used
to test whether the Vercel Preview deployment successfully
returns the cards.
* test: add additional e2e card tests
* test: improve e2e card tests
This commit makes sure that the tests also check whether a valid cards
are returned from the preview deployment.
* 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>
* 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>
* 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>
* 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
Fixesanuraghazra/github-readme-stats#664Fixesanuraghazra/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>
* 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>
* chore: allow to customize wakatime data range
* docs: document wakatime range parameter
docs: add wakatime section to german readme
Co-authored-by: Anurag Hazra <hazru.anurag@gmail.com>