From 530883bc92080652bfe90c05b7679919a9c2eee2 Mon Sep 17 00:00:00 2001 From: xb205 <62425964+devxb@users.noreply.github.com> Date: Mon, 28 Oct 2024 23:03:37 +0900 Subject: [PATCH 1/5] =?UTF-8?q?docs:=20hits=20=EB=A5=BC=20=EC=83=81?= =?UTF-8?q?=EB=8B=A8=EC=9C=BC=EB=A1=9C=20=EC=98=AC=EB=A6=B0=EB=8B=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index a6f336c..42ed031 100644 --- a/README.md +++ b/README.md @@ -6,6 +6,8 @@ [English](README-en.md) | **한국어** | [简体中文](README-zhcn.md) + +
@@ -200,8 +202,5 @@ _새로운 contribution 반영은 최대 1시간이 소요될 수 있어요._

아이디어나 발견 한 버그가 있다면 제보 해주세요. Contact : develxb@gmail.com

- -
- From e9af87f479372b66b0d158d115f1e17776e79be3 Mon Sep 17 00:00:00 2001 From: xb205 <62425964+devxb@users.noreply.github.com> Date: Mon, 28 Oct 2024 23:04:20 +0900 Subject: [PATCH 2/5] =?UTF-8?q?docs:=20hits=EC=99=80=20=ED=8E=AB=EA=B0=84?= =?UTF-8?q?=EC=9D=98=20=EA=B0=84=EA=B2=A9=EC=9D=84=20=EC=A2=81=ED=9E=8C?= =?UTF-8?q?=EB=8B=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 3 --- 1 file changed, 3 deletions(-) diff --git a/README.md b/README.md index 42ed031..7509301 100644 --- a/README.md +++ b/README.md @@ -7,12 +7,9 @@ [English](README-en.md) | **한국어** | [简体中文](README-zhcn.md) - -
- From 312052a147b8c14877eb67a959471f5e33ed9a5a Mon Sep 17 00:00:00 2001 From: xb205 <62425964+devxb@users.noreply.github.com> Date: Mon, 28 Oct 2024 23:05:16 +0900 Subject: [PATCH 3/5] =?UTF-8?q?docs:=20=EC=98=81=EC=96=B4=EB=AC=B8?= =?UTF-8?q?=EC=84=9C=EC=9D=98=20hits=EB=A5=BC=20=EC=B5=9C=EC=83=81?= =?UTF-8?q?=EB=8B=A8=EC=9C=BC=EB=A1=9C=20=EC=98=AC=EB=A6=B0=EB=8B=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README-en.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/README-en.md b/README-en.md index c884e25..80dae48 100644 --- a/README-en.md +++ b/README-en.md @@ -6,9 +6,8 @@ **English** | [한국어](README.md) | [简体中文](README-zhcn.md) +
-
-
@@ -205,4 +204,4 @@ _New contributions may take up to 1 hour to be reflected._

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

-
+
From 2345b9cc36f90e90fcc52113a6009d3c293e7c97 Mon Sep 17 00:00:00 2001 From: xb205 <62425964+devxb@users.noreply.github.com> Date: Mon, 28 Oct 2024 23:06:10 +0900 Subject: [PATCH 4/5] =?UTF-8?q?docs:=20=EC=A4=91=EA=B5=AD=EC=96=B4=20?= =?UTF-8?q?=EB=AC=B8=EC=84=9C=EC=9D=98=20hits=EB=A5=BC=20=EC=B5=9C?= =?UTF-8?q?=EC=83=81=EB=8B=A8=EC=9C=BC=EB=A1=9C=20=EC=98=AC=EB=A6=B0?= =?UTF-8?q?=EB=8B=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README-zhcn.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/README-zhcn.md b/README-zhcn.md index b1b533d..430a05a 100644 --- a/README-zhcn.md +++ b/README-zhcn.md @@ -6,9 +6,8 @@ [English](README-en.md) | [한국어](README.md) | **简体中文** +
-
-
@@ -205,4 +204,4 @@ _新的贡献可能需要1个小时才能显示_

如果你发现了bug,或者有任何想法,欢迎联系我们!
联系方式: develxb@gmail.com

-
+
From 2e6fd6e181eb75271eb34a93859a47031a3ec25b Mon Sep 17 00:00:00 2001 From: devxb Date: Wed, 30 Oct 2024 20:12:09 +0900 Subject: [PATCH 5/5] =?UTF-8?q?feat:=20GRASS=5FFIELD=EC=99=80=20HALLOWEEN?= =?UTF-8?q?=5FFIELD=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 --- .../org/gitanimals/render/domain/FieldType.kt | 154 ++++++++++++++++++ .../org/gitanimals/render/domain/Svgs.kt | 6 + .../resources/persona/field/grass-field.svg | 10 ++ .../persona/field/halloween-field.svg | 10 ++ 4 files changed, 180 insertions(+) create mode 100644 src/main/resources/persona/field/grass-field.svg create mode 100644 src/main/resources/persona/field/halloween-field.svg diff --git a/src/main/kotlin/org/gitanimals/render/domain/FieldType.kt b/src/main/kotlin/org/gitanimals/render/domain/FieldType.kt index 2136b54..e58a0f2 100644 --- a/src/main/kotlin/org/gitanimals/render/domain/FieldType.kt +++ b/src/main/kotlin/org/gitanimals/render/domain/FieldType.kt @@ -151,6 +151,160 @@ enum class FieldType { return "" } }, + HALLOWEEN_FIELD { + override fun loadComponent(name: String, commit: Long): String { + return halloweenFieldSvg.replace(NAME_FIX, name.toSvg(0.0, 3.0)) + .replace(COMMIT_FIX, commit.toSvg("commit", 260.0, 4.0)) + } + + override fun fillBackground(): String { + return " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + } + + override fun drawBorder(): String { + return "" + } + }, + GRASS_FIELD { + override fun loadComponent(name: String, commit: Long): String { + return grassFieldSvg.replace(NAME_FIX, name.toSvg(0.0, 3.0)) + .replace(COMMIT_FIX, commit.toSvg("commit", 260.0, 4.0)) + } + + override fun fillBackground(): String = """ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + """.trimIndent() + + override fun drawBorder(): String { + return "" + } + } ; abstract fun loadComponent(name: String, commit: Long): String diff --git a/src/main/kotlin/org/gitanimals/render/domain/Svgs.kt b/src/main/kotlin/org/gitanimals/render/domain/Svgs.kt index 8d44e9c..cce1736 100644 --- a/src/main/kotlin/org/gitanimals/render/domain/Svgs.kt +++ b/src/main/kotlin/org/gitanimals/render/domain/Svgs.kt @@ -12,6 +12,12 @@ val snowyFieldSvg: String = ClassPathResource("persona/field/snowy-field.svg") val carrotAndCoinSvg: String = ClassPathResource("persona/field/carrot-and-coin.svg") .getContentAsString(Charset.defaultCharset()) +val halloweenFieldSvg: String = ClassPathResource("persona/field/halloween-field.svg") + .getContentAsString(Charset.defaultCharset()) + +val grassFieldSvg: String = ClassPathResource("persona/field/grass-field.svg") + .getContentAsString(Charset.defaultCharset()) + val gooseSvg: String = ClassPathResource("persona/animal/goose.svg") .getContentAsString(Charset.defaultCharset()) diff --git a/src/main/resources/persona/field/grass-field.svg b/src/main/resources/persona/field/grass-field.svg new file mode 100644 index 0000000..4cf5285 --- /dev/null +++ b/src/main/resources/persona/field/grass-field.svg @@ -0,0 +1,10 @@ + + *{username} + + + + + + *{commit-count} + + diff --git a/src/main/resources/persona/field/halloween-field.svg b/src/main/resources/persona/field/halloween-field.svg new file mode 100644 index 0000000..4cf5285 --- /dev/null +++ b/src/main/resources/persona/field/halloween-field.svg @@ -0,0 +1,10 @@ + + *{username} + + + + + + *{commit-count} + +