Commit Graph

23 Commits

Author SHA1 Message Date
Rick Staa
3e66189c44
feat: add CACHE_SECONDS environment variable (#2266)
* feat: add CACHE_SECONDS environment variable

This commit adds the CACHE_SECONDS environment variable. This variable
can be used to circumvent our cache clamping values for self hosted
Vercel instances.

* refactor: apply formatter
2023-06-09 04:44:42 +03:00
Rick Staa
c301289f7d
fix: Make WakaTime card compatible with new API (#2707)
* 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>
2023-06-02 14:37:59 +05:30
Rick Staa
3cb205c65b
feat: improve card loading speed (#2124)
* feat: improve card loading times

This commit adds the `stale-while-revalidate` option to speed up the
card loading times.

* mend
2022-11-21 10:21:46 +01:00
Rick Staa
42a4b6f60a
refactor: remove unused dotenv calls (#2059)
As explained in the Vercel documentation vercel ignores dot files (see
https://github.com/vercel/vercel/discussions/3962#discussioncomment-4277). It
instead loads the env variables defined in the vercel instance. As a
result we can therefore remove dotenv.
2022-11-21 10:13:14 +01:00
Rick Staa
98f9045f98
fix: improve error caching behavoir (#2211)
This commit ensures that the GraphQL Pat error is not cached in any
browser. See
https://github.com/anuraghazra/github-readme-stats/issues/1471#issuecomment-1282630614.
2022-10-18 18:07:38 +02:00
Rick Staa
4df8094e52
fix: prevent errors from being cached (#2160) 2022-10-09 20:23:31 +02:00
rickstaa
8886b93a7e
refactor: clean up imports 2022-09-24 14:10:06 +02:00
rickstaa
41d6760abd
fix: fix es6 import file extension 2022-09-24 13:20:52 +02:00
rsk2
107f7ca52c
Feature/grs 1955 change commonjs imports (#1995)
* GRS-1955: Using ES6 import/export in src files

* GRS-1955: Using ES6 import/export in test files

* GRS-1955: Using ES6 import/export in themes index.js

* GRS-1955: Readding blank line at end of top-languages-card.js

* feat: fix test es6 import errors

This commit makes sure jest is set-up to support es6. It also fixes
several test errors and sorts the imports.

* test: update test node version

This commit makes sure node 16 is used in the github actions.

* refactor: run prettier

Co-authored-by: rickstaa <rick.staa@outlook.com>
2022-09-24 10:20:54 +02:00
Anurag Hazra
9d2bfd9d8f
fix: temporarily increase the cache hours (#1771) 2022-05-19 00:48:26 +05:30
Julián Sanmartino
d0ab2ff030
fix: wakatime card translations (#1363) 2021-10-06 23:09:43 +05:30
Julian Holfeld
1a3edcaae0
feat: hide wakatime languages (#1212)
* feat: added option to hide languages

* feat: recalculate percentages for hidden languages

* refactor: reverted langs_count and did some formatting

* doc: added hide to readme

* feat: make languages var mutable and improve filter logic

Co-authored-by: Adrian Kunz <clashsoft@hotmail.com>

* refactor: improve code and added tests

Co-authored-by: Adrian Kunz <clashsoft@hotmail.com>
Co-authored-by: Anurag <hazru.anurag@gmail.com>
2021-08-28 00:35:10 +05:30
Rishi Suresh
7a096acf66
feat: added border_color option (#1000)
* feat: Allow customization of border color

* docs: Update readme
2021-04-28 00:28:44 +05:30
Florian Bussmann
9773d924fb
feat: limit langs shown on wakatime card (#988) 2021-04-27 00:34:34 +05:30
Ferdinand Mütsch
24e5f866c0
feat: allow to customize wakatime range (#874)
* chore: allow to customize wakatime data range

* docs: document wakatime range parameter
docs: add wakatime section to german readme

Co-authored-by: Anurag Hazra <hazru.anurag@gmail.com>
2021-03-08 11:39:43 +05:30
Teddy Heinen
c8a5e835a5
feat: add corner rounding parameter so we can make square cards (#845)
* add corner rounding parameter so i can make square cards

* rename rx to border_radius
2021-03-07 22:23:32 +05:30
Anurag Hazra
93ae8d995b
fix: wakatime stats fetcher (#871)
fixes #865
2021-02-10 23:40:57 +05:30
Nathan Chu
c1a88baad4
feat: add support for custom wakatime api domain (#620)
* feat: add support for custom wakatime api domain

* Update src/fetchers/wakatime-fetcher.js

* Update src/fetchers/wakatime-fetcher.js

Co-authored-by: 춤추는망고 <ensia96@gmail.com>

Co-authored-by: Nathan Chu <63111210+nthnchu@users.noreply.github.com>
Co-authored-by: 춤추는망고 <ensia96@gmail.com>
2021-01-27 12:41:21 +05:30
Willian Rodrigues
94aeabe300
feat: add wakatime compact layout (#560)
* Add wakatime compact layout

* Update readme

* test: added & updated test snapshots

Co-authored-by: Anurag <hazru.anurag@gmail.com>
2020-11-04 23:51:57 +05:30
Nathan Chu
f1df178643
feat: card locale translations (#509)
* Add Card Translations

* Add tests and documentation for `?lang` option

* Card Translations: update Italian

* Run Prettier

* Correct German Translations.

Co-authored-by: schmelto <30869493+schmelto@users.noreply.github.com>

* refactor: added i18n class to manage translation logic & improved code

* Make the new src/translations.js more concise

* Update translations.js

Co-authored-by: schmelto <30869493+schmelto@users.noreply.github.com>

* Revert 4175484d69

* fix: overlap because of language length

Co-authored-by: lrusso96 <russo.1699981@studenti.uniroma1.it>
Co-authored-by: schmelto <30869493+schmelto@users.noreply.github.com>
Co-authored-by: Anurag <hazru.anurag@gmail.com>
2020-10-04 13:35:15 +05:30
Nathan Chu
057ff69ac2
feat: custom card title (#293)
* Custom stats title (anuraghazra#229)

* Add custom title test

* remove unused code

* Update readme.md to include the `custom_title` option

* Update readme_es.md to include `custom_title` option

Co-Authored-By: José Javier Rodríguez Zas <jjavierdguezas@gmail.com>

* Merge branch 'master' of https://github.com/anuraghazra/github-readme-stats.git into custom-title

* feat: added customTitle option in Card

Co-authored-by: José Javier Rodríguez Zas <jjavierdguezas@gmail.com>
Co-authored-by: Anurag <hazru.anurag@gmail.com>
2020-09-27 13:10:39 +05:30
Bas950
8aea1e3c35
feat: added repo card hide border option (#488)
* 🚀 Prettier config

* 🚀 hide_border for Repo Card

* fix: wrong total commits (#490)

* chore: run prettier on all files

* chore: lol lets add the trailing commas

Co-authored-by: Anurag Hazra <hazru.anurag@gmail.com>
2020-09-24 21:38:14 +05:30
Willian Rodrigues
6e73a0035d
feat: add wakatime card (#392)
* Adds wakatime card route

* Adds language progress on wakatime card

* Adds wakatime card on README

* Adds no coding activity node

* Remove percent displayed on wakatime's card

* Update readme

* refactor: refactored code & added tests

Co-authored-by: Anurag <hazru.anurag@gmail.com>
2020-09-19 12:53:39 +05:30