Commit Graph
167 Commits
Author SHA1 Message Date
Alexandr GarbuzovandAlexandr c43fd65bdd refactor: move svg rendering related code into separate module (#4588)
Co-authored-by: Alexandr <qwerty541zxc@gmail.com>
2025-10-16 23:44:17 +03:00
Alexandr GarbuzovandAlexandr dff0cfec58 fix: mark Finnish locale as long for stats card (#4583)
Co-authored-by: Alexandr <qwerty541zxc@gmail.com>
2025-10-15 23:36:50 +03:00
Alexandr GarbuzovandAlexandr e158f0d27f refactor: move operations into separate module (#4582)
Co-authored-by: Alexandr <qwerty541zxc@gmail.com>
2025-10-15 23:29:53 +03:00
Alexandr GarbuzovandAlexandr da318a6751 refactor: move long locales const to the top and infer types (#4577)
Co-authored-by: Alexandr <qwerty541zxc@gmail.com>
2025-10-14 23:55:20 +03:00
Alexandr GarbuzovandAlexandr 4e44891844 fix: mark Czech as long locale for stats card (#4576)
Co-authored-by: Alexandr <qwerty541zxc@gmail.com>
2025-10-14 23:33:56 +03:00
Alexandr GarbuzovandAlexandr ab53e3052d refactor: move wrap text multiline function into fmt module (#4572)
Co-authored-by: Alexandr <qwerty541zxc@gmail.com>
2025-10-14 21:11:23 +03:00
Ophelia GoldsteinandAlexandr 5df2e634e9 refactor: move formatting related code into separate file (#4568)
Co-authored-by: Alexandr <qwerty541zxc@gmail.com>
2025-10-13 23:50:06 +03:00
martin-mfgandAlexandr c4a59b5afa refactor: reduce magic numbers inside wakatime card generation code (#4534)
* refactor magic numbers

* dev

---------

Co-authored-by: Alexandr <qwerty541zxc@gmail.com>
2025-10-13 23:36:38 +03:00
4143c6dec3 feat: implement number precision parameter for stats card (#4514)
* Update short number format 

Update short number format by adding 2 decimal places instead of 1 for numbers between 1,000 and 9,999

* review

* Update src/common/utils.js

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* dev

* dev

---------

Co-authored-by: Alexandr <qwerty541zxc@gmail.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-10-13 20:21:28 +03:00
Ophelia GoldsteinandAlexandr adbed1ee2f fix: mark Azerbaijani locale as long for stats card (#4562)
Co-authored-by: Alexandr <qwerty541zxc@gmail.com>
2025-10-12 23:22:51 +03:00
Ophelia GoldsteinandAlexandr 33f0c9153e fix: resolve vscode errors inside cards svg generation code (#4558)
Co-authored-by: Alexandr <qwerty541zxc@gmail.com>
2025-10-11 22:40:33 +03:00
Ophelia GoldsteinandAlexandr 701068b8bc refactor: move all color related code into separate file (#4557)
Co-authored-by: Alexandr <qwerty541zxc@gmail.com>
2025-10-11 22:07:03 +03:00
Ophelia GoldsteinandAlexandr b164ecebda refactor: move errors related code into separate file (#4554)
* refactor: move errors related code into separate file

* jsdoc

---------

Co-authored-by: Alexandr <qwerty541zxc@gmail.com>
2025-10-09 22:31:46 +03:00
Alexandr GarbuzovandAlexandr 24b1df0d28 fix: mark Swahili language as long for stats card (#4528)
Co-authored-by: Alexandr <qwerty541zxc@gmail.com>
2025-10-06 21:31:10 +03:00
martin-mfgandAlexandr 39b93b57c8 feat: wakatime card width customization (#4458)
* add card_width to wakatime card

* better handling of card_width in wakatime card

* move default card_width for wakatime card, add to readme

* review

* review

---------

Co-authored-by: Alexandr <qwerty541zxc@gmail.com>
2025-10-05 23:03:25 +03:00
Alexandr GarbuzovandAlexandr 41317e848e fix: mark Tamil as long language for stats card (#4518)
Co-authored-by: Alexandr <qwerty541zxc@gmail.com>
2025-10-05 21:22:05 +03:00
Ophelia GoldsteinandAlexandr a38ff1003e fix: mark Bulgarian language as long for stats card (#4493)
Co-authored-by: Alexandr <qwerty541zxc@gmail.com>
2025-10-01 23:52:56 +03:00
Ophelia GoldsteinandAlexandr d286fa39be fix: mark Filipino langiage as long for stats card (#4486)
Co-authored-by: Alexandr <qwerty541zxc@gmail.com>
2025-09-30 23:10:14 +03:00
Radoš MilićevandAlexandr c81f3eb92d feat: add Serbian (Latin) translations (#4448)
* Improve existing Serbian

* Distinguish Cyrillic & Latin Serbian

* Use sr for cyrillic Serbian to support backwards compatibility

* review

---------

Co-authored-by: Alexandr <qwerty541zxc@gmail.com>
2025-09-24 23:21:26 +03:00
Ophelia GoldsteinandAlexandr 42130f1f96 fix: mark Portuguese locale as long for stats card (#4451)
Co-authored-by: Alexandr <qwerty541zxc@gmail.com>
2025-09-19 22:40:40 +03:00
Ophelia GoldsteinandAlexandr c3585cc1d0 chore: sort stats card long locales alphabetically (#4446)
Co-authored-by: Alexandr <qwerty541zxc@gmail.com>
2025-09-19 18:39:29 +03:00
Ophelia GoldsteinandAlexandr 4f33921e9e fix: remove Chinese from long locales (#4442)
Co-authored-by: Alexandr <qwerty541zxc@gmail.com>
2025-09-18 21:12:31 +03:00
Ophelia GoldsteinandAlexandr 10526a0b7e chore: make stats card create text node function jsdoc shorter (#4429)
Co-authored-by: Alexandr <qwerty541zxc@gmail.com>
2025-09-17 22:53:48 +03:00
b594b57b56 feat: implement commits year option and display appropriate year label (#2107)
* 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>
2025-09-17 22:01:37 +03:00
1655c957ce feat: add Serbian translations (#3542)
* Update readme.md

* Update translations.js

* Update src/translations.js

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update src/translations.js

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* mark as long lang

---------

Co-authored-by: Alexandr <qwerty541zxc@gmail.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-09-16 22:38:45 +03:00
078040d26e feat: add bytes stats format option for top-languages card (#3708)
* 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>
2025-09-16 21:41:46 +03:00
Małgorzata (Gosia)andAlexandr ea6ef1124d fix: handle apostrophes for names ending in x (#4343)
* fix: handle apostrophes for names ending in x

* review

---------

Co-authored-by: Alexandr <qwerty541zxc@gmail.com>
2025-09-10 18:32:30 +03:00
Alexandr Garbuzov dd7582db8f refactor: fix cards files names by removing duplicating postfix (#4376) 2025-08-24 17:14:18 +03:00
Alexandr Garbuzov 91db5356fc fix(stats card): set correct value of commits count in accessability label (#3610) 2024-01-23 14:41:03 +01:00
Alexandr Garbuzov 59367dc6b0 refactor(wakatime card): move duplicate value format logic into separate function (#3512) 2023-12-26 13:57:22 +01:00
Alexandr Garbuzov c402a23360 refactor: add missing export for wakatime options type (#3531) 2023-12-11 19:35:07 +01:00
Alexandr Garbuzov 1262002624 fix(wakatime card): add percent display format for compact layout (resolves #3503) (#3504) 2023-11-25 09:00:22 +01:00
b8983dd697 feat: show wakatime stats in percentage (resolves #3016) (#3326)
* 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>
2023-11-23 21:13:48 +02:00
Alexandr Garbuzov a8663a8025 feat(wakatime card): add disable animations query option (#3496)
* feat(wakatime card): add disable animations query option

* docs
2023-11-23 21:06:01 +02:00
Alexandr Garbuzov ddcc30d641 feat(repo card): add description lines count query parameter (#3453)
* feature(repo card): add description lines count query parameter

* dev

* dev

* docs

* test
2023-11-20 20:08:48 +02:00
dependabot[bot]andAlexandr e04e1397c5 build(deps-dev): Bump prettier from 3.0.3 to 3.1.0 (#3476)
* build(deps-dev): Bump prettier from 3.0.3 to 3.1.0

Bumps [prettier](https://github.com/prettier/prettier) from 3.0.3 to 3.1.0.
- [Release notes](https://github.com/prettier/prettier/releases)
- [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md)
- [Commits](https://github.com/prettier/prettier/compare/3.0.3...3.1.0)

---
updated-dependencies:
- dependency-name: prettier
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* dev

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Alexandr <qwerty541zxc@gmail.com>
2023-11-13 22:22:39 +03:00
Wertzui123 ff16984988 refactor: fix typos in a comment (#3437)
* Fix typos in a comment

* Add a comma
2023-11-01 15:47:03 +01:00
Alexandr Garbuzov 8278980d25 infra: enable no-negated-condition eslint rule (#3283)
* infra: enable no-negated-condition eslint rule

* dev

* dev
2023-10-15 21:38:32 +03:00
Alexandr Garbuzov ac749b75e3 refactor: resolve vscode type errors in wakatime card render and remove redundant css (#3232)
* refactor: resolve vscode type errors in wakatime card render and remove redundant css

* dev
2023-10-15 10:03:18 +02:00
Alexandr Garbuzov c42798b39e refactor: enable curly eslint rule (#3137) 2023-09-12 10:06:01 +02:00
Alexandr Garbuzov 8879c7fe2e refactor: fix createProgressNode function jsdoc and enable ts-check (#3211) 2023-09-12 09:24:07 +02:00
Alexandr Garbuzov 09b7ad6a58 refactor: move duplicated code for rendering repo/gist cards into utils (#3214) 2023-09-11 22:08:22 +02:00
Alexandr Garbuzov b0e15fb17c refactor(wakatime card): fix createTextNode function jsdoc to resolve type error (#3201) 2023-09-06 08:04:07 +02:00
Alexandr Garbuzov 6c15843c7d Refactor: Move hide_border into common options (#3086) 2023-08-16 09:45:58 +02:00
Alexandr Garbuzov 4eefd2497d Refactor: Top langs card: Use default value instead if statement (#3082) 2023-08-15 09:30:06 +02:00
Alexandr Garbuzov da82999f06 Feature: Gist card: Add hide_border option support (#3080) 2023-08-15 09:25:04 +02:00
Alexandr Garbuzov fe901dd337 Feature: Add gist card (#3064)
* Feature: Add gist card

* dev

* dev

* dev

* dev

* dev

* dev

* e2e

* e2e test timeout
2023-08-14 11:28:01 +02:00
Alexandr Garbuzov a258b29db5 Feature: Stats card: Show merged PRs count and percentage (#3003)
* Feature: Stats card: Show merged PRs count and percentage

* dev

* dev

* renames
2023-08-14 02:18:57 +03:00
Alexandr Garbuzov 38ae6494fc Stats card: Add Malayalam to long languages (#3058) 2023-08-09 09:23:12 +02:00
Alexandr Garbuzov 20f0868a17 Refactor: Repo card: Use typedef tags to resolve eslint errors (#3053) 2023-08-08 08:32:39 +02:00