[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

17
public/charges/column.svg Normal file
View file

@ -0,0 +1,17 @@
<svg xmlns="http://www.w3.org/2000/svg" fill="#d7374a" stroke="#000" viewBox="50 50 200 200">
<metadata source="http://wappenwiki.org/images/4/48/Giuliano_I_Cesarini.svg" license="https://creativecommons.org/licenses/by-nc-sa/3.0"/>
<g id="column" stroke-width=".306">
<g stroke-linejoin="round">
<polygon points="92.556 128.678 107.519 128.678 111.956 133.472 88.119 133.472"/>
<rect x="88.119" y="133.472" width="23.837" height="1.54"/>
<rect x="89.761" y="138.215" width="20.553" height="1.867"/>
<polygon points="111.956 135.013 88.119 135.013 89.761 136.379 110.314 136.379"/>
<path d="M110.416 138.215H89.649a.914.914 0 0 1-.918-.918c0-.51.408-.918.918-.918h20.767c.51 0 .918.408.918.918s-.408.918-.918.918z"/>
</g>
<path d="M94.096 62.878c0 .439.112 1.449.663 1.449h10.465c.602 0 .755-.929.755-1.449l.204-1.734H93.81l.286 1.734z"/>
<path stroke-linejoin="round" d="M94.759 64.327h10.465s.796 36.138 1.132 48.388c.306 11.343-.102 16.29-.102 16.29s-.275 1.642-6.222 1.642-6.314-1.642-6.314-1.642-.275-6.753-.102-16.371c.194-10.302 1.143-48.307 1.143-48.307z"/>
<path stroke-linejoin="round" d="M93.208 128.78c.082-.49.47-.846.602-.673.061.112 1.183 1.224 6.232 1.224s6.161-1.122 6.212-1.224c.133-.183.52.174.602.673.051.276.03.908-.581 1.224-1.194.623-3.448.98-6.233.98-2.794 0-5.059-.357-6.252-.98-.612-.326-.633-.948-.582-1.224z"/>
<path d="M105.979 62.888c.653 0 1.214-1.111 1.214-1.764 0-.673-14.311-.673-14.311 0 0 .653.561 1.764 1.214 1.764h11.883z"/>
<rect x="91.403" y="59.951" width="17.34" height="1.561"/>
</g>
</svg>

After

Width:  |  Height:  |  Size: 1.6 KiB