diff --git a/.docker/default.conf b/.docker/default.conf new file mode 100644 index 00000000..9d3a7b22 --- /dev/null +++ b/.docker/default.conf @@ -0,0 +1,21 @@ +server { + listen 80; + listen [::]:80; + server_name localhost; + + location / { + root /usr/share/nginx/html; + index index.html; + add_header Content-Security-Policy "default-src 'self'; script-src 'self' 'unsafe-inline'; style-src 'self' 'unsafe-inline'; font-src data: 'self'"; + add_header X-XSS-Protection "1; mode=block"; + add_header X-Frame-Options "DENY"; + add_header X-Content-Type-Options nosniff; + add_header Referrer-Policy "strict-origin"; + } + + error_page 500 502 503 504 /50x.html; + location = /50x.html { + root /usr/share/nginx/html; + } + +} diff --git a/.gitignore b/.gitignore index 1104b06f..eb169d8d 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,2 @@ -run_php_server.bat +.bat .vscode \ No newline at end of file diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 00000000..fbf5a425 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,7 @@ +FROM nginx:stable-alpine + +# Copy the contents of the repo to the container +COPY . /usr/share/nginx/html + +# Move the customized nginx config file to the nginx folder +RUN mv /usr/share/nginx/html/.docker/default.conf /etc/nginx/conf.d/default.conf diff --git a/LICENSE b/LICENSE index 24402ab6..45f950ac 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright 2018-2020 Max Ganiev (Azgaar), azgaar.fmg@yandex.by +Copyright 2017-2021 Max Haniyeu (Azgaar), azgaar.fmg@yandex.com Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/index.css b/index.css index 01b0584a..58b824a5 100644 --- a/index.css +++ b/index.css @@ -169,23 +169,28 @@ a { font-size: 0.8em; } -#statesBody, -#provincesBody { - stroke-width: 2; - fill-rule: evenodd; - mask: url(#land); -} - -#relig, -#biomes, -#cults { - fill-rule: evenodd; - mask: url(#land); +#statesBody { + stroke-width: 3; } #statesHalo { fill: none; - filter: url(#blur5); + stroke-linecap: round; + stroke-linejoin: round; +} + +#provincesBody { + stroke-width: 0.2; +} + +#statesBody, +#provincesBody, +#relig, +#biomes, +#cults { + stroke-linejoin: round; + fill-rule: evenodd; + mask: url(#land); } #borders { @@ -197,6 +202,7 @@ a { stroke: none; mask: url(#land); cursor: pointer; + fill-rule: nonzero; } #anchors { @@ -979,6 +985,12 @@ body button.noicon { cursor: pointer; } +#controlCells > .current { + fill: #82c8ff40; + stroke: #82c8ff; + stroke-width: 0.4; +} + #vertices > circle { fill: #ff0000; stroke: #841f1f; @@ -1116,6 +1128,12 @@ div#regimentSelectorBody > div > div { fill: none; } +#debug > text { + font-size: 2px; + text-anchor: middle; + dominant-baseline: central; +} + .selectedCell { stroke-width: 1; stroke: #da3126; @@ -1697,6 +1715,12 @@ rect.fillRect { text-align: center; } +div.editorLine { + margin: 0.2em 0; + padding: 0 0.2em; + font-size: 0.9em; +} + #emblemDownloadControl > input { width: 4.1em; } @@ -2058,10 +2082,6 @@ svg.button { width: 16em; } -#reliefEditor input[type='number'] { - width: 3em; -} - #reliefIconsDiv { margin-top: 2px; padding: 2px; diff --git a/index.html b/index.html index 314fa9ad..bd13708a 100644 --- a/index.html +++ b/index.html @@ -45,36 +45,36 @@ xmlns:svg="http://www.w3.org/2000/svg"> - + - + - + - + - + - + - + - + - + @@ -82,7 +82,7 @@ - + @@ -90,7 +90,7 @@ - + @@ -98,23 +98,23 @@ - + - + - + - + @@ -124,7 +124,7 @@ - + @@ -134,16 +134,16 @@ - + - + - + - + @@ -235,7 +235,7 @@
Azgaar's
Fantasy Map Generator
-
v. 1.63
+
v. 1.65

LOADING...

@@ -319,13 +319,15 @@
-

Style preset:

+

Style preset:

@@ -367,16 +369,15 @@ - - + @@ -391,24 +392,6 @@ - - - - - - - - - - - - @@ -600,7 +583,7 @@ - + - + - + @@ -761,6 +744,45 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -830,21 +852,21 @@ @@ -859,29 +881,7 @@ - + @@ -923,6 +923,13 @@ + + + +
Please ensure the element is toggled on!Ensure the element visibility is toggled on!
Group - +
Halo width - - 10 -
Halo opacity - - 1 -
Column items
Style
Size - - 1 + +
Density @@ -697,8 +680,8 @@
Font size - - + +
Body opacity + + +
Body filter
Halo width + + 10 +
Halo opacity + + 1 +
Halo blur + + 4 +
Color scheme
State Size - +
Province Size - +
Burg Size - +
Filter - -
+ + +
@@ -1013,17 +1020,18 @@ Map template @@ -1291,6 +1299,18 @@ + + + Shape rendering + + + + + +