* added option to display wakatime in percentage
* updated exclusive options in wakatime
* added percent sign
* Update readme.md
Co-authored-by: Rick Staa <rick.staa@outlook.com>
* made the required changes
* Update wakatime-card.js
* Update wakatime-card.js
---------
Co-authored-by: Rick Staa <rick.staa@outlook.com>
Co-authored-by: Alexandr <qwerty541zxc@gmail.com>
* Error theme Based on Design
* Update src/common/utils.js
Co-authored-by: Alexandr Garbuzov <qwerty541zxc@gmail.com>
* Update src/common/utils.js
Co-authored-by: Alexandr Garbuzov <qwerty541zxc@gmail.com>
---------
Co-authored-by: Alexandr Garbuzov <qwerty541zxc@gmail.com>
* 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
* fix: Make WakaTime card compatible with new API
This commit makes sure that the WakaTime card works with the new
WakaTime API. See https://github.com/anuraghazra/github-readme-stats/issues/2698
for more information.
* fix: fix chinese simplified translations
* fix: improve WakaTime range order
* test: fix WakaTime tests
* refactor: remove WakaTime range loop
* refactor: remove redundant WakaTime call
* test: fix e2e tests
Co-authored-by: Hakula Chen <i@hakula.xyz>
---------
Co-authored-by: Hakula Chen <i@hakula.xyz>
* Reduced vercel maxDuration
* Implemented new algorithm for Top Langs
* Revert "Reduced vercel maxDuration"
This reverts commit b0bc626efe12c738cf5005e7f11c7d2a07b6387a.
* Added documentation
* Fixed broken implementation
* Update fetchTopLanguages.test.js
Changed tests
* Now uses the general formula
The parameters p and q can be set by the user.
* Updated tests and added new test
* Added new test
New test for order by repo count.
* Updated documentation
Added explanation and examples for new options.
* Updated documentation
This was overwritten in the merge commit.
* docs: improve docs and fix tests
* Renamed parameters
Renamed `p` and `q` to `size_weight` and `count_weight`, respectively.
* Updated the documentation
Changes introduced in f2516d60a4
---------
Co-authored-by: rickstaa <rick.staa@outlook.com>
* 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>
* Add support for hide_progress in top languages feature
* Fix mistake
* Add documents for all languages
* Remove unnecessary value check
* Update top-languages-card.js
* Revert document for all languages except English
* Update documentation
* Update documentation
---------
Co-authored-by: Zohan Subhash <zohan.subhash@gmail.com>
* feat: add PAT monitoring functions
This commit adds two monitoring functions that can be used to check
whether the PATs are functioning correctly:
- status/up: Returns whether the PATs are rate limited.
- status/pat-info: Returns information about the PATs.
* feat: add shields.io dynamic badge json response
This commit adds the ability to set the return format of the
`/api/status/up` cloud function. When this format is set to `shields` a
dynamic shields.io badge json is returned.
* feat: add 'json' type to up monitor
* feat: cleanup status functions
* ci: decrease pat-info rate limiting time
* feat: decrease monitoring functions rate limits
* refactor: pat code
* feat: add PAT monitoring functions
This commit adds two monitoring functions that can be used to check
whether the PATs are functioning correctly:
- status/up: Returns whether the PATs are rate limited.
- status/pat-info: Returns information about the PATs.
* feat: add shields.io dynamic badge json response
This commit adds the ability to set the return format of the
`/api/status/up` cloud function. When this format is set to `shields` a
dynamic shields.io badge json is returned.
* feat: add 'json' type to up monitor
* feat: cleanup status functions
* ci: decrease pat-info rate limiting time
* feat: decrease monitoring functions rate limits
* refactor: pat code
* test: fix pat-info tests
* Update api/status/pat-info.js
Co-authored-by: Anurag Hazra <hazru.anurag@gmail.com>
* test: fix broken tests
* chore: fix suspended account
* chore: simplify and refactor
* chore: fix test
* chore: add resetIn field
---------
Co-authored-by: Anurag <hazru.anurag@gmail.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>
This commit removes the `hide` argument from the `fetchTopLanguages` call
found in the `top-lang.js` file. This was done since this was leftover
from 465faa7c32.
* 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>