Skip to content

Commit

Permalink
[front] Cleanup and build
Browse files Browse the repository at this point in the history
  • Loading branch information
onizucraft committed Nov 13, 2024
1 parent a9ab631 commit 0000a54
Show file tree
Hide file tree
Showing 32 changed files with 1,698 additions and 16,569 deletions.
51 changes: 51 additions & 0 deletions .github/workflows/jekyll-gh-pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
# Sample workflow for building and deploying a Jekyll site to GitHub Pages
name: Deploy Jekyll with GitHub Pages dependencies preinstalled

on:
# Runs on pushes targeting the default branch
push:
branches: ["master"]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write

# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: "pages"
cancel-in-progress: false

jobs:
# Build job
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Pages
uses: actions/configure-pages@v5
- name: Build with Jekyll
uses: actions/jekyll-build-pages@v1
with:
source: ./front/dist
destination: ./_site
- name: Upload artifact
uses: actions/upload-pages-artifact@v3

# Deployment job
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
3 changes: 2 additions & 1 deletion front/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,10 @@ pnpm-debug.log*
lerna-debug.log*

node_modules
dist
!dist
dist-ssr
*.local
*.tsbuildinfo

# Editor directories and files
.vscode
Expand Down
1 change: 1 addition & 0 deletions front/dist/assets/CanvasPool-BLxBc8KV.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

317 changes: 317 additions & 0 deletions front/dist/assets/SharedSystems-CPy7JwlF.js

Large diffs are not rendered by default.

156 changes: 156 additions & 0 deletions front/dist/assets/WebGLRenderer-BA0l78fB.js

Large diffs are not rendered by default.

41 changes: 41 additions & 0 deletions front/dist/assets/WebGPURenderer-By63v2Jz.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions front/dist/assets/browserAll-BRahYIVq.js

Large diffs are not rendered by default.

31 changes: 31 additions & 0 deletions front/dist/assets/colorToUniform-CoYv3rLJ.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
import{T as h,a as x,n as c}from"./index-BXxd91-X.js";let m=0;class f{constructor(e){this._poolKeyHash=Object.create(null),this._texturePool={},this.textureOptions=e||{},this.enableFullScreen=!1}createTexture(e,o,t){const i=new h({...this.textureOptions,width:e,height:o,resolution:1,antialias:t,autoGarbageCollect:!0});return new x({source:i,label:`texturePool_${m++}`})}getOptimalTexture(e,o,t=1,i){let s=Math.ceil(e*t-1e-6),u=Math.ceil(o*t-1e-6);s=c(s),u=c(u);const n=(s<<17)+(u<<1)+(i?1:0);this._texturePool[n]||(this._texturePool[n]=[]);let r=this._texturePool[n].pop();return r||(r=this.createTexture(s,u,i)),r.source._resolution=t,r.source.width=s/t,r.source.height=u/t,r.source.pixelWidth=s,r.source.pixelHeight=u,r.frame.x=0,r.frame.y=0,r.frame.width=e,r.frame.height=o,r.updateUvs(),this._poolKeyHash[r.uid]=n,r}getSameSizeTexture(e,o=!1){const t=e.source;return this.getOptimalTexture(e.width,e.height,t._resolution,o)}returnTexture(e){const o=this._poolKeyHash[e.uid];this._texturePool[o].push(e)}clear(e){if(e=e!==!1,e)for(const o in this._texturePool){const t=this._texturePool[o];if(t)for(let i=0;i<t.length;i++)t[i].destroy(!0)}this._texturePool={}}}const p=new f,a={name:"local-uniform-bit",vertex:{header:`
struct LocalUniforms {
uTransformMatrix:mat3x3<f32>,
uColor:vec4<f32>,
uRound:f32,
}
@group(1) @binding(0) var<uniform> localUniforms : LocalUniforms;
`,main:`
vColor *= localUniforms.uColor;
modelMatrix *= localUniforms.uTransformMatrix;
`,end:`
if(localUniforms.uRound == 1)
{
vPosition = vec4(roundPixels(vPosition.xy, globalUniforms.uResolution), vPosition.zw);
}
`}},_={...a,vertex:{...a.vertex,header:a.vertex.header.replace("group(1)","group(2)")}},P={name:"local-uniform-bit",vertex:{header:`
uniform mat3 uTransformMatrix;
uniform vec4 uColor;
uniform float uRound;
`,main:`
vColor *= uColor;
modelMatrix = uTransformMatrix;
`,end:`
if(uRound == 1.)
{
gl_Position.xy = roundPixels(gl_Position.xy, uResolution);
}
`}};class b{constructor(){this.batcherName="default",this.attributeSize=4,this.indexSize=6,this.packAsQuad=!0,this.roundPixels=0,this._attributeStart=0,this._batcher=null,this._batch=null}get blendMode(){return this.renderable.groupBlendMode}get color(){return this.renderable.groupColorAlpha}reset(){this.renderable=null,this.texture=null,this._batcher=null,this._batch=null,this.bounds=null}}function g(l,e,o){const t=(l>>24&255)/255;e[o++]=(l&255)/255*t,e[o++]=(l>>8&255)/255*t,e[o++]=(l>>16&255)/255*t,e[o++]=t}export{b as B,p as T,a,P as b,g as c,_ as l};
521 changes: 521 additions & 0 deletions front/dist/assets/index-BXxd91-X.js

Large diffs are not rendered by default.

Loading

0 comments on commit 0000a54

Please sign in to comment.