Commit Graph

756 Commits

Author SHA1 Message Date
François Rozet
c96e84a9ae
Ranking System v2 (#1186)
* 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>
2023-05-26 15:39:35 +02:00
Alexandr Garbuzov
ff2e02ba68
Docs: fix top languages card available layouts number (#2738) 2023-05-22 22:40:21 +02:00
Alexandr Garbuzov
c8d5eda27c
Docs (translations): add top languages card donut vertical layout (#2739) 2023-05-22 22:39:43 +02:00
Alexandr Garbuzov
f9427b2a54
Top languages card donut vertical layout (#2701)
* Top languages card donut layout

* dev

* dev

* dev

* dev
2023-05-19 10:45:29 +02:00
Alexandr Garbuzov
7ec1a76c65
Docs (translations): add missing top languages card layouts. (#2728) 2023-05-17 08:37:25 +02:00
Alexandr Garbuzov
6d45f89c9e
Top languages card render test: move repeated code into helper function (#2718) 2023-05-13 13:21:06 +02:00
Alexandr Garbuzov
d59a80599f
Docs: add missing top languages card layouts. (#2717) 2023-05-13 13:20:18 +02:00
Alexandr Garbuzov
ff9839b73c
Top languages card pie layout (#2709)
* Top languages card donut layout

* Top languages card pie layout

* renames

* dev

* docs

* dev

* dev

* animations

* dev

* handle one language
2023-05-11 08:49:57 +02:00
Alexandr Garbuzov
1f4a2c4d82
Add missing argument to create compact lang node function to resolve vscode type error (#2714) 2023-05-11 08:36:21 +02:00
Alexandr Garbuzov
4b19453c1a
Fixed docstring for create donut language node function (#2713) 2023-05-10 22:59:00 +02:00
Nabil Alamin
c5e7f7b490
add pie chart layout to language card (#2099)
* 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>
2023-05-09 20:54:34 +02:00
Alexandr Garbuzov
daa1977ba3
Fixed docstring for wakatime card recalculate percentages function (#2710) 2023-05-09 09:04:02 +02:00
Alexandr Garbuzov
8ff5a3ba45
Fixed docstring for create language text node function (#2704) 2023-05-08 09:33:08 +02:00
Alexandr Garbuzov
550b88ce87
Update wakatime user inside docs translations (#2705) 2023-05-08 09:32:50 +02:00
Alexandr Garbuzov
ce116e2d2f
Fixed typos inside bug report issue template (#2706) 2023-05-08 09:31:47 +02:00
Alexandr Garbuzov
15436e2aa1
Fixed axios imports inside docstrings to resolve vscode type errors (#2699) 2023-05-07 22:03:26 +02:00
Alexandr Garbuzov
6f449a1f0b
Fixed docstring for get styles function to resolve vscode type errors (#2700) 2023-05-07 22:03:00 +02:00
Rick Staa
688f4e4975
docs: update wakatime user (#2697)
The old example user doesn't have a WakaTime account anymore.
2023-05-06 15:29:11 +05:30
Rongrong
0caa4c5fd8
test: fix mistaken pageInfo.endCursor keys (#2657)
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.
2023-05-06 08:07:03 +00:00
Alexandr Garbuzov
0c2fe4e07b
Cover with test changes in #2662 pull request (#2673) 2023-05-06 07:43:37 +00:00
Fabiano Couto
a340900e8a
fix(wakatime-fetcher): add default range to prevent user not found error (#2670)
* 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>
2023-05-05 23:12:28 +02:00
dependabot[bot]
2619c12638
build(deps): bump yaml from 2.1.3 to 2.2.2 (#2644)
Bumps [yaml](https://github.com/eemeli/yaml) from 2.1.3 to 2.2.2.
- [Release notes](https://github.com/eemeli/yaml/releases)
- [Commits](https://github.com/eemeli/yaml/compare/v2.1.3...v2.2.2)

---
updated-dependencies:
- dependency-name: yaml
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-05-05 14:10:17 +00:00
Alexandr Garbuzov
d306bec73e
Add PRs cache cleaning workflow (#2661) 2023-05-05 14:09:23 +00:00
Alexandr Garbuzov
c656f3df6b
Update codecov action version to resolve github action deprecation warning (#2677) 2023-05-05 14:07:37 +00:00
Alexandr Garbuzov
c6dab8b0f2
Fixed docstring for stats card create text node function to resolve type errors (#2689) 2023-05-05 14:07:15 +00:00
Alexandr Garbuzov
311204f4f9
Fixed docstring for several wakatime card gen functions to resolve multiple type errors (#2690) 2023-05-05 14:06:52 +00:00
Alexandr Garbuzov
0dc3531666
Fixed wakatime create text node func docstring to resolve vscode type errors (#2678) 2023-05-04 09:13:47 +02:00
Alexandr Garbuzov
a4d6fe104f
Fixed card constructor docstring to resolve vscode type errors (#2674) 2023-05-03 07:04:33 +02:00
Alexandr Garbuzov
cb99414d3d
Show no activity error in compact layout of wakatime card (#2662) 2023-05-01 08:21:29 +02:00
Alexandr Garbuzov
2f4279e738
Fixed vscode type error in get card colors function (#2660) 2023-04-30 08:20:26 +02:00
Rick Staa
3bd6519d39
docs: fix README language card usage order (#2659) 2023-04-29 08:25:37 +05:30
Alexandr Garbuzov
31d1ab43d0
Fixed todo inside stats card data fetcher (#2649) 2023-04-28 17:48:34 +02:00
Alexandr Garbuzov
a82a617a37
Fixed several typos inside preview theme script (#2650) 2023-04-28 09:51:54 +02:00
Alexandr Garbuzov
6eebfe36e8
Fixed docs typo inside src/common/utils.js (#2651) 2023-04-28 09:51:24 +02:00
Alexandr Garbuzov
30a45d3c13
Fixed typo in word color inside README (#2652) 2023-04-28 09:50:57 +02:00
Rick Staa
fd64333211
docs: update give logo (#2605) 2023-04-28 07:30:33 +05:30
Rick Staa
f5f0a79bc1
feat: improve CONTRIBUTING.md (#2609) 2023-04-28 07:30:13 +05:30
kitswas
5577bbf07f
New top language algorithm implementation (#1732)
* 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>
2023-04-25 08:19:05 +02:00
Alexandr Garbuzov
da46a5093c
Synchonize cache seconds min value inside docs translations with main readme (#2616) 2023-04-25 08:17:50 +02:00
Alexandr Garbuzov
21a9ba4fae
fix path to powered by vercel image (#1792) 2023-04-25 08:17:10 +02:00
Alexandr Garbuzov
8aacec098b
dev (#1782) 2023-04-25 08:16:37 +02:00
Alexandr Garbuzov
da5f82ff02
removed redundant comparison (#957) 2023-04-25 08:15:16 +02:00
Alexandr Garbuzov
be0d96615d
Fix typos inside wakatime test name (#2617) 2023-04-24 20:24:41 +02:00
LOKESH SINGH
aec73d293e
Updated the custom error there was a Typo. (#2618)
"Something went while trying to retrieve the stats data using the GraphQL API." -> "Something went wrong while trying to retrieve the stats data using the GraphQL API."
2023-04-24 20:24:05 +02:00
Fabiano Couto
879937c11d
feat(RankIcon): add rank_icon option (#2628)
* 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>
2023-04-24 13:56:14 +00:00
Fabiano Couto
4d1d83d5e5
add github_dark_dimmed theme (#2594)
* 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
2023-04-01 13:22:00 +02:00
Caeden Perelli-Harris
d8244a7fe5
Add format stats option (#2155)
* 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>
2023-04-01 10:17:56 +05:30
github-actions[bot]
b928f51442
refactor: update languages JSON (#2596)
Co-authored-by: rickstaa <rickstaa@users.noreply.github.com>
2023-03-31 06:40:22 +05:30
Eduardo Zaniboni
32998295b7
update my theme (#2576) 2023-03-14 14:42:29 +05:30
Rick Staa
2bd9d457ac
ci: fix theme docs generate bug (#2573) 2023-03-09 15:15:50 +05:30