[Migration] NPM (#1266)

* chore: add npm + vite for progressive enhancement

* fix: update Dockerfile to copy only the dist folder contents

* fix: update Dockerfile to use multi-stage build for optimized production image

* fix: correct nginx config file copy command in Dockerfile

* chore: add netlify configuration for build and redirects

* fix: add NODE_VERSION to environment in Netlify configuration

* remove wrong dist folder

* Update package.json

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* chore: split public and src

* migrating all util files from js to ts

* feat: Implement HeightmapGenerator and Voronoi module

- Added HeightmapGenerator class for generating heightmaps with various tools (Hill, Pit, Range, Trough, Strait, etc.).
- Introduced Voronoi class for creating Voronoi diagrams using Delaunator.
- Updated index.html to include new modules.
- Created index.ts to manage module imports.
- Enhanced arrayUtils and graphUtils with type definitions and improved functionality.
- Added utility functions for generating grids and calculating Voronoi cells.

* chore: add GitHub Actions workflow for deploying to GitHub Pages

* fix: update branch name in GitHub Actions workflow from 'main' to 'master'

* chore: update package.json to specify Node.js engine version and remove unused launch.json

* Initial plan

* Update copilot guidelines to reflect NPM/Vite/TypeScript migration

Co-authored-by: Azgaar <26469650+Azgaar@users.noreply.github.com>

* Update src/modules/heightmap-generator.ts

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update src/utils/graphUtils.ts

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update src/modules/heightmap-generator.ts

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* feat: Add TIME and ERROR variables to global scope in HeightmapGenerator

* fix: Update base path in vite.config.ts for Netlify deployment

* fix: Update Node.js version in Dockerfile to 24-alpine

---------

Co-authored-by: Marc Emmanuel <marc.emmanuel@tado.com>
Co-authored-by: Marc Emmanuel <marcwissler@gmail.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: Azgaar <26469650+Azgaar@users.noreply.github.com>
This commit is contained in:
Azgaar 2026-01-22 12:20:12 +01:00 committed by GitHub
parent 0c26f0831f
commit 9e0eb03618
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
713 changed files with 5182 additions and 2161 deletions

19
public/charges/sabre.svg Normal file
View file

@ -0,0 +1,19 @@
<svg xmlns="http://www.w3.org/2000/svg" fill="#d7374a" stroke="#000" viewBox="50 50 200 200">
<metadata source="http://wappenwiki.org/images/f/f2/Mohyla_Ancient.svg" license="https://creativecommons.org/licenses/by-nc-sa/3.0"/>
<g id="sabre" stroke-width=".351">
<path class="secondary" d="M121.108 59.727s-.797 14.462-12.15 34.089c-9.977 17.27-22.334 27.535-22.334 27.535l5.268 4.16c-.005-.011 39.572-32.095 29.216-65.784z"/>
<path d="M78.362 131.63c.588 2.155.876 2.231 2.909 2.808 0 0 7.767-7.905 8.628-8.642 1.395-1.25-2.275-3.72-3.1-3.004-.305.42-8.437 8.839-8.437 8.839z"/>
<path d="M80.687 139.383c-.969.287-2.326-.018-3.306-.931-.896-.83-1.819-1.996-1.748-3.038.08-1.183 2.041-3.042 2.99-4.059.422 1.423 1.732 2.485 2.886 2.838-.526.54-1.672 1.678-1.192 2.617.469.942 1.016.588 1.25 1.18.192.524-.128 1.155-.88 1.393z"/>
<path d="M90.04 122.649c1.062 1.02 4.396 4.311 5.114 5.17 1.342 1.639 2.068 3.445.933 4.607-.775.787-1.838.666-2.64-.11-.535-.522-.841-1.198-.387-1.658.244-.259.398-.206.65-.226.29-.017.422.067.643-.162.338-.344-.007-.973-.247-1.335-.282-.428-1.112-1.299-1.695-1.873-1.315-1.303-3.824-2.94-3.824-2.94-.53-.51-4.026-4.179-4.75-5.024-1.331-1.641-2.068-3.445-.933-4.607.765-.784 1.839-.666 2.64.111.546.519.841 1.197.387 1.657-.249.247-.397.206-.65.226-.3.02-.432-.064-.643.162-.338.344.007.973.248 1.335.28.428 1.111 1.3 1.694 1.873 1.315 1.303 3.46 2.794 3.46 2.794z"/>
<g fill="none">
<path d="M121.108 59.727c.33 6.037-.307 12.526-2.2 19.736-2.898 10.999-9.607 23.564-25.02 39.46-.642.655-2 2.07-2.67 2.744"/>
<line x1="91.209" x2="87.614" y1="121.644" y2="120.704"/>
<line x1="91.209" x2="92.45" y1="121.644" y2="124.8"/>
<path d="M85.932 123.752c.029 1.588 1.716 2.866 3.033 2.93"/>
<path d="M84.498 125.21c.208 1.547 1.779 2.929 3.033 2.931"/>
<path d="M83.08 126.678c.135 1.544 1.756 2.876 3.033 2.93"/>
<path d="M81.676 128.207c.067 1.468 1.907 2.913 3.003 2.86"/>
<path d="M80.273 129.67c.16 1.572 1.743 2.814 2.95 2.778"/>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 2 KiB