Commit graph

15 commits

Author SHA1 Message Date
Azgaar
9e0eb03618
[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>
2026-01-22 12:20:12 +01:00
Azgaar
0c26f0831f fix: enhance population constraints in UI and calculations 2026-01-09 23:21:43 +01:00
Azgaar
d6109a4919 fix: burg regeneration for ports 2026-01-08 15:51:18 +01:00
Azgaar
34b880e10f fix: bug fixes, 3d mode controls change to MapContol 2025-11-28 15:11:11 +01:00
Azgaar
bc8ad03c0f fix: auto-update old burg styles 2025-04-29 21:05:54 +02:00
Azgaar
8dad1a3bac fix(routes): connect new burg to land route only 2025-04-17 13:11:23 +02:00
Azgaar
fd9e010153 refactor(burgs): centralize burg management logic in Burgs module
Moved burg-related functions like `removeBurg`, `changeGroup`, and `toggleCapital` into the Burgs module to improve code organization and maintainability. Updated all references to these functions across the codebase. This change reduces duplication and ensures consistent behavior for burg management operations.
2025-04-17 01:03:14 +02:00
Azgaar
a5939be6e2 fix: city preview - sea orientation 2025-03-31 02:11:59 +02:00
Azgaar
2f53a635c8 feat: burg groups - image icons 2025-01-02 14:14:00 +01:00
Azgaar
6526c4c1f1 feat: burg group editor - map preview 2024-10-11 11:29:41 +02:00
Azgaar
b700bf0630 feat: burg group editor - apply changes 2024-10-09 00:33:22 +02:00
Azgaar
b6708bf698 feat: burg group editor - form 2024-10-07 23:44:17 +02:00
Azgaar
d8009f84ad feat: burg group editor - form 2024-10-02 03:12:45 +02:00
Azgaar
63898d8fd8 feat: split burgs to groups 2024-09-30 20:38:52 +02:00
Azgaar
d7d79ad740 refactor: split states and burgs generators 2024-09-29 14:24:44 +02:00