Commit Graph
61 Commits
Author SHA1 Message Date
2e07ac2bd6 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-25 18:47:16 +02:00
Ophelia GoldsteinandAlexandr b516ce64f4 fix: improve Ukrainian translations (#4563)
Co-authored-by: Alexandr <qwerty541zxc@gmail.com>
2025-10-25 18:35:36 +02:00
Ophelia GoldsteinandAlexandr 8c4b7d9117 fix: mark Azerbaijani locale as long for stats card (#4562)
Co-authored-by: Alexandr <qwerty541zxc@gmail.com>
2025-10-25 18:35:30 +02:00
Ophelia GoldsteinandAlexandr 58570c42f7 fix: resolve vscode type errors in cache utils (#4559)
Co-authored-by: Alexandr <qwerty541zxc@gmail.com>
2025-10-25 18:34:39 +02:00
Ophelia GoldsteinandAlexandr 72c4e96bfe fix: resolve vscode errors inside cards svg generation code (#4558)
Co-authored-by: Alexandr <qwerty541zxc@gmail.com>
2025-10-25 18:34:28 +02:00
Ophelia GoldsteinandAlexandr 14660f5171 refactor: move all color related code into separate file (#4557)
Co-authored-by: Alexandr <qwerty541zxc@gmail.com>
2025-10-25 18:31:43 +02:00
Ophelia GoldsteinandAlexandr 26c3cf421f fix: resolve vscode errors inside colors related code (#4556)
Co-authored-by: Alexandr <qwerty541zxc@gmail.com>
2025-10-25 18:27:53 +02:00
Ophelia GoldsteinandAlexandr 1ac197ceae fix: resolve vscode type errors in API endpoints files (#4555)
Co-authored-by: Alexandr <qwerty541zxc@gmail.com>
2025-10-25 18:27:41 +02:00
Ophelia GoldsteinandAlexandr 6db97d40a1 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-25 17:33:30 +02:00
708e76c484 refactor: reorganize cache TTL constants (#4550)
* refactor: reorganize cache TTL constants

* Update tests/wakatime.test.js

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

---------

Co-authored-by: Alexandr <qwerty541zxc@gmail.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-10-25 17:19:06 +02:00
Ophelia GoldsteinandAlexandr 9fef28e471 feat: disable caching when NODE_ENV is development (#4543)
Co-authored-by: Alexandr <qwerty541zxc@gmail.com>
2025-10-25 16:59:59 +02:00
71aaf018dc feat: disable cache with proper headers when CACHE_SECONDS env is zero (#4539)
* feat: disable cache with proper headers when CACHE_SECONDS env is zero

* Update src/common/cache.js

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

---------

Co-authored-by: Alexandr <qwerty541zxc@gmail.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-10-25 16:52:12 +02:00
739fd1739a refactor: named arguments for render error function (#4537)
* refactor: named arguments for render error function

* Update tests/api.test.js

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

---------

Co-authored-by: Alexandr <qwerty541zxc@gmail.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-10-25 16:52:00 +02:00
Ophelia GoldsteinandAlexandr b119e6a61c refactor: improve cache control headers formatting (#4536)
Co-authored-by: Alexandr <qwerty541zxc@gmail.com>
2025-10-25 16:48:10 +02:00
b687bf30bb refactor: move access guards logic into reusable functions (#4535)
* refactor: move access guards logic into reusable functions

* Update src/common/access.js

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

---------

Co-authored-by: Alexandr <qwerty541zxc@gmail.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-10-25 16:46:06 +02:00
Alexandr GarbuzovandAlexandr 3bcd26a6a9 refactor: move cache headers logic into reusable functions (#4533)
* refactor: move cache headers logic into reusable functions

* dev

---------

Co-authored-by: Alexandr <qwerty541zxc@gmail.com>
2025-10-25 16:39:05 +02:00
Alexandr GarbuzovandAlexandr 06ac549cfe refactor: move cache seconds calculation logic into reusable function (#4532)
* refactor: move cache seconds calculation logic into reusable function

* dev

---------

Co-authored-by: Alexandr <qwerty541zxc@gmail.com>
2025-10-25 13:29:37 +02:00
Alexandr GarbuzovandAlexandr 9fa3542eb1 fix: prevent items overlap by making swahili translation shorter for stats card commits (#4530)
Co-authored-by: Alexandr <qwerty541zxc@gmail.com>
2025-10-25 13:12:54 +02:00
Alexandr GarbuzovandAlexandr 41f6ef299f refactor: move all envs related code into separate file (#4529)
Co-authored-by: Alexandr <qwerty541zxc@gmail.com>
2025-10-25 13:12:41 +02:00
Alexandr GarbuzovandAlexandr 52abd14b00 fix: mark Swahili language as long for stats card (#4528)
Co-authored-by: Alexandr <qwerty541zxc@gmail.com>
2025-10-25 13:08:42 +02:00
Bear_03andAlexandr 403693dd17 feat: add support for EXCLUDE_REPO env variable (#1299)
* Add support for EXCLUDE_REPO env variable

* review

* docs

* refactor

---------

Co-authored-by: Alexandr <qwerty541zxc@gmail.com>
2025-10-25 13:08:26 +02:00
martin-mfgandAlexandr 9f840c03e3 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-25 13:07:09 +02:00
Alexandr GarbuzovandAlexandr c087fa0408 fix: mark Tamil as long language for stats card (#4518)
Co-authored-by: Alexandr <qwerty541zxc@gmail.com>
2025-10-25 13:00:27 +02:00
arjav007andAlexandr 98bcb43f0b feat: add Sanskrit translations (#4503)
* feat: add Sanskrit translations

* revert

* revert

* docs

---------

Co-authored-by: Alexandr <qwerty541zxc@gmail.com>
2025-10-25 12:59:58 +02:00
Dhia ShamsandAlexandr 88deef6f72 feat: add Tamil translations (#4504)
* Corrections in malayalam translation

* Added tamil translations

* Added tamil to readme file

* review

---------

Co-authored-by: Alexandr <qwerty541zxc@gmail.com>
2025-10-25 12:59:48 +02:00
7f6ec1bf5e feat: add Swahili translations (#3911)
* Update translations.js

added the swahili translation

* dev

* docs

* 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>

---------

Co-authored-by: Alexandr <qwerty541zxc@gmail.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-10-25 12:59:41 +02:00
Alexandr GarbuzovandAlexandr dec9ed0cd6 chore: add comment with issue link to the retryer rate limit detection logic (#4508)
Co-authored-by: Alexandr <qwerty541zxc@gmail.com>
2025-10-25 12:57:24 +02:00
39777b3c53 refactor: update languages JSON (#4487)
Co-authored-by: qwerty541 <53787217+qwerty541@users.noreply.github.com>
Co-authored-by: Alexandr <qwerty541zxc@gmail.com>
2025-10-25 12:56:58 +02:00
Ophelia GoldsteinandAlexandr fe6bdf4c20 fix: make Bulgarian total commits translation shorter to prevent items overlapping (#4500)
Co-authored-by: Alexandr <qwerty541zxc@gmail.com>
2025-10-25 12:54:04 +02:00
Ophelia GoldsteinandAlexandr 95762ea443 fix: mark Bulgarian language as long for stats card (#4493)
Co-authored-by: Alexandr <qwerty541zxc@gmail.com>
2025-10-25 12:53:43 +02:00
Dhia ShamsandAlexandr ba647071ac fix: update Malayalam translations (#4490)
Co-authored-by: Alexandr <qwerty541zxc@gmail.com>
2025-10-25 12:49:59 +02:00
d4bbd4d015 fix: update Hindi translations (#4488)
* Fixed the trans in Hindi

* 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>

* review

---------

Co-authored-by: Alexandr <qwerty541zxc@gmail.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-10-25 12:49:54 +02:00
2d886a544c feat: add Bulgarian translations (#3987)
* Update translations.js

Added Bulgarian language translation

* Sorted languages alphabetically in translations.js

* docs

---------

Co-authored-by: mastersho <116218303+mastersho@users.noreply.github.com>
Co-authored-by: Alexandr <qwerty541zxc@gmail.com>
2025-10-25 12:49:49 +02:00
432a0c0a3d feat: add Urdu translations (#3958)
* Update translations.js for Urdu language

I've added the translations for Urdu language for stats cards.

* docs

---------

Co-authored-by: MD SARFARAZ <159709636+LearnWithNewton@users.noreply.github.com>
Co-authored-by: Alexandr <qwerty541zxc@gmail.com>
2025-10-25 12:49:44 +02:00
20959604ff feat: add Hebrew translations (#3957)
* Added Hebrew

* docs

* Update src/translations.js

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

---------

Co-authored-by: Alexandr <qwerty541zxc@gmail.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-10-25 12:44:29 +02:00
Ophelia GoldsteinandAlexandr bf905c79c7 fix: mark Filipino langiage as long for stats card (#4486)
Co-authored-by: Alexandr <qwerty541zxc@gmail.com>
2025-10-25 12:44:22 +02:00
c1e0810f98 feat: add Filipino translations (#3800)
* Update translations.js

Added translations. Filipino Languages which is main language that Philippines used.

* Update translations.js

Added translations. Filipino language which is the main language 
of Philippines. Added translations in translations.js

* Update translations.js

* docs

* 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>

---------

Co-authored-by: Alexandr <qwerty541zxc@gmail.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-10-25 12:44:16 +02:00
ebc5e6fefb feat: add Catalan translations (#4134)
* Update translations.js

Catalan translation added

* Update src/translations.js

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

---------

Co-authored-by: Alexandr <qwerty541zxc@gmail.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-10-25 12:40:37 +02:00
Radoš MilićevandAlexandr 65f1a2c04e 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-10-25 12:39:52 +02:00
Mohd AmirandAlexandr f2efd6052b fix: display correct data when user don't have any pull requests (#4452)
* Fix: When user doesn't have any PR, it's Merged PRs Percentage is NAN (fixes #4449)

* review

---------

Co-authored-by: Alexandr <qwerty541zxc@gmail.com>
2025-10-25 12:39:44 +02:00
Ophelia GoldsteinandAlexandr 69d75d5edf fix: mark Portuguese locale as long for stats card (#4451)
Co-authored-by: Alexandr <qwerty541zxc@gmail.com>
2025-10-25 12:39:08 +02:00
Ophelia GoldsteinandAlexandr e7245788e2 chore: move original english translations to the top for convenience during development (#4447)
Co-authored-by: Alexandr <qwerty541zxc@gmail.com>
2025-10-25 12:38:54 +02:00
Ophelia GoldsteinandAlexandr a5684724cd chore: sort stats card long locales alphabetically (#4446)
Co-authored-by: Alexandr <qwerty541zxc@gmail.com>
2025-10-25 12:38:42 +02:00
3d680bb2ec feat: add Hindi translations (#3985)
* Update readme.md

Added hindi language in available locales.

* Update translations.js

Added hindi language

* prettier

* 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>

* 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>

* 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>

* 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>

* 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>

---------

Co-authored-by: Alexandr <qwerty541zxc@gmail.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-10-25 12:38:04 +02:00
Kornchanok IednusornandAlexandr a179fa3058 feat: add Thai translations (#4247)
* Add locale th to translations.js

* add Locale th to readme.md

---------

Co-authored-by: Alexandr <qwerty541zxc@gmail.com>
2025-10-25 12:37:51 +02:00
Ophelia GoldsteinandAlexandr e20750e034 fix: remove Chinese from long locales (#4442)
Co-authored-by: Alexandr <qwerty541zxc@gmail.com>
2025-10-25 12:37:46 +02:00
Ophelia GoldsteinandAlexandr 3d0f78598b chore: make create progress node function jsdoc shorter (#4441)
Co-authored-by: Alexandr <qwerty541zxc@gmail.com>
2025-10-25 12:37:41 +02:00
Ophelia GoldsteinandAlexandr ab2b0f4c97 fix: react on both type and message-based rate-limit signals (#4440)
Co-authored-by: Alexandr <qwerty541zxc@gmail.com>
2025-10-25 12:37:28 +02:00
Ophelia GoldsteinandAlexandr cd40532db7 chore: make stats card create text node function jsdoc shorter (#4429)
Co-authored-by: Alexandr <qwerty541zxc@gmail.com>
2025-10-25 12:33:08 +02:00
Ophelia GoldsteinandAlexandr 4d74e42f9c chore: fix jsdoc for rank calculation function (#4427)
Co-authored-by: Alexandr <qwerty541zxc@gmail.com>
2025-10-25 11:47:13 +02:00