Update guest v2 branding and theming
Some checks failed
linter / quality (push) Has been cancelled
tests / ci (push) Has been cancelled
tests / ui (push) Has been cancelled

This commit is contained in:
Codex Agent
2026-02-03 15:18:44 +01:00
parent 10c99de1e2
commit 298a8375b6
57 changed files with 1416 additions and 277 deletions

View File

@@ -0,0 +1,19 @@
import { fetchJson } from './apiClient';
export type EventQrCodePayload = {
url?: string | null;
qr_code_data_url?: string | null;
};
export async function fetchEventQrCode(eventToken: string, size = 240): Promise<EventQrCodePayload> {
const params = new URLSearchParams();
if (Number.isFinite(size)) {
params.set('size', String(size));
}
const query = params.toString();
const url = `/api/v1/events/${encodeURIComponent(eventToken)}/qr${query ? `?${query}` : ''}`;
const response = await fetchJson<EventQrCodePayload>(url, { noStore: true });
return response.data ?? { url: null, qr_code_data_url: null };
}