diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml new file mode 100644 index 0000000..c855481 --- /dev/null +++ b/.github/workflows/gh-pages.yml @@ -0,0 +1,33 @@ +name: github pages + +on: + push: + branches: + - main + +jobs: + build-deploy: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: 16 + ref: main + submodules: true + fetch-depth: 0 + - run: yarn install + + - name: Build + env: + TZ: "Asia/Tokyo" + run: | + yarn build + + - name: Deploy + uses: peaceiris/actions-gh-pages@v3 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: ./dist + user_name: 'ai[bot]' + user_email: '138105980+yui-syui-ai[bot]@users.noreply.github.com' diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..ff3ba38 --- /dev/null +++ b/.gitignore @@ -0,0 +1,30 @@ +.DS_Store +node_modules +/dist +*.lock +# local env files +.env.local +.env.*.local + +# Log files +npm-debug.log* +yarn-debug.log* +yarn-error.log* + +# Editor directories and files +.idea +.vscode +*.suo +*.ntvs* +*.njsproj +*.sln +*.sw? +.DS_Store +*/.DS_Store +*/*/.DS_Store +*/*/*/.DS_Store +*/*/*/*/.DS_Store +*/*/*/*/*/.DS_Store +*/*/*/*/*/*/.DS_Store +*/*/*/*/*/*/*/.DS_Store +*/*/*/*/*/*/*/*/.DS_Store diff --git a/babel.config.js b/babel.config.js new file mode 100644 index 0000000..e955840 --- /dev/null +++ b/babel.config.js @@ -0,0 +1,5 @@ +module.exports = { + presets: [ + '@vue/cli-plugin-babel/preset' + ] +} diff --git a/package.json b/package.json new file mode 100644 index 0000000..874f0a1 --- /dev/null +++ b/package.json @@ -0,0 +1,22 @@ +{ + "name": "manga", + "version": "0.0.1", + "private": true, + "scripts": { + "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", + "moment": "^2.30.1", + "vue": "^2.6.11", + "vue-meta": "^2.4.0", + "vue-template-compiler": "^2.6.14" + }, + "devDependencies": { + "@vue/cli-service": "~4.5.15" + } +} diff --git a/public/apple-touch-icon.png b/public/apple-touch-icon.png new file mode 100644 index 0000000..d5ca999 Binary files /dev/null and b/public/apple-touch-icon.png differ diff --git a/public/favicon.ico b/public/favicon.ico new file mode 100644 index 0000000..7f94540 Binary files /dev/null and b/public/favicon.ico differ diff --git a/public/icon/3qnhrpvr5my3473x26ytdmf2.jpg b/public/icon/3qnhrpvr5my3473x26ytdmf2.jpg new file mode 100644 index 0000000..4069af7 Binary files /dev/null and b/public/icon/3qnhrpvr5my3473x26ytdmf2.jpg differ diff --git a/public/icon/4hqjfn7m6n5hno3doamuhgef.jpg b/public/icon/4hqjfn7m6n5hno3doamuhgef.jpg new file mode 100644 index 0000000..f5fe915 Binary files /dev/null and b/public/icon/4hqjfn7m6n5hno3doamuhgef.jpg differ diff --git a/public/icon/ai.jpg b/public/icon/ai.jpg new file mode 100644 index 0000000..b7279bc Binary files /dev/null and b/public/icon/ai.jpg differ diff --git a/public/icon/fmnwe2six767bnsxd7qcr55x.jpg b/public/icon/fmnwe2six767bnsxd7qcr55x.jpg new file mode 100644 index 0000000..cfd6f77 Binary files /dev/null and b/public/icon/fmnwe2six767bnsxd7qcr55x.jpg differ diff --git a/public/icon/git.png b/public/icon/git.png new file mode 100644 index 0000000..84d72e1 Binary files /dev/null and b/public/icon/git.png differ diff --git a/public/icon/hcxuq2otjipue2ackxs2qfxo.jpg b/public/icon/hcxuq2otjipue2ackxs2qfxo.jpg new file mode 100644 index 0000000..42056ee Binary files /dev/null and b/public/icon/hcxuq2otjipue2ackxs2qfxo.jpg differ diff --git a/public/icon/hrrl32cdaxffmu66a4qrmpqy.jpg b/public/icon/hrrl32cdaxffmu66a4qrmpqy.jpg new file mode 100644 index 0000000..21fed84 Binary files /dev/null and b/public/icon/hrrl32cdaxffmu66a4qrmpqy.jpg differ diff --git a/public/icon/ott5psyszgaeoksg6j7ngkvk.jpg b/public/icon/ott5psyszgaeoksg6j7ngkvk.jpg new file mode 100644 index 0000000..c209822 Binary files /dev/null and b/public/icon/ott5psyszgaeoksg6j7ngkvk.jpg differ diff --git a/public/icon/qexgypv67x75g7bjrelr5gof.jpg b/public/icon/qexgypv67x75g7bjrelr5gof.jpg new file mode 100644 index 0000000..2a19f05 Binary files /dev/null and b/public/icon/qexgypv67x75g7bjrelr5gof.jpg differ diff --git a/public/icon/qsll4h547pevri3e2233zh2a.jpg b/public/icon/qsll4h547pevri3e2233zh2a.jpg new file mode 100644 index 0000000..5327b18 Binary files /dev/null and b/public/icon/qsll4h547pevri3e2233zh2a.jpg differ diff --git a/public/icon/qt25nzrb3esppxyzfoxkqhme.jpg b/public/icon/qt25nzrb3esppxyzfoxkqhme.jpg new file mode 100644 index 0000000..507ec5d Binary files /dev/null and b/public/icon/qt25nzrb3esppxyzfoxkqhme.jpg differ diff --git a/public/icon/tkefl443hmfozipexvxr4xwo.jpg b/public/icon/tkefl443hmfozipexvxr4xwo.jpg new file mode 100644 index 0000000..739eacc Binary files /dev/null and b/public/icon/tkefl443hmfozipexvxr4xwo.jpg differ diff --git a/public/icon/uq5fs7nln4auq4m4vgaoctxj.jpg b/public/icon/uq5fs7nln4auq4m4vgaoctxj.jpg new file mode 100644 index 0000000..435d318 Binary files /dev/null and b/public/icon/uq5fs7nln4auq4m4vgaoctxj.jpg differ diff --git a/public/icon/uqzpqmrjnptsxezjx4xuh2mn.jpg b/public/icon/uqzpqmrjnptsxezjx4xuh2mn.jpg new file mode 100644 index 0000000..e5e1221 Binary files /dev/null and b/public/icon/uqzpqmrjnptsxezjx4xuh2mn.jpg differ diff --git a/public/icon/v2tssqq5tlnx4f5qvtpnlw5j.jpg b/public/icon/v2tssqq5tlnx4f5qvtpnlw5j.jpg new file mode 100644 index 0000000..86939b5 Binary files /dev/null and b/public/icon/v2tssqq5tlnx4f5qvtpnlw5j.jpg differ diff --git a/public/icon/wkzuqomvkxx5eiv5nl2lvm23.jpg b/public/icon/wkzuqomvkxx5eiv5nl2lvm23.jpg new file mode 100644 index 0000000..28cb4e7 Binary files /dev/null and b/public/icon/wkzuqomvkxx5eiv5nl2lvm23.jpg differ diff --git a/public/icon/xecxvd2v5fgyisue7f5ik3o3.jpg b/public/icon/xecxvd2v5fgyisue7f5ik3o3.jpg new file mode 100644 index 0000000..53208d4 Binary files /dev/null and b/public/icon/xecxvd2v5fgyisue7f5ik3o3.jpg differ diff --git a/public/icon/ywc4pk3qhdio4vgzjabc6tfh.jpg b/public/icon/ywc4pk3qhdio4vgzjabc6tfh.jpg new file mode 100644 index 0000000..d850803 Binary files /dev/null and b/public/icon/ywc4pk3qhdio4vgzjabc6tfh.jpg differ diff --git a/public/index.html b/public/index.html new file mode 100644 index 0000000..29f0b4a --- /dev/null +++ b/public/index.html @@ -0,0 +1,19 @@ + + + + ai/comment> + + + + + + + + + + +
+ + + + diff --git a/scpt/convert.zsh b/scpt/convert.zsh new file mode 100755 index 0000000..0c0b493 --- /dev/null +++ b/scpt/convert.zsh @@ -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 diff --git a/scpt/icon.zsh b/scpt/icon.zsh new file mode 100755 index 0000000..6859786 --- /dev/null +++ b/scpt/icon.zsh @@ -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 diff --git a/src/App.vue b/src/App.vue new file mode 100644 index 0000000..4601107 --- /dev/null +++ b/src/App.vue @@ -0,0 +1,331 @@ + + + + + diff --git a/src/main.js b/src/main.js new file mode 100644 index 0000000..a20b0c6 --- /dev/null +++ b/src/main.js @@ -0,0 +1,9 @@ +import Vue from 'vue' +import App from './App.vue' + +Vue.config.productionTip = false + +new Vue({ + render: h => h(App) +}).$mount('#app') + diff --git a/vue.config.js b/vue.config.js new file mode 100644 index 0000000..4829cdc --- /dev/null +++ b/vue.config.js @@ -0,0 +1,23 @@ +module.exports = { + devServer: { + proxy: { + "^/api*": { + target: "https://api.syui.ai", + pathRewrite: { "^/api": "" }, + } + } + }, + publicPath: "/", + configureWebpack: { + output: { + filename: '[name].js', + chunkFilename: '[name].js' + } + }, + css: { + extract: { + filename: '[name].css', + chunkFilename: '[name].css' + }, + }, +}