Initial commit: Luminary photo catalog and RAW editor

Browser-based photo catalog with an optional team server (SQLite + LibRaw).
Local database, uploaded photos, build output and dependencies are gitignored.

🤖 Generated with Codebuff
Co-Authored-By: Codebuff <noreply@codebuff.com>
This commit is contained in:
2026-11-23 15:19:25 +00:00
commit cd52a2f82f
121 changed files with 101872 additions and 0 deletions
+34
View File
@@ -0,0 +1,34 @@
/**
* Drag payloads live in a module variable because browsers only expose
* `dataTransfer.getData` on drop, not during dragover — and we need to know
* whether a photo (rather than an OS file) is being dragged while hovering.
*/
let photoIds: string[] = [];
let eventId: string | null = null;
export const PHOTO_DRAG = 'application/x-lumen-photos';
export const EVENT_DRAG = 'application/x-lumen-event';
export function startPhotoDrag(ids: string[]) {
photoIds = ids;
eventId = null;
}
export function draggedPhotoIds(): string[] {
return photoIds;
}
export function startEventDrag(id: string) {
eventId = id;
photoIds = [];
}
export function draggedEventId(): string | null {
return eventId;
}
export function endDrag() {
photoIds = [];
eventId = null;
}