[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,38 @@
<svg xmlns="http://www.w3.org/2000/svg" fill="#d7374a" stroke="#000" viewBox="50 50 200 200">
<metadata source="https://commons.wikimedia.org/wiki/File:Meuble_h%C3%A9raldique_Herse-sarrasine.svg" author="Ssire" license="https://www.gnu.org/licenses/fdl-1.3.html"/>
<g id="portcullis" stroke-width="1.5" transform="matrix(0.14,0,0,0.14,64.7,59.7)">
<path d="M251.66 1.5c-27.13 0-49.79 21.36-49.78 48 0 18.55 11 34.51 26.84 42.5l-226.03.6L1.5 527.1l20 49.56 10-49.57.13-49.75H98.5l-.13 48.5 17 49.57 10-49.57.13-48.5h64.22l-.13 48.5 17 49.57 9.97-49.57.13-48.5h66.9l-.12 48.5 17 49.57 10-49.57.12-48.5h68.2l-.1 47.25 17.03 49.53 9.94-49.53.12-47.25h65.56l-.12 48.5 17 49.57 13-49.57 1.15-434.53-227.53.6c15.71-8.03 26.6-23.95 26.6-42.41 0-26.64-22.66-48-49.78-48zm0 20c16.78 0 29.78 12.7 29.78 28s-13 27.97-29.78 27.97c-16.8 0-29.78-12.66-29.78-27.97 0-15.3 12.99-28 29.78-28zM32.46 125.66h66.85l-.12 55.87H32.34l.13-55.87zm93.85 0h64.22l-.12 55.87h-64.22l.12-55.87zm91.22 0h66.88l-.13 55.87h-66.87l.12-55.87zm93.88 0h68.21l-.12 55.87h-68.22l.13-55.87zm95.21 0h65.54l-.13 55.87h-65.56l.15-55.87zM32.25 210.75h66.88l-.16 61.22H32.13l.12-61.22zm93.88 0h64.21l-.15 61.22h-64.22l.16-61.22zm91.21 0h66.88l-.16 61.22H217.2l.15-61.22zm93.88 0h68.19l-.16 61.22h-68.19l.16-61.22zm95.19 0h65.56l-.16 61.22h-65.56l.16-61.22zM32.03 301.19h66.88l-.13 58.31H31.91l.12-58.31zm93.88 0h64.22L190 359.5h-64.22l.13-58.31zm91.22 0H284l-.13 58.31h-66.93l.19-58.31zm93.87 0h68.19l-.13 58.31h-68.22l.16-58.31zm95.19 0h65.56l-.16 58.31h-65.53l.13-58.31zM31.84 388.75h66.88l-.13 59.34H31.72l.12-59.34zm93.88 0h64.22l-.16 59.34h-64.22l.16-59.34zm91.16 0h66.9l-.12 59.34h-66.91l.13-59.34zm93.9 0H379l-.13 59.34h-68.21l.12-59.34zm95.22 0h65.53l-.12 59.34h-65.54l.13-59.34z"/>
<g class="secondary">
<path d="M29.72 109.67c0 6.06-4.63 10.98-10.33 10.98s-10.33-4.92-10.33-10.98c0-6.06 4.63-10.98 10.33-10.98s10.33 4.92 10.33 10.98z"/>
<path d="M29.72 197.5c0 6.06-4.63 10.97-10.33 10.97S9.06 203.56 9.06 197.5c0-6.06 4.63-10.98 10.33-10.98s10.33 4.92 10.33 10.98z"/>
<path d="M29.72 285.32c0 6.06-4.63 10.98-10.33 10.98s-10.33-4.92-10.33-10.98c0-6.06 4.63-10.98 10.33-10.98s10.33 4.92 10.33 10.98z"/>
<path d="M29.72 373.15c0 6.06-4.63 10.98-10.33 10.98s-10.33-4.92-10.33-10.98c0-6.06 4.63-10.98 10.33-10.98s10.33 4.92 10.33 10.98z"/>
<path d="M29.72 460.98c0 6.06-4.63 10.98-10.33 10.98s-10.33-4.92-10.33-10.98c0-6.06 4.63-10.98 10.33-10.98s10.33 4.92 10.33 10.98z"/>
<path d="M122.72 109.67c0 6.06-4.63 10.98-10.34 10.98-5.7 0-10.33-4.92-10.33-10.98 0-6.06 4.63-10.98 10.33-10.98s10.34 4.92 10.34 10.98z"/>
<path d="M122.72 197.5c0 6.06-4.63 10.97-10.34 10.97-5.7 0-10.33-4.91-10.33-10.97 0-6.06 4.63-10.98 10.33-10.98s10.34 4.92 10.34 10.98z"/>
<path d="M122.72 285.32c0 6.06-4.63 10.98-10.34 10.98-5.7 0-10.33-4.92-10.33-10.98 0-6.06 4.63-10.98 10.33-10.98s10.34 4.92 10.34 10.98z"/>
<path d="M122.72 373.15c0 6.06-4.63 10.98-10.34 10.98-5.7 0-10.33-4.92-10.33-10.98 0-6.06 4.63-10.98 10.33-10.98s10.34 4.92 10.34 10.98z"/>
<path d="M122.72 460.98c0 6.06-4.63 10.98-10.34 10.98-5.7 0-10.33-4.92-10.33-10.98 0-6.06 4.63-10.98 10.33-10.98s10.34 4.92 10.34 10.98z"/>
<path d="M215.71 109.67c0 6.06-4.63 10.98-10.33 10.98s-10.33-4.92-10.33-10.98c0-6.06 4.63-10.98 10.33-10.98s10.33 4.92 10.33 10.98z"/>
<path d="M215.71 197.5c0 6.06-4.63 10.97-10.33 10.97s-10.33-4.91-10.33-10.97c0-6.06 4.63-10.98 10.33-10.98s10.33 4.92 10.33 10.98z"/>
<path d="M215.71 285.32c0 6.06-4.63 10.98-10.33 10.98s-10.33-4.92-10.33-10.98c0-6.06 4.63-10.98 10.33-10.98s10.33 4.92 10.33 10.98z"/>
<path d="M215.71 373.15c0 6.06-4.63 10.98-10.33 10.98s-10.33-4.92-10.33-10.98c0-6.06 4.63-10.98 10.33-10.98s10.33 4.92 10.33 10.98z"/>
<path d="M215.71 460.98c0 6.06-4.63 10.98-10.33 10.98s-10.33-4.92-10.33-10.98c0-6.06 4.63-10.98 10.33-10.98s10.33 4.92 10.33 10.98z"/>
<path d="M308.7 109.67c0 6.06-4.62 10.98-10.33 10.98-5.7 0-10.33-4.92-10.33-10.98 0-6.06 4.63-10.98 10.33-10.98s10.34 4.92 10.34 10.98z"/>
<path d="M308.7 197.5c0 6.06-4.62 10.97-10.33 10.97-5.7 0-10.33-4.91-10.33-10.97 0-6.06 4.63-10.98 10.33-10.98s10.34 4.92 10.34 10.98z"/>
<path d="M308.7 285.32c0 6.06-4.62 10.98-10.33 10.98-5.7 0-10.33-4.92-10.33-10.98 0-6.06 4.63-10.98 10.33-10.98s10.34 4.92 10.34 10.98z"/>
<path d="M308.7 373.15c0 6.06-4.62 10.98-10.33 10.98-5.7 0-10.33-4.92-10.33-10.98 0-6.06 4.63-10.98 10.33-10.98s10.34 4.92 10.34 10.98z"/>
<path d="M308.7 460.98c0 6.06-4.62 10.98-10.33 10.98-5.7 0-10.33-4.92-10.33-10.98 0-6.06 4.63-10.98 10.33-10.98s10.34 4.92 10.34 10.98z"/>
<path d="M401.7 109.67c0 6.06-4.63 10.98-10.33 10.98s-10.34-4.92-10.34-10.98c0-6.06 4.63-10.98 10.34-10.98 5.7 0 10.33 4.92 10.33 10.98z"/>
<path d="M401.7 197.5c0 6.06-4.63 10.97-10.33 10.97s-10.34-4.91-10.34-10.97c0-6.06 4.63-10.98 10.34-10.98 5.7 0 10.33 4.92 10.33 10.98z"/>
<path d="M401.7 285.32c0 6.06-4.63 10.98-10.33 10.98s-10.34-4.92-10.34-10.98c0-6.06 4.63-10.98 10.34-10.98 5.7 0 10.33 4.92 10.33 10.98z"/>
<path d="M401.7 373.15c0 6.06-4.63 10.98-10.33 10.98s-10.34-4.92-10.34-10.98c0-6.06 4.63-10.98 10.34-10.98 5.7 0 10.33 4.92 10.33 10.98z"/>
<path d="M401.7 460.98c0 6.06-4.63 10.98-10.33 10.98s-10.34-4.92-10.34-10.98c0-6.06 4.63-10.98 10.34-10.98 5.7 0 10.33 4.92 10.33 10.98z"/>
<path d="M494.7 109.67c0 6.06-4.63 10.98-10.34 10.98-5.7 0-10.33-4.92-10.33-10.98 0-6.06 4.63-10.98 10.33-10.98s10.33 4.92 10.33 10.98z"/>
<path d="M494.7 197.5c0 6.06-4.63 10.97-10.34 10.97-5.7 0-10.33-4.91-10.33-10.97 0-6.06 4.63-10.98 10.33-10.98s10.33 4.92 10.33 10.98z"/>
<path d="M494.7 285.32c0 6.06-4.63 10.98-10.34 10.98-5.7 0-10.33-4.92-10.33-10.98 0-6.06 4.63-10.98 10.33-10.98s10.33 4.92 10.33 10.98z"/>
<path d="M494.7 373.15c0 6.06-4.63 10.98-10.34 10.98-5.7 0-10.33-4.92-10.33-10.98 0-6.06 4.63-10.98 10.33-10.98s10.33 4.92 10.33 10.98z"/>
<path d="M494.7 460.98c0 6.06-4.63 10.98-10.34 10.98-5.7 0-10.33-4.92-10.33-10.98 0-6.06 4.63-10.98 10.33-10.98s10.33 4.92 10.33 10.98z"/>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 6 KiB