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"> 1010
1111
1212
+
1313
1414
1515
1616
@@ -49,6 +50,7 @@
3838
3939
4040
+
4141
diff --git a/frontend/src/locales/en.json b/frontend/src/locales/en.json index 93e73aa..4d2de8c 100644 --- a/frontend/src/locales/en.json +++ b/frontend/src/locales/en.json @@ -14,7 +14,7 @@ "required": "required", "top_text": "Top Text", "animal_code": "Animal Code", - "animal_code_placeholder": "0-40 (listed below, defaults to random)", + "animal_code_placeholder": "0-41 (listed below, defaults to random)", "color_code": "Color Code", "color_code_placeholder": "0-16 (listed below, defaults to random)", "submit_word": "Generate O'RLY", diff --git a/frontend/src/locales/kr.json b/frontend/src/locales/kr.json index d113f61..d04ecbd 100644 --- a/frontend/src/locales/kr.json +++ b/frontend/src/locales/kr.json @@ -14,7 +14,7 @@ "required": "필수", "top_text": "상단 텍스트", "animal_code": "동물 코드", - "animal_code_placeholder": "0-40 (목록은 하단에 있으며, 기본은 랜덤으로 설정)", + "animal_code_placeholder": "0-41 (목록은 하단에 있으며, 기본은 랜덤으로 설정)", "color_code": "색상 코드", "color_code_placeholder": "0-16 (목록은 하단에 있으며, 기본은 랜덤으로 설정)", "submit_word": "O'RLY 변환", diff --git a/frontend/src/locales/tr.json b/frontend/src/locales/tr.json index ff8abda..4ec270a 100644 --- a/frontend/src/locales/tr.json +++ b/frontend/src/locales/tr.json @@ -14,7 +14,7 @@ "required": "zorunlu", "top_text": "Üst Yazı", "animal_code": "Hayvan Kodu", - "animal_code_placeholder": "0-40 (Kodlar aşağıda listelenmiştir, varsayılan rastgele)", + "animal_code_placeholder": "0-41 (Kodlar aşağıda listelenmiştir, varsayılan rastgele)", "color_code": "Renk Kodu", "color_code_placeholder": "0-16 (Kodlar aşağıda listelenmiştir, varsayılan rastgele)", "submit_word": "O'RLY Üret", diff --git a/frontend/src/locales/zh.json b/frontend/src/locales/zh.json index 8f7cb4d..a52ec19 100644 --- a/frontend/src/locales/zh.json +++ b/frontend/src/locales/zh.json @@ -14,7 +14,7 @@ "required": "必填", "top_text": "顶部文字", "animal_code": "图片序号", - "animal_code_placeholder": "0-40(见下方图片列表,留空则随机)", + "animal_code_placeholder": "0-41(见下方图片列表,留空则随机)", "color_code": "颜色列表", "color_code_placeholder": "0-16(见下方颜色列表,留空则随机)", "submit_word": "生成封面",