From ba7d6978a1396dd1e2513cea10c602cb9d89a58d Mon Sep 17 00:00:00 2001 From: devxb Date: Thu, 18 Apr 2024 20:38:53 +0900 Subject: [PATCH 1/4] =?UTF-8?q?docs:=20=EC=98=81=EC=96=B4=EB=AC=B8?= =?UTF-8?q?=EC=84=9C=EB=A5=BC=20=EC=B6=94=EA=B0=80=ED=95=9C=EB=8B=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ENGLISH.md | 161 +++++++++++++++++++++++++++++++++++++++++++++++++++++ README.md | 105 +++++++++++++++++----------------- 2 files changed, 216 insertions(+), 50 deletions(-) create mode 100644 ENGLISH.md diff --git a/ENGLISH.md b/ENGLISH.md new file mode 100644 index 0000000..72bd46d --- /dev/null +++ b/ENGLISH.md @@ -0,0 +1,161 @@ +
+ 한국어로 번역하기고 +
+
+ + + +## + +
+ + + + +⭐️ Please press the star! It greatly helps development! ⭐️
+

Press star

+
+ +
+

Grow your pets through GitHub activities!

+

You can acquire and grow pets through GitHub activities. +
When you commit 30 times, you can adopt an additional pet. +
Each contribution increases a random pet's level by 1. +
You can trade the pets with others. +
+
+Choose from over 40 different pets and raise them. +

+
+ + docs/sample.svg + +
+ +## Getting Start + +You can easily apply by copying the following link to your GitHub Readme. + +> [!IMPORTANT] +> Please replace {username} with your GitHub nickname (ex. devxb). +> {username} must be your GitHub username. + +### Line Mode + +Line mode allows you to specify one of your pets to move within the specified width and height range. +When using line mode, if you request the image in markdown, you cannot set width and height, so please use HTML format instead. + +> [!TIP] +> **Adjust the width and height of the Img to adjust the pet's movement area.** +> If you make the width long and the height short (width = 1000, height = 60), the pet will move horizontally for a long distance. +> Conversely, if you make the width short and the height long (width = 60, height = 1000), the pet will move vertically for a long distance. +> If the pet is not visible, please make the height of the img larger than the vertical length of the pet. + + + + + +```html + + + +``` + +If you don't enter any value for pet-id, the first pet will be responsed. + +You can check the available pet-ids in https://render.gitanimals.org/users/{username} to your GitHub username and requesting the API. +Enter the value corresponding to $.personas.[].id in the API response into pet-id. + +In line mode, the total number of contributions is displayed above the pet's level. If you don't want this, include contribution-view=false as a query parameter in your request. + +### Farm Mode + +Farm mode shows all your animals and additional information. + + + + + +```html + + + +``` + +## Tips + +### How to Acquire Pets + +Pets can be acquired in two ways: + +1. **Contributions 30 times** + When you accumulate 30 commits, a new pet will appear. At this point, all pets have different probabilities of appearing. + The maximum number of pets you can have is 30. If you have more than 30 pets, they will go into your inventory, and you can swap them with the pets displayed at any time. <- Under development +2. **Purchase Pets <- Under development** +You can buy pets sold by other users with commit points. +A certain amount of points will be given per commit. Alternatively, you can sell your own pets to earn commit points. + +### Total Contributions +Total contributions represent the sum of contributions accumulated after joining GitHub. +_New contributions may take up to 1 hour to be reflected._ + +### Available Pets + + +| name | ratio | Description | +|------------------------------------------------------------------------|-------|------------------------------------------------------------------------------------------------------------------------------------| +| goose | 1.0 | | +| goose_sunglasses | 0.05 | | +| | | | +| goose_kotlin | 0.01 | | +| goose_java | 0.01 | | +| goose_js | 0.01 | | +| goose_node | 0.01 | | +| goose_swift | 0.01 | | +| goose_linux | 0.01 | | +| goose_spring | 0.01 | | +| little_chick | 0.9 | | +| little_chick_suglasses | 0.4 | | +| little_chick_kotlin | 0.01 | | +| little_chick_java | 0.01 | | +| little_chick_js | 0.01 | | +| little_chick_node | 0.01 | | +| little_chick_swift | 0.01 | | +| little_chick_linux | 0.01 | | +| little_chick_spring | 0.01 | | +| penguin | 0.5 | | +| penguin_sunglasses | 0.2 | | +| penguin_kotlin | 0.01 | | +| penguin_java | 0.01 | | +| penguin_js | 0.01 | | +| penguin_node | 0.01 | | +| penguin_swift | 0.01 | | +| penguin_linux | 0.01 | | +| penguin_spring | 0.01 | | +| pig | 0.2 | | +| pig_sunglasses | 0.08 | | +| pig_kotlin | 0.01 | | +| pig_java | 0.01 | | +| pig_js | 0.01 | | +| pig_node | 0.01 | | +| pig_swift | 0.01 | | +| pig_linux | 0.01 | | +| pig_spring | 0.01 | | +| slime_red | 0.1 | | +| slime_red_kotlin | 0.001 | | +| slime_red_java | 0.001 | | +| slime_red_js | 0.001 | | +| slime_red_node | 0.001 | | +| slime_red_swift | 0.001 | | +| slime_red_linux | 0.001 | | +| slime_green | 0.1 | | +| slime_blue | 0.1 | | +| flamingo
| 0.08 | | +| TEN_MM
| 0.00 | Character created by `10MM` donations
Only buy in shop
10MM | + +## + +
+

If you have any ideas or discover a bug, please report it. +Contact : develxb@gmail.com

+ diff --git a/README.md b/README.md index 7d0d312..0d1806c 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,8 @@ +
+ Translate to english +
+
+ ## @@ -102,56 +107,56 @@ _새로운 contribtuion은 반영은 최대 1시간이 소요될 수 있어요. ### 등장 가능한 펫들 -| name | ratio | Description | -|------------------------------------------------------------------------|-------|--------------------------------------------------------------------------------------------------------------------------------------| -| goose | 1.0 | | -| goose_sunglasses | 0.05 | | -| | | | -| goose_kotlin | 0.01 | | -| goose_java | 0.01 | | -| goose_js | 0.01 | | -| goose_node | 0.01 | | -| goose_swift | 0.01 | | -| goose_linux | 0.01 | | -| goose_spring | 0.01 | | -| little_chick | 0.9 | | -| little_chick_suglasses | 0.4 | | -| little_chick_kotlin | 0.01 | | -| little_chick_java | 0.01 | | -| little_chick_js | 0.01 | | -| little_chick_node | 0.01 | | -| little_chick_swift | 0.01 | | -| little_chick_linux | 0.01 | | -| little_chick_spring | 0.01 | | -| penguin | 0.5 | | -| penguin_sunglasses | 0.2 | | -| penguin_kotlin | 0.01 | | -| penguin_java | 0.01 | | -| penguin_js | 0.01 | | -| penguin_node | 0.01 | | -| penguin_swift | 0.01 | | -| penguin_linux | 0.01 | | -| penguin_spring | 0.01 | | -| pig | 0.2 | | -| pig_sunglasses | 0.08 | | -| pig_kotlin | 0.01 | | -| pig_java | 0.01 | | -| pig_js | 0.01 | | -| pig_node | 0.01 | | -| pig_swift | 0.01 | | -| pig_linux | 0.01 | | -| pig_spring | 0.01 | | -| slime_red | 0.1 | | -| slime_red_kotlin | 0.001 | | -| slime_red_java | 0.001 | | -| slime_red_js | 0.001 | | -| slime_red_node | 0.001 | | -| slime_red_swift | 0.001 | | -| slime_red_linux | 0.001 | | -| slime_green | 0.1 | | -| slime_blue | 0.1 | | -| flamingo
| 0.08 | | -| TEN_MM
| 0.00 | Character created with `10MM` donations
Only buy in shop
10MM | +| name | ratio | Description | +|------------------------------------------------------------------------|-------|------------------------------------------------------------------------------------------------------------------------------------| +| goose | 1.0 | | +| goose_sunglasses | 0.05 | | +| | | | +| goose_kotlin | 0.01 | | +| goose_java | 0.01 | | +| goose_js | 0.01 | | +| goose_node | 0.01 | | +| goose_swift | 0.01 | | +| goose_linux | 0.01 | | +| goose_spring | 0.01 | | +| little_chick | 0.9 | | +| little_chick_suglasses | 0.4 | | +| little_chick_kotlin | 0.01 | | +| little_chick_java | 0.01 | | +| little_chick_js | 0.01 | | +| little_chick_node | 0.01 | | +| little_chick_swift | 0.01 | | +| little_chick_linux | 0.01 | | +| little_chick_spring | 0.01 | | +| penguin | 0.5 | | +| penguin_sunglasses | 0.2 | | +| penguin_kotlin | 0.01 | | +| penguin_java | 0.01 | | +| penguin_js | 0.01 | | +| penguin_node | 0.01 | | +| penguin_swift | 0.01 | | +| penguin_linux | 0.01 | | +| penguin_spring | 0.01 | | +| pig | 0.2 | | +| pig_sunglasses | 0.08 | | +| pig_kotlin | 0.01 | | +| pig_java | 0.01 | | +| pig_js | 0.01 | | +| pig_node | 0.01 | | +| pig_swift | 0.01 | | +| pig_linux | 0.01 | | +| pig_spring | 0.01 | | +| slime_red | 0.1 | | +| slime_red_kotlin | 0.001 | | +| slime_red_java | 0.001 | | +| slime_red_js | 0.001 | | +| slime_red_node | 0.001 | | +| slime_red_swift | 0.001 | | +| slime_red_linux | 0.001 | | +| slime_green | 0.1 | | +| slime_blue | 0.1 | | +| flamingo
| 0.08 | | +| TEN_MM
| 0.00 | Character created by `10MM` donations
Only buy in shop
10MM | ## From 2999ca6351f221e58f99f2376cb366132060885e Mon Sep 17 00:00:00 2001 From: devxb Date: Thu, 18 Apr 2024 20:40:50 +0900 Subject: [PATCH 2/4] =?UTF-8?q?docs:=20linemode=EC=9D=98=20=EC=98=88?= =?UTF-8?q?=EC=8B=9C=20height=EB=A5=BC=20120=EC=9C=BC=EB=A1=9C=20=EB=B3=80?= =?UTF-8?q?=EA=B2=BD=ED=95=9C=EB=8B=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ENGLISH.md | 4 ++-- README.md | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ENGLISH.md b/ENGLISH.md index 72bd46d..d219cb8 100644 --- a/ENGLISH.md +++ b/ENGLISH.md @@ -52,12 +52,12 @@ When using line mode, if you request the image in markdown, you cannot set width > If the pet is not visible, please make the height of the img larger than the vertical length of the pet. - + ```html - + ``` diff --git a/README.md b/README.md index 0d1806c..10f844c 100644 --- a/README.md +++ b/README.md @@ -54,12 +54,12 @@ line mode를 사용할때, markdown 방식으로 이미지를 요청하면, widt - + ```html - + ``` From 7127b8078ea404700af6570aba46fe429eaa1181 Mon Sep 17 00:00:00 2001 From: devxb Date: Fri, 19 Apr 2024 12:59:45 +0900 Subject: [PATCH 3/4] =?UTF-8?q?refactor:=20farms=20=EB=AA=A8=EB=93=9C?= =?UTF-8?q?=EC=97=90=20powered=20by=20...=20=EB=A5=BC=20=EC=82=AD=EC=A0=9C?= =?UTF-8?q?=ED=95=9C=EB=8B=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../kotlin/org/gitanimals/render/domain/FieldType.kt | 4 ++-- src/main/resources/persona/field/snowy-field.svg | 10 ++++------ src/main/resources/persona/field/white-field.svg | 10 ++++------ 3 files changed, 10 insertions(+), 14 deletions(-) diff --git a/src/main/kotlin/org/gitanimals/render/domain/FieldType.kt b/src/main/kotlin/org/gitanimals/render/domain/FieldType.kt index 5331d42..9962b5f 100644 --- a/src/main/kotlin/org/gitanimals/render/domain/FieldType.kt +++ b/src/main/kotlin/org/gitanimals/render/domain/FieldType.kt @@ -5,7 +5,7 @@ enum class FieldType { WHITE_FIELD { override fun loadComponent(name: String, commit: Long): String { return whiteFieldSvg.replace(NAME_FIX, name.uppercase().toSvg(0.0, 3.0)) - .replace(COMMIT_FIX, commit.toSvg("commit", 85.0, 4.0)) + .replace(COMMIT_FIX, commit.toSvg("commit", 260.0, 4.0)) } override fun fillBackground(): String = @@ -17,7 +17,7 @@ enum class FieldType { SNOWY_FIELD { override fun loadComponent(name: String, commit: Long): String { return snowyFieldSvg.replace(NAME_FIX, name.uppercase().toSvg(0.0, 3.0)) - .replace(COMMIT_FIX, commit.toSvg("commit", 85.0, 4.0)) + .replace(COMMIT_FIX, commit.toSvg("commit", 260.0, 4.0)) } override fun fillBackground(): String { diff --git a/src/main/resources/persona/field/snowy-field.svg b/src/main/resources/persona/field/snowy-field.svg index 2e510ff..4cf5285 100644 --- a/src/main/resources/persona/field/snowy-field.svg +++ b/src/main/resources/persona/field/snowy-field.svg @@ -2,11 +2,9 @@ *{username} - - -*{commit-count} + + + + *{commit-count} - - - diff --git a/src/main/resources/persona/field/white-field.svg b/src/main/resources/persona/field/white-field.svg index 2e510ff..4cf5285 100644 --- a/src/main/resources/persona/field/white-field.svg +++ b/src/main/resources/persona/field/white-field.svg @@ -2,11 +2,9 @@ *{username} - - -*{commit-count} + + + + *{commit-count} - - - From 55d60beb6ca927f53993327722a9275cf142864d Mon Sep 17 00:00:00 2001 From: devxb Date: Fri, 19 Apr 2024 13:11:51 +0900 Subject: [PATCH 4/4] =?UTF-8?q?fix:=20=EC=9C=A0=EC=A0=80=EC=9D=98=20?= =?UTF-8?q?=EC=9D=B4=EB=A6=84=EC=97=90=20=EC=86=8C=EB=AC=B8=EC=9E=90?= =?UTF-8?q?=EB=A5=BC=20=ED=8F=AC=ED=95=A8=ED=95=9C=EB=8B=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/kotlin/org/gitanimals/render/domain/FieldType.kt | 4 ++-- src/main/resources/persona/text/large/_a.svg | 4 ++-- src/main/resources/persona/text/large/_c.svg | 4 ++-- src/main/resources/persona/text/large/_e.svg | 4 ++-- src/main/resources/persona/text/large/_g.svg | 4 ++-- src/main/resources/persona/text/large/_m.svg | 4 ++-- src/main/resources/persona/text/large/_n.svg | 4 ++-- src/main/resources/persona/text/large/_o.svg | 4 ++-- src/main/resources/persona/text/large/_p.svg | 4 ++-- src/main/resources/persona/text/large/_q.svg | 4 ++-- src/main/resources/persona/text/large/_r.svg | 4 ++-- src/main/resources/persona/text/large/_s.svg | 4 ++-- src/main/resources/persona/text/large/_u.svg | 4 ++-- src/main/resources/persona/text/large/_v.svg | 4 ++-- src/main/resources/persona/text/large/_w.svg | 4 ++-- src/main/resources/persona/text/large/_x.svg | 4 ++-- src/main/resources/persona/text/large/_y.svg | 4 ++-- src/main/resources/persona/text/large/_z.svg | 4 ++-- 18 files changed, 36 insertions(+), 36 deletions(-) diff --git a/src/main/kotlin/org/gitanimals/render/domain/FieldType.kt b/src/main/kotlin/org/gitanimals/render/domain/FieldType.kt index 9962b5f..34ea133 100644 --- a/src/main/kotlin/org/gitanimals/render/domain/FieldType.kt +++ b/src/main/kotlin/org/gitanimals/render/domain/FieldType.kt @@ -4,7 +4,7 @@ enum class FieldType { WHITE_FIELD { override fun loadComponent(name: String, commit: Long): String { - return whiteFieldSvg.replace(NAME_FIX, name.uppercase().toSvg(0.0, 3.0)) + return whiteFieldSvg.replace(NAME_FIX, name.toSvg(0.0, 3.0)) .replace(COMMIT_FIX, commit.toSvg("commit", 260.0, 4.0)) } @@ -16,7 +16,7 @@ enum class FieldType { }, SNOWY_FIELD { override fun loadComponent(name: String, commit: Long): String { - return snowyFieldSvg.replace(NAME_FIX, name.uppercase().toSvg(0.0, 3.0)) + return snowyFieldSvg.replace(NAME_FIX, name.toSvg(0.0, 3.0)) .replace(COMMIT_FIX, commit.toSvg("commit", 260.0, 4.0)) } diff --git a/src/main/resources/persona/text/large/_a.svg b/src/main/resources/persona/text/large/_a.svg index 25e7bf1..f986e4f 100644 --- a/src/main/resources/persona/text/large/_a.svg +++ b/src/main/resources/persona/text/large/_a.svg @@ -1,3 +1,3 @@ - + - + diff --git a/src/main/resources/persona/text/large/_c.svg b/src/main/resources/persona/text/large/_c.svg index b5b2d14..091e336 100644 --- a/src/main/resources/persona/text/large/_c.svg +++ b/src/main/resources/persona/text/large/_c.svg @@ -1,3 +1,3 @@ - + - + diff --git a/src/main/resources/persona/text/large/_e.svg b/src/main/resources/persona/text/large/_e.svg index db9857e..ecc3f95 100644 --- a/src/main/resources/persona/text/large/_e.svg +++ b/src/main/resources/persona/text/large/_e.svg @@ -1,3 +1,3 @@ - + - + diff --git a/src/main/resources/persona/text/large/_g.svg b/src/main/resources/persona/text/large/_g.svg index ba4fd41..1340cbe 100644 --- a/src/main/resources/persona/text/large/_g.svg +++ b/src/main/resources/persona/text/large/_g.svg @@ -1,3 +1,3 @@ - + - + diff --git a/src/main/resources/persona/text/large/_m.svg b/src/main/resources/persona/text/large/_m.svg index 76d9299..aa44377 100644 --- a/src/main/resources/persona/text/large/_m.svg +++ b/src/main/resources/persona/text/large/_m.svg @@ -1,3 +1,3 @@ - + - + diff --git a/src/main/resources/persona/text/large/_n.svg b/src/main/resources/persona/text/large/_n.svg index 0a97cc9..8ba5822 100644 --- a/src/main/resources/persona/text/large/_n.svg +++ b/src/main/resources/persona/text/large/_n.svg @@ -1,3 +1,3 @@ - + - + diff --git a/src/main/resources/persona/text/large/_o.svg b/src/main/resources/persona/text/large/_o.svg index 7137daf..c280a1c 100644 --- a/src/main/resources/persona/text/large/_o.svg +++ b/src/main/resources/persona/text/large/_o.svg @@ -1,3 +1,3 @@ - + - + diff --git a/src/main/resources/persona/text/large/_p.svg b/src/main/resources/persona/text/large/_p.svg index 32fbbd1..d0264cd 100644 --- a/src/main/resources/persona/text/large/_p.svg +++ b/src/main/resources/persona/text/large/_p.svg @@ -1,3 +1,3 @@ - + - + diff --git a/src/main/resources/persona/text/large/_q.svg b/src/main/resources/persona/text/large/_q.svg index 0244334..1b2a381 100644 --- a/src/main/resources/persona/text/large/_q.svg +++ b/src/main/resources/persona/text/large/_q.svg @@ -1,3 +1,3 @@ - + - + diff --git a/src/main/resources/persona/text/large/_r.svg b/src/main/resources/persona/text/large/_r.svg index cfd7922..037934e 100644 --- a/src/main/resources/persona/text/large/_r.svg +++ b/src/main/resources/persona/text/large/_r.svg @@ -1,3 +1,3 @@ - + - + diff --git a/src/main/resources/persona/text/large/_s.svg b/src/main/resources/persona/text/large/_s.svg index 9a87de8..79d0bdf 100644 --- a/src/main/resources/persona/text/large/_s.svg +++ b/src/main/resources/persona/text/large/_s.svg @@ -1,3 +1,3 @@ - + - + diff --git a/src/main/resources/persona/text/large/_u.svg b/src/main/resources/persona/text/large/_u.svg index 54d2991..041968d 100644 --- a/src/main/resources/persona/text/large/_u.svg +++ b/src/main/resources/persona/text/large/_u.svg @@ -1,3 +1,3 @@ - + - + diff --git a/src/main/resources/persona/text/large/_v.svg b/src/main/resources/persona/text/large/_v.svg index 0a76a84..89095c3 100644 --- a/src/main/resources/persona/text/large/_v.svg +++ b/src/main/resources/persona/text/large/_v.svg @@ -1,3 +1,3 @@ - + - + diff --git a/src/main/resources/persona/text/large/_w.svg b/src/main/resources/persona/text/large/_w.svg index 66be62e..52b9a2a 100644 --- a/src/main/resources/persona/text/large/_w.svg +++ b/src/main/resources/persona/text/large/_w.svg @@ -1,3 +1,3 @@ - + - + diff --git a/src/main/resources/persona/text/large/_x.svg b/src/main/resources/persona/text/large/_x.svg index bb669d5..1e85f66 100644 --- a/src/main/resources/persona/text/large/_x.svg +++ b/src/main/resources/persona/text/large/_x.svg @@ -1,3 +1,3 @@ - + - + diff --git a/src/main/resources/persona/text/large/_y.svg b/src/main/resources/persona/text/large/_y.svg index fcabaaf..5e0b0de 100644 --- a/src/main/resources/persona/text/large/_y.svg +++ b/src/main/resources/persona/text/large/_y.svg @@ -1,3 +1,3 @@ - + - + diff --git a/src/main/resources/persona/text/large/_z.svg b/src/main/resources/persona/text/large/_z.svg index ac607d9..7833aef 100644 --- a/src/main/resources/persona/text/large/_z.svg +++ b/src/main/resources/persona/text/large/_z.svg @@ -1,3 +1,3 @@ - + - +