Skip to content

Commit

Permalink
add peacock
Browse files Browse the repository at this point in the history
  • Loading branch information
nanmu42 committed Jul 13, 2021
1 parent 1069f4f commit b871c7c
Show file tree
Hide file tree
Showing 12 changed files with 17 additions and 13 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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

Expand Down
3 changes: 2 additions & 1 deletion README_ZH.md
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -85,6 +85,7 @@ O'RLY 是一个简易的API服务和静态前端的组合:

* [TahsinGokalp](https://github.com/TahsinGokalp) (土耳其语翻译)
* [wooogi123](https://github.com/wooogi123) (韩语翻译)
* [cauldnz](https://github.com/cauldnz) (新增动物)

# 兄弟项目

Expand Down
2 changes: 1 addition & 1 deletion cmd/rly/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion coverimage/frontendcodegen.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import (
"strings"
)

const max = 40
const max = 41

func main() {
var err error
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Binary file added frontend/src/assets/thumbnails/41.tif.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion frontend/src/components/Inputer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@

<label for="animal_code">{{$t("animal_code")}}</label>
<input id="animal_code" name="animal_code" type="number" :placeholder="$t('animal_code_placeholder')"
v-model.number="input.animalCode" min="0" max="40">
v-model.number="input.animalCode" min="0" max="41">

<label for="color_code">{{$t("color_code")}}</label>
<input id="color_code" name="color_code" type="number" :placeholder="$t('color_code_placeholder')"
Expand Down
2 changes: 2 additions & 0 deletions frontend/src/components/thumbnails.vue
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
<div class="animal"><img src="../assets/thumbnails/10.tif.gif" alt="10"/>10</div>
<div class="animal"><img src="../assets/thumbnails/11.tif.gif" alt="11"/>11</div>
<div class="animal"><img src="../assets/thumbnails/12.tif.gif" alt="12"/>12</div>
<div class="animal"><img src="../assets/thumbnails/13.tif.gif" alt="13"/>13</div>
<div class="animal"><img src="../assets/thumbnails/14.tif.gif" alt="14"/>14</div>
<div class="animal"><img src="../assets/thumbnails/15.tif.gif" alt="15"/>15</div>
<div class="animal"><img src="../assets/thumbnails/16.tif.gif" alt="16"/>16</div>
Expand Down Expand Up @@ -49,6 +50,7 @@
<div class="animal"><img src="../assets/thumbnails/38.tif.gif" alt="38"/>38</div>
<div class="animal"><img src="../assets/thumbnails/39.tif.gif" alt="39"/>39</div>
<div class="animal"><img src="../assets/thumbnails/40.tif.gif" alt="40"/>40</div>
<div class="animal"><img src="../assets/thumbnails/41.tif.gif" alt="41"/>41</div>
</div>
</template>

Expand Down
2 changes: 1 addition & 1 deletion frontend/src/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/locales/kr.json
Original file line number Diff line number Diff line change
Expand Up @@ -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 변환",
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/locales/tr.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/locales/zh.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": "生成封面",
Expand Down

0 comments on commit b871c7c

Please sign in to comment.