mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2026-02-04 17:41:23 +01:00
[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:
parent
0c26f0831f
commit
9e0eb03618
713 changed files with 5182 additions and 2161 deletions
23
public/charges/wheel.svg
Normal file
23
public/charges/wheel.svg
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
<svg xmlns="http://www.w3.org/2000/svg" fill="#d7374a" stroke="#000" viewBox="50 50 200 200">
|
||||
<metadata source="http://wappenwiki.org" license="https://creativecommons.org/licenses/by-nc-sa/3.0"/>
|
||||
<g id="wheel" stroke-width=".3888">
|
||||
<path d="M93.2266 78.8594c1.6978-1.0109 3.8102-4.3675 3.8102-6.3504l-.0259-5.8709h5.7672l-.0259 5.8709c0 1.9829 2.0995 5.3395 3.8102 6.3504m.013.5832c-1.6978 1.0109-3.8102 4.3675-3.8102 6.3504l.0259 5.8709h-5.7672l.0259-5.8709c0-1.9829-2.0995-5.3395-3.8102-6.3504"/>
|
||||
<path d="m106.5754 79.961-.1944-.0259c-.0259-.013-2.592-.7128-6.48-.7128-3.875 0-6.4541.6998-6.48.7128-.3888.1037-.7906-.1166-.9072-.5054-.1037-.3888.1166-.7906.5054-.9072.1166-.0259 2.7734-.7646 6.8688-.7646s6.7522.7258 6.8688.7646c.3888.1037.6221.5184.5054.9072a.6998.6998 0 0 1-.6869.5314zm0 40.9924c-1.6978 1.0109-3.8102 4.3675-3.8102 6.3504l.0259 5.8709h-5.7672l.0259-5.8709c0-1.9829-2.0995-5.3395-3.8102-6.3504m-.013-.5702c1.6978-1.0109 3.8102-4.3675 3.8102-6.3504l-.0259-5.8709h5.7672l-.0259 5.8709c0 1.9829 2.0995 5.3395 3.8102 6.3504"/>
|
||||
<path d="m93.2266 119.8518.1944.0259c.0259.013 2.592.7128 6.48.7128 3.875 0 6.4541-.6998 6.48-.7128.3888-.1037.7906.1166.9072.5054.1037.3888-.1166.7906-.5054.9072-.1166.0259-2.7734.7646-6.8688.7646s-6.7522-.7258-6.8688-.7646c-.3888-.1037-.6221-.5184-.5054-.9072a.7258.7258 0 0 1 .6869-.5314zm21.5654-36.2361c1.7237.972 5.6765 1.1146 7.4002.1296l5.0674-2.9549 2.89 4.9896s-3.0715 1.7366-5.0933 2.916c-1.7107.985-3.564 4.4842-3.5899 6.467m-.5054.2852c-1.7237-.972-5.6765-1.1146-7.4002-.1296l-5.0674 2.9549-2.8901-5.0026s3.0715-1.7366 5.0933-2.916c1.7107-.985 3.564-4.4842 3.5899-6.467"/>
|
||||
<path d="M120.5074 95.7203c-.0389-.0518-.0518-.1166-.0778-.1814-.013-.0259-.6869-2.605-2.6309-5.9616a26.5291 26.5291 0 0 0-3.8491-5.2488.7387.7387 0 0 1-.013-1.0368.7387.7387 0 0 1 1.0368-.013c.0778.0778 2.0477 2.0218 4.0954 5.5728s2.7475 6.2208 2.7734 6.3245c.1037.3888-.1296.7906-.5314.8942-.311.0778-.635-.0778-.8035-.3499zm-35.4975 20.4898c-1.7237-.972-5.6765-1.1146-7.4002-.1296l-5.0673 2.9549-2.8901-5.0026s3.0715-1.7366 5.0933-2.916c1.7107-.985 3.564-4.4842 3.5899-6.467m.5055-.2852c1.7237.972 5.6765 1.1146 7.4002.1296l5.0674-2.9549 2.8901 5.0026s-3.0715 1.7366-5.0933 2.916c-1.7107.985-3.564 4.4842-3.5899 6.467"/>
|
||||
<path d="M79.2946 104.1054c.0389.0518.0518.1166.0778.1814.013.0259.6869 2.605 2.6309 5.9616s3.8232 5.2358 3.8491 5.2488a.7387.7387 0 0 1 .013 1.0368.7387.7387 0 0 1-1.0368.013c-.0778-.0778-2.0477-2.0218-4.0954-5.5728s-2.7475-6.2208-2.7734-6.3245c-.1037-.3888.1296-.7906.5314-.8942.311-.0778.648.0778.8035.3499zm5.7153-20.4897c-1.7237.972-5.6765 1.1146-7.4002.1296l-5.0673-2.9549-2.8901 4.9896s3.0715 1.7366 5.0933 2.916c1.7107.985 3.564 4.4842 3.5899 6.467m.5055.2852c1.7237-.972 5.6765-1.1146 7.4002-.1296l5.0674 2.9549 2.8901-5.0026s-3.0715-1.7366-5.0933-2.916c-1.7107-.985-3.564-4.4842-3.5899-6.467"/>
|
||||
<path d="M79.2946 95.7203c.0389-.0518.0518-.1166.0778-.1814.013-.0259.6869-2.605 2.6309-5.9616s3.8232-5.2358 3.8491-5.2488a.7387.7387 0 0 0 .013-1.0368.7387.7387 0 0 0-1.0368-.013c-.0778.0778-2.0477 2.0218-4.0954 5.5728s-2.7475 6.2208-2.7734 6.3245c-.1037.3888.1296.7906.5314.8942.311.0778.648-.0778.8035-.3499zm35.4974 20.4898c1.7237-.972 5.6765-1.1146 7.4002-.1296l5.0674 2.9549 2.8901-5.0026s-3.0715-1.7366-5.0933-2.916c-1.7107-.985-3.564-4.4842-3.5899-6.467m-.5055-.2852c-1.7237.972-5.6765 1.1146-7.4002.1296l-5.0674-2.9549-2.8901 5.0026s3.0715 1.7366 5.0933 2.916c1.7107.985 3.564 4.4842 3.5899 6.467"/>
|
||||
<path d="M120.5074 104.1054c-.0389.0518-.0518.1166-.0778.1814-.013.0259-.6869 2.605-2.6309 5.9616a26.5291 26.5291 0 0 1-3.8491 5.2488.7387.7387 0 0 0-.013 1.0368.7387.7387 0 0 0 1.0368.013c.0778-.0778 2.0477-2.0218 4.0954-5.5728s2.7475-6.2208 2.7734-6.3245c.1037-.3888-.1296-.7906-.5314-.8942-.311-.0778-.635.0778-.8035.3499z"/>
|
||||
<path d="M119.2243 133.408a38.6467 38.6467 0 1 1-38.6467-66.9384 38.6467 38.6467 0 0 1 38.6467 66.9384zm6.2208-48.263a29.5099 29.5099 0 1 0-51.1142 29.5229 29.5099 29.5099 0 0 0 51.1142-29.5229z"/>
|
||||
<path d="M99.901 86.104c-6.7781 0-12.2731 5.495-12.2731 12.2731 0 6.7781 5.495 12.2731 12.2731 12.2731 6.7781 0 12.2731-5.495 12.2731-12.2731 0-6.7781-5.495-12.2731-12.2731-12.2731zm0 6.2338c3.3307 0 6.0394 2.6957 6.0394 6.0394 0 3.3307-2.6957 6.0394-6.0394 6.0394-3.3307 0-6.0394-2.6957-6.0394-6.0394 0-3.3307 2.6957-6.0394 6.0394-6.0394z"/>
|
||||
<g fill="none">
|
||||
<circle cx="99.901" cy="99.9453" r="36.923"/>
|
||||
<circle cx="70.6114" cy="116.9099" r="1.4774"/>
|
||||
<circle cx="129.4109" cy="82.9677" r="1.4774"/>
|
||||
<circle cx="100.0046" cy="65.9901" r="1.4774"/>
|
||||
<circle cx="100.0046" cy="133.8875" r="1.4774"/>
|
||||
<circle cx="70.6114" cy="82.9677" r="1.4774"/>
|
||||
<circle cx="129.4109" cy="116.9229" r="1.4774"/>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 4.7 KiB |
Loading…
Add table
Add a link
Reference in a new issue