Commit Graph
94 Commits
Author SHA1 Message Date
martin-mfg 748281e76e fix fetchers/stats.js, toggle show_icons default 2025-11-08 13:39:44 +01:00
martin-mfg d10d5b17a1 wakatime card: ensure progress is visible 2025-11-08 10:31:58 +01:00
martin-mfg ef19761d9e 'default_repocard', enableAnimations, card titles 2025-11-05 10:45:03 +01:00
martin-mfg 270f42f718 fix circular import 2025-11-04 09:49:14 +01:00
martin-mfg 867f73e704 Merge remote-tracking branch 'origin/master' into merge-upstream 2025-11-02 13:39:08 +01:00
martin-mfg 39f93a7229 remove duplicated tests, remove duplicated comment 2025-11-02 12:24:11 +01:00
martin-mfg bcfa97ce72 adjust import, move code back to original place 2025-11-02 12:09:41 +01:00
martin-mfg f7c5b620db fix moved code, adapt imports, revert trivial manual change 2025-11-02 11:58:32 +01:00
Alexandr GarbuzovandAlexandr a6b8bc2052 fix: resolve vscode type errors inside retryer module (#4614)
Co-authored-by: Alexandr <qwerty541zxc@gmail.com>
2025-10-25 20:32:01 +02:00
Alexandr GarbuzovandAlexandr 44a4ee6333 fix: mark Japanese as long locale for stats card (#4607)
Co-authored-by: Alexandr <qwerty541zxc@gmail.com>
2025-10-25 20:31:55 +02:00
Alexandr GarbuzovandAlexandr 70b4f10471 chore: enable tscheck inside icons module (#4606)
Co-authored-by: Alexandr <qwerty541zxc@gmail.com>
2025-10-25 20:31:52 +02:00
Alexandr GarbuzovandAlexandr 7cdc5f0dc0 fix: resolve vscode type errors inside I18n class (#4605)
Co-authored-by: Alexandr <qwerty541zxc@gmail.com>
2025-10-25 20:31:48 +02:00
Alexandr GarbuzovandAlexandr 0f067f9df7 chore: enable tscheck inside envs module (#4603)
Co-authored-by: Alexandr <qwerty541zxc@gmail.com>
2025-10-25 20:31:45 +02:00
Alexandr GarbuzovandAlexandr c1d68b5850 chore: enable tscheck inside HTTP module (#4601)
Co-authored-by: Alexandr <qwerty541zxc@gmail.com>
2025-10-25 20:31:39 +02:00
Alexandr GarbuzovandAlexandr 6e89d50ff6 fix: mark Hungarian locale as long for stats card (#4600)
Co-authored-by: Alexandr <qwerty541zxc@gmail.com>
2025-10-25 20:31:35 +02:00
Alexandr GarbuzovandAlexandr b44de10025 fix: resolve vscode type errors inside color module (#4598)
Co-authored-by: Alexandr <qwerty541zxc@gmail.com>
2025-10-25 20:31:29 +02:00
Alexandr GarbuzovandAlexandr 992f9ec2da fix: resolve vscode type errors inside access module (#4596)
Co-authored-by: Alexandr <qwerty541zxc@gmail.com>
2025-10-25 20:31:22 +02:00
Alexandr GarbuzovandAlexandr c7a4d17e8b refactor: move create progress node function into render module (#4594)
Co-authored-by: Alexandr <qwerty541zxc@gmail.com>
2025-10-25 20:31:11 +02:00
Alexandr GarbuzovandAlexandr dd3c8472fb fix: resolve vscode type errors inside card class (#4592)
Co-authored-by: Alexandr <qwerty541zxc@gmail.com>
2025-10-25 20:29:35 +02:00
Alexandr GarbuzovandAlexandr 8c754e3aec refactor: move encode HTML function into separate module (#4591)
Co-authored-by: Alexandr <qwerty541zxc@gmail.com>
2025-10-25 20:29:24 +02:00
Alexandr GarbuzovandAlexandr 4ce634a0d9 fix: mark Greek as long locale for stats card (#4589)
Co-authored-by: Alexandr <qwerty541zxc@gmail.com>
2025-10-25 20:27:16 +02:00
Alexandr GarbuzovandAlexandr 8c8393183d refactor: move svg rendering related code into separate module (#4588)
Co-authored-by: Alexandr <qwerty541zxc@gmail.com>
2025-10-25 20:27:00 +02:00
Alexandr GarbuzovandAlexandr cac484b37c fix: mark Finnish locale as long for stats card (#4583)
Co-authored-by: Alexandr <qwerty541zxc@gmail.com>
2025-10-25 19:40:26 +02:00
Alexandr GarbuzovandAlexandr 14b0513c60 refactor: move operations into separate module (#4582)
Co-authored-by: Alexandr <qwerty541zxc@gmail.com>
2025-10-25 19:40:17 +02:00
c6c26c533f refactor: move logger into separate module (#4581)
* refactor: move logger into separate module

* Update api/status/pat-info.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 19:28:11 +02:00
Alexandr GarbuzovandAlexandr 81046114ff fix: resolve several vscode type errors inside fetchers code (#4579)
Co-authored-by: Alexandr <qwerty541zxc@gmail.com>
2025-10-25 19:26:10 +02:00
Alexandr GarbuzovandAlexandr 051c523c6e refactor: move HTTP related code into separate module (#4578)
* refactor: move HTTP related code into separate module

* dev

---------

Co-authored-by: Alexandr <qwerty541zxc@gmail.com>
2025-10-25 19:08:08 +02:00
Alexandr GarbuzovandAlexandr fa49f83382 refactor: move long locales const to the top and infer types (#4577)
Co-authored-by: Alexandr <qwerty541zxc@gmail.com>
2025-10-25 19:02:57 +02:00
Alexandr GarbuzovandAlexandr 843a9a16b3 fix: mark Czech as long locale for stats card (#4576)
Co-authored-by: Alexandr <qwerty541zxc@gmail.com>
2025-10-25 19:02:55 +02:00
09c06abfac fix: update Burmese translations (#4570)
* Fixed Myanmar (my : Burma ) language

* 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 19:02:52 +02:00
Alexandr GarbuzovandAlexandr 3cf087b160 refactor: move wrap text multiline function into fmt module (#4572)
Co-authored-by: Alexandr <qwerty541zxc@gmail.com>
2025-10-25 19:02:38 +02:00
Ophelia GoldsteinandAlexandr e29ac4b338 refactor: move formatting related code into separate file (#4568)
Co-authored-by: Alexandr <qwerty541zxc@gmail.com>
2025-10-25 18:58:57 +02:00
martin-mfgandAlexandr f5916427f1 refactor: reduce magic numbers inside wakatime card generation code (#4534)
* refactor magic numbers

* dev

---------

Co-authored-by: Alexandr <qwerty541zxc@gmail.com>
2025-10-25 18:56:15 +02:00
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