* Stats card: migrate from show_total_reviews to show option (resolves#2836)
* dev
* docs: improve documentation
---------
Co-authored-by: rickstaa <rick.staa@outlook.com>
* feat: add CACHE_SECONDS environment variable
This commit adds the CACHE_SECONDS environment variable. This variable
can be used to circumvent our cache clamping values for self hosted
Vercel instances.
* refactor: apply formatter
* feat: remove 'include_private'
As explained in #2517 the 'include_private' flag is confusing and
doesn't work as expected. This commit therefore removes this flag.
* fix: fix tests
* docs: remove redundant private deploy note
* feat(theme): add github_dark_dimmed theme
* feat(theme): change github_dark_dimmed icon color
* contrast ratio adjustment
contrast ratio adjustment on github_dark_dimmed theme
* feat(theme): readme preview
* feat(theme): github themes next to each other
* github themes next to each other
* feat(RankIcon): add rank icon option
* feat(RankIcon): extract rankIcon to icons file
* feat(RankIcon): update readme
* feat(RankIcon): test coverage
* Update readme.md
Co-authored-by: Rick Staa <rick.staa@outlook.com>
---------
Co-authored-by: Rick Staa <rick.staa@outlook.com>
* feat: added `format_stats` option (#2128)
* refactor: change `format_stats` to `short_values` (#2128)
* test: create shorten values test (#2128)
* Update readme.md
Co-authored-by: Rick Staa <rick.staa@outlook.com>
* refactor: rename ``short_values`` to ``number_format``
* Update readme.md
Co-authored-by: Rick Staa <rick.staa@outlook.com>
* Update src/cards/stats-card.js
Co-authored-by: Rick Staa <rick.staa@outlook.com>
* refactor: format codebase
---------
Co-authored-by: Rick Staa <rick.staa@outlook.com>
* 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>
* 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>
* Custom stats title (anuraghazra#229)
* Add custom title test
* remove unused code
* Update readme.md to include the `custom_title` option
* Update readme_es.md to include `custom_title` option
Co-Authored-By: José Javier Rodríguez Zas <jjavierdguezas@gmail.com>
* Merge branch 'master' of https://github.com/anuraghazra/github-readme-stats.git into custom-title
* feat: added customTitle option in Card
Co-authored-by: José Javier Rodríguez Zas <jjavierdguezas@gmail.com>
Co-authored-by: Anurag <hazru.anurag@gmail.com>
* add new query param to hide specific languages in top languages card
* [top-langs] add function to clean out the provided lang name
* [top-langs] rename 'hide_lang' => 'hide', refactor logic for parsing the list of provided languages to hide
* [top-langs] take list of languages to hide, as a json array
* chore: minor changes
* docs: added docs for hide lang
Co-authored-by: anuraghazra <hazru.anurag@gmail.com>