[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

@ -1,16 +0,0 @@
<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:BIA_Mosty_COA.svg" author="В.А. Ляхор" license="https://creativecommons.org/publicdomain/zero/1.0"/>
<g id="raft" stroke-width=".65">
<path stroke="none" d="M79.03 70.96c-6.16 17.66-17.98 52.65-17.98 52.65l77.92.33s-11.83-35.16-17.98-52.98z"/>
<path d="M61.05 123.61l17.82-52.97c1.13-3.89 6.8-3.24 6.96.8m14.1.33v53.95m-6.97-53.95a3.7 3.7 0 00-3.56-3.56 3.34 3.34 0 00-3.4 2.75l-12.32 53.3m26.25-52.49a3.6 3.6 0 00-3.57-3.56 3.48 3.48 0 00-3.4 2.91l-6.16 53.95m52.17-1.46l-17.98-52.97c-1.3-3.4-6.32-2.76-6.8.8m-7.14.33a3.7 3.7 0 013.57-3.56 3.34 3.34 0 013.4 2.75l12.15 53.3M99.93 71.77a3.7 3.7 0 013.56-3.56c1.78-.16 3.24 1.13 3.56 2.91l6 53.95"/>
<path d="M65.42 109.68h69.01l.97 2.92H64.45zm12.15-34.83h44.87l.98 2.6H76.6z"/>
<g stroke-width=".4" transform="matrix(1.62 0 0 1.62 31.4 -26.4)">
<circle cx="22.3" cy="93.2" r="4"/>
<circle cx="30.4" cy="93.2" r="4"/>
<circle cx="38.4" cy="93.2" r="4"/>
<circle cx="46.4" cy="93.2" r="4"/>
<circle cx="54.4" cy="93.2" r="4"/>
<circle cx="62.5" cy="93.2" r="4"/>
</g>
</g>
</svg>

Before

Width:  |  Height:  |  Size: 1.2 KiB