From b871c7c8a2fb734df181b74146685da75d0aaae3 Mon Sep 17 00:00:00 2001 From: nanmu42 Date: Tue, 13 Jul 2021 14:43:58 +0800 Subject: [PATCH] add peacock --- README.md | 7 ++++--- README_ZH.md | 3 ++- cmd/rly/README.md | 2 +- coverimage/frontendcodegen.go | 2 +- frontend/src/App.vue | 4 ++-- frontend/src/assets/thumbnails/41.tif.gif | Bin 0 -> 5499 bytes frontend/src/components/Inputer.vue | 2 +- frontend/src/components/thumbnails.vue | 2 ++ frontend/src/locales/en.json | 2 +- frontend/src/locales/kr.json | 2 +- frontend/src/locales/tr.json | 2 +- frontend/src/locales/zh.json | 2 +- 12 files changed, 17 insertions(+), 13 deletions(-) create mode 100644 frontend/src/assets/thumbnails/41.tif.gif 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 0000000000000000000000000000000000000000..46f12a9c437a99944b2134778c5b950cfd968288 GIT binary patch literal 5499 zcmXApcT`hZ*T%16p-2h63dDdAS|A`&WGF#NfzX10pfphsK@q_&AUX-XLnxtz7C^d` zfC$n;0@9^r1_d0N8Dy}bzWHwa&bn*uz4rd+d4A_P_Z<4{X%pW&z#ZUE;QtQ_0Ehs< z0>Fww0VpDXV(|t<6hI^bL>9OKSSWx+1XwJ9&4xfA06+i$G61l7l|TS+WB|?P4ahiv zOa?O8;09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6hSpC;~5s9VaL_Y7ir)$>R+isR3Bdzv~)GjX}!i3`hLtSLJqp!AZ zF3H6~`T9n@LcHhngEd{Lr6=89KR>!vh_CExm&eIfRbET}xsy?WI6si8K9rUVn^-Me z8!wI{>=v#Wv+?+u75=jHu_Xh7r_a|jj)$ZSFT-_u(U;C!pr;M-Kb00AzA(ow;pZCb ziax&HSMm4~Cw$#P)oMlZbe@FwZ9Vw*;w8ST(X%di7G(8X3qFy-HI)(AJ;~5N?#s|g zdR2)_Crv`xi0@`f9n_Z9#rG8EbuFhv z>+d%(F|XPRo9uwSQ4;pr#>Q0v<>!!}cP@S3`RkH%pIJ3&#e`lmI!~Q;+)vk#@=L?_ z=YO43u-3||x6QOP75d5~&gX7by9+qpOFe&arm*m3R!sAq{g>Kbk{uzkMV4zh!KAY2 z+&kIvGvoZK^vP6t*Iv0^v0471;`qKt>6aIi6ehYB5XX+plDkO8lV?mt)sOPu}V| zcrPBP;Ka;5WnMTJYbh}39{S{}Pa?!nfbdNDXR7>N-`u~f@UhVjKzn=M4u?3rb?kfo zS0jN_8{)EFf~)0%tvi1`efBTWk<=CW_bcbdlj31?9of4_c5?kfi`x00pGtCs5XS;{ Vt_{{$t("animal_code")}} + 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": "生成封面",