NGU-Web/server/src/routes
Zaldimmar eaff23839f Add image uploads with a media library, and event card backgrounds
Uploads (migration 028, server/src/media.js, routes/media.js): editors
and up upload JPEG, PNG, GIF, WebP or SVG. Photos are resized to 2400px
and saved as WebP by default, or kept as uploaded on request. Files
live in UPLOADS_DIR, served by nginx in production and by the API in
dev. Admins and up delete, after seeing what still uses the file.

Every image field in the editor is now an image widget: preview, the
path as text, Upload and Choose from library. A new Media page lists
the library. Org lists and event cards now resolve logos through
media.ts, so uploaded paths work there.

Events get a card_image (migration 029): a photo behind the card under
a light veil so the text stays readable. The card's size is unchanged.

Setup for production is in docs/media-uploads.md.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-27 15:04:45 -05:00
..
admin-entities.js Tidy the admin editor's text: previews, blank options, no em-dashes 2026-09-26 19:38:24 -05:00
admin.js Tidy the admin editor's text: previews, blank options, no em-dashes 2026-09-26 19:38:24 -05:00
auth.js v1.4 - added admin page and auth 2026-09-25 02:36:49 -05:00
content.js Add image uploads with a media library, and event card backgrounds 2026-09-27 15:04:45 -05:00
directory.js Add a Listed flag: published records reachable only by their link 2026-09-27 14:50:41 -05:00
feedback.js v1.3 - added an sqlite db and built data structure 2026-09-25 02:35:46 -05:00
history.js v1.5 - history and timeline as well as many datastructure updates added, polished, fixes 2026-09-25 02:38:51 -05:00
home.js Add a Listed flag: published records reachable only by their link 2026-09-27 14:50:41 -05:00
media.js Add image uploads with a media library, and event card backgrounds 2026-09-27 15:04:45 -05:00
panel.js Tidy the admin editor's text: previews, blank options, no em-dashes 2026-09-26 19:38:24 -05:00
people.js Clean up the schema: drop unused tables, rename scopes, publishable awards 2026-09-26 17:09:58 -05:00