Skip to content

Commit 0189231

Browse files
committed
Merge branch 'main' into vercel
2 parents 3c8eedd + b59d67a commit 0189231

File tree

13 files changed

+409
-446
lines changed

13 files changed

+409
-446
lines changed

.github/workflows/phpunit-ci-coverage.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ on:
77
branches:
88
- main
99

10+
env:
11+
PHP_VERSION: 8.2
12+
1013
jobs:
1114
build-test:
1215
runs-on: ubuntu-latest
@@ -15,10 +18,12 @@ jobs:
1518
- uses: php-actions/composer@v6
1619
with:
1720
php_extensions: intl
21+
php_version: ${{ env.PHP_VERSION }}
1822
- name: PHPUnit Tests
19-
uses: php-actions/phpunit@v3
23+
uses: php-actions/phpunit@v4
2024
with:
2125
php_extensions: intl
26+
php_version: ${{ env.PHP_VERSION }}
2227
bootstrap: vendor/autoload.php
2328
configuration: tests/phpunit/phpunit.xml
2429
args: --testdox

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ You can refer to the following articles on the basics of Git and GitHub in case
2020

2121
#### Requirements
2222

23-
- [PHP 8.1+](https://www.apachefriends.org/index.html)
23+
- [PHP 8.2+](https://www.apachefriends.org/index.html)
2424
- [Composer](https://getcomposer.org)
2525
- [Inkscape](https://inkscape.org) (for PNG rendering)
2626

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ If the `theme` parameter is specified, any color customizations specified will b
7373
| `exclude_days` | List of days of the week to exclude from streaks | Comma-separated list of day abbreviations (Sun, Mon, Tue, Wed, Thu, Fri, Sat) e.g. `Sun,Sat` |
7474
| `disable_animations` | Disable SVG animations (Default: `false`) | `true` or `false` |
7575
| `card_width` | Width of the card in pixels (Default: `495`) | Positive integer, minimum width is 100px per column |
76+
| `card_height` | Height of the card in pixels (Default: `195`) | Positive integer, minimum height is 170px |
7677
| `hide_total_contributions` | Hide the total contributions (Default: `false`) | `true` or `false` |
7778
| `hide_current_streak` | Hide the current streak (Default: `false`) | `true` or `false` |
7879
| `hide_longest_streak` | Hide the longest streak (Default: `false`) | `true` or `false` |

api/card.php

Lines changed: 66 additions & 26 deletions
Large diffs are not rendered by default.

api/demo/index.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,9 @@ function gtag() {
181181
<label for="card-width">Card Width</label>
182182
<input class="param" type="number" id="card-width" name="card_width" placeholder="495" value="495" step="1" min="300" />
183183

184+
<label for="card-width">Card Height</label>
185+
<input class="param" type="number" id="card-width" name="card_height" placeholder="195" value="195" step="1" min="170" />
186+
184187
<label for="type">Output Type</label>
185188
<select class="param" id="type" name="type">
186189
<option value="svg">SVG</option>
@@ -287,4 +290,4 @@ function gtag() {
287290
</a>
288291
</body>
289292

290-
</html>
293+
</html>

api/demo/js/script.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ const preview = {
1515
type: "svg",
1616
exclude_days: "",
1717
card_width: "495",
18+
card_height: "195",
1819
hide_total_contributions: "false",
1920
hide_current_streak: "false",
2021
hide_longest_streak: "false",

api/translations.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,15 @@
162162
"Present" => "Aujourd'hui",
163163
"Excluding {days}" => "À l'exclusion de {days}",
164164
],
165+
"gu" => [
166+
"Total Contributions" => "કુલ યોગદાન",
167+
"Current Streak" => "સતત દૈનિક યોગદાન",
168+
"Longest Streak" => "સૌથી લાંબુ દૈનિક યોગદાન",
169+
"Week Streak" => "અઠવાડીક યોગદાન",
170+
"Longest Week Streak" => "સૌથી લાંબુ અઠવાડીક યોગદાન",
171+
"Present" => "અત્યાર સુધી",
172+
"Excluding {days}" => "સિવાય {days}",
173+
],
165174
"he" => [
166175
"rtl" => true,
167176
"Total Contributions" => "סכום התרומות",

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"stats"
1111
],
1212
"license": "MIT",
13-
"version": "1.3.0",
13+
"version": "1.4.0",
1414
"homepage": "https://github.com/DenverCoder1/github-readme-streak-stats",
1515
"autoload": {
1616
"classmap": [
@@ -23,7 +23,7 @@
2323
"vlucas/phpdotenv": "^5.3"
2424
},
2525
"require-dev": {
26-
"phpunit/phpunit": "^9"
26+
"phpunit/phpunit": "^11"
2727
},
2828
"scripts": {
2929
"start": [

0 commit comments

Comments
 (0)