[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

6
public/charges/sun.svg Normal file
View file

@ -0,0 +1,6 @@
<svg xmlns="http://www.w3.org/2000/svg" fill="#d7374a" stroke="#000" viewBox="50 50 200 200">
<metadata author="Azgaar" license="https://creativecommons.org/publicdomain/zero/1.0"/>
<g id="sun">
<path stroke-width=".5" d="M84.7 63c-1 3.9.1 7.1 2 10.1 1.5 2.3 2.4 4.8 2.4 7.5-.7.4-1.3.8-1.9 1.2L71.8 71.7l10.4 15.2c-.2.3-.4.5-.5.8-2.9-1.3-5.7-1.6-8.3-1.1-3.7.7-6.9-.1-10.2-2 2.1 3.5 5.1 5 8.6 5.7 2.7.6 5.1 1.7 7 3.6-.2.7-.4 1.5-.5 2.2l-18.1 3.7 18.1 3.5c0 .3.1.6.2.9-3 1.1-5.2 2.9-6.6 5.1-2.1 3.1-4.9 4.8-8.6 5.8 3.9 1 7.1-.1 10.1-2 2.3-1.5 4.8-2.4 7.5-2.4.4.7.8 1.3 1.2 1.9l-10.3 15.5 15.3-10.4c.3.2.5.4.8.5-1.3 2.9-1.6 5.7-1.1 8.3.7 3.7-.1 6.8-2 10.1 3.5-2.1 5-5.1 5.7-8.6.6-2.7 1.7-5.1 3.6-7 .7.2 1.5.4 2.2.5l3.7 18.1 3.5-18.1c.3 0 .6-.1.9-.2 1.1 3 2.9 5.2 5.1 6.6 3.1 2.1 4.8 4.9 5.8 8.6 1-3.9-.1-7.1-2-10.1-1.5-2.3-2.4-4.8-2.4-7.5.7-.4 1.3-.8 1.9-1.2l15.4 10.2-10.4-15.3c.2-.3.4-.5.5-.8 2.9 1.3 5.7 1.6 8.3 1.1 3.7-.7 6.8.1 10.1 2-2.1-3.5-5.1-4.9-8.6-5.7-2.7-.6-5.1-1.7-7-3.6.2-.7.4-1.5.5-2.2l18.1-3.7-18.1-3.5c0-.3-.1-.6-.2-.9 3-1.1 5.2-2.9 6.6-5.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