Skip to content

Commit

Permalink
Merge pull request #53 from nanmu42/nanmu
Browse files Browse the repository at this point in the history
Add example to README and simplify logs
  • Loading branch information
nanmu42 authored Dec 24, 2021
2 parents 2a442da + 1c17eeb commit 87b3061
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 23 deletions.
19 changes: 12 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,18 @@

# O'RLY Cover Generator

O'RLY Cover Generator is a parody book cover generator,
implemented in Golang and Vue.js,
supporting a wide range of language including CJK.
O'RLY Cover Generator is a parody book cover generator, implemented in Golang and Vue.js, supporting a wide range of language including CJK.

O'RLY is living at https://orly.nanmu.me/
[Go to the living demo](https://orly.nanmu.me/) to build your own O'RLY cover and troll your friends and colleagues.

Docker images can be found at https://hub.docker.com/r/nanmu42/orly
<table style="padding:10px">
<tr>
<td align="center"><img src="https://user-images.githubusercontent.com/8143068/147319861-edaab37d-6e87-4bf3-84c4-034a7a8c9673.jpeg" alt="ORLY: Git Branch Rescue Guide" width=90%></td>
<td align="center"><img src="https://user-images.githubusercontent.com/8143068/147319866-e6429227-a953-45b3-9984-ef85de0f4a94.jpeg" alt="ORLY: Float64 Math" width=90%></td>
</tr>
</table>

Docker images can be found [here](https://hub.docker.com/r/nanmu42/orly).

# Docker Image

Expand Down Expand Up @@ -48,7 +53,7 @@ O'RLY can be built in following commands:
```bash
mkdir -p assets
cd assets
wget -nc https://github.com/nanmu42/orly/releases/download/1.1.0-beta/cover-images.tar.xz
wget -nc https://github.com/nanmu42/orly/releases/download/1.5.0-beta/cover-images.tar.xz
wget -nc https://github.com/nanmu42/orly/releases/download/1.1.0-beta/fonts.tar.xz
cd ..
make all
Expand Down Expand Up @@ -112,6 +117,6 @@ The author would like to thank [JetBrains](https://www.jetbrains.com/?from=ORLY-

# License

Use of this work is governed by a MIT License.
Use of this work is governed by the MIT License.

You may find a license copy in project root.
14 changes: 9 additions & 5 deletions README_ZH.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,16 @@

# O'RLY 封面工厂

O'RLY 封面工厂是一个娱乐性的书籍封面生成器,
支持输入多种语言。
O'RLY 封面工厂是一个娱乐性的书籍封面生成器,支持输入多种语言。 O'RLY 基于Golang和Vue.js实现。

O'RLY 基于Golang和Vue.js实现
你可以[点击这里](https://orly.nanmu.me/)创建你自己的O'RLY 封面,惊呆你的朋友和同事

你可以[点击这里](https://orly.nanmu.me/)访问O'RLY 封面工厂。
<table style="padding:10px">
<tr>
<td align="center"><img src="https://user-images.githubusercontent.com/8143068/47200455-d2d5e600-d3a8-11e8-8310-9125043b213a.jpeg" alt="ORLY: MySQL从入门到删数据库跑路" width=90%></td>
<td align="center"><img src="https://user-images.githubusercontent.com/8143068/47200457-d2d5e600-d3a8-11e8-871b-2642a65565c4.jpeg" alt="ORLY: 脚本部署要义——不要多打空格" width=90%></td>
</tr>
</table>

Docker镜像信息可以在[此处](https://hub.docker.com/r/nanmu42/orly)获取。

Expand Down Expand Up @@ -49,7 +53,7 @@ Width = 1000
```bash
mkdir -p assets
cd assets
wget -nc https://github.com/nanmu42/orly/releases/download/1.1.0-beta/cover-images.tar.xz
wget -nc https://github.com/nanmu42/orly/releases/download/1.5.0-beta/cover-images.tar.xz
wget -nc https://github.com/nanmu42/orly/releases/download/1.1.0-beta/fonts.tar.xz
cd ..
make all
Expand Down
11 changes: 0 additions & 11 deletions cmd/rly/router.go
Original file line number Diff line number Diff line change
Expand Up @@ -184,16 +184,5 @@ func RequestLogger(l *zap.Logger) gin.HandlerFunc {
return
}
}
l.Info("APIAuditLog",
zap.Uint64("seq", sequence),
zap.String("method", c.Request.Method),
zap.Int("status", c.Writer.Status()),
zap.String("URL", c.Request.RequestURI),
zap.String("IP", c.ClientIP()),
zap.String("UA", c.Request.UserAgent()),
zap.String("ref", c.Request.Referer()),
zap.Duration("lapse", time.Since(receivedAt)),
zap.Strings("err", c.Errors.Errors()),
)
}
}

0 comments on commit 87b3061

Please sign in to comment.