Skip to content

Commit

Permalink
release: 0.1.3 (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
devxb authored Apr 13, 2024
2 parents f0ad53b + 25ebf96 commit 5f4bcd5
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 12 deletions.
32 changes: 21 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,48 +36,58 @@
> μ΄λ•Œ, {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λ²”μœ„μ—μ„œ μ›€μ§μ΄κ²Œ ν•΄μš”.
펫이 Readmeμ—μ„œ 자유둭게 μ›€μ§μ΄λŠ”λͺ¨μŠ΅μ„ ν‘œν˜„ν•  수 μžˆμ–΄μš”.
pet-id에 아무값도 μž…λ ₯ν•˜μ§€ μ•ŠμœΌλ©΄, 첫번째 펫이 κ°€μ Έμ™€μ Έμš”.
_pet-id에 아무값도 μž…λ ₯ν•˜μ§€ μ•ŠμœΌλ©΄, 첫번째 펫이 κ°€μ Έμ™€μ Έμš”._
> [!TIP]
> **Img의 width와 heightλ₯Ό μ‘°μ ˆν•΄μ„œ 펫의 μ΄λ™μ˜μ—­μ„ μ‘°μ ˆν•  수 μžˆμ–΄μš”.**
> **HTML을 λΆ™μ—¬λ„£κΈ° ν•  경우, Img의 width와 heightλ₯Ό μ‘°μ ˆν•΄μ„œ 펫의 μ΄λ™μ˜μ—­μ„ μ‘°μ ˆν•  수 μžˆμ–΄μš”.**
> widthλ₯Ό 길게 heightλ₯Ό μž‘κ²Œν•˜λ©΄ (width = 1000, height = 60) κ°€λ‘œλ‘œ 길게 μ›€μ§μ΄κ²Œ ν•  수 μžˆμ–΄μš”.
> λ°˜λŒ€λ‘œ, 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/farms/{username}?mode=line)](https://github.com/devxb/gitanimals)
[![gitanimals](https://render.gitanimals.org/lines/{username})](https://github.com/devxb/gitanimals)
```

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


### νŽ«μ„ λ³€κ²½ν•˜λŠ” 방법
νŽ«μ€ λ‹€μŒ url을 웹에 μš”μ²­ ν›„, `$.personas.[].id` 에 ν•΄λ‹Ήν•˜λŠ” 값을 url의 pet-id param에 μž…λ ₯ν•˜λ©΄μ„œ λ³€κ²½ν•  수 μžˆμ–΄μš”.
μ‚¬μš© κ°€λŠ₯ν•œ νŽ«μ„ ν™•μΈν•˜λ €λ©΄, `https://render.gitanimals.org/users/{username}` 을 url에 λΆ™μ—¬λ„£μœΌμ„Έμš”.
λ³€κ²½κ°€λŠ₯ν•œ νŽ«μ„ ν™•μΈν•˜λ €λ©΄, `https://render.gitanimals.org/users/{username}` 의 {username}을 μžμ‹ μ˜ κΉƒν—ˆλΈŒ μ•„μ΄λ””λ‘œ λ³€κ²½ ν›„, μš”μ²­ν•΄λ³΄μ„Έμš”.
```html
μ˜ˆμ‹œ)

<a href="https://github.com/devxb/gitanimals">
<img src = "https://render.gitanimals.org/lines/devxb?pet-id=1" width="1000" height="60"/>
</a>
```
```

## TIPS

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package org.gitanimals.render.controller

import jakarta.servlet.http.HttpServletResponse
import org.gitanimals.render.app.AnimationFacade
import org.springframework.http.HttpHeaders
import org.springframework.web.bind.annotation.GetMapping
import org.springframework.web.bind.annotation.PathVariable
import org.springframework.web.bind.annotation.RequestParam
Expand Down Expand Up @@ -32,7 +33,9 @@ class AnimationController(
}

fun HttpServletResponse.noCache(): HttpServletResponse {
this.setHeader("Cache-Control", "no-cache, no-store, must-revalidate")
this.setHeader(HttpHeaders.CACHE_CONTROL, "no-cache, no-store, must-revalidate")
this.setHeader(HttpHeaders.PRAGMA, "no-cache")
this.setHeader(HttpHeaders.EXPIRES, "0")
return this
}
}

0 comments on commit 5f4bcd5

Please sign in to comment.