[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

14
public/charges/crown.svg Normal file
View file

@ -0,0 +1,14 @@
<svg xmlns="http://www.w3.org/2000/svg" fill="#d7374a" stroke="#000" viewBox="50 50 200 200">
<metadata source="http://wappenwiki.org" license="https://creativecommons.org/licenses/by-nc-sa/3.0"/>
<g id="crown" stroke-width=".6">
<path d="M98.2 84c4.3 0 6.5-6.9 9.6-6.9 4.3 0 3.4 6.6 3.4 8.3 0 1.7 1 8.3-3.4 8.3-3.1 0-5.3-7-9.6-7"/>
<path d="M101.8 84c-4.3 0-6.4-6.9-9.6-6.9-4.3 0-3.5 6.6-3.5 8.3 0 1.7-.8 8.3 3.5 8.3 3.1 0 5.3-7 9.6-7m33.5 4.9c1-6.2-3.5-11-2.7-15.5 1-6.2 5.6-3.5 6.9-3.1-1.5 8.7-2.6 18-2.6 18"/>
<path d="M138.5 90.3c-4.3-1.4-5.2-8.8-8.3-9.9-4.2-1.3-4.4 5.2-4.8 7-.3 1.6-2.1 7.9 2 9.3 3.1 1 6.4-5.1 10.5-3.7M99 86.4c0-6.5-5.2-9.6-5.2-14.3 0-6.4 5-5.3 6.3-5.3s6.2-1.1 6.2 5.3c0 4.6-5.2 7.8-5.2 14.3m-36.4 5.2c-1-6.2 3.5-11 2.7-15.5-1-6.2-5.6-3.5-7-3.1a474 474 0 012.7 18"/>
<path d="M61.5 90.3c4.3-1.4 5.1-8.8 8.3-9.9 4.1-1.3 4.4 5.2 4.8 7 .3 1.6 2.1 7.9-2 9.3-3.1 1-6.4-5.1-10.6-3.7"/>
<path d="M100.3 88.2s1.7 17 8.4 17c5.8 0 10.4-10.6 10.4-10.6s1 11.9 7.6 11.9c3.8 0 9.1-11.5 9.1-11.5s-4 21.3-5.2 33.3c-5 3.3-30.7 3.3-30.7 3.3s-24.9-.7-30.6-3.3C68 116.3 64 95 64 95s5.3 11.5 9.1 11.5c6.7 0 7.6-11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