[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

View file

@ -0,0 +1,20 @@
<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="estoile">
<path stroke-width=".5" d="M100 60.4c-.1 3 .4 6.1-2.3 8.5-2.9 2.7-2.6 5.9-2.3 8.5.5 3.1.5 6.1-2.3 8.5-.5.4-.9.8-1.2 1.2-.1-.1-.3-.2-.4-.3-2.6-2.2-4.9-3.1-8.6-2.2-3.3.7-6.1-.3-8.6-2.2-2.3-1.9-4.9-3-8.6-2.3 2.6 1.6 5.5 2.8 6.2 6.3.9 3.8 3.8 5.2 6.2 6.3 2.9 1.1 5.5 2.6 6.2 6.3.1.6.2 1.2.4 1.7-.1.1-.3.1-.4.2-3.3 1.2-5.2 2.7-6.2 6.3-1 3.2-3.3 5.1-6.2 6.3-2.7 1-5 2.8-6.2 6.3 2.6-1.5 5.1-3.4 8.6-2.2 3.7 1.2 6.4-.7 8.6-2.2 2.4-2 5-3.5 8.6-2.3.6.2 1.1.4 1.7.5v.5c-.6 3.4-.2 5.8 2.3 8.5 2.3 2.5 2.8 5.4 2.3 8.5-.5 2.9-.1 5.8 2.3 8.5.1-3-.4-6.1 2.3-8.5 2.9-2.7 2.6-5.9 2.3-8.5-.5-3.1-.5-6.1 2.3-8.5.5-.4.9-.8 1.2-1.2.1.1.2.2.4.3 2.6 2.2 4.9 3.1 8.6 2.3 3.3-.7 6.1.3 8.6 2.2 2.3 1.9 4.9 2.9 8.6 2.2-2.6-1.6-5.5-2.8-6.2-6.3-.9-3.8-3.8-5.2-6.2-6.3-2.9-1.1-5.5-2.6-6.2-6.3-.1-.6-.2-1.2-.4-1.7.1-.1.3-.1.4-.2 3.3-1.2 5.2-2.7 6.2-6.3 1-3.2 3.3-5.1 6.2-6.3 2.7-1 5-2.8 6.2-6.3-2.6 1.5-5.1 3.4-8.6 2.3-3.7-1.2-6.4.7-8.6 2.2-2.4 2-5 3.5-8.6 2.2-.6-.2-1.1-.4-1.7-.5.1-.1.1-.2.1-.4.6-3.4.2-5.8-2.3-8.5-2.3-2.5-2.8-5.4-2.3-8.5.5-2.9.1-5.8-2.3-8.5z"/>
<g stroke-width=".2">
<path d="M100 60c.7 2.3 2.4 3.7 0 10-1.7 3.9-1 7 0 10 1 2.6 3.1 5.9 0 10-2 3.3-.7 6.6 0 10"/>
<path d="M100.1 139.7c-.7-2.3-2.4-3.7 0-10 1.7-3.9 1-7 0-10-1-2.6-3.1-5.9 0-10 2-3.3.7-6.6 0-10"/>
<path d="M65.5 80c2.3.6 4.4-.2 8.6 5 2.5 3.4 5.5 4.4 8.6 5 2.7.5 6.7.2 8.6 5 1.9 3.4 5.4 4 8.6 5"/>
<path d="M65.5 119.8c1.6-1.7 2-3.9 8.6-5 4.2-.5 6.6-2.6 8.6-5 1.8-2.1 3.5-5.7 8.6-5 3.9.1 6.1-2.7 8.6-5"/>
<path d="M134.5 79.9c-1.6 1.7-2 3.9-8.6 5-4.2.5-6.6 2.6-8.6 5-1.8 2.1-3.5 5.7-8.6 5-3.9-.1-6.1 2.7-8.6 5"/>
<path d="M134.6 119.8c-2.3-.6-4.4.2-8.6-5-2.5-3.4-5.5-4.4-8.6-5-2.7-.5-6.7-.2-8.6-5-1.9-3.4-5.4-4-8.6-5"/>
<path d="M100 99.9c-3.4-2.6-7.8-10.6-8.2-12.9"/>
<path d="M100 99.9c.5-4.2 5.2-12.1 7-13.6"/>
<path d="M100 99.9c3.4 2.5 7.9 10.5 8.3 12.8"/>
<path d="M100 99.9c3.9-1.7 13.1-1.6 15.2-.8"/>
<path d="M100 99.9c-.5 4.2-5.2 12.1-7 13.6"/>
<path d="M100 99.9c-3.9 1.7-13.1 1.6-15.2.8"/>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 2.2 KiB