diff --git a/README.md b/README.md index abe7694..47dee7d 100644 --- a/README.md +++ b/README.md @@ -29,7 +29,7 @@ Example config: ```toml CoverImageDir = "cover-images" Debug = false -MaxImageID = 40 +MaxImageID = 41 Port = ":3000" TitleFont = "fonts/SourceHanSerif-Bold.ttc" NormalFont = "fonts/SourceHanSans-Medium.ttc" @@ -83,8 +83,9 @@ Or simply... Many thanks :hugs: to following contributors: -* [TahsinGokalp](https://github.com/TahsinGokalp) (Turkish Translation) -* [wooogi123](https://github.com/wooogi123) (Korean Translation) +* [TahsinGokalp](https://github.com/TahsinGokalp) (Turkish translation) +* [wooogi123](https://github.com/wooogi123) (Korean translation) +* [cauldnz](https://github.com/cauldnz) (Adding new animal) # Projects in Brotherhood diff --git a/README_ZH.md b/README_ZH.md index 42acd4b..71925d1 100644 --- a/README_ZH.md +++ b/README_ZH.md @@ -30,7 +30,7 @@ docker pull registry.cn-hongkong.aliyuncs.com/nanmu42/orly:[tag] ```toml CoverImageDir = "cover-images" Debug = false -MaxImageID = 40 +MaxImageID = 41 Port = ":3000" TitleFont = "fonts/SourceHanSerif-Bold.ttc" NormalFont = "fonts/SourceHanSans-Medium.ttc" @@ -85,6 +85,7 @@ O'RLY 是一个简易的API服务和静态前端的组合: * [TahsinGokalp](https://github.com/TahsinGokalp) (土耳其语翻译) * [wooogi123](https://github.com/wooogi123) (韩语翻译) +* [cauldnz](https://github.com/cauldnz) (新增动物) # 兄弟项目 diff --git a/cmd/rly/README.md b/cmd/rly/README.md index d548895..03de255 100644 --- a/cmd/rly/README.md +++ b/cmd/rly/README.md @@ -21,7 +21,7 @@ cp config_example.toml config.toml ```toml CoverImageDir = "cover-images" Debug = false -MaxImageID = 40 +MaxImageID = 41 Port = ":3000" TitleFont = "fonts/SourceHanSerif-Bold.ttc" NormalFont = "fonts/SourceHanSans-Medium.ttc" diff --git a/coverimage/frontendcodegen.go b/coverimage/frontendcodegen.go index a44b7a8..6736de0 100644 --- a/coverimage/frontendcodegen.go +++ b/coverimage/frontendcodegen.go @@ -16,7 +16,7 @@ import ( "strings" ) -const max = 40 +const max = 41 func main() { var err error diff --git a/frontend/src/App.vue b/frontend/src/App.vue index b376094..56ce421 100644 --- a/frontend/src/App.vue +++ b/frontend/src/App.vue @@ -78,10 +78,10 @@ } else { color = this.colors[Math.floor(Math.random() * (this.colors.length - 1))].substring(1) } - if (input.animalCode !== "" && input.animalCode >= 0 && input.animalCode <= 40) { + if (input.animalCode !== "" && input.animalCode >= 0 && input.animalCode <= 41) { coverID = input.animalCode } else { - coverID = Math.floor(Math.random() * 40) + coverID = Math.floor(Math.random() * 41) } // escape user's input diff --git a/frontend/src/assets/thumbnails/41.tif.gif b/frontend/src/assets/thumbnails/41.tif.gif new file mode 100644 index 0000000..46f12a9 Binary files /dev/null and b/frontend/src/assets/thumbnails/41.tif.gif differ diff --git a/frontend/src/components/Inputer.vue b/frontend/src/components/Inputer.vue index a669623..adc5a79 100644 --- a/frontend/src/components/Inputer.vue +++ b/frontend/src/components/Inputer.vue @@ -31,7 +31,7 @@ + v-model.number="input.animalCode" min="0" max="41"> 10