Skip to content

Commit

Permalink
first update
Browse files Browse the repository at this point in the history
  • Loading branch information
syui committed Mar 19, 2024
1 parent 40f6d6b commit 8041214
Show file tree
Hide file tree
Showing 19 changed files with 658 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: github pages

on:
push:
branches:
- main

env:
GITEA_MAIL: ${{ secrets.GITEA_MAIL }}
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}

jobs:
build-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18
ref: main
submodules: true
fetch-depth: 0
- run: |
yarn install
rm -rf dist/vrma
git clone https://${GITEA_TOKEN}@git.syui.ai/ai/vrma dist/vrma
rm -rf dist/vrma/.git
- 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'
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
node_modules
package-lock.json
example
yarn.lock
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "dist/vrma"]
path = dist/vrma
url = git@git.syui.ai:ai/vrma
24 changes: 24 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,30 @@
# vrm

three-vrm + vrma

## vrm & vrma

```sh
$ git submodule update --init --recursive
```

or

- vrm : [download](https://hub.vroid.com/characters/675572020956181239/models/7175071267176594918)
- vrma : [download](https://vroid.booth.pm/items/5512385)

> ./dist/vrma
```js
load("/vrma/model.vrm");
load("/vrma/VRMA_01.vrma");
```

## build

```sh
$ npm i
$ npm run dev
$ npm run build
```

1 change: 1 addition & 0 deletions dist/CNAME
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v.syui.ai
72 changes: 72 additions & 0 deletions dist/css/icomoon/css/icomoon.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
@font-face {
font-family: 'icomoon';
src: url('../fonts/icomoon.eot?czi5du');
src: url('../fonts/icomoon.eot?czi5du#iefix') format('embedded-opentype'),
url('../fonts/icomoon.ttf?czi5du') format('truetype'),
url('../fonts/icomoon.woff?czi5du') format('woff'),
url('../fonts/icomoon.svg?czi5du#icomoon') format('svg');
font-weight: normal;
font-style: normal;
font-display: block;
}

[class^="icon-"], [class*=" icon-"] {
/* use !important to prevent issues with browser extensions that change fonts */
font-family: 'icomoon' !important;
speak: never;
font-style: normal;
font-weight: normal;
font-variant: normal;
text-transform: none;
line-height: 1;

/* Better Font Rendering =========== */
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}

.icon-ai:before {
content: "\e908";
}
.icon-robot:before {
content: "\e909";
}
.icon-api:before {
content: "\e90e";
}
.icon-sandar:before {
content: "\e90a";
}
.icon-moon:before {
content: "\e90b";
}
.icon-home:before {
content: "\e90c";
}
.icon-cloud:before {
content: "\e90d";
}
.icon-phoenix:before {
content: "\e906";
}
.icon-honeycomb:before {
content: "\e907";
}
.icon-phoenix-power:before {
content: "\e903";
}
.icon-phoenix-world:before {
content: "\e904";
}
.icon-power:before {
content: "\e905";
}
.icon-syui:before {
content: "\e902";
}
.icon-archlinux:before {
content: "\e900";
}
.icon-archlinuxjp:before {
content: "\e901";
}
Binary file added dist/css/icomoon/fonts/icomoon.eot
Binary file not shown.
25 changes: 25 additions & 0 deletions dist/css/icomoon/fonts/icomoon.svg
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 dist/css/icomoon/fonts/icomoon.ttf
Binary file not shown.
Binary file added dist/css/icomoon/fonts/icomoon.woff
Binary file not shown.
31 changes: 31 additions & 0 deletions dist/css/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
div#menu {
padding: 20px;
border-bottom:solid 1px #ccc;
}

button {
border: none;
margin: 0;
padding: 0 20px 0 20px;
width: auto;
overflow: visible;
background: transparent;
color: inherit;
font: inherit;
line-height: normal;
-webkit-font-smoothing: inherit;
-moz-osx-font-smoothing: inherit;
appearance: none;
-webkit-appearance: none;
cursor: pointer;
user-select: none;
}

a {
text-decoration: none;
}

a:hover{
/* color: #fff700; */
color: #847e00;
}
Binary file added dist/favicon.ico
Binary file not shown.
17 changes: 17 additions & 0 deletions dist/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<!DOCTYPE html>
<html>
<head>
<title>ai</title>
<link rel="icon" href="/favicon.ico"/>
<link rel="stylesheet" href="/css/icomoon/css/icomoon.css"/>
<link rel="stylesheet" href="/css/style.css"/>
<script src="main.js"></script>
</head>
<body>
<div id="menu">
<button id='btn-ai'><a href="https://v.syui.ai"><span class="icon-ai"/></a></button>
<button id='btn-moon'><span class="icon-moon"/></button>
</div>
<div id="canvas" style="width:100%;height:640px;"></div>
</body>
</html>
156 changes: 156 additions & 0 deletions dist/main.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions dist/vrma
Submodule vrma added at 3e83eb
22 changes: 22 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"name": "vrm",
"version": "0.0.1",
"private": true,
"scripts": {
"build": "webpack",
"dev": "webpack-dev-server --open"
},
"devDependencies": {
"ts-loader": "^9.5.1",
"typescript": "^5.4.2",
"webpack": "^5.90.3",
"webpack-cli": "^5.1.4",
"webpack-dev-server": "^5.0.3"
},
"dependencies": {
"@pixiv/three-vrm": "^2.1.1",
"@pixiv/three-vrm-animation": "^2.1.1",
"@pixiv/three-vrm-springbone": "^2.1.1",
"three": "^0.162.0"
}
}
Loading

0 comments on commit 8041214

Please sign in to comment.