Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
syui committed May 2, 2024
1 parent e3410c9 commit 7ad12e0
Show file tree
Hide file tree
Showing 263 changed files with 573 additions and 8,369 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ jobs:
build-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 14
node-version: 16
ref: main
submodules: true
fetch-depth: 0
Expand All @@ -29,3 +29,5 @@ jobs:
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./dist
user_name: 'ai[bot]'
user_email: '138105980+yui-syui-ai[bot]@users.noreply.github.com'
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.DS_Store
node_modules
/dist

*.lock
# local env files
.env.local
.env.*.local
Expand Down
41 changes: 10 additions & 31 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,43 +1,22 @@
{
"name": "manga.syui.ai",
"version": "0.1.0",
"name": "manga",
"version": "0.0.1",
"private": true,
"scripts": {
"serve": "vue-cli-service serve",
"dev": "vue-cli-service serve",
"build": "vue-cli-service build",
"lint": "vue-cli-service lint"
},
"dependencies": {
"axios": "^1.6.8",
"core-js": "^3.6.4",
"hooper": "^0.3.4",
"vue": "^2.6.11"
"moment": "^2.30.1",
"vue": "^2.6.11",
"vue-meta": "^2.4.0",
"vue-template-compiler": "^2.6.14"
},
"devDependencies": {
"@vue/cli-plugin-babel": "~4.3.0",
"@vue/cli-plugin-eslint": "~4.3.0",
"@vue/cli-service": "~4.3.0",
"babel-eslint": "^10.1.0",
"eslint": "^6.7.2",
"eslint-plugin-vue": "^6.2.2",
"vue-template-compiler": "^2.6.11"
},
"eslintConfig": {
"root": true,
"env": {
"node": true
},
"extends": [
"plugin:vue/essential",
"eslint:recommended"
],
"parserOptions": {
"parser": "babel-eslint"
},
"rules": {}
},
"browserslist": [
"> 1%",
"last 2 versions",
"not dead"
]
"@vue/cli-service": "~4.5.15"
}
}
13 changes: 1 addition & 12 deletions public/404.html
Original file line number Diff line number Diff line change
@@ -1,12 +1 @@
<!DOCTYPE html>
<html lang="">
<head>
<title>card.syui.ai</title><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><title>card.syui.ai</title><link href="app.css" rel="preload" as="style"><link href="app.js" rel="preload" as="script"><link href="chunk-vendors.js" rel="preload" as="script"><link href="app.css" rel="stylesheet">
<meta name="twitter:card" content="summary">
<meta property="og:url" content="https://manga.syui.ai">
<meta property="og:title" content="yui">
<meta property="og:description" content="©syui.ai">
<meta property="og:image" content="https://manga.syui.ai/manga/og.png">
</head>
<body><div id="app"></div><script src="chunk-vendors.js"></script><script src="app.js"></script></body>
</html>
<!DOCTYPE html><html lang="en"><head><title>yui | manga</title><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><link href="app.css" rel="preload" as="style"><link href="app.js" rel="preload" as="script"><link href="chunk-vendors.js" rel="preload" as="script"><link href="app.css" rel="stylesheet"><meta name="twitter:card" content="summary"><meta property="og:url" content="https://manga.syui.ai"><meta property="og:title" content="yui"><meta property="og:description" content="©syui"><meta property="og:image" content="https://manga.syui.ai/manga/og.png"><link rel="shortcut icon" href="/favicon.ico"><link rel="icon" href="/favicon.ico"><link rel="apple-touch-icon" href="/apple-touch-icon.png"/><link href="/app.css" rel="preload" as="style"><link href="/app.js" rel="preload" as="script"><link href="/chunk-vendors.css" rel="preload" as="style"><link href="/chunk-vendors.js" rel="preload" as="script"><link href="/chunk-vendors.css" rel="stylesheet"><link href="/app.css" rel="stylesheet"></head><body><div id="app"></div><script src="chunk-vendors.js"></script><script src="app.js"></script><script src="/chunk-vendors.js"></script><script src="/app.js"></script></body></html>
File renamed without changes.
Binary file added public/apple-touch-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/icon/3qnhrpvr5my3473x26ytdmf2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/icon/4hqjfn7m6n5hno3doamuhgef.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/icon/ai.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/icon/fmnwe2six767bnsxd7qcr55x.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/icon/hcxuq2otjipue2ackxs2qfxo.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/icon/hrrl32cdaxffmu66a4qrmpqy.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/icon/null.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/icon/ott5psyszgaeoksg6j7ngkvk.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/icon/qexgypv67x75g7bjrelr5gof.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/icon/qsll4h547pevri3e2233zh2a.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/icon/qt25nzrb3esppxyzfoxkqhme.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/icon/tkefl443hmfozipexvxr4xwo.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/icon/uq5fs7nln4auq4m4vgaoctxj.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/icon/uqzpqmrjnptsxezjx4xuh2mn.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/icon/v2tssqq5tlnx4f5qvtpnlw5j.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/icon/wkzuqomvkxx5eiv5nl2lvm23.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/icon/xecxvd2v5fgyisue7f5ik3o3.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/icon/ywc4pk3qhdio4vgzjabc6tfh.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
41 changes: 37 additions & 4 deletions public/index.html
Original file line number Diff line number Diff line change
@@ -1,12 +1,45 @@
<!DOCTYPE html>
<html lang="en">
<head>
<title>card.syui.ai</title><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><title>card.syui.ai</title><link href="app.css" rel="preload" as="style"><link href="app.js" rel="preload" as="script"><link href="chunk-vendors.js" rel="preload" as="script"><link href="app.css" rel="stylesheet">
<title>yui | manga</title><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><link href="app.css" rel="preload" as="style"><link href="app.js" rel="preload" as="script"><link href="chunk-vendors.js" rel="preload" as="script"><link href="app.css" rel="stylesheet">
<meta name="twitter:card" content="summary">
<meta property="og:url" content="https://manga.syui.ai">
<meta property="og:title" content="yui">
<meta property="og:description" content="©syui.ai">
<meta property="og:image" content="https://manga.syui.ai/manga/og.png">
<meta property="og:description" content="©syui">
<meta property="og:image" content="/wa/0/og.png">
<link rel="icon" href="/favicon.ico" />
<link rel="shortcut icon" href="/favicon.ico">
<link rel="apple-touch-icon" href="/apple-touch-icon.png" />
<link rel="stylesheet" href="https://syui.ai/bower_components/icomoon/style.css" />
<link rel="stylesheet" href="https://syui.ai/bower_components/font-awesome/css/all.min.css" />
</head>
<body><div id="app"></div><script src="chunk-vendors.js"></script><script src="app.js"></script></body>
<body>
<div id="app"></div>
<script src="chunk-vendors.js"></script>
<script src="app.js"></script>
<script async src="https://embed.bsky.app/static/embed.js" charset="utf-8"></script>

<link href="https://syui.ai/js/comment/app.js" rel="preload" as="script">
<link href="https://syui.ai/js/comment/chunk-vendors.js" rel="preload" as="script">
<script src="https://syui.ai/js/comment/chunk-vendors.js"></script>
<script src="https://syui.ai/js/comment/app.js"></script>

<div class="page_title">
<div class="page_data">
<table>
<tbody>
<tr>
<th class="row">
<a href="https://yui.syui.ai"><span class="icon-ai"></span></a>
</th>
<td>yui</td>
<td>不思議な力を持つアイの冒険</td>
</tr>
</tbody>
</table>
</div>
</div>

</body>
<footer>© syui</footer>
</html>
18 changes: 18 additions & 0 deletions public/json/manga.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
[
{
"id": 0,
"end": 21,
"updated_at": "2021-07-11T00:00:00+09:00",
"comment": "特別編",
"illust": 100,
"dir": 0
},
{
"id": 1,
"end": 6,
"updated_at": "2024-05-01T00:00:00+09:00",
"comment": "1話",
"illust": 89,
"dir": 1
}
]
Binary file removed public/manga/0.png
Binary file not shown.
Binary file removed public/manga/1.png
Binary file not shown.
Binary file removed public/manga/10.png
Binary file not shown.
Binary file removed public/manga/100.png
Binary file not shown.
Binary file removed public/manga/101.png
Binary file not shown.
Binary file removed public/manga/102.png
Binary file not shown.
Binary file removed public/manga/103.png
Diff not rendered.
Binary file removed public/manga/104.png
Diff not rendered.
Binary file removed public/manga/105.png
Diff not rendered.
Binary file removed public/manga/106.png
Diff not rendered.
Binary file removed public/manga/11.png
Diff not rendered.
Binary file removed public/manga/12.png
Diff not rendered.
Binary file removed public/manga/13.png
Diff not rendered.
Binary file removed public/manga/14.png
Diff not rendered.
Binary file removed public/manga/15.png
Diff not rendered.
Binary file removed public/manga/16.png
Diff not rendered.
Binary file removed public/manga/17.png
Diff not rendered.
Binary file removed public/manga/18.png
Diff not rendered.
Binary file removed public/manga/19.png
Diff not rendered.
Binary file removed public/manga/2.png
Diff not rendered.
Binary file removed public/manga/20.png
Diff not rendered.
Binary file removed public/manga/21.png
Diff not rendered.
Binary file removed public/manga/22.png
Diff not rendered.
Binary file removed public/manga/23.png
Diff not rendered.
Binary file removed public/manga/24.png
Diff not rendered.
Binary file removed public/manga/25.png
Diff not rendered.
Binary file removed public/manga/26.png
Diff not rendered.
Binary file removed public/manga/27.png
Diff not rendered.
Binary file removed public/manga/28.png
Diff not rendered.
Binary file removed public/manga/29.png
Diff not rendered.
Binary file removed public/manga/3.png
Diff not rendered.
Binary file removed public/manga/30.png
Diff not rendered.
Binary file removed public/manga/31.png
Diff not rendered.
Binary file removed public/manga/32.png
Diff not rendered.
Binary file removed public/manga/33.png
Diff not rendered.
Binary file removed public/manga/34.png
Diff not rendered.
Binary file removed public/manga/35.png
Diff not rendered.
Binary file removed public/manga/36.png
Diff not rendered.
Binary file removed public/manga/37.png
Diff not rendered.
Binary file removed public/manga/38.png
Diff not rendered.
Binary file removed public/manga/39.png
Diff not rendered.
Binary file removed public/manga/4.png
Diff not rendered.
Binary file removed public/manga/40.png
Diff not rendered.
Binary file removed public/manga/41.png
Diff not rendered.
Binary file removed public/manga/42.png
Diff not rendered.
Binary file removed public/manga/43.png
Diff not rendered.
Binary file removed public/manga/44.png
Diff not rendered.
Binary file removed public/manga/45.png
Diff not rendered.
Binary file removed public/manga/46.png
Diff not rendered.
Binary file removed public/manga/47.png
Diff not rendered.
Binary file removed public/manga/48.png
Diff not rendered.
Binary file removed public/manga/49.png
Diff not rendered.
Binary file removed public/manga/5.png
Diff not rendered.
Binary file removed public/manga/50.png
Diff not rendered.
Binary file removed public/manga/51.png
Diff not rendered.
Binary file removed public/manga/52.png
Diff not rendered.
Binary file removed public/manga/53.png
Diff not rendered.
Binary file removed public/manga/54.png
Diff not rendered.
Binary file removed public/manga/55.png
Diff not rendered.
Binary file removed public/manga/56.png
Diff not rendered.
Binary file removed public/manga/57.png
Diff not rendered.
Binary file removed public/manga/58.png
Diff not rendered.
Binary file removed public/manga/59.png
Diff not rendered.
Binary file removed public/manga/6.png
Diff not rendered.
Binary file removed public/manga/60.png
Diff not rendered.
Binary file removed public/manga/61.png
Diff not rendered.
Binary file removed public/manga/62.png
Diff not rendered.
Binary file removed public/manga/63.png
Diff not rendered.
Binary file removed public/manga/64.png
Diff not rendered.
Binary file removed public/manga/65.png
Diff not rendered.
Binary file removed public/manga/66.png
Diff not rendered.
Binary file removed public/manga/67.png
Diff not rendered.
Binary file removed public/manga/68.png
Diff not rendered.
Binary file removed public/manga/69.png
Diff not rendered.
Binary file removed public/manga/7.png
Diff not rendered.
Binary file removed public/manga/70.png
Diff not rendered.
Binary file removed public/manga/71.png
Diff not rendered.
Binary file removed public/manga/72.png
Diff not rendered.
Binary file removed public/manga/73.png
Diff not rendered.
Binary file removed public/manga/74.png
Diff not rendered.
Binary file removed public/manga/75.png
Diff not rendered.
Binary file removed public/manga/76.png
Diff not rendered.
Binary file removed public/manga/77.png
Diff not rendered.
Binary file removed public/manga/78.png
Diff not rendered.
Binary file removed public/manga/79.png
Diff not rendered.
Binary file removed public/manga/8.png
Diff not rendered.
Binary file removed public/manga/80.png
Diff not rendered.
Binary file removed public/manga/81.png
Diff not rendered.
Binary file removed public/manga/82.png
Diff not rendered.
Binary file removed public/manga/83.png
Diff not rendered.
Binary file removed public/manga/84.png
Diff not rendered.
Binary file removed public/manga/85.png
Diff not rendered.
Binary file removed public/manga/86.png
Diff not rendered.
Binary file removed public/manga/87.png
Diff not rendered.
Binary file removed public/manga/88.png
Diff not rendered.
Binary file removed public/manga/89.png
Diff not rendered.
Binary file removed public/manga/9.png
Diff not rendered.
Binary file removed public/manga/90.png
Diff not rendered.
Binary file removed public/manga/91.png
Diff not rendered.
Binary file removed public/manga/92.png
Diff not rendered.
Binary file removed public/manga/93.png
Diff not rendered.
Binary file removed public/manga/94.png
Diff not rendered.
Binary file removed public/manga/95.png
Diff not rendered.
Binary file removed public/manga/96.png
Diff not rendered.
Binary file removed public/manga/97.png
Diff not rendered.
Binary file removed public/manga/98.png
Diff not rendered.
Binary file removed public/manga/99.png
Diff not rendered.
Binary file removed public/manga/og.png
Diff not rendered.
Binary file added public/wa/0/0.png
Binary file added public/wa/0/1.png
Binary file added public/wa/0/10.png
Binary file added public/wa/0/100.png
Binary file added public/wa/0/101.png
Binary file added public/wa/0/102.png
Binary file added public/wa/0/103.png
Binary file added public/wa/0/104.png
Binary file added public/wa/0/105.png
Binary file added public/wa/0/106.png
Binary file added public/wa/0/11.png
Binary file added public/wa/0/12.png
Binary file added public/wa/0/13.png
Binary file added public/wa/0/14.png
Binary file added public/wa/0/15.png
Binary file added public/wa/0/16.png
Binary file added public/wa/0/17.png
Binary file added public/wa/0/18.png
Binary file added public/wa/0/19.png
Binary file added public/wa/0/2.png
Binary file added public/wa/0/20.png
Binary file added public/wa/0/21.png
Binary file added public/wa/0/22.png
Binary file added public/wa/0/23.png
Binary file added public/wa/0/24.png
Binary file added public/wa/0/25.png
Binary file added public/wa/0/26.png
Binary file added public/wa/0/27.png
Binary file added public/wa/0/28.png
Binary file added public/wa/0/29.png
Binary file added public/wa/0/3.png
Binary file added public/wa/0/30.png
Binary file added public/wa/0/31.png
Binary file added public/wa/0/32.png
Binary file added public/wa/0/33.png
Binary file added public/wa/0/34.png
Binary file added public/wa/0/35.png
Binary file added public/wa/0/36.png
Binary file added public/wa/0/37.png
Binary file added public/wa/0/38.png
Binary file added public/wa/0/39.png
Binary file added public/wa/0/4.png
Binary file added public/wa/0/40.png
Binary file added public/wa/0/41.png
Binary file added public/wa/0/42.png
Binary file added public/wa/0/43.png
Binary file added public/wa/0/44.png
Binary file added public/wa/0/45.png
Binary file added public/wa/0/46.png
Binary file added public/wa/0/47.png
Binary file added public/wa/0/48.png
Binary file added public/wa/0/49.png
Binary file added public/wa/0/5.png
Binary file added public/wa/0/50.png
Binary file added public/wa/0/51.png
Binary file added public/wa/0/52.png
Binary file added public/wa/0/53.png
Binary file added public/wa/0/54.png
Binary file added public/wa/0/55.png
Binary file added public/wa/0/56.png
Binary file added public/wa/0/57.png
Binary file added public/wa/0/58.png
Binary file added public/wa/0/59.png
Binary file added public/wa/0/6.png
Binary file added public/wa/0/60.png
Binary file added public/wa/0/61.png
Binary file added public/wa/0/62.png
Binary file added public/wa/0/63.png
Binary file added public/wa/0/64.png
Binary file added public/wa/0/65.png
Binary file added public/wa/0/66.png
Binary file added public/wa/0/67.png
Binary file added public/wa/0/68.png
Binary file added public/wa/0/69.png
Binary file added public/wa/0/7.png
Binary file added public/wa/0/70.png
Binary file added public/wa/0/71.png
Binary file added public/wa/0/72.png
Binary file added public/wa/0/73.png
Binary file added public/wa/0/74.png
Binary file added public/wa/0/75.png
Binary file added public/wa/0/76.png
Binary file added public/wa/0/77.png
Binary file added public/wa/0/78.png
Binary file added public/wa/0/79.png
Binary file added public/wa/0/8.png
Binary file added public/wa/0/80.png
Binary file added public/wa/0/81.png
Binary file added public/wa/0/82.png
Binary file added public/wa/0/83.png
Binary file added public/wa/0/84.png
Binary file added public/wa/0/85.png
Binary file added public/wa/0/86.png
Binary file added public/wa/0/87.png
Binary file added public/wa/0/88.png
Binary file added public/wa/0/89.png
Binary file added public/wa/0/9.png
Binary file added public/wa/0/90.png
Binary file added public/wa/0/91.png
Binary file added public/wa/0/92.png
Binary file added public/wa/0/93.png
Binary file added public/wa/0/94.png
Binary file added public/wa/0/95.png
Binary file added public/wa/0/96.png
Binary file added public/wa/0/97.png
Binary file added public/wa/0/98.png
Binary file added public/wa/0/99.png
Binary file added public/wa/0/manga_01.png
Binary file added public/wa/0/manga_02.png
Binary file added public/wa/0/manga_03.png
Binary file added public/wa/0/test_2.png
Binary file added public/wa/1/0.png
Binary file added public/wa/1/1.png
Binary file added public/wa/1/2.png
Binary file added public/wa/1/3.png
Binary file added public/wa/1/4.png
Binary file added public/wa/1/5.png
Binary file added public/wa/ai.png
Binary file added public/wa/bg.png
Binary file added public/wa/bg_og.png
Binary file added public/wa/com.png
21 changes: 21 additions & 0 deletions scpt/convert.zsh
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#!/bin/zsh
d=${0:a:h}
dd=${0:a:h:h}

url=manga.syui.ai

case $OSTYPE in
darwin*)
path_nvm_sh="/opt/homebrew/opt/nvm/nvm.sh";;
linux*)
path_nvm_sh="";;
esac

dir=$dd/public/manga
cd $dir
export NVM_DIR="$HOME/.nvm"
[ -s "$path_nvm_sh" ] && \. "$path_nvm_sh"
nvm use 17
nvm i squoosh-cli
squoosh-cli --webp '{"quality":100}' -d ./ --resize '{width:825,height:1080}' *.png
#1620 × 2160
24 changes: 24 additions & 0 deletions scpt/icon.zsh
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#!/bin/zsh

d=${0:a:h}
dd=${0:a:h:h}
icon=$dd/public/icon

echo $d
echo $dd
echo ---
api=api.syui.ai
avatar=`curl -sL $api/users/2/ma|jq -r ".[].avatar"`
n=`echo $avatar|wc -l`
for ((i=1;i<=$n;i++))
do
img=`echo $avatar|awk "NR==$i"`
did=`echo $img|cut -d / -f 7|cut -d : -f 3`
echo $i
echo $img
echo $did
f=$icon/$did.jpg
if [ ! -f $f ];then
curl -sL $img -o $icon/$did.jpg
fi
done
47 changes: 47 additions & 0 deletions scpt/title.zsh
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
#!/bin/zsh
d=${0:a:h}
dd=${0:a:h:h}

url=syui.ai/img

case $OSTYPE in
darwin*)
path_nvm_sh="/opt/homebrew/opt/nvm/nvm.sh";;
linux*)
path_nvm_sh="";;
esac

json=$dd/public/json/manga.json
bg=$dd/public/wa/bg.png
bgg=$dd/public/wa/bg_og.png

convert -resize 3240x4320! $bg $bgg

n=`cat $json|jq "length"`
n=`expr $n - 1`

cd $dir
export NVM_DIR="$HOME/.nvm"
[ -s "$path_nvm_sh" ] && \. "$path_nvm_sh"
nvm use 17
nvm i squoosh-cli

for ((i=0;i<=$n;i++))
do
illust=`cat $json|jq -r ".[$i].illust"`
id=`cat $json|jq -r ".[$i].id"`
s=$dd/public/wa/yui_${illust}
o=$dd/public/wa/$id/0_test.png
og=${s}_og.png
f=$dd/public/wa/$id/0_font.png
ff=$dd/public/wa/$id/0.png
if [ ! -f $s ];then
curl -sL https://syui.ai/img/yui_${illust}.png -o ${s}.png
fi
convert ${s}.png -gravity south -geometry 135%x135% -extent 3240x4320 $og

magick composite $bgg -gravity north -geometry +0+0 $og $o
convert -font "Meiryo" -pointsize 150 -fill black -gravity east -annotate +650-140 "$id" $o $f
mv $f $ff
rm $og $o ${s}.png
done
Loading

0 comments on commit 7ad12e0

Please sign in to comment.