Skip to content

Commit

Permalink
release: 0.1.6 (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
devxb authored Apr 14, 2024
2 parents 95ea68c + dbf89f1 commit e24745f
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 28 deletions.
45 changes: 19 additions & 26 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,49 +29,27 @@

## ๋น ๋ฅด๊ฒŒ ์‚ฌ์šฉํ•˜๊ธฐ

์•„๋ž˜์˜ MARKDOWN ํ˜น์€ HTML ์ค‘ ํ•˜๋‚˜๋ฅผ ๊นƒํ—ˆ๋ธŒ Readme ์— ๋ถ™์—ฌ๋„ฃ๊ธฐ ํ•˜๋Š”๊ฒƒ์œผ๋กœ ์‰ฝ๊ฒŒ ์ ์šฉํ•  ์ˆ˜ ์žˆ์–ด์š”.
์•„๋ž˜์˜ ๋งํฌ๋ฅผ ๊นƒํ—ˆ๋ธŒ Readme ์— ๋ถ™์—ฌ๋„ฃ๊ธฐ ํ•˜๋Š”๊ฒƒ์œผ๋กœ ์‰ฝ๊ฒŒ ์ ์šฉํ•  ์ˆ˜ ์žˆ์–ด์š”.

> [!IMPORTANT]
> {username} ์€ ์ž์‹ ์˜ ๊นƒํ—ˆ๋ธŒ ๋‹‰๋„ค์ž„ (ex. devxb) ์œผ๋กœ ๋ณ€๊ฒฝํ•ด์ฃผ์„ธ์š”.
> ์ด๋•Œ, {username} ์€ ๋ฐ˜๋“œ์‹œ ์ž์‹ ์˜ ๊นƒํ—ˆ๋ธŒ ์ด๋ฆ„์ด ๋“ค์–ด๊ฐ€์•ผ ํ•ฉ๋‹ˆ๋‹ค.
### farm mode
farm mode๋Š” ๊ฐ–๊ณ ์žˆ๋Š” ๋ชจ๋“  ๋™๋ฌผ๊ณผ ์ถ”๊ฐ€์ ์ธ ์ •๋ณด๋ฅผ ๋ณด์—ฌ์ค˜์š”.

<a href="https://github.com/devxb/gitanimals">
<img src = "https://render.gitanimals.org/farms/devxb" width="300"/>
</a>

**markdown**
```markdown
[![gitanimals](https://render.gitanimals.org/farms/{username})](https://github.com/devxb/gitanimals)
```

**html**
```html
<a href="https://github.com/devxb/gitanimals">
<img src = "https://render.gitanimals.org/farms/{username}"/>
</a>
```
### line mode

line mode๋Š” ์ž์‹ ์ด ๊ฐ–๊ณ ์žˆ๋Š” ํŽซ์ค‘ ํ•˜๋‚˜๋ฅผ ์ง€์ •ํ•ด์„œ, ์ง€์ •ํ•œ width, height๋ฒ”์œ„์—์„œ ์›€์ง์ด๊ฒŒ ํ•ด์š”.
line mode๋ฅผ ์‚ฌ์šฉํ• ๋•Œ, markdown ๋ฐฉ์‹์œผ๋กœ ์ด๋ฏธ์ง€๋ฅผ ์š”์ฒญํ•˜๋ฉด, width, height๋ฅผ ์„ค์ •ํ•  ์ˆ˜ ์—†์–ด์„œ ํŽซ์ด ๋ณด์ด์ง€ ์•Š์„ ์ˆ˜ ์žˆ์œผ๋‹ˆ, HTMl๋ฐฉ์‹์„ ์‚ฌ์šฉํ•ด์ฃผ์„ธ์š”.
_pet-id์— ์•„๋ฌด๊ฐ’๋„ ์ž…๋ ฅํ•˜์ง€ ์•Š์œผ๋ฉด, ์ฒซ๋ฒˆ์งธ ํŽซ์ด ๊ฐ€์ ธ์™€์ ธ์š”._

> [!TIP]
> **HTML์„ ๋ถ™์—ฌ๋„ฃ๊ธฐ ํ•  ๊ฒฝ์šฐ, Img์˜ width์™€ height๋ฅผ ์กฐ์ ˆํ•ด์„œ ํŽซ์˜ ์ด๋™์˜์—ญ์„ ์กฐ์ ˆํ•  ์ˆ˜ ์žˆ์–ด์š”.**
> width๋ฅผ ๊ธธ๊ฒŒ height๋ฅผ ์ž‘๊ฒŒํ•˜๋ฉด (width = 1000, height = 60) ๊ฐ€๋กœ๋กœ ๊ธธ๊ฒŒ ์›€์ง์ด๊ฒŒ ํ•  ์ˆ˜ ์žˆ์–ด์š”.
> ๋ฐ˜๋Œ€๋กœ, width๋ฅผ ์ž‘๊ฒŒ height๋ฅผ ๊ธธ๊ฒŒํ•˜๋ฉด (width = 60, height = 1000) ์„ธ๋กœ๋กœ ๊ธธ๊ฒŒ ์›€์ง์ด๊ฒŒ ํ•  ์ˆ˜ ์žˆ์–ด์š”.
> ๋ฐ˜๋Œ€๋กœ, width๋ฅผ ์ž‘๊ฒŒ height๋ฅผ ๊ธธ๊ฒŒํ•˜๋ฉด (width = 60, height = 1000) ์„ธ๋กœ๋กœ ๊ธธ๊ฒŒ ์›€์ง์ด๊ฒŒ ํ•  ์ˆ˜ ์žˆ์–ด์š”.
<a href="https://github.com/devxb/gitanimals">
<img src = "https://render.gitanimals.org/lines/devxb?pet-id=1" width="300" height="60"/>
</a>

**markdown**
```markdown
[![gitanimals](https://render.gitanimals.org/lines/{username})](https://github.com/devxb/gitanimals)
```

**html**
```html
<a href="https://github.com/devxb/gitanimals">
Expand All @@ -80,6 +58,21 @@ _pet-id์— ์•„๋ฌด๊ฐ’๋„ ์ž…๋ ฅํ•˜์ง€ ์•Š์œผ๋ฉด, ์ฒซ๋ฒˆ์งธ ํŽซ์ด ๊ฐ€์ ธ์™€์ ธ์š”
```


### farm mode
farm mode๋Š” ๊ฐ–๊ณ ์žˆ๋Š” ๋ชจ๋“  ๋™๋ฌผ๊ณผ ์ถ”๊ฐ€์ ์ธ ์ •๋ณด๋ฅผ ๋ณด์—ฌ์ค˜์š”.

<a href="https://github.com/devxb/gitanimals">
<img src = "https://render.gitanimals.org/farms/devxb" width="300"/>
</a>

**html**
```html
<a href="https://github.com/devxb/gitanimals">
<img src = "https://render.gitanimals.org/farms/{username}"/>
</a>
```


### ํŽซ์„ ๋ณ€๊ฒฝํ•˜๋Š” ๋ฐฉ๋ฒ•
ํŽซ์€ ๋‹ค์Œ url์„ ์›น์— ์š”์ฒญ ํ›„, `$.personas.[].id` ์— ํ•ด๋‹นํ•˜๋Š” ๊ฐ’์„ url์˜ pet-id param์— ์ž…๋ ฅํ•˜๋ฉด์„œ ๋ณ€๊ฒฝํ•  ์ˆ˜ ์žˆ์–ด์š”.
๋ณ€๊ฒฝ๊ฐ€๋Šฅํ•œ ํŽซ์„ ํ™•์ธํ•˜๋ ค๋ฉด, `https://render.gitanimals.org/users/{username}` ์˜ {username}์„ ์ž์‹ ์˜ ๊นƒํ—ˆ๋ธŒ ์•„์ด๋””๋กœ ๋ณ€๊ฒฝ ํ›„, ์š”์ฒญํ•ด๋ณด์„ธ์š”.
Expand Down
5 changes: 3 additions & 2 deletions src/main/kotlin/org/gitanimals/render/domain/User.kt
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,10 @@ class User(
}

private fun giveNewPersona() {
if (lastPersonaGivePoint >= FOR_NEW_PERSONA_COUNT) {
lastPersonaGivePoint %= FOR_NEW_PERSONA_COUNT.toInt()
if (lastPersonaGivePoint < FOR_NEW_PERSONA_COUNT) {
return
}
lastPersonaGivePoint %= FOR_NEW_PERSONA_COUNT.toInt()
if (personas.size >= MAX_PERSONA_COUNT) {
return
}
Expand Down

0 comments on commit e24745f

Please sign in to comment.