- Adds an "uploads" SQLite table (filename → original_name) so the user's
original filename is preserved and used in Content-Disposition headers and
the admin listing instead of the on-disk hex name.
- Extracts shared upload logic to static/upload.js (window.GlimmerUpload),
deduplicating ~80 lines between the uploads page and the paste editor.
- Adds size hints on upload buttons, an extension chip + original name in the
uploads table, and a .ext-chip style.
- Updates CLAUDE.md and README.md (route table, schema, features, project
structure) to reflect the new endpoint and behaviour.
Co-Authored-By: Claude Opus 4.6 <[email protected]>
Adds a new POST /admin/upload-file endpoint for uploading any file type
alongside the existing image upload. Files are served with
Content-Disposition: attachment to prevent same-origin XSS via uploaded
HTML/SVG/JS. The display filename embedded in markdown link responses is
sanitized to block markdown injection.
Co-Authored-By: Claude Opus 4.6 <[email protected]>
The JS QR library (qr.min.js) produced unscannable codes. Replaced with
a /admin/qr/{slug} endpoint using the same server-side rsc.io/qr that
already works on the home page.
Co-Authored-By: Claude Opus 4.6 <[email protected]>
- Normalize Edit/QR/Del button sizes in role=group with consistent
padding, font-size, and white-space:nowrap
- Add QR button to each link row in My Links and Anonymous Links tables
- QR modal uses <dialog> + qr.min.js to generate an inline SVG on click
Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
Rebrand from "urlshort" to "Glimmer" across the entire codebase:
Go module/imports, build targets, HTML templates, deploy scripts
(including renaming service files), config, and README.
Co-Authored-By: Claude Opus 4.6 <[email protected]>