diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml
index 2eea60a..a9a28a6 100644
--- a/.github/workflows/gh-pages.yml
+++ b/.github/workflows/gh-pages.yml
@@ -5,18 +5,27 @@ on:
branches:
- main
+env:
+ GITEA_MAIL: ${{ secrets.GITEA_MAIL }}
+ GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}
+
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
- - run: yarn install
+ - run: |
+ yarn install
+ rm -rf public
+ git clone https://${GITEA_TOKEN}@git.syui.ai/ai/card_public public
+ rm -rf public/.git*
+ rm -rf public/static
- name: Build
env:
@@ -29,3 +38,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'
diff --git a/.gitignore b/.gitignore
index bc46d57..d6244e1 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,4 +1,8 @@
-.DS_Store
node_modules
dist
-*.lock
+tt
+app.js
+yarn-error.log
+package-lock.json
+yarn.lock
+**DS_Store
diff --git a/.gitmodules b/.gitmodules
new file mode 100644
index 0000000..b210663
--- /dev/null
+++ b/.gitmodules
@@ -0,0 +1,3 @@
+[submodule "public"]
+ path = public
+ url = git@git.syui.ai:ai/card_public
diff --git a/CNAME b/CNAME
deleted file mode 100644
index 1ca9933..0000000
--- a/CNAME
+++ /dev/null
@@ -1 +0,0 @@
-card.syui.ai
diff --git a/package.json b/package.json
index 9d9d9d4..a74022f 100644
--- a/package.json
+++ b/package.json
@@ -1,19 +1,22 @@
{
- "name": "atr-web",
+ "name": "card",
"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": "^0.25.0",
+ "@google/model-viewer": "^3.4.0",
+ "@nuxtjs/proxy": "^2.1.0",
+ "axios": "^1.6.8",
"core-js": "^3.6.4",
"moment": "^2.29.4",
- "superagent": "^8.0.9",
+ "three": "^0.162.0",
"vue": "^2.6.11",
"vue-loading-template": "^1.3.2",
+ "vue-meta": "^2.4.0",
"vue-template-compiler": "^2.6.14"
},
"devDependencies": {
diff --git a/public b/public
new file mode 160000
index 0000000..431afd6
--- /dev/null
+++ b/public
@@ -0,0 +1 @@
+Subproject commit 431afd6a3750fdfbc6d99b1e7c2a1d305d47a27c
diff --git a/public/CNAME b/public/CNAME
deleted file mode 100644
index 9bf3273..0000000
--- a/public/CNAME
+++ /dev/null
@@ -1 +0,0 @@
-at.syui.ai
diff --git a/public/card/card.json b/public/card/card.json
deleted file mode 100644
index 4f464a9..0000000
--- a/public/card/card.json
+++ /dev/null
@@ -1,80 +0,0 @@
-[
- {
- "id": 0,
- "h": "創造",
- "src": "89",
- "cid": "bafkreibh4nmdgyzvjvkhek2ultx4lsrrq2dnc7z2lqbua2ik47xo2zgkru"
- },
- {
- "id": 1,
- "h": "夢幻",
- "src": "100",
- "cid": "bafkreiajf5lblrojyo7vcqdhiqgbhd5eaj3u47mvvqf63kvexwfwphpx2y"
- },
- {
- "id": 2,
- "h": "光輝",
- "src": "109",
- "cid": "bafkreieywv4thvjrwbcf2dcol4svwmculf5qm2kvjtu2ywyyh56c7swi64"
- },
- {
- "id": 3,
- "h": "中性子",
- "src": "88",
- "cid": "bafkreieuphzhesuoqouszzwuv3iw7d5nz4eamlqc2csfv26d5vmcdg2qby"
- },
- {
- "id": 4,
- "h": "太陽",
- "src": "59",
- "cid": "bafkreifw7f44ldmi7bufs5rzwftjvgmsflekkvxazqns63venm7hqnql3q"
- },
- {
- "id": 5,
- "h": "夜空",
- "src": "112",
- "cid": "bafkreicuieuz6wjva7l7t2u5n46izxs7nku6tedlgtlgkabszjz5dn3yl4"
- },
- {
- "id": 6,
- "h": "白雪",
- "src": "15",
- "cid": "bafkreihl5ifvl3ougbfdjfdjwrhdjrncqm5opj65cteow5f2aj7p6nz42y"
- },
- {
- "id": 7,
- "h": "雷帝",
- "src": "30",
- "cid": "bafkreihylxc22kfcb3bereypl6tvqkiqtazod3tp7vbze7yxdqedwli6z4"
- },
- {
- "id": 8,
- "h": "超究",
- "src": "108",
- "cid": "bafkreieq4tdiq72tsbvqv5bnitd5sj5bbvtmee5off3k4nvl7za3plhj5m"
- },
- {
- "id": 9,
- "h": "剣技",
- "src": "103",
- "cid": "bafkreig2uzf5cyn5fty5ftumd6wyg7vf5wry37h4v4mmorkx5msvn3uqvu"
- },
- {
- "id": 10,
- "h": "破壊",
- "src": "87",
- "cid": "bafkreifcos5ur6y753jepmy4ttgylasvcyk5osguzlaojcnlrshl3q6k3a"
- },
- {
- "id": 11,
- "h": "地球",
- "src": "78",
- "cid": "bafkreigpxxkzz2oesnb2mnfe42nrgk57wnr73ssn5luriy3j25mij43uki"
- },
- {
- "id": 12,
- "h": "天ノ川",
- "src": "115",
- "cid": "bafkreiefcjjplklmo6wrc7pq23yaewg2zgjm7nsmjy5q7mut2dnxydomnm"
- }
-]
diff --git a/public/card/card_0.jpg b/public/card/card_0.jpg
deleted file mode 100644
index c190a95..0000000
Binary files a/public/card/card_0.jpg and /dev/null differ
diff --git a/public/card/card_0.png b/public/card/card_0.png
deleted file mode 100644
index 6885299..0000000
Binary files a/public/card/card_0.png and /dev/null differ
diff --git a/public/card/card_0.webp b/public/card/card_0.webp
deleted file mode 100644
index 17c86ad..0000000
Binary files a/public/card/card_0.webp and /dev/null differ
diff --git a/public/card/card_1.jpg b/public/card/card_1.jpg
deleted file mode 100644
index ca2a6ae..0000000
Binary files a/public/card/card_1.jpg and /dev/null differ
diff --git a/public/card/card_1.png b/public/card/card_1.png
deleted file mode 100644
index 48a1ef8..0000000
Binary files a/public/card/card_1.png and /dev/null differ
diff --git a/public/card/card_1.webp b/public/card/card_1.webp
deleted file mode 100644
index 2fa671c..0000000
Binary files a/public/card/card_1.webp and /dev/null differ
diff --git a/public/card/card_10.jpg b/public/card/card_10.jpg
deleted file mode 100644
index 9c67280..0000000
Binary files a/public/card/card_10.jpg and /dev/null differ
diff --git a/public/card/card_10.png b/public/card/card_10.png
deleted file mode 100644
index 98dbfed..0000000
Binary files a/public/card/card_10.png and /dev/null differ
diff --git a/public/card/card_10.webp b/public/card/card_10.webp
deleted file mode 100644
index 7da5c87..0000000
Binary files a/public/card/card_10.webp and /dev/null differ
diff --git a/public/card/card_11.jpg b/public/card/card_11.jpg
deleted file mode 100644
index a3c13ee..0000000
Binary files a/public/card/card_11.jpg and /dev/null differ
diff --git a/public/card/card_11.png b/public/card/card_11.png
deleted file mode 100644
index d047865..0000000
Binary files a/public/card/card_11.png and /dev/null differ
diff --git a/public/card/card_11.webp b/public/card/card_11.webp
deleted file mode 100644
index ce2156d..0000000
Binary files a/public/card/card_11.webp and /dev/null differ
diff --git a/public/card/card_12.jpg b/public/card/card_12.jpg
deleted file mode 100644
index cbf5e4b..0000000
Binary files a/public/card/card_12.jpg and /dev/null differ
diff --git a/public/card/card_12.png b/public/card/card_12.png
deleted file mode 100644
index 19be0ae..0000000
Binary files a/public/card/card_12.png and /dev/null differ
diff --git a/public/card/card_12.webp b/public/card/card_12.webp
deleted file mode 100644
index 09bac00..0000000
Binary files a/public/card/card_12.webp and /dev/null differ
diff --git a/public/card/card_2.jpg b/public/card/card_2.jpg
deleted file mode 100644
index 82c891b..0000000
Binary files a/public/card/card_2.jpg and /dev/null differ
diff --git a/public/card/card_2.png b/public/card/card_2.png
deleted file mode 100644
index 58e737d..0000000
Binary files a/public/card/card_2.png and /dev/null differ
diff --git a/public/card/card_2.webp b/public/card/card_2.webp
deleted file mode 100644
index ba5ad64..0000000
Binary files a/public/card/card_2.webp and /dev/null differ
diff --git a/public/card/card_3.jpg b/public/card/card_3.jpg
deleted file mode 100644
index 7079c1d..0000000
Binary files a/public/card/card_3.jpg and /dev/null differ
diff --git a/public/card/card_3.png b/public/card/card_3.png
deleted file mode 100644
index 05109c7..0000000
Binary files a/public/card/card_3.png and /dev/null differ
diff --git a/public/card/card_3.webp b/public/card/card_3.webp
deleted file mode 100644
index 511181b..0000000
Binary files a/public/card/card_3.webp and /dev/null differ
diff --git a/public/card/card_4.jpg b/public/card/card_4.jpg
deleted file mode 100644
index 51ad628..0000000
Binary files a/public/card/card_4.jpg and /dev/null differ
diff --git a/public/card/card_4.png b/public/card/card_4.png
deleted file mode 100644
index 3c60f5d..0000000
Binary files a/public/card/card_4.png and /dev/null differ
diff --git a/public/card/card_4.webp b/public/card/card_4.webp
deleted file mode 100644
index 245087d..0000000
Binary files a/public/card/card_4.webp and /dev/null differ
diff --git a/public/card/card_5.jpg b/public/card/card_5.jpg
deleted file mode 100644
index 0ef171d..0000000
Binary files a/public/card/card_5.jpg and /dev/null differ
diff --git a/public/card/card_5.png b/public/card/card_5.png
deleted file mode 100644
index 0152008..0000000
Binary files a/public/card/card_5.png and /dev/null differ
diff --git a/public/card/card_5.webp b/public/card/card_5.webp
deleted file mode 100644
index 2f1206f..0000000
Binary files a/public/card/card_5.webp and /dev/null differ
diff --git a/public/card/card_6.jpg b/public/card/card_6.jpg
deleted file mode 100644
index 458a93e..0000000
Binary files a/public/card/card_6.jpg and /dev/null differ
diff --git a/public/card/card_6.png b/public/card/card_6.png
deleted file mode 100644
index f02b32c..0000000
Binary files a/public/card/card_6.png and /dev/null differ
diff --git a/public/card/card_6.webp b/public/card/card_6.webp
deleted file mode 100644
index e1d975e..0000000
Binary files a/public/card/card_6.webp and /dev/null differ
diff --git a/public/card/card_7.jpg b/public/card/card_7.jpg
deleted file mode 100644
index 7c95a39..0000000
Binary files a/public/card/card_7.jpg and /dev/null differ
diff --git a/public/card/card_7.png b/public/card/card_7.png
deleted file mode 100644
index 00ce43e..0000000
Binary files a/public/card/card_7.png and /dev/null differ
diff --git a/public/card/card_7.webp b/public/card/card_7.webp
deleted file mode 100644
index fdc07ca..0000000
Binary files a/public/card/card_7.webp and /dev/null differ
diff --git a/public/card/card_8.jpg b/public/card/card_8.jpg
deleted file mode 100644
index 51a7daf..0000000
Binary files a/public/card/card_8.jpg and /dev/null differ
diff --git a/public/card/card_8.png b/public/card/card_8.png
deleted file mode 100644
index f9d0f86..0000000
Binary files a/public/card/card_8.png and /dev/null differ
diff --git a/public/card/card_8.webp b/public/card/card_8.webp
deleted file mode 100644
index dfa10bd..0000000
Binary files a/public/card/card_8.webp and /dev/null differ
diff --git a/public/card/card_9.jpg b/public/card/card_9.jpg
deleted file mode 100644
index 8301628..0000000
Binary files a/public/card/card_9.jpg and /dev/null differ
diff --git a/public/card/card_9.png b/public/card/card_9.png
deleted file mode 100644
index a76382f..0000000
Binary files a/public/card/card_9.png and /dev/null differ
diff --git a/public/card/card_9.webp b/public/card/card_9.webp
deleted file mode 100644
index 458c2e1..0000000
Binary files a/public/card/card_9.webp and /dev/null differ
diff --git a/public/card/t.zsh b/public/card/t.zsh
deleted file mode 100755
index 6b196dc..0000000
--- a/public/card/t.zsh
+++ /dev/null
@@ -1,21 +0,0 @@
-#!/bin/zsh
-
-d=${0:a:h}
-j=$d/card.json
-n=`cat $j|jq length`
-n=$((n - 1))
-for ((i=0;i<=$n;i++))
-do
- t=`cat $j|jq ".[$i].cid"`
- id=`cat $j|jq ".[$i].id"`
- f=card_${id}.webp
- if ls $f;then
- cid=`atr img-upload $f|head -n 1`
- echo $cid
- if cat $j |jq ".[$i]|= .+ {\"cid\":\"$cid\"}";then
- cat $j |jq ".[$i]|= .+ {\"cid\":\"$cid\"}" >! $j.back
- mv $j.back $j
- cat $j|jq ".[$i]"
- fi
- fi
-done
diff --git a/public/chara/ai.png b/public/chara/ai.png
deleted file mode 100644
index aa5f73a..0000000
Binary files a/public/chara/ai.png and /dev/null differ
diff --git a/public/chara/drai.png b/public/chara/drai.png
deleted file mode 100644
index 3586e16..0000000
Binary files a/public/chara/drai.png and /dev/null differ
diff --git a/public/chara/kyosuke.png b/public/chara/kyosuke.png
deleted file mode 100644
index 27ddfc9..0000000
Binary files a/public/chara/kyosuke.png and /dev/null differ
diff --git a/public/chara/mr.png b/public/chara/mr.png
deleted file mode 100644
index 5423629..0000000
Binary files a/public/chara/mr.png and /dev/null differ
diff --git a/public/chara/neko.png b/public/chara/neko.png
deleted file mode 100644
index e0d067d..0000000
Binary files a/public/chara/neko.png and /dev/null differ
diff --git a/public/chara/octkat.png b/public/chara/octkat.png
deleted file mode 100644
index 8c5db39..0000000
Binary files a/public/chara/octkat.png and /dev/null differ
diff --git a/public/chara/papas.png b/public/chara/papas.png
deleted file mode 100644
index 83e2967..0000000
Binary files a/public/chara/papas.png and /dev/null differ
diff --git a/public/chara/plan.png b/public/chara/plan.png
deleted file mode 100644
index cb7a86e..0000000
Binary files a/public/chara/plan.png and /dev/null differ
diff --git a/public/chara/ponta.png b/public/chara/ponta.png
deleted file mode 100644
index e60f28a..0000000
Binary files a/public/chara/ponta.png and /dev/null differ
diff --git a/public/chara/zen.png b/public/chara/zen.png
deleted file mode 100644
index ddd9296..0000000
Binary files a/public/chara/zen.png and /dev/null differ
diff --git a/public/image/1gNGwD6W74qb_Nuncr5H5i9UADEtdyds9myxRGnkGMw/rs:fill:1000:1000:1:0/plain/bafkreibxgpwttqvpsnn5yrvqkx47nwuzpzrkfyladqy2hbj3chedph3fni@jpeg b/public/image/1gNGwD6W74qb_Nuncr5H5i9UADEtdyds9myxRGnkGMw/rs:fill:1000:1000:1:0/plain/bafkreibxgpwttqvpsnn5yrvqkx47nwuzpzrkfyladqy2hbj3chedph3fni@jpeg
deleted file mode 100644
index 9cd8f23..0000000
Binary files a/public/image/1gNGwD6W74qb_Nuncr5H5i9UADEtdyds9myxRGnkGMw/rs:fill:1000:1000:1:0/plain/bafkreibxgpwttqvpsnn5yrvqkx47nwuzpzrkfyladqy2hbj3chedph3fni@jpeg and /dev/null differ
diff --git a/public/image/G8UWSR-zF7dJQP-wEhlMfUwzUmdX6v6J4mxA5cQZ7mE/rs:fill:1000:1000:1:0/plain/bafkreicltsmeatkmq5wkx5ge6nz73ol2wrf5fa5gkymxmuahzfytyjrvze@jpeg b/public/image/G8UWSR-zF7dJQP-wEhlMfUwzUmdX6v6J4mxA5cQZ7mE/rs:fill:1000:1000:1:0/plain/bafkreicltsmeatkmq5wkx5ge6nz73ol2wrf5fa5gkymxmuahzfytyjrvze@jpeg
deleted file mode 100644
index 4a303eb..0000000
Binary files a/public/image/G8UWSR-zF7dJQP-wEhlMfUwzUmdX6v6J4mxA5cQZ7mE/rs:fill:1000:1000:1:0/plain/bafkreicltsmeatkmq5wkx5ge6nz73ol2wrf5fa5gkymxmuahzfytyjrvze@jpeg and /dev/null differ
diff --git a/public/image/vEPdhP659vrk0CqxpzvOvoc0ZnIlsAAxhmoUS3Am2KU/rs:fill:1000:1000:1:0/plain/bafkreihl4namtpjtx2a3hqdepgwvdgvhb4sfc37tg4dho4loolntmzp57a@jpeg b/public/image/vEPdhP659vrk0CqxpzvOvoc0ZnIlsAAxhmoUS3Am2KU/rs:fill:1000:1000:1:0/plain/bafkreihl4namtpjtx2a3hqdepgwvdgvhb4sfc37tg4dho4loolntmzp57a@jpeg
deleted file mode 100644
index 4a303eb..0000000
Binary files a/public/image/vEPdhP659vrk0CqxpzvOvoc0ZnIlsAAxhmoUS3Am2KU/rs:fill:1000:1000:1:0/plain/bafkreihl4namtpjtx2a3hqdepgwvdgvhb4sfc37tg4dho4loolntmzp57a@jpeg and /dev/null differ
diff --git a/public/image/yxvjT3Q1W4xjQXO5knVPFXcCGJNHLCAaFgO8cJnnV18/rs:fill:3000:1000:1:0/plain/bafkreid4lykfei4rz262s6gn6popexr7bgtb2gskqpn3or3cxdvi3bxv7e@jpeg b/public/image/yxvjT3Q1W4xjQXO5knVPFXcCGJNHLCAaFgO8cJnnV18/rs:fill:3000:1000:1:0/plain/bafkreid4lykfei4rz262s6gn6popexr7bgtb2gskqpn3or3cxdvi3bxv7e@jpeg
deleted file mode 100644
index b55846d..0000000
Binary files a/public/image/yxvjT3Q1W4xjQXO5knVPFXcCGJNHLCAaFgO8cJnnV18/rs:fill:3000:1000:1:0/plain/bafkreid4lykfei4rz262s6gn6popexr7bgtb2gskqpn3or3cxdvi3bxv7e@jpeg and /dev/null differ
diff --git a/public/index.html b/public/index.html
deleted file mode 100644
index 5442178..0000000
--- a/public/index.html
+++ /dev/null
@@ -1 +0,0 @@
-
<%= htmlWebpackPlugin.options.title %> Vue App
diff --git a/public/json/syui.syui.ai.json b/public/json/syui.syui.ai.json
deleted file mode 100644
index 05660d2..0000000
--- a/public/json/syui.syui.ai.json
+++ /dev/null
@@ -1,20 +0,0 @@
-{
- "did": "did:plc:schldsdljwxcdtslnbqaoifh",
- "declaration": {
- "actorType": "app.bsky.system.actorUser",
- "cid": "bafyreid27zk7lbis4zw5fz4podbvbs4fc5ivwji3dmrwa6zggnj4bnd57u"
- },
- "handle": "syui.syui.ai",
- "avatar": "https://at.syui.ai/image/1gNGwD6W74qb_Nuncr5H5i9UADEtdyds9myxRGnkGMw/rs:fill:1000:1000:1:0/plain/bafkreibxgpwttqvpsnn5yrvqkx47nwuzpzrkfyladqy2hbj3chedph3fni@jpeg",
- "followsCount": 0,
- "followersCount": 1,
- "postsCount": 1,
- "creator": "did:plc:schldsdljwxcdtslnbqaoifh",
- "indexedAt": "2023-03-21T08:23:26.046Z",
- "viewer": {
- "muted": false
- },
- "myState": {
- "muted": false
- }
-}
diff --git a/readme.md b/readme.md
new file mode 100644
index 0000000..684cefd
--- /dev/null
+++ b/readme.md
@@ -0,0 +1,9 @@
+# card
+
+- host : [card.syui.ai](https://card.syuiai)
+
+```sh
+$ nvm use 16
+$ yarn install
+$ yarn dev
+```
diff --git a/scpt/card_number_push.zsh b/scpt/card_number_push.zsh
new file mode 100755
index 0000000..e4f1ba8
--- /dev/null
+++ b/scpt/card_number_push.zsh
@@ -0,0 +1,16 @@
+#!/bin/zsh
+d=${0:a:h}
+dd=${0:a:h:h}
+
+url=https://syui.ai/img
+
+json=$dd/public/json/card.json
+n=`cat $json|jq "length"`
+n=`expr $n - 1`
+
+for ((i=0;i<=14;i++))
+do
+ sid=`cat $json|jq -r ".[$i].src"`
+ id=`cat $json|jq -r ".[$i].id"`
+ curl -sL $url/${sid}.png -o ~/ai/yui/content/img/${id}.png
+done
diff --git a/scpt/convert.zsh b/scpt/convert.zsh
new file mode 100755
index 0000000..6860b93
--- /dev/null
+++ b/scpt/convert.zsh
@@ -0,0 +1,62 @@
+#!/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
+
+dir=$dd/public/card
+static=$dd/static/img
+json=$dd/public/json/card.json
+mkdir -p $dir
+mkdir -p $static
+n=`cat $json|jq "length"`
+n=`expr $n - 1`
+bg=$static/card_bg.png
+br=$static/card_br.png
+
+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
+ p=`cat $json|jq -r ".[$i].p"`
+ sid=`cat $json|jq -r ".[$i].src"`
+ s=$static/${sid}.png
+ id=`cat $json|jq -r ".[$i].id"`
+ o=$dir/card_$id.png
+ gif=$dir/card_$id.gif
+
+ if [ -f $o ];then
+ continue
+ fi
+
+ if [ ! -f $s ];then
+ curl -sL $url/yui_${sid}.png -o $s
+ fi
+
+ if [ ! -f $o ] && [ -n "`echo $s|grep ai_model`" ];then
+ model_card=$dir/${sid}.png
+ model_webp=$dir/${sid}.webp
+ cp -rf $model_card $o
+ squoosh-cli --webp '{"quality":100}' -d ./ --resize '{width:825,height:1080}' $o
+ fi
+
+ if [ ! -f $o ];then
+ #if [ ! -f $o ] && [ -z "`echo $s|grep ai_model`" ];then
+ composite -gravity north -geometry +0+160 -compose over $s $bg $o.back
+ composite -gravity north -geometry +0+0 -compose over $br $o.back $o
+ squoosh-cli --webp '{"quality":100}' -d ./ --resize '{width:825,height:1080}' $o
+ rm $o.back
+ fi
+
+done
diff --git a/scpt/convert_origin.zsh b/scpt/convert_origin.zsh
new file mode 100755
index 0000000..9dc3872
--- /dev/null
+++ b/scpt/convert_origin.zsh
@@ -0,0 +1,53 @@
+#!/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
+
+dir=$dd/public/card
+static=$dd/static/img
+json=$dd/public/json/card.json
+mkdir -p $dir
+mkdir -p $static
+n=`cat $json|jq "length"`
+n=`expr $n - 1`
+bg=$static/card_bg_origin.png
+br=$static/card_br.png
+
+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
+ p=`cat $json|jq -r ".[$i].p"`
+ sid=`cat $json|jq -r ".[$i].src"`
+ s=$static/${sid}.png
+ id=`cat $json|jq -r ".[$i].id"`
+ o=$dir/card_origin_${id}.png
+
+ if [ -f $o ];then
+ continue
+ fi
+
+ if [ ! -f $s ];then
+ curl -sL $url/yui_${sid}.png -o $s
+ fi
+
+ if [ ! -f $o ] && [ -z "`echo $s|grep ai_model`" ];then
+ composite -gravity north -geometry +0+160 -compose over $s $bg $o.back
+ composite -gravity north -geometry +0+0 -compose over $br $o.back $o
+ squoosh-cli --webp '{"quality":100}' -d ./ --resize '{width:825,height:1080}' $o
+ rm $o.back
+ fi
+
+done
diff --git a/scpt/convert_origin2.zsh b/scpt/convert_origin2.zsh
new file mode 100755
index 0000000..bad1130
--- /dev/null
+++ b/scpt/convert_origin2.zsh
@@ -0,0 +1,53 @@
+#!/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
+
+dir=$dd/public/card
+static=$dd/static/img
+json=$dd/public/json/card.json
+mkdir -p $dir
+mkdir -p $static
+n=`cat $json|jq "length"`
+n=`expr $n - 1`
+bg=$static/card_bg_origin2.png
+br=$static/card_br.png
+
+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
+ p=`cat $json|jq -r ".[$i].p"`
+ sid=`cat $json|jq -r ".[$i].src"`
+ s=$static/${sid}.png
+ id=`cat $json|jq -r ".[$i].id"`
+ o=$dir/card_origin2_${id}.png
+
+ if [ -f $o ];then
+ continue
+ fi
+
+ if [ ! -f $s ];then
+ curl -sL $url/yui_${sid}.png -o $s
+ fi
+
+ if [ ! -f $o ] && [ -z "`echo $s|grep ai_model`" ];then
+ composite -gravity north -geometry +0+160 -compose over $s $bg $o.back
+ composite -gravity north -geometry +0+0 -compose over $br $o.back $o
+ squoosh-cli --webp '{"quality":100}' -d ./ --resize '{width:825,height:1080}' $o
+ rm $o.back
+ fi
+
+done
diff --git a/scpt/convert_s.zsh b/scpt/convert_s.zsh
new file mode 100755
index 0000000..af726bd
--- /dev/null
+++ b/scpt/convert_s.zsh
@@ -0,0 +1,55 @@
+#!/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
+
+dir=$dd/public/card
+static=$dd/static/img
+json=$dd/public/json/card.json
+mkdir -p $dir
+mkdir -p $static
+n=`cat $json|jq "length"`
+n=`expr $n - 1`
+bg=$static/card_bg_s.png
+br=$static/card_bg_sr.png
+for ((i=0;i<=$n;i++))
+do
+ p=`cat $json|jq -r ".[$i].p"`
+ sid=`cat $json|jq -r ".[$i].src"`
+ s=$static/${sid}.png
+ id=`cat $json|jq -r ".[$i].id"`
+ o=$dir/test_${id}s.png
+
+ if [ -f $o ];then
+ continue
+ fi
+
+ if [ ! -f $s ];then
+ curl -sL $url/yui_${sid}.png -o $s
+ fi
+
+ #if [ ! -f $o ];then
+ composite -gravity north -geometry +0+160 -compose over $s $bg $o.back
+ composite -gravity north -geometry +0+0 -compose over $br $o.back $o
+ rm $o.back
+ #fi
+
+done
+
+cd $dir
+export NVM_DIR="$HOME/.nvm"
+[ -s "$path_nvm_sh" ] && \. "$path_nvm_sh"
+nvm use 17
+nvm i squoosh-cli
+#rm og_*
+squoosh-cli --webp '{"quality":100}' -d ./ --resize '{width:825,height:1080}' *.png
+
+#mogrify -resize 1620x2160! *.png
diff --git a/scpt/gif.zsh b/scpt/gif.zsh
new file mode 100755
index 0000000..b7ed6d3
--- /dev/null
+++ b/scpt/gif.zsh
@@ -0,0 +1,59 @@
+#!/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
+
+dir=$dd/public/card
+static=$dd/static/img
+json=$dd/public/json/card.json
+mkdir -p $dir
+mkdir -p $static
+n=`cat $json|jq "length"`
+n=`expr $n - 1`
+bg=$static/card_bg.png
+br=$static/card_br.png
+
+for ((i=0;i<=$n;i++))
+do
+ p=`cat $json|jq -r ".[$i].p"`
+ sid=`cat $json|jq -r ".[$i].src"`
+ s=$static/${sid}.png
+ id=`cat $json|jq -r ".[$i].id"`
+ gif=$dir/card_$id.gif
+
+ if [ -f $gif ];then
+ continue
+ fi
+
+ nn=`ls $static/card_bgg_*.png|wc -l`
+ nn=$((nn - 1))
+
+ for ((ii=0;ii<=$nn;ii++))
+ do
+ title=$dir/null
+ o=${title}_${ii}.png
+ br=$static/card_bgg_${ii}.png
+ composite -gravity north -geometry +0+160 -compose over $s $bg $o.back
+ composite -gravity north -geometry +0+0 -compose over $br $o.back $o
+ rm $o.back
+
+ 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 $dir --resize '{width:400,height:524}' $o
+
+ done
+
+ convert -layers optimize -loop 0 -delay 40 $dir/null_*.webp $gif
+ rm -f $dir/null_*
+
+done
diff --git a/scpt/gif_first.zsh b/scpt/gif_first.zsh
new file mode 100755
index 0000000..348bbdc
--- /dev/null
+++ b/scpt/gif_first.zsh
@@ -0,0 +1,59 @@
+#!/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
+
+dir=$dd/public/card
+static=$dd/static/img
+json=$dd/public/json/card.json
+mkdir -p $dir
+mkdir -p $static
+n=`cat $json|jq "length"`
+n=`expr $n - 1`
+bg=$static/card_bg.png
+br=$static/card_br.png
+
+for ((i=0;i<=$n;i++))
+do
+ p=`cat $json|jq -r ".[$i].p"`
+ sid=`cat $json|jq -r ".[$i].src"`
+ s=$static/${sid}.png
+ id=`cat $json|jq -r ".[$i].id"`
+ gif=$dir/card_first_$id.gif
+
+ if [ -f $gif ];then
+ continue
+ fi
+
+ nn=`ls $static/card_bgg_first_*.png|wc -l`
+ nn=$((nn - 1))
+
+ for ((ii=0;ii<=$nn;ii++))
+ do
+ title=$dir/null
+ o=${title}_first_${ii}.png
+ br=$static/card_bgg_first_${ii}.png
+ composite -gravity north -geometry +0+160 -compose over $s $bg $o.back
+ composite -gravity north -geometry +0+0 -compose over $br $o.back $o
+ rm $o.back
+
+ 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 $dir --resize '{width:400,height:524}' $o
+
+ done
+
+ convert -layers optimize -loop 0 -delay 40 $dir/null_*.webp $gif
+ rm -f $dir/null_*
+
+done
diff --git a/scpt/model_gif.zsh b/scpt/model_gif.zsh
new file mode 100755
index 0000000..8c2a389
--- /dev/null
+++ b/scpt/model_gif.zsh
@@ -0,0 +1,38 @@
+#!/bin/zsh
+inp=mp4
+for i in *.${inp}
+do
+ ffmpeg -i *.${inp} -r 8 %04d.png
+done
+
+inp=png
+out=jpg
+for i in *.${inp}
+do
+convert ${i%.*}.${inp} -gravity center -crop 825x1080+0+0 ${i%.*}_crop.${inp}
+convert ${i%.*}_crop.${inp} -resize 1620x2160! ${i%.*}.${out}
+done
+
+nn=`ls *.jpg|wc -l`
+static=~/ai/card/static/img
+bg=$static/card_bg.png
+br=$static/card_br.png
+for ((ii=1;ii<=$nn;ii++))
+ do
+ s=`ls *.jpg|awk "NR==$ii"`
+ o=null_${ii}.png
+ echo $o
+ if [ -f $b ];then
+ echo yes
+ else
+ echo no
+ fi
+ composite -gravity north -geometry +0+160 -compose over $s $bg $o.back
+ composite -gravity north -geometry +0+0 -compose over $br $o.back $o
+ rm $o.back
+done
+
+gif=`ls *.mp4|cut -d . -f 1`.gif
+convert -layers optimize -loop 0 -delay 40 null_*.png $gif
+rm *.jpg
+rm *.png
diff --git a/scpt/ogimage.zsh b/scpt/ogimage.zsh
new file mode 100755
index 0000000..9cdf3f5
--- /dev/null
+++ b/scpt/ogimage.zsh
@@ -0,0 +1,56 @@
+#!/bin/zsh
+
+url=https://card.syui.ai
+d=${0:a:h}
+dd=${0:a:h:h}
+dir=$dd/public/card
+o_dir=$dd/static/img
+static=$dd/static/img
+json=$dd/public/json/card.json
+mkdir -p $dir
+mkdir -p $static
+n=`cat $json|jq "length"`
+n=`expr $n - 1`
+
+for ((i=0;i<=$n;i++))
+do
+ p=`cat $json|jq -r ".[$i].p"`
+ h=`cat $json|jq -r ".[$i].h"`
+ sid=`cat $json|jq -r ".[$i].src"`
+ s=$static/${sid}.png
+ id=`cat $json|jq -r ".[$i].id"`
+ o=$dir/card_$id.png
+ oo=$o_dir/og_${id}.png
+ o_url=$url/card/og_${id}.png
+ index=$o_dir/$id/index.html
+
+ if [ ! -f $oo ];then
+ convert $o -gravity center -extent 8000x4000 $oo
+ fi
+
+# mkdir -p $o_dir/$id
+#
+#echo '
+#
+#
+#
+#card.syui.ai card.syui.ai
+#
+#
+#' >! $index
+#
+#echo "
+#
+#
+#
+#" >> $index
+#
+#echo '
+#
+#
+#
+#
+#
+#' >> $index
+
+done
diff --git a/src/App.vue b/src/App.vue
index c31ab3e..a7f6bbb 100755
--- a/src/App.vue
+++ b/src/App.vue
@@ -1,74 +1,1182 @@
-
-
-
-
{{ user.data.username }} card list
-
- {{ ii.cp }}
-
+
+
+
-
-
- id : {{ i.id }}
- {{ i.username }}
-
+
+
+
+
+
+
+ help en fav ten did did
+
+
+
+
+
+ {{ loc }}
+ {{ loc }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ attack
+ {{ model_attack }}
+
+
+ critical
+ {{ model_critical }}
+
+
+ critical_d
+ {{ model_critical_d }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ new cp card info
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ @{{ ii.author }}
+
+
+
+ @{{ ii.author }}
+
+
+
+
+
+
+
+
+ @{{ ii.author }}
+
+
+
+ @{{ ii.author }}
+
+
+
+
+
+
+ ▲ ■ {{ ii.cp }}
+ ID {{ ii.card }}
+ CID {{ ii.id }}
+ {{ ii.skill }}
+ ✧ {{ ii.status }}
+
+
+
+
+
+ @{{ ii.author }}
+
+
+
+ @{{ ii.author }}
+
+
+
+
+
+ @{{ ii.author }}
+
+
+
+ @{{ ii.author }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ▲ ■ {{ ii.cp }}
+ ID {{ ii.card }}
+ CID {{ ii.id }}
+ {{ ii.skill }}
+ ✧ {{ ii.status }}
+
+
+
+
+
+
+
+
+
+
did
+
+
+ Decentralized identifiers (DIDs) are a new type of identifier that enables verifiable, decentralized digital identity. A DID refers to any subject (e.g., a person, organization, thing, data model, abstract entity, etc.) as determined by the controller of the DID. In contrast to typical, federated identifiers, DIDs have been designed so that they may be decoupled from centralized registries, identity providers, and certificate authorities. Specifically, while other parties might be used to help enable the discovery of information related to a DID, the design enables the controller of a DID to prove control over it without requiring permission from any other party. DIDs are URIs that associate a DID subject with a DID document allowing trustable interactions associated with that subject.
+
+
+ Each DID document can express cryptographic material, verification methods, or services, which provide a set of mechanisms enabling a DID controller to prove control of the DID. Services enable trusted interactions associated with the DID subject. A DID might provide the means to return the DID subject itself, if the DID subject is an information resource such as a data model.
+
+
+ This document specifies the DID syntax, a common data model, core properties, serialized representations, DID operations, and an explanation of the process of resolving DIDs to the resources that they represent.
+
+
+
https://www.w3.org/TR/did-core/
+
+
+
+
+
+
+
user : {{ user.data.username }}
+
id : {{ user.data.id }}
+
did : {{ user.data.did }}
+
aiten : {{ user.data.aiten }}
+
handle : {{ user.data.handle }}
+
status : delete
+
created_at : {{ user.data.created_at }}
+
+ {{ ii.cp }}
+
+
+
+
+
+
+ {{ u.cp }}
+
+
+
+
+
+
+
+
3Dモデル
+
アイの3Dモデルを育成することができます。
+
モデルを有効にするには カードが必要になります。
+
カードは低確率で排出されます。
+
動作環境
+
+
+
+ ios/safari
+
+
+
+
+ ios17
+ ok
+
+
+ ios16
+ no
+
+
+
+
Allow WebGL in Web Workers
+
GPU Process: Canvas Rendering
+
GPU Process: DOM Rendering
+
OffscreenCanvas in Workers
+
OffscreenCanvas
+
+
+
+ pc
+
+
+
+
+ chrome/chromium
+ ok
+
+
+ edge
+ ok
+
+
+ safari
+ yes
+
+
+ firefox
+ no
+
+
+
+
+
天性レベル
+
それぞれの天性レベルはモデルになったカードに属します。
+
+
+
+
+
+
+
+ モード
+ アタック
+ スキル
+ バースト
+
+
+ card:2
+ card:9
+ card:3
+ card:7
+
+
+
+
他で使用するカードの効果が天性レベルx10されることがあります。
+
モデルが有効であれば/ten pay
でレベルを上げられます。
+
+
+
+
+ 正式名称
+
+
+
+
+ mode
+ attack
+ skill
+ burst (limit)
+
+
+ アイ・モード
+ 通常攻撃
+ 原子スキル
+ 原子バースト
+
+
+
+
+
固有天性
+
キャラごとに固有天性が3つあります。
+
+
+
+ 固有天性
+
+
+
+
+ 量子テレポート
+ 記憶した場所に移動
+
+
+ 電子浮遊
+ 空を飛べる
+
+
+ 大気バリア
+ 空間の影響を受けない
+
+
+
+
+
会心系
+
ステータスには会心率と会心ダメージがあります。
+
/ten
で勝利するとステータスが上がります。
+
+
+
+
+ 会心系
+
+
+
+
+ 会心率
+ 会心ダメージ
+
+
+ +1%
+ +10%
+
+
+
+
+
その他
+
キャラのレベルはlostのカード数によって算出されます。
+
+
+
+
カードは1日に1回、引くことができます
+
カードの排出率は以下のとおりです
+
+
+
+
+ status
+
+
+
+
+ normal
+ rare
+ super
+
+
+ 90%
+ 9%
+ 1%
+
+
+
+
+
カードには強さを表す数字が入っています
+
+
+
+
+ cp
+
+
+
+
+ normal
+ rare
+ super
+
+
+ +0~200
+ +0~450
+ +0~800
+
+
+
+
+
対戦について
+
@yui.syui.ai /card -b
+
ランダムマッチ、手持ちの上位3枚のうち1枚がランダムで選ばれます
+
+
レイドについて
+
@yui.syui.ai /card -r
+
レイドバトル、手持ちで一番強いカードが選ばれます
+
+
mastodon
+
@yui@syui.ai /card
+
mastodonからもカードを引くことができます
+
ユーザー名が同じの場合、カードは共通です
+
activitypub mode
+
@yui.syui.ai /card ap=false
+
bsky.socialからactivitypub modeをtrue
/false
に切り替える
+
+
秘密
+
レアカード
を3枚集めると、いいことがあるかも
+
集めた人は@syui まで連絡してみて
+
ただし、リアルカードに変わるのは、こちらの所有者 がいないカードに限られます
+
+
+
link
+
+
+
+
+
Cards can be drawn once a day
+
Card emission rates are as follows
+
+
+
+
+ status
+
+
+
+
+ normal
+ rare
+ super
+
+
+ 90%
+ 9%
+ 1%
+
+
+
+
+
The cards have numbers(cp) on them indicating their strength.
+
+
+
+
+ cp
+
+
+
+
+ normal
+ rare
+ super
+
+
+ +0~200
+ +0~450
+ +0~800
+
+
+
+
+
battle
+
@yui.syui.ai /card -b
+
Random match, one of the top 3 cards on hand will be chosen at random
+
+
mastodon
+
@yui@syui.ai /card
+
support mastodon
+
activitypub
+
@yui.syui.ai /card ap=false
+
activitypub mode disable
+
+
secret
+
card owner
+
+
link
+
+
+
+
+
+
+
+
+
card : {{ii.id }} / {{ ii.h }}
+
+
owner : {{ ii.owner }}
+
owner : none
+
+
+
card : {{ii.id }} / {{ ii.h }}
+
+
+
+
+
+
+
owner : {{ ii.owner }}
+
owner : none
+
+
+
card : {{ii.id }} / {{ ii.h }}
+
+
owner : {{ ii.owner }}
+
owner : none
+
+
+
card : {{ii.id }} / {{ ii.h }}
+
+
owner : {{ ii.owner }}
+
owner : none
+
+
+
card : {{ii.id }} / {{ ii.h }}
+
+
+
+
+
+
+
owner : {{ ii.owner }}
+
owner : none
+
+
+
card : {{ii.id }} / {{ ii.h }}
+
+
+
+
+
+
+
owner : {{ ii.owner }}
+
owner : none
+
+
+
card : {{ii.id }} / {{ ii.h }}
+
+
+
+
+
+
+
owner : {{ ii.owner }}
+
owner : none
+
+
+
card : {{ii.id }} / {{ ii.h }}
+
+
+
+
+
+
+
owner : {{ ii.owner }}
+
owner : none
+
+
+
card : {{ii.id }} / {{ ii.h }}
+
+
owner : {{ iii.user }} ,
+
owner : none
+
+
+
card : {{ii.id }} / {{ ii.h }}
+
+
owner : {{ iii.user }} ,
+
owner : none
+
+
+
card : {{ii.id }} / {{ ii.h }}
+
+
owner : {{ ii.owner }}
+
owner : none
+
+
+
card : {{ii.id }} / {{ ii.h }}
+
+
owner : {{ ii.owner }}
+
owner : none
+
+
+
card : {{ii.id }} / {{ ii.h }}
+
+
owner : {{ iii.user }} ,
+
owner : none
+
+
+
+
+
+
+
+
AITEN
+
+
+
+
+
id:{{ ii.id }}
+
[{{ ii.ten }}] {{ ii.h }} / {{ ii.id }}00
+
+
+
+
id:{{ ii.id }}
+
[{{ ii.ten }}] {{ ii.h }} / {{ ii.id }}00
+
+
+
+
+
+
+
+
+
/ten h
: ヘルプ
+
/ten start
: 7ターンまでに文字をそろえる
+
はカードを持ってる人しか出せない
+
ACEHIKMOSTUWYZ
+
+
+
+
+
/fa <share-url> <img-url>
+
+
+
+
+
/ph <share-url> <img-url>
+
+
+
+
+
+
+
お気に入りのカードを1枚だけ登録できます
+
数字は自身のカードボックスにある info で確認します。
+
+
下記のコマンドを実行して登録します。
+
@yui.syui.ai /fav 1
+
もとに戻すときは 0
を指定します。
+
/fav b
でバトルできます。
+
1日のバトルポイントを消費します。
+
+
+
diff --git a/src/main.js b/src/main.js
index fca74cf..852786b 100755
--- a/src/main.js
+++ b/src/main.js
@@ -1,6 +1,7 @@
import Vue from 'vue'
import App from './App.vue'
-
+import VueMeta from 'vue-meta'
+Vue.use(VueMeta)
Vue.config.productionTip = false
new Vue({
diff --git a/vue.config.js b/vue.config.js
index c65b13b..4829cdc 100644
--- a/vue.config.js
+++ b/vue.config.js
@@ -1,11 +1,11 @@
module.exports = {
- chainWebpack: config => {
- config
- .plugin('html')
- .tap(args => {
- args[0].title = "syui.ai";
- return args;
- })
+ devServer: {
+ proxy: {
+ "^/api*": {
+ target: "https://api.syui.ai",
+ pathRewrite: { "^/api": "" },
+ }
+ }
},
publicPath: "/",
configureWebpack: {