* add custom year
* edit fetcher
* add tests
* add documentation
* Update vercel.json
* Update fetchStats.test.js
* Update readme.md
* Update readme.md
Co-authored-by: Rick Staa <rick.staa@outlook.com>
* test: fix tests
* style: format code
* fix: fix commit stats time frame description #1053
This commit makes sure the last year label is shown when
`include_all_commits` or `year` is not provided. See #1053 for more
information.
* resolved merge conflict
* Update stats-fetcher.js
* resolve comments
* Update src/cards/types.d.ts
Co-authored-by: Alexandr Garbuzov <qwerty541zxc@gmail.com>
* Update src/fetchers/stats-fetcher.js
Co-authored-by: Alexandr Garbuzov <qwerty541zxc@gmail.com>
* graphQL year only to commit
* change argument name to commits_year
* Update readme.md
Co-authored-by: Alexandr Garbuzov <qwerty541zxc@gmail.com>
* Update readme.md
Co-authored-by: Alexandr Garbuzov <qwerty541zxc@gmail.com>
* Update readme.md
Co-authored-by: Alexandr Garbuzov <qwerty541zxc@gmail.com>
* wrap label into function
* review
* more review
* fix test
* Update readme.md
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* docs
---------
Co-authored-by: Touch Sungkawichai <talay@10ninox.com>
Co-authored-by: Rick Staa <rick.staa@outlook.com>
Co-authored-by: Alexandr Garbuzov <qwerty541zxc@gmail.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* feat: add `display_bytes` option to top-languages.
* docs: add description about display bytes in top-languages
* feat: add `stats_format` option instead of `display_bytes`
* docs: add description about stats format in top-languages
* refactor: rewrite with function to determine display value
* docs: add `stats_format`to table of parameter
* fix: remove unnecessary decimal part from format of bytes
* tests: add tests of stats_format in top-langs card
* Update tests/renderTopLanguagesCard.test.js
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* Update readme.md
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* prettier
* jsdoc
---------
Co-authored-by: Alexandr <qwerty541zxc@gmail.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* 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>