From 810e275ab130bbbfcc3c3c5a1adb32982a188d06 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sun, 15 Jan 2023 22:38:54 -0700 Subject: [PATCH 01/30] chore(deps-dev): bump phpunit/phpunit from 9.5.27 to 9.5.28 (#416) Bumps [phpunit/phpunit](https://github.com/sebastianbergmann/phpunit) from 9.5.27 to 9.5.28. - [Release notes](https://github.com/sebastianbergmann/phpunit/releases) - [Changelog](https://github.com/sebastianbergmann/phpunit/blob/9.5.28/ChangeLog-9.5.md) - [Commits](https://github.com/sebastianbergmann/phpunit/compare/9.5.27...9.5.28) --- updated-dependencies: - dependency-name: phpunit/phpunit dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- composer.lock | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/composer.lock b/composer.lock index e7195848..0d76bc64 100644 --- a/composer.lock +++ b/composer.lock @@ -1093,20 +1093,20 @@ }, { "name": "phpunit/phpunit", - "version": "9.5.27", + "version": "9.5.28", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/phpunit.git", - "reference": "a2bc7ffdca99f92d959b3f2270529334030bba38" + "reference": "954ca3113a03bf780d22f07bf055d883ee04b65e" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/a2bc7ffdca99f92d959b3f2270529334030bba38", - "reference": "a2bc7ffdca99f92d959b3f2270529334030bba38", + "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/954ca3113a03bf780d22f07bf055d883ee04b65e", + "reference": "954ca3113a03bf780d22f07bf055d883ee04b65e", "shasum": "" }, "require": { - "doctrine/instantiator": "^1.3.1", + "doctrine/instantiator": "^1.3.1 || ^2", "ext-dom": "*", "ext-json": "*", "ext-libxml": "*", @@ -1175,7 +1175,7 @@ ], "support": { "issues": "https://github.com/sebastianbergmann/phpunit/issues", - "source": "https://github.com/sebastianbergmann/phpunit/tree/9.5.27" + "source": "https://github.com/sebastianbergmann/phpunit/tree/9.5.28" }, "funding": [ { @@ -1191,7 +1191,7 @@ "type": "tidelift" } ], - "time": "2022-12-09T07:31:23+00:00" + "time": "2023-01-14T12:32:24+00:00" }, { "name": "sebastian/cli-parser", From db4792baaddb22a54a5253d292bb95e71210b63e Mon Sep 17 00:00:00 2001 From: Vaibhav P <2gi20ee039@students.git.edu> Date: Wed, 18 Jan 2023 00:34:00 +0530 Subject: [PATCH 02/30] feat: Updated Kannada translations (#418) --- src/translations.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/translations.php b/src/translations.php index 26ec3f2d..2251152a 100644 --- a/src/translations.php +++ b/src/translations.php @@ -142,7 +142,9 @@ "kn" => [ "Total Contributions" => "ಒಟ್ಟು ಕೊಡುಗೆ", "Current Streak" => "ಪ್ರಸ್ತುತ ಸ್ಟ್ರೀಕ್", - "Longest Streak" => "ದೊಡ್ಡ ಸ್ಟ್ರೀಕ್", + "Longest Streak" => "ಅತ್ಯಧಿಕ ಸ್ಟ್ರೀಕ್", + "Week Streak" => "ವಾರದ ಸ್ಟ್ರೀಕ್", + "Longest Week Streak" => "ಅತ್ಯಧಿಕ ವಾರದ ಸ್ಟ್ರೀಕ್", "Present" => "ಪ್ರಸ್ತುತ", ], "ko" => [ From 73f03c420c21d37107a5cab5825d030ab675411e Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Tue, 17 Jan 2023 19:04:30 +0000 Subject: [PATCH 03/30] docs(readme): Update translation progress --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 76f6153a..eb54b2ff 100644 --- a/README.md +++ b/README.md @@ -86,7 +86,7 @@ To enable a theme, append `&theme=` followed by the theme name to the end of the -
en - English
English 100%
ar - العربية
العربية 100%
bg - български
български 100%
bn - বাংলা
বাংলা 100%
es - español
español 100%
fa - فارسی
فارسی 100%
fr - français
français 100%
he - עברית
עברית 100%
hi - हिन्दी
हिन्दी 100%
ja - 日本語
日本語 100%
ko - 한국어
한국어 100%
mr - मराठी
मराठी 100%
pl - polski
polski 100%
ps - پښتو
پښتو 100%
pt_BR - português (Brasil)
português (Brasil) 100%
ru - русский
русский 100%
uk - українська
українська 100%
yo - Èdè Yorùbá
Èdè Yorùbá 100%
zh_Hans - 中文(简体)
中文(简体) 100%
zh_Hant - 中文(繁體)
中文(繁體) 100%
da - dansk
dansk 67%
de - Deutsch
Deutsch 67%
id - Indonesia
Indonesia 67%
it - italiano
italiano 67%
kn - ಕನ್ನಡ
ಕನ್ನಡ 67%
nl - Nederlands
Nederlands 67%
ta - தமிழ்
தமிழ் 67%
tr - Türkçe
Türkçe 67%
vi - Tiếng Việt
Tiếng Việt 67%
+
en - English
English 100%
ar - العربية
العربية 100%
bg - български
български 100%
bn - বাংলা
বাংলা 100%
es - español
español 100%
fa - فارسی
فارسی 100%
fr - français
français 100%
he - עברית
עברית 100%
hi - हिन्दी
हिन्दी 100%
ja - 日本語
日本語 100%
kn - ಕನ್ನಡ
ಕನ್ನಡ 100%
ko - 한국어
한국어 100%
mr - मराठी
मराठी 100%
pl - polski
polski 100%
ps - پښتو
پښتو 100%
pt_BR - português (Brasil)
português (Brasil) 100%
ru - русский
русский 100%
uk - українська
українська 100%
yo - Èdè Yorùbá
Èdè Yorùbá 100%
zh_Hans - 中文(简体)
中文(简体) 100%
zh_Hant - 中文(繁體)
中文(繁體) 100%
da - dansk
dansk 67%
de - Deutsch
Deutsch 67%
id - Indonesia
Indonesia 67%
it - italiano
italiano 67%
nl - Nederlands
Nederlands 67%
ta - தமிழ்
தமிழ் 67%
tr - Türkçe
Türkçe 67%
vi - Tiếng Việt
Tiếng Việt 67%
From 37e212050f03aa5c36134ec394cafd92afecbe1c Mon Sep 17 00:00:00 2001 From: Kevin Azemi Date: Tue, 17 Jan 2023 20:11:20 +0100 Subject: [PATCH 04/30] feat: Updated Italian translations (#420) Co-authored-by: Jonah Lawrence Fixes https://github.com/DenverCoder1/github-readme-streak-stats/issues/236 --- src/translations.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/translations.php b/src/translations.php index 2251152a..8d9c557a 100644 --- a/src/translations.php +++ b/src/translations.php @@ -125,9 +125,11 @@ "Present" => "Sekarang", ], "it" => [ - "Total Contributions" => "Tutti i contributi", - "Current Streak" => "Serie corrente", - "Longest Streak" => "Serie più lunga", + "Total Contributions" => "Totale dei Contributi", + "Current Streak" => "Serie Corrente", + "Longest Streak" => "Serie più Lunga", + "Week Streak" => "Serie Settimanale", + "Longest Week Streak" => "Serie Settimanale più Lunga", "Present" => "Presente", ], "ja" => [ From 13d85c511ccd383803bc3db5fe39c95e5fa8cfeb Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Tue, 17 Jan 2023 19:11:43 +0000 Subject: [PATCH 05/30] docs(readme): Update translation progress --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index eb54b2ff..aa1a407b 100644 --- a/README.md +++ b/README.md @@ -86,7 +86,7 @@ To enable a theme, append `&theme=` followed by the theme name to the end of the -
en - English
English 100%
ar - العربية
العربية 100%
bg - български
български 100%
bn - বাংলা
বাংলা 100%
es - español
español 100%
fa - فارسی
فارسی 100%
fr - français
français 100%
he - עברית
עברית 100%
hi - हिन्दी
हिन्दी 100%
ja - 日本語
日本語 100%
kn - ಕನ್ನಡ
ಕನ್ನಡ 100%
ko - 한국어
한국어 100%
mr - मराठी
मराठी 100%
pl - polski
polski 100%
ps - پښتو
پښتو 100%
pt_BR - português (Brasil)
português (Brasil) 100%
ru - русский
русский 100%
uk - українська
українська 100%
yo - Èdè Yorùbá
Èdè Yorùbá 100%
zh_Hans - 中文(简体)
中文(简体) 100%
zh_Hant - 中文(繁體)
中文(繁體) 100%
da - dansk
dansk 67%
de - Deutsch
Deutsch 67%
id - Indonesia
Indonesia 67%
it - italiano
italiano 67%
nl - Nederlands
Nederlands 67%
ta - தமிழ்
தமிழ் 67%
tr - Türkçe
Türkçe 67%
vi - Tiếng Việt
Tiếng Việt 67%
+
en - English
English 100%
ar - العربية
العربية 100%
bg - български
български 100%
bn - বাংলা
বাংলা 100%
es - español
español 100%
fa - فارسی
فارسی 100%
fr - français
français 100%
he - עברית
עברית 100%
hi - हिन्दी
हिन्दी 100%
it - italiano
italiano 100%
ja - 日本語
日本語 100%
kn - ಕನ್ನಡ
ಕನ್ನಡ 100%
ko - 한국어
한국어 100%
mr - मराठी
मराठी 100%
pl - polski
polski 100%
ps - پښتو
پښتو 100%
pt_BR - português (Brasil)
português (Brasil) 100%
ru - русский
русский 100%
uk - українська
українська 100%
yo - Èdè Yorùbá
Èdè Yorùbá 100%
zh_Hans - 中文(简体)
中文(简体) 100%
zh_Hant - 中文(繁體)
中文(繁體) 100%
da - dansk
dansk 67%
de - Deutsch
Deutsch 67%
id - Indonesia
Indonesia 67%
nl - Nederlands
Nederlands 67%
ta - தமிழ்
தமிழ் 67%
tr - Türkçe
Türkçe 67%
vi - Tiếng Việt
Tiếng Việt 67%
From 377cc041aa7d05af2631940788bee3b7bca4200c Mon Sep 17 00:00:00 2001 From: Prox <92608546+captainprox02@users.noreply.github.com> Date: Wed, 18 Jan 2023 02:11:59 +0700 Subject: [PATCH 06/30] feat: Updates Vietnamese translations (#422) --- src/translations.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/translations.php b/src/translations.php index 8d9c557a..3371538c 100644 --- a/src/translations.php +++ b/src/translations.php @@ -227,6 +227,8 @@ "Total Contributions" => "Tổng số đóng góp", "Current Streak" => "Chuỗi đóng góp\nhiện tại", "Longest Streak" => "Chuỗi đóng góp lớn nhất", + "Week Streak" => "Chuỗi tuần", + "Longest Week Streak" => "Chuỗi tuần lớn nhất", "Present" => "Hiện tại", ], "yo" => [ From daddafd6a3cdc2e2990912ad86415b09444d1f33 Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Tue, 17 Jan 2023 19:12:26 +0000 Subject: [PATCH 07/30] docs(readme): Update translation progress --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index aa1a407b..2dd52d93 100644 --- a/README.md +++ b/README.md @@ -86,7 +86,7 @@ To enable a theme, append `&theme=` followed by the theme name to the end of the -
en - English
English 100%
ar - العربية
العربية 100%
bg - български
български 100%
bn - বাংলা
বাংলা 100%
es - español
español 100%
fa - فارسی
فارسی 100%
fr - français
français 100%
he - עברית
עברית 100%
hi - हिन्दी
हिन्दी 100%
it - italiano
italiano 100%
ja - 日本語
日本語 100%
kn - ಕನ್ನಡ
ಕನ್ನಡ 100%
ko - 한국어
한국어 100%
mr - मराठी
मराठी 100%
pl - polski
polski 100%
ps - پښتو
پښتو 100%
pt_BR - português (Brasil)
português (Brasil) 100%
ru - русский
русский 100%
uk - українська
українська 100%
yo - Èdè Yorùbá
Èdè Yorùbá 100%
zh_Hans - 中文(简体)
中文(简体) 100%
zh_Hant - 中文(繁體)
中文(繁體) 100%
da - dansk
dansk 67%
de - Deutsch
Deutsch 67%
id - Indonesia
Indonesia 67%
nl - Nederlands
Nederlands 67%
ta - தமிழ்
தமிழ் 67%
tr - Türkçe
Türkçe 67%
vi - Tiếng Việt
Tiếng Việt 67%
+
en - English
English 100%
ar - العربية
العربية 100%
bg - български
български 100%
bn - বাংলা
বাংলা 100%
es - español
español 100%
fa - فارسی
فارسی 100%
fr - français
français 100%
he - עברית
עברית 100%
hi - हिन्दी
हिन्दी 100%
it - italiano
italiano 100%
ja - 日本語
日本語 100%
kn - ಕನ್ನಡ
ಕನ್ನಡ 100%
ko - 한국어
한국어 100%
mr - मराठी
मराठी 100%
pl - polski
polski 100%
ps - پښتو
پښتو 100%
pt_BR - português (Brasil)
português (Brasil) 100%
ru - русский
русский 100%
uk - українська
українська 100%
vi - Tiếng Việt
Tiếng Việt 100%
yo - Èdè Yorùbá
Èdè Yorùbá 100%
zh_Hans - 中文(简体)
中文(简体) 100%
zh_Hant - 中文(繁體)
中文(繁體) 100%
da - dansk
dansk 67%
de - Deutsch
Deutsch 67%
id - Indonesia
Indonesia 67%
nl - Nederlands
Nederlands 67%
ta - தமிழ்
தமிழ் 67%
tr - Türkçe
Türkçe 67%
From 4c3d9be3315eac8708b791ee6a160bdfea37e40b Mon Sep 17 00:00:00 2001 From: Jonah Lawrence Date: Tue, 17 Jan 2023 13:12:05 -0700 Subject: [PATCH 08/30] fix: Catch error if failed to get contributions twice (#424) --- src/stats.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/stats.php b/src/stats.php index 73bac082..d6551652 100644 --- a/src/stats.php +++ b/src/stats.php @@ -83,6 +83,7 @@ function executeContributionGraphRequests(string $user, array $years): array removeGitHubToken($tokens[$year]); } error_log("First attempt to decode response for $user's $year contributions failed. $message"); + error_log("Contents: $contents"); // retry request $query = buildContributionGraphQuery($user, $year); $token = getGitHubToken(); @@ -96,6 +97,7 @@ function executeContributionGraphRequests(string $user, array $years): array removeGitHubToken($token); } error_log("Failed to decode response for $user's $year contributions after 2 attempts. $message"); + error_log("Contents: $contents"); continue; } } @@ -120,7 +122,11 @@ function getContributionGraphs(string $user): array // get the list of years the user has contributed and the current year's contribution graph $currentYear = intval(date("Y")); $responses = executeContributionGraphRequests($user, [$currentYear]); - $contributionYears = $responses[$currentYear]->data->user->contributionsCollection->contributionYears; + $contributionYears = $responses[$currentYear]->data->user->contributionsCollection->contributionYears ?? []; + // if there are no contribution years, an API error must have occurred + if (empty($contributionYears)) { + throw new AssertionError("Failed to retrieve contributions. This is likely a GitHub API issue.", 500); + } // remove the current year from the list since it's already been fetched $contributionYears = array_filter($contributionYears, function ($year) use ($currentYear) { return $year !== $currentYear; From b4d73610ed22caaf1f5f67144e563e15d8022e66 Mon Sep 17 00:00:00 2001 From: Jonah Lawrence Date: Tue, 17 Jan 2023 13:31:18 -0700 Subject: [PATCH 09/30] Update composer.lock --- composer.lock | 38 +++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/composer.lock b/composer.lock index 0d76bc64..3093eb6c 100644 --- a/composer.lock +++ b/composer.lock @@ -479,30 +479,30 @@ "packages-dev": [ { "name": "doctrine/instantiator", - "version": "1.5.0", + "version": "2.0.0", "source": { "type": "git", "url": "https://github.com/doctrine/instantiator.git", - "reference": "0a0fa9780f5d4e507415a065172d26a98d02047b" + "reference": "c6222283fa3f4ac679f8b9ced9a4e23f163e80d0" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/doctrine/instantiator/zipball/0a0fa9780f5d4e507415a065172d26a98d02047b", - "reference": "0a0fa9780f5d4e507415a065172d26a98d02047b", + "url": "https://api.github.com/repos/doctrine/instantiator/zipball/c6222283fa3f4ac679f8b9ced9a4e23f163e80d0", + "reference": "c6222283fa3f4ac679f8b9ced9a4e23f163e80d0", "shasum": "" }, "require": { - "php": "^7.1 || ^8.0" + "php": "^8.1" }, "require-dev": { - "doctrine/coding-standard": "^9 || ^11", + "doctrine/coding-standard": "^11", "ext-pdo": "*", "ext-phar": "*", - "phpbench/phpbench": "^0.16 || ^1", - "phpstan/phpstan": "^1.4", - "phpstan/phpstan-phpunit": "^1", - "phpunit/phpunit": "^7.5 || ^8.5 || ^9.5", - "vimeo/psalm": "^4.30 || ^5.4" + "phpbench/phpbench": "^1.2", + "phpstan/phpstan": "^1.9.4", + "phpstan/phpstan-phpunit": "^1.3", + "phpunit/phpunit": "^9.5.27", + "vimeo/psalm": "^5.4" }, "type": "library", "autoload": { @@ -529,7 +529,7 @@ ], "support": { "issues": "https://github.com/doctrine/instantiator/issues", - "source": "https://github.com/doctrine/instantiator/tree/1.5.0" + "source": "https://github.com/doctrine/instantiator/tree/2.0.0" }, "funding": [ { @@ -545,7 +545,7 @@ "type": "tidelift" } ], - "time": "2022-12-30T00:15:36+00:00" + "time": "2022-12-30T00:23:10+00:00" }, { "name": "myclabs/deep-copy", @@ -608,16 +608,16 @@ }, { "name": "nikic/php-parser", - "version": "v4.15.2", + "version": "v4.15.3", "source": { "type": "git", "url": "https://github.com/nikic/PHP-Parser.git", - "reference": "f59bbe44bf7d96f24f3e2b4ddc21cd52c1d2adbc" + "reference": "570e980a201d8ed0236b0a62ddf2c9cbb2034039" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/f59bbe44bf7d96f24f3e2b4ddc21cd52c1d2adbc", - "reference": "f59bbe44bf7d96f24f3e2b4ddc21cd52c1d2adbc", + "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/570e980a201d8ed0236b0a62ddf2c9cbb2034039", + "reference": "570e980a201d8ed0236b0a62ddf2c9cbb2034039", "shasum": "" }, "require": { @@ -658,9 +658,9 @@ ], "support": { "issues": "https://github.com/nikic/PHP-Parser/issues", - "source": "https://github.com/nikic/PHP-Parser/tree/v4.15.2" + "source": "https://github.com/nikic/PHP-Parser/tree/v4.15.3" }, - "time": "2022-11-12T15:38:23+00:00" + "time": "2023-01-16T22:05:37+00:00" }, { "name": "phar-io/manifest", From f578750f7a033c003cbe4822081477b5ecf05238 Mon Sep 17 00:00:00 2001 From: Muhammad Osama Asif Date: Thu, 19 Jan 2023 00:29:14 +0500 Subject: [PATCH 10/30] Added Urdu Pakistan Locale (#425) --- src/translations.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/translations.php b/src/translations.php index 3371538c..aa0a4b81 100644 --- a/src/translations.php +++ b/src/translations.php @@ -223,6 +223,15 @@ "Longest Week Streak" => "Найбільша к-сть тижнів", "Present" => "Наразі", ], + "ur_PK" => [ + "rtl" => true, + "Total Contributions" => "کل حصہ داری", + "Current Streak" => "موجودہ تسلسل", + "Longest Streak" => "طویل ترین تسلسل", + "Week Streak" => "ہفتہ وار تسلسل", + "Longest Week Streak" => "طویل ترین ہفتہ وار تسلسل", + "Present" => "حاظر", + ], "vi" => [ "Total Contributions" => "Tổng số đóng góp", "Current Streak" => "Chuỗi đóng góp\nhiện tại", From 040bd819e5419c9794a9d49dc467c9d7e54ea1b2 Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Wed, 18 Jan 2023 19:29:42 +0000 Subject: [PATCH 11/30] docs(readme): Update translation progress --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 2dd52d93..e0a98e94 100644 --- a/README.md +++ b/README.md @@ -86,7 +86,7 @@ To enable a theme, append `&theme=` followed by the theme name to the end of the -
en - English
English 100%
ar - العربية
العربية 100%
bg - български
български 100%
bn - বাংলা
বাংলা 100%
es - español
español 100%
fa - فارسی
فارسی 100%
fr - français
français 100%
he - עברית
עברית 100%
hi - हिन्दी
हिन्दी 100%
it - italiano
italiano 100%
ja - 日本語
日本語 100%
kn - ಕನ್ನಡ
ಕನ್ನಡ 100%
ko - 한국어
한국어 100%
mr - मराठी
मराठी 100%
pl - polski
polski 100%
ps - پښتو
پښتو 100%
pt_BR - português (Brasil)
português (Brasil) 100%
ru - русский
русский 100%
uk - українська
українська 100%
vi - Tiếng Việt
Tiếng Việt 100%
yo - Èdè Yorùbá
Èdè Yorùbá 100%
zh_Hans - 中文(简体)
中文(简体) 100%
zh_Hant - 中文(繁體)
中文(繁體) 100%
da - dansk
dansk 67%
de - Deutsch
Deutsch 67%
id - Indonesia
Indonesia 67%
nl - Nederlands
Nederlands 67%
ta - தமிழ்
தமிழ் 67%
tr - Türkçe
Türkçe 67%
+
en - English
English 100%
ar - العربية
العربية 100%
bg - български
български 100%
bn - বাংলা
বাংলা 100%
es - español
español 100%
fa - فارسی
فارسی 100%
fr - français
français 100%
he - עברית
עברית 100%
hi - हिन्दी
हिन्दी 100%
it - italiano
italiano 100%
ja - 日本語
日本語 100%
kn - ಕನ್ನಡ
ಕನ್ನಡ 100%
ko - 한국어
한국어 100%
mr - मराठी
मराठी 100%
pl - polski
polski 100%
ps - پښتو
پښتو 100%
pt_BR - português (Brasil)
português (Brasil) 100%
ru - русский
русский 100%
uk - українська
українська 100%
ur_PK - اردو (پاکستان)
اردو (پاکستان) 100%
vi - Tiếng Việt
Tiếng Việt 100%
yo - Èdè Yorùbá
Èdè Yorùbá 100%
zh_Hans - 中文(简体)
中文(简体) 100%
zh_Hant - 中文(繁體)
中文(繁體) 100%
da - dansk
dansk 67%
de - Deutsch
Deutsch 67%
id - Indonesia
Indonesia 67%
nl - Nederlands
Nederlands 67%
ta - தமிழ்
தமிழ் 67%
tr - Türkçe
Türkçe 67%
From dc3304d94d4506089683a66ef49860c267348b91 Mon Sep 17 00:00:00 2001 From: MatseVH <49431416+Matse2005@users.noreply.github.com> Date: Thu, 19 Jan 2023 19:14:42 +0100 Subject: [PATCH 12/30] feat: Updated the Dutch Translations (#426) --- src/translations.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/translations.php b/src/translations.php index aa0a4b81..51c5af22 100644 --- a/src/translations.php +++ b/src/translations.php @@ -169,6 +169,8 @@ "Total Contributions" => "Totale Bijdrage", "Current Streak" => "Huidige Serie", "Longest Streak" => "Langste Serie", + "Week Streak" => "Week Serie", + "Longest Week Streak" => "Langste Week Serie", "Present" => "Vandaag", ], "pl" => [ From dde7ccfbcd1d7665addd891075f686ba3b5ce8f7 Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Thu, 19 Jan 2023 18:15:08 +0000 Subject: [PATCH 13/30] docs(readme): Update translation progress --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index e0a98e94..40c7569b 100644 --- a/README.md +++ b/README.md @@ -86,7 +86,7 @@ To enable a theme, append `&theme=` followed by the theme name to the end of the -
en - English
English 100%
ar - العربية
العربية 100%
bg - български
български 100%
bn - বাংলা
বাংলা 100%
es - español
español 100%
fa - فارسی
فارسی 100%
fr - français
français 100%
he - עברית
עברית 100%
hi - हिन्दी
हिन्दी 100%
it - italiano
italiano 100%
ja - 日本語
日本語 100%
kn - ಕನ್ನಡ
ಕನ್ನಡ 100%
ko - 한국어
한국어 100%
mr - मराठी
मराठी 100%
pl - polski
polski 100%
ps - پښتو
پښتو 100%
pt_BR - português (Brasil)
português (Brasil) 100%
ru - русский
русский 100%
uk - українська
українська 100%
ur_PK - اردو (پاکستان)
اردو (پاکستان) 100%
vi - Tiếng Việt
Tiếng Việt 100%
yo - Èdè Yorùbá
Èdè Yorùbá 100%
zh_Hans - 中文(简体)
中文(简体) 100%
zh_Hant - 中文(繁體)
中文(繁體) 100%
da - dansk
dansk 67%
de - Deutsch
Deutsch 67%
id - Indonesia
Indonesia 67%
nl - Nederlands
Nederlands 67%
ta - தமிழ்
தமிழ் 67%
tr - Türkçe
Türkçe 67%
+
en - English
English 100%
ar - العربية
العربية 100%
bg - български
български 100%
bn - বাংলা
বাংলা 100%
es - español
español 100%
fa - فارسی
فارسی 100%
fr - français
français 100%
he - עברית
עברית 100%
hi - हिन्दी
हिन्दी 100%
it - italiano
italiano 100%
ja - 日本語
日本語 100%
kn - ಕನ್ನಡ
ಕನ್ನಡ 100%
ko - 한국어
한국어 100%
mr - मराठी
मराठी 100%
nl - Nederlands
Nederlands 100%
pl - polski
polski 100%
ps - پښتو
پښتو 100%
pt_BR - português (Brasil)
português (Brasil) 100%
ru - русский
русский 100%
uk - українська
українська 100%
ur_PK - اردو (پاکستان)
اردو (پاکستان) 100%
vi - Tiếng Việt
Tiếng Việt 100%
yo - Èdè Yorùbá
Èdè Yorùbá 100%
zh_Hans - 中文(简体)
中文(简体) 100%
zh_Hant - 中文(繁體)
中文(繁體) 100%
da - dansk
dansk 67%
de - Deutsch
Deutsch 67%
id - Indonesia
Indonesia 67%
ta - தமிழ்
தமிழ் 67%
tr - Türkçe
Türkçe 67%
From 9b0767eada70dd47180e41afe6205eb60755ac08 Mon Sep 17 00:00:00 2001 From: Jonah Lawrence Date: Thu, 19 Jan 2023 14:26:08 -0700 Subject: [PATCH 14/30] docs(readme): Add redeployment step to Vercel --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 40c7569b..20022e70 100644 --- a/README.md +++ b/README.md @@ -191,6 +191,7 @@ PNG mode is also not supported since Inkscape will not be installed. 9. Scroll to the bottom and click **"Generate token"** 10. Visit the [Vercel dashboard](https://vercel.com/dashboard) and select your project, then click **"Settings"**, then **"Environment Variables"**. 11. Add a new variable with the key `TOKEN` and the value as your token from step 9 and click "Save". +12. For the environment variable to be available, you will need to redeploy the app. Run `vercel --prod` to deploy to production. ![image](https://user-images.githubusercontent.com/20955511/209588756-8bf5b0cd-9aa6-41e8-909c-97bf41e525b3.png) From 95872172dd91ead15e03b1ee58a2459a354cc9bd Mon Sep 17 00:00:00 2001 From: Jonah Lawrence Date: Thu, 19 Jan 2023 15:04:37 -0700 Subject: [PATCH 15/30] docs(readme): Clarify date format default value and Locale usage (#427) --- README.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 20022e70..9eeb135d 100644 --- a/README.md +++ b/README.md @@ -59,8 +59,8 @@ If the `theme` parameter is specified, any color customizations specified will b | `currStreakLabel` | Current streak label | **hex code** without `#` or **css color** | | `sideLabels` | Total and longest streak labels | **hex code** without `#` or **css color** | | `dates` | Date range text color | **hex code** without `#` or **css color** | -| `date_format` | Date format (Default: `M j[, Y]`) | See note below on [📅 Date Formats](#-date-formats) | -| `locale` | Locale to use for labels (Default: `en`) | ISO 639-1 code - See [🗪 Locales](#-locales) | +| `date_format` | Date format pattern or empty for locale format | See note below on [📅 Date Formats](#-date-formats) | +| `locale` | Locale for labels and numbers (Default: `en`) | ISO 639-1 code - See [🗪 Locales](#-locales) | | `type` | Output format (Default: `svg`) | Current options: `svg`, `png` or `json` | | `mode` | Streak mode (Default: `daily`) | `daily` (contribute daily) or `weekly` (contribute once per Sun-Sat week) | @@ -83,6 +83,8 @@ To enable a theme, append `&theme=` followed by the theme name to the end of the ### 🗪 Locales +The following are the locales that have labels translated in Streak Stats. The `locale` query parameter accepts any ISO language or locale code, see [here](https://gist.github.com/DenverCoder1/f61147ba26bfcf7c3bf605af7d3382d5) for a list of valid locales. The locale provided will be used for the date format and number format even if translations are not yet available. + @@ -94,6 +96,8 @@ To enable a theme, append `&theme=` followed by the theme name to the end of the ### 📅 Date Formats +If `date_format` is not provided or is empty, the PHP Intl library is used to determine the date format based on the locale specified in the `locale` query parameter. + A custom date format can be specified by passing a string to the `date_format` parameter. The required format is to use format string characters from [PHP's date function](https://www.php.net/manual/en/datetime.format.php) with brackets around the part representing the year. From 715e3c0ade5cc52dbe2699f690711c66d68e8b55 Mon Sep 17 00:00:00 2001 From: MagicLike Date: Sun, 22 Jan 2023 16:58:09 +0100 Subject: [PATCH 16/30] Updated German translations (#428) --- src/translations.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/translations.php b/src/translations.php index 51c5af22..d102b563 100644 --- a/src/translations.php +++ b/src/translations.php @@ -74,6 +74,8 @@ "Total Contributions" => "Gesamte Beiträge", "Current Streak" => "Aktuelle Serie", "Longest Streak" => "Längste Serie", + "Week Streak" => "Wochenserie", + "Longest Week Streak" => "Längste Wochenserie", "Present" => "Heute", ], "es" => [ From 2fbdea442776d152d917380aa1348e90083743f7 Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Sun, 22 Jan 2023 15:58:32 +0000 Subject: [PATCH 17/30] docs(readme): Update translation progress --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 9eeb135d..a1dec994 100644 --- a/README.md +++ b/README.md @@ -88,7 +88,7 @@ The following are the locales that have labels translated in Streak Stats. The ` -
en - English
English 100%
ar - العربية
العربية 100%
bg - български
български 100%
bn - বাংলা
বাংলা 100%
es - español
español 100%
fa - فارسی
فارسی 100%
fr - français
français 100%
he - עברית
עברית 100%
hi - हिन्दी
हिन्दी 100%
it - italiano
italiano 100%
ja - 日本語
日本語 100%
kn - ಕನ್ನಡ
ಕನ್ನಡ 100%
ko - 한국어
한국어 100%
mr - मराठी
मराठी 100%
nl - Nederlands
Nederlands 100%
pl - polski
polski 100%
ps - پښتو
پښتو 100%
pt_BR - português (Brasil)
português (Brasil) 100%
ru - русский
русский 100%
uk - українська
українська 100%
ur_PK - اردو (پاکستان)
اردو (پاکستان) 100%
vi - Tiếng Việt
Tiếng Việt 100%
yo - Èdè Yorùbá
Èdè Yorùbá 100%
zh_Hans - 中文(简体)
中文(简体) 100%
zh_Hant - 中文(繁體)
中文(繁體) 100%
da - dansk
dansk 67%
de - Deutsch
Deutsch 67%
id - Indonesia
Indonesia 67%
ta - தமிழ்
தமிழ் 67%
tr - Türkçe
Türkçe 67%
+
en - English
English 100%
ar - العربية
العربية 100%
bg - български
български 100%
bn - বাংলা
বাংলা 100%
de - Deutsch
Deutsch 100%
es - español
español 100%
fa - فارسی
فارسی 100%
fr - français
français 100%
he - עברית
עברית 100%
hi - हिन्दी
हिन्दी 100%
it - italiano
italiano 100%
ja - 日本語
日本語 100%
kn - ಕನ್ನಡ
ಕನ್ನಡ 100%
ko - 한국어
한국어 100%
mr - मराठी
मराठी 100%
nl - Nederlands
Nederlands 100%
pl - polski
polski 100%
ps - پښتو
پښتو 100%
pt_BR - português (Brasil)
português (Brasil) 100%
ru - русский
русский 100%
uk - українська
українська 100%
ur_PK - اردو (پاکستان)
اردو (پاکستان) 100%
vi - Tiếng Việt
Tiếng Việt 100%
yo - Èdè Yorùbá
Èdè Yorùbá 100%
zh_Hans - 中文(简体)
中文(简体) 100%
zh_Hant - 中文(繁體)
中文(繁體) 100%
da - dansk
dansk 67%
id - Indonesia
Indonesia 67%
ta - தமிழ்
தமிழ் 67%
tr - Türkçe
Türkçe 67%
From ddc959704a616032e842aa23c1261563a5715094 Mon Sep 17 00:00:00 2001 From: Achmad Dinofaldi Firmansyah <47439247+Bangik@users.noreply.github.com> Date: Mon, 23 Jan 2023 21:34:09 +0700 Subject: [PATCH 18/30] Updated Indonesian translations (#429) --- src/translations.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/translations.php b/src/translations.php index d102b563..19d7a69b 100644 --- a/src/translations.php +++ b/src/translations.php @@ -124,6 +124,8 @@ "Total Contributions" => "Total Kontribusi", "Current Streak" => "Aksi Saat Ini", "Longest Streak" => "Aksi Terpanjang", + "Week Streak" => "Aksi Mingguan", + "Longest Week Streak" => "Aksi Mingguan Terpanjang", "Present" => "Sekarang", ], "it" => [ From 4420eace813b4c9ebaeb18a9ac89232b1d474438 Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Mon, 23 Jan 2023 14:34:33 +0000 Subject: [PATCH 19/30] docs(readme): Update translation progress --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index a1dec994..02c6aa42 100644 --- a/README.md +++ b/README.md @@ -88,7 +88,7 @@ The following are the locales that have labels translated in Streak Stats. The ` -
en - English
English 100%
ar - العربية
العربية 100%
bg - български
български 100%
bn - বাংলা
বাংলা 100%
de - Deutsch
Deutsch 100%
es - español
español 100%
fa - فارسی
فارسی 100%
fr - français
français 100%
he - עברית
עברית 100%
hi - हिन्दी
हिन्दी 100%
it - italiano
italiano 100%
ja - 日本語
日本語 100%
kn - ಕನ್ನಡ
ಕನ್ನಡ 100%
ko - 한국어
한국어 100%
mr - मराठी
मराठी 100%
nl - Nederlands
Nederlands 100%
pl - polski
polski 100%
ps - پښتو
پښتو 100%
pt_BR - português (Brasil)
português (Brasil) 100%
ru - русский
русский 100%
uk - українська
українська 100%
ur_PK - اردو (پاکستان)
اردو (پاکستان) 100%
vi - Tiếng Việt
Tiếng Việt 100%
yo - Èdè Yorùbá
Èdè Yorùbá 100%
zh_Hans - 中文(简体)
中文(简体) 100%
zh_Hant - 中文(繁體)
中文(繁體) 100%
da - dansk
dansk 67%
id - Indonesia
Indonesia 67%
ta - தமிழ்
தமிழ் 67%
tr - Türkçe
Türkçe 67%
+
en - English
English 100%
ar - العربية
العربية 100%
bg - български
български 100%
bn - বাংলা
বাংলা 100%
de - Deutsch
Deutsch 100%
es - español
español 100%
fa - فارسی
فارسی 100%
fr - français
français 100%
he - עברית
עברית 100%
hi - हिन्दी
हिन्दी 100%
id - Indonesia
Indonesia 100%
it - italiano
italiano 100%
ja - 日本語
日本語 100%
kn - ಕನ್ನಡ
ಕನ್ನಡ 100%
ko - 한국어
한국어 100%
mr - मराठी
मराठी 100%
nl - Nederlands
Nederlands 100%
pl - polski
polski 100%
ps - پښتو
پښتو 100%
pt_BR - português (Brasil)
português (Brasil) 100%
ru - русский
русский 100%
uk - українська
українська 100%
ur_PK - اردو (پاکستان)
اردو (پاکستان) 100%
vi - Tiếng Việt
Tiếng Việt 100%
yo - Èdè Yorùbá
Èdè Yorùbá 100%
zh_Hans - 中文(简体)
中文(简体) 100%
zh_Hant - 中文(繁體)
中文(繁體) 100%
da - dansk
dansk 67%
ta - தமிழ்
தமிழ் 67%
tr - Türkçe
Türkçe 67%
From f6edcc5a49d108c8996dbb9c697747162bfafb5e Mon Sep 17 00:00:00 2001 From: Tima Gixe <60817786+timagixe@users.noreply.github.com> Date: Sun, 29 Jan 2023 19:35:58 +0200 Subject: [PATCH 20/30] fix(demo): Update tooltip triangle and disabled button cursor (#437) Fixes https://github.com/DenverCoder1/github-readme-streak-stats/issues/435 --- src/demo/css/style.css | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/demo/css/style.css b/src/demo/css/style.css index 014312c9..fb1250eb 100644 --- a/src/demo/css/style.css +++ b/src/demo/css/style.css @@ -121,6 +121,7 @@ h2 { .btn:disabled { background: var(--blue-transparent); box-shadow: none; + cursor: not-allowed; } .parameters { @@ -282,9 +283,10 @@ input:focus:invalid { .btn.tooltip:after { content: ""; position: absolute; - transform: translateY(-27px); + transform: translateY(-25px); border-style: solid; border-color: #4a4a4afa transparent transparent transparent; + border-width: 5px; pointer-events: none; opacity: 0; } From 31feefb79091b96d16edb6cc7e6104c01228e01b Mon Sep 17 00:00:00 2001 From: Etson Dorival <35821623+etsond@users.noreply.github.com> Date: Mon, 30 Jan 2023 00:42:30 -0500 Subject: [PATCH 21/30] feat: Added Haitian Creole translations (#441) --- src/translations.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/translations.php b/src/translations.php index 19d7a69b..6017b9af 100644 --- a/src/translations.php +++ b/src/translations.php @@ -119,6 +119,14 @@ "Week Streak" => "सप्ताहिक योगदान", "Longest Week Streak" => "दीर्घ साप्ताहिक योगदान", "Present" => "आज तक", + ], + "ht" => [ + "Total Contributions" => "kontribisyon total", + "Current Streak" => "tras aktyèl", + "Longest Streak" => "tras ki pi long", + "Week Streak" => "tras semèn", + "Longest Week Streak" => "pi long tras semèn", + "Present" => "Prezan", ], "id" => [ "Total Contributions" => "Total Kontribusi", @@ -271,4 +279,5 @@ "Longest Week Streak" => "最常周連續貢獻", "Present" => "至今", ], + ]; From d6de0c5491d6e3537aaaf944a3ca834209873763 Mon Sep 17 00:00:00 2001 From: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Date: Mon, 30 Jan 2023 05:42:52 +0000 Subject: [PATCH 22/30] style: Formatted code with Prettier --- src/translations.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/translations.php b/src/translations.php index 6017b9af..5c5b0242 100644 --- a/src/translations.php +++ b/src/translations.php @@ -120,7 +120,7 @@ "Longest Week Streak" => "दीर्घ साप्ताहिक योगदान", "Present" => "आज तक", ], - "ht" => [ + "ht" => [ "Total Contributions" => "kontribisyon total", "Current Streak" => "tras aktyèl", "Longest Streak" => "tras ki pi long", @@ -279,5 +279,4 @@ "Longest Week Streak" => "最常周連續貢獻", "Present" => "至今", ], - ]; From c3f53ec8179b6eb890301a3e6209c4bd7cff0c9d Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Mon, 30 Jan 2023 05:42:58 +0000 Subject: [PATCH 23/30] docs(readme): Update translation progress --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 02c6aa42..fe90fad2 100644 --- a/README.md +++ b/README.md @@ -88,7 +88,7 @@ The following are the locales that have labels translated in Streak Stats. The ` -
en - English
English 100%
ar - العربية
العربية 100%
bg - български
български 100%
bn - বাংলা
বাংলা 100%
de - Deutsch
Deutsch 100%
es - español
español 100%
fa - فارسی
فارسی 100%
fr - français
français 100%
he - עברית
עברית 100%
hi - हिन्दी
हिन्दी 100%
id - Indonesia
Indonesia 100%
it - italiano
italiano 100%
ja - 日本語
日本語 100%
kn - ಕನ್ನಡ
ಕನ್ನಡ 100%
ko - 한국어
한국어 100%
mr - मराठी
मराठी 100%
nl - Nederlands
Nederlands 100%
pl - polski
polski 100%
ps - پښتو
پښتو 100%
pt_BR - português (Brasil)
português (Brasil) 100%
ru - русский
русский 100%
uk - українська
українська 100%
ur_PK - اردو (پاکستان)
اردو (پاکستان) 100%
vi - Tiếng Việt
Tiếng Việt 100%
yo - Èdè Yorùbá
Èdè Yorùbá 100%
zh_Hans - 中文(简体)
中文(简体) 100%
zh_Hant - 中文(繁體)
中文(繁體) 100%
da - dansk
dansk 67%
ta - தமிழ்
தமிழ் 67%
tr - Türkçe
Türkçe 67%
+
en - English
English 100%
ar - العربية
العربية 100%
bg - български
български 100%
bn - বাংলা
বাংলা 100%
de - Deutsch
Deutsch 100%
es - español
español 100%
fa - فارسی
فارسی 100%
fr - français
français 100%
he - עברית
עברית 100%
hi - हिन्दी
हिन्दी 100%
ht - Haitian Creole
Haitian Creole 100%
id - Indonesia
Indonesia 100%
it - italiano
italiano 100%
ja - 日本語
日本語 100%
kn - ಕನ್ನಡ
ಕನ್ನಡ 100%
ko - 한국어
한국어 100%
mr - मराठी
मराठी 100%
nl - Nederlands
Nederlands 100%
pl - polski
polski 100%
ps - پښتو
پښتو 100%
pt_BR - português (Brasil)
português (Brasil) 100%
ru - русский
русский 100%
uk - українська
українська 100%
ur_PK - اردو (پاکستان)
اردو (پاکستان) 100%
vi - Tiếng Việt
Tiếng Việt 100%
yo - Èdè Yorùbá
Èdè Yorùbá 100%
zh_Hans - 中文(简体)
中文(简体) 100%
zh_Hant - 中文(繁體)
中文(繁體) 100%
da - dansk
dansk 67%
ta - தமிழ்
தமிழ் 67%
tr - Türkçe
Türkçe 67%
From 03651471a59bc83e6fec4ec4447a1dbb7308e50f Mon Sep 17 00:00:00 2001 From: Johnny JTH Date: Mon, 30 Jan 2023 10:05:06 +0100 Subject: [PATCH 24/30] Improved danish language coverage (#442) --- src/translations.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/translations.php b/src/translations.php index 5c5b0242..7b55eccf 100644 --- a/src/translations.php +++ b/src/translations.php @@ -68,7 +68,9 @@ "Total Contributions" => "Totalt Antal Bidrag", "Current Streak" => "Nuværende i Træk", "Longest Streak" => "Længst i Træk", - "Present" => "I dag", + "Week Streak" => "Uger i Træk", + "Longest Week Streak" => "Mest Uger i Træk", + "Present" => "I Dag", ], "de" => [ "Total Contributions" => "Gesamte Beiträge", From 38c7a0ff0fcdfb058df2dc4ddcd5cd6e6dd0b6a7 Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Mon, 30 Jan 2023 09:05:36 +0000 Subject: [PATCH 25/30] docs(readme): Update translation progress --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index fe90fad2..15e2f565 100644 --- a/README.md +++ b/README.md @@ -88,7 +88,7 @@ The following are the locales that have labels translated in Streak Stats. The ` -
en - English
English 100%
ar - العربية
العربية 100%
bg - български
български 100%
bn - বাংলা
বাংলা 100%
de - Deutsch
Deutsch 100%
es - español
español 100%
fa - فارسی
فارسی 100%
fr - français
français 100%
he - עברית
עברית 100%
hi - हिन्दी
हिन्दी 100%
ht - Haitian Creole
Haitian Creole 100%
id - Indonesia
Indonesia 100%
it - italiano
italiano 100%
ja - 日本語
日本語 100%
kn - ಕನ್ನಡ
ಕನ್ನಡ 100%
ko - 한국어
한국어 100%
mr - मराठी
मराठी 100%
nl - Nederlands
Nederlands 100%
pl - polski
polski 100%
ps - پښتو
پښتو 100%
pt_BR - português (Brasil)
português (Brasil) 100%
ru - русский
русский 100%
uk - українська
українська 100%
ur_PK - اردو (پاکستان)
اردو (پاکستان) 100%
vi - Tiếng Việt
Tiếng Việt 100%
yo - Èdè Yorùbá
Èdè Yorùbá 100%
zh_Hans - 中文(简体)
中文(简体) 100%
zh_Hant - 中文(繁體)
中文(繁體) 100%
da - dansk
dansk 67%
ta - தமிழ்
தமிழ் 67%
tr - Türkçe
Türkçe 67%
+
en - English
English 100%
ar - العربية
العربية 100%
bg - български
български 100%
bn - বাংলা
বাংলা 100%
da - dansk
dansk 100%
de - Deutsch
Deutsch 100%
es - español
español 100%
fa - فارسی
فارسی 100%
fr - français
français 100%
he - עברית
עברית 100%
hi - हिन्दी
हिन्दी 100%
ht - Haitian Creole
Haitian Creole 100%
id - Indonesia
Indonesia 100%
it - italiano
italiano 100%
ja - 日本語
日本語 100%
kn - ಕನ್ನಡ
ಕನ್ನಡ 100%
ko - 한국어
한국어 100%
mr - मराठी
मराठी 100%
nl - Nederlands
Nederlands 100%
pl - polski
polski 100%
ps - پښتو
پښتو 100%
pt_BR - português (Brasil)
português (Brasil) 100%
ru - русский
русский 100%
uk - українська
українська 100%
ur_PK - اردو (پاکستان)
اردو (پاکستان) 100%
vi - Tiếng Việt
Tiếng Việt 100%
yo - Èdè Yorùbá
Èdè Yorùbá 100%
zh_Hans - 中文(简体)
中文(简体) 100%
zh_Hant - 中文(繁體)
中文(繁體) 100%
ta - தமிழ்
தமிழ் 67%
tr - Türkçe
Türkçe 67%
From 8640ed6dca8d7d7f766d7972d1f9ce92aaa3df17 Mon Sep 17 00:00:00 2001 From: Tima Gixe <60817786+timagixe@users.noreply.github.com> Date: Mon, 30 Jan 2023 11:16:04 +0200 Subject: [PATCH 26/30] feat: Update stats whenever form input changes (#439) * feat: create all selects * refactor: use themeSelect from upper scope * refactor: adjust refresh callback * feat: add on change event listener to each select * refactor: move refresh event listeners to `load` --- src/demo/js/script.js | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/demo/js/script.js b/src/demo/js/script.js index 9e356e0f..6556c6df 100644 --- a/src/demo/js/script.js +++ b/src/demo/js/script.js @@ -220,14 +220,17 @@ const tooltip = { }, }; -// refresh preview on interactions with the page -document.addEventListener("keyup", () => preview.update(), false); -document.addEventListener("click", () => preview.update(), false); - // when the page loads window.addEventListener( "load", () => { + // refresh preview on interactions with the page + const refresh = () => preview.update(); + document.addEventListener("keyup", refresh, false); + document.addEventListener("click", refresh, false); + [...document.querySelectorAll("select:not(#properties)")].forEach((element) => { + element.addEventListener("change", refresh, false); + }); // set input boxes to match URL parameters new URLSearchParams(window.location.search).forEach((val, key) => { const paramInput = document.querySelector(`#${key}`); From b2acf2cd850ebe991d42ad6fcb4f252174c4de30 Mon Sep 17 00:00:00 2001 From: Tima Gixe <60817786+timagixe@users.noreply.github.com> Date: Mon, 30 Jan 2023 21:02:37 +0200 Subject: [PATCH 27/30] Do not add advanced prop on submit (#436) Co-authored-by: DenverCoder1 Fixes https://github.com/DenverCoder1/github-readme-streak-stats/issues/432 --- src/demo/index.php | 10 +++++----- src/demo/js/script.js | 1 + 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/demo/index.php b/src/demo/index.php index bf9ab95e..86d307fe 100644 --- a/src/demo/index.php +++ b/src/demo/index.php @@ -106,7 +106,7 @@ function gtag() { - + @@ -146,13 +146,13 @@ function gtag() { - + - + - + @@ -192,4 +192,4 @@ function gtag() { - \ No newline at end of file + diff --git a/src/demo/js/script.js b/src/demo/js/script.js index 6556c6df..b1fffa50 100644 --- a/src/demo/js/script.js +++ b/src/demo/js/script.js @@ -80,6 +80,7 @@ const preview = { const minus = document.createElement("button"); minus.className = "minus btn"; minus.setAttribute("onclick", "return preview.removeProperty(this.getAttribute('data-property'));"); + minus.setAttribute("type", "button"); minus.innerText = "−"; minus.setAttribute("data-property", propertyName); // add elements From 793afe072e489a2b34076238ffb6f8c861572449 Mon Sep 17 00:00:00 2001 From: Tima Gixe <60817786+timagixe@users.noreply.github.com> Date: Mon, 30 Jan 2023 21:10:26 +0200 Subject: [PATCH 28/30] feat: Clear advanced props button (#438) Co-authored-by: Jonah Lawrence Fixes https://github.com/DenverCoder1/github-readme-streak-stats/issues/433 --- src/demo/index.php | 1 + src/demo/js/script.js | 17 +++++++++++++++++ 2 files changed, 18 insertions(+) diff --git a/src/demo/index.php b/src/demo/index.php index 86d307fe..762e31e8 100644 --- a/src/demo/index.php +++ b/src/demo/index.php @@ -149,6 +149,7 @@ function gtag() { + diff --git a/src/demo/js/script.js b/src/demo/js/script.js index b1fffa50..632004a4 100644 --- a/src/demo/js/script.js +++ b/src/demo/js/script.js @@ -37,6 +37,9 @@ const preview = { // disable copy button if username is invalid const copyButton = document.querySelector(".copy-button"); copyButton.disabled = Boolean(document.querySelector("#user:invalid") || !document.querySelector("#user").value); + // disable clear button if no added advanced options + const clearButton = document.querySelector("#clear_button"); + clearButton.disabled = !document.querySelectorAll(".minus").length; }, /** @@ -120,6 +123,20 @@ const preview = { return false; }, + /** + * Removes all properties from the advanced section + */ + removeAllProperties() { + const parent = document.querySelector(".advanced .parameters"); + const activeProperties = parent.querySelectorAll("[data-property]"); + // select active and unique property names + const propertyNames = Array.prototype.map + .call(activeProperties, (prop) => prop.getAttribute("data-property")) + .filter((value, index, self) => self.indexOf(value) === index); + // remove each active property name + propertyNames.forEach((prop) => this.removeProperty(prop)); + }, + /** * Create a key-value mapping of ids to values from all elements in a Node list * @param {NodeList} elements - the elements to get the values from From af2aa49773f08a1e3072032dd899be304c9cc5f7 Mon Sep 17 00:00:00 2001 From: Jonah Lawrence Date: Mon, 30 Jan 2023 12:41:45 -0700 Subject: [PATCH 29/30] refactor: Consistent ID naming, redundant return, styling (#443) --- src/demo/css/style.css | 3 ++- src/demo/index.php | 14 +++++++------- src/demo/js/script.js | 18 +++++++----------- 3 files changed, 16 insertions(+), 19 deletions(-) diff --git a/src/demo/css/style.css b/src/demo/css/style.css index fb1250eb..13beac15 100644 --- a/src/demo/css/style.css +++ b/src/demo/css/style.css @@ -200,6 +200,7 @@ input:focus:invalid { .advanced summary { padding: 6px; + cursor: pointer; } .advanced .parameters { @@ -304,7 +305,7 @@ input:focus:invalid { content: "You must first input a valid username."; } -textarea#exportedPhp { +textarea#exported-php { margin-top: 10px; width: 100%; resize: vertical; diff --git a/src/demo/index.php b/src/demo/index.php index 762e31e8..3726a478 100644 --- a/src/demo/index.php +++ b/src/demo/index.php @@ -102,13 +102,13 @@ function gtag() { - - + - @@ -146,11 +146,11 @@ function gtag() { - + - - - + + + diff --git a/src/demo/js/script.js b/src/demo/js/script.js index 632004a4..f9d49e89 100644 --- a/src/demo/js/script.js +++ b/src/demo/js/script.js @@ -38,7 +38,7 @@ const preview = { const copyButton = document.querySelector(".copy-button"); copyButton.disabled = Boolean(document.querySelector("#user:invalid") || !document.querySelector("#user").value); // disable clear button if no added advanced options - const clearButton = document.querySelector("#clear_button"); + const clearButton = document.querySelector("#clear-button"); clearButton.disabled = !document.querySelectorAll(".minus").length; }, @@ -46,9 +46,8 @@ const preview = { * Add a property in the advanced section * @param {string} property - the name of the property, selected element is used if not provided * @param {string} value - the value to set the property to - * @returns {false} false to prevent the default action */ - addProperty(property, value = "#DD2727FF") { + addProperty(property, value = "#EB5454FF") { const selectElement = document.querySelector("#properties"); // if no property passed, get the currently selected property const propertyName = property || selectElement.value; @@ -101,13 +100,11 @@ const preview = { // update and exit this.update(); } - return false; }, /** * Remove a property from the advanced section * @param {string} property - the name of the property to remove - * @returns {false} false to prevent the default action */ removeProperty(property) { const parent = document.querySelector(".advanced .parameters"); @@ -120,7 +117,6 @@ const preview = { option.disabled = false; // update and exit this.update(); - return false; }, /** @@ -138,7 +134,7 @@ const preview = { }, /** - * Create a key-value mapping of ids to values from all elements in a Node list + * Create a key-value mapping of names to values from all elements in a Node list * @param {NodeList} elements - the elements to get the values from * @returns {Object} the key-value mapping */ @@ -154,7 +150,7 @@ const preview = { value = value.replace(/[Ff]{2}$/, ""); } } - obj[next.id] = value; + obj[next.name] = value; return obj; }, {}); }, @@ -177,7 +173,7 @@ const preview = { .join("\n"); const output = `[\n${mappings}\n]`; // set the textarea value to the output - const textarea = document.getElementById("exportedPhp"); + const textarea = document.getElementById("exported-php"); textarea.value = output; textarea.hidden = false; }, @@ -190,7 +186,7 @@ const preview = { checkColor(color, input) { if (color.length === 9 && color.slice(-2) === "FF") { // if color has hex alpha value -> remove it - document.getElementById(input).value = color.slice(0, -2); + document.querySelector(`[name="${input}"]`).value = color.slice(0, -2); } }, @@ -251,7 +247,7 @@ window.addEventListener( }); // set input boxes to match URL parameters new URLSearchParams(window.location.search).forEach((val, key) => { - const paramInput = document.querySelector(`#${key}`); + const paramInput = document.querySelector(`[name="${key}"]`); if (paramInput) { // set parameter value paramInput.value = val; From 84af536e49ced8ce347fb1a911f74498aa712a1e Mon Sep 17 00:00:00 2001 From: Jonah Lawrence Date: Mon, 30 Jan 2023 12:51:14 -0700 Subject: [PATCH 30/30] Chore: bump version to 0.27.0 --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index bf460e42..416268a5 100644 --- a/composer.json +++ b/composer.json @@ -10,7 +10,7 @@ "stats" ], "license": "MIT", - "version": "0.26.0", + "version": "0.27.0", "homepage": "https://github.com/DenverCoder1/github-readme-streak-stats", "autoload": { "classmap": [ pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy