* 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
* Different default languages count for different layouts
* docs: update default documentation
Updates the README so that the new `langs_count` default behavoir is
explained to users.
---------
Co-authored-by: rickstaa <rick.staa@outlook.com>
* 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>
* Revise rank calculation
* Replace contributions by commits
* Lower average stats and S+ threshold
* Fix calculateRank.test.js
Missing key in dictionary constructor
Co-authored-by: Rick Staa <rick.staa@outlook.com>
* refactor: run prettier
* feat: change star weight to 0.75
* Separate PRs and issues
* Tweak weights
* Add count_private back
* fix: enable 'count_private' again
* test: fix tests
* refactor: improve code formatting
* Higher targets
---------
Co-authored-by: Rick Staa <rick.staa@outlook.com>
* add pie chart layout to language card
* resolve failing top-lang card tests
* scale down pie chart
* update readme.md
* Update readme.md
Co-authored-by: Rick Staa <rick.staa@outlook.com>
* style: format code
* update donut layout to be created without dependencies
* minor update
* style: format readme
* resolve failing tests
* refactor: clean up code and add extra tests
This commit cleans up the pie chart generation code and adds additional
tests.
* feat: improve pie chart positioning
* rename layout pie to donut
* add animation to donut layout
* refactor: rename pie and doughnut to donut
* feat: decrease donus animation delay
---------
Co-authored-by: rickstaa <rick.staa@outlook.com>
The previous mock logic was too simplistic and has been fixed in the
commit. If the mock logic had been properly implemented, then the
mistaken pageInfo.endCursor keys should have made the test case "should
fetch two pages of stars if 'FETCH_MULTI_PAGE_STARS' env variable is set
to `true`" stuck.
* 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>
* add wakatime default range
* update wakatime demos in readme with most active user
* update wakatime demo in readme
* remove &range=all_time from wakatime demos in readme
---------
Co-authored-by: Rick Staa <rick.staa@outlook.com>
* 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>
* 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>
* feat: enable multi-page stars' fetching for private vercel instances
This commit enables multi-page stars' support from fetching on private Vercel
instances. This feature can be disabled on the public Vercel instance by adding
the `FETCH_SINGLE_PAGE_STARS=true` as an env variable in the public Vercel
instance. This variable will not be present when people deploy their own Vercel
instance, causing the code to fetch multiple star pages.
* fix: improve stats multi-page fetching behavoir
This commit makes sure that the GraphQL api is only called one time per
100 repositories. The old method added one unnecesairy GraphQL call.
* docs: update documentation
* style: improve code syntax
Co-authored-by: Matteo Pierro <pierromatteo@gmail.com>
* lol happy new year
* docs: remove rate limit documentation for now
Remove the `FETCH_SINGLE_PAGE_STARS` from documentation for now since it
might confuse people.
* fix: fix error in automatic merge
* feat: make sure env variable is read
Co-authored-by: Matteo Pierro <pierromatteo@gmail.com>
Co-authored-by: Anurag <hazru.anurag@gmail.com>
This commit prevents confusion about the Contributed to stat. Currently,
only the last year's results are shown, but it looks like it is the
all-time contribution count (see #2269). This commit adds a ' (last year)'
suffix to prevent this confusion from happening.
* 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>