LuminaWebsite/assets/js
Maaxxs 52fea9f92d Karte: build a map from an image right on the page
Pick an image, press "Karte bauen", done - no FTP, no command line tool.
The panel sits on the setup page while no map exists and under the map as
"Karte neu bauen" afterwards.

The tiles are cut in the browser and only the finished 256px JPEGs are
uploaded. That is the point: on ordinary shared hosting a 50MB map image
runs into upload_max_filesize, cutting it server side runs into memory_limit
and max_execution_time, and GD is not installed everywhere. This way the
server needs none of it - it validates small JPEGs and stores them.

Uploads go into a side folder <key>__build that only replaces the live map
once every tile has arrived, so an abort - by button, by error or by closing
the browser - leaves the existing map untouched.

The server trusts nothing from the client: the key must match a strict
pattern, tile coordinates must lie inside 2^z on their level, and each file
is checked with getimagesize for an actual JPEG within a size limit before it
is stored.

Verified against tools/make_map_tiles.php on the same source image: same zoom
levels, same per-level tile counts (1/4/12/40), same tile names, same
manifest.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-20 14:57:11 +02:00
..
events.js Events: new tab for the bot's scheduled event reminders 2026-09-20 12:40:56 +02:00
map.js Karte: screenshot stitcher and sharper tiles 2026-09-20 13:56:28 +02:00
map_build.js Karte: build a map from an image right on the page 2026-09-20 14:57:11 +02:00
nav.js Nav: group sidebar links, add mobile slide-out drawer 2026-09-20 01:37:12 +02:00
premades.js Premades: bigger class icons, distinct class-action design 2026-09-20 01:25:29 +02:00
raids.js Raids: use a real date/time picker instead of a free-text field 2026-09-20 01:42:53 +02:00
reports.js Reports: replace the table with a styled card list 2026-09-20 02:56:32 +02:00
success-popup.js Show success flashes as a centered popup with an animated checkmark 2026-09-20 02:32:23 +02:00