Saving more code clean up and removal
This commit is contained in:
@@ -1,14 +1,14 @@
|
||||
<script lang="ts">
|
||||
/**
|
||||
* ae_comp__badge_obj_view_v2.svelte
|
||||
* ae_comp__badge_obj_view_v.svelte
|
||||
*
|
||||
* V2 badge render component — display-only. No inline edit mode.
|
||||
* V3 badge render component — display-only. No inline edit mode.
|
||||
*
|
||||
* Editing is handled entirely by the right-panel controls component
|
||||
* (ae_comp__badge_print_controls.svelte). Changes saved there flow
|
||||
* back via liveQuery (IDB → reactive UI update) automatically.
|
||||
*
|
||||
* Differences from v1 (ae_comp__badge_obj_view.svelte):
|
||||
* Differences from v1/v2 (ae_comp__badge_obj_view.svelte):
|
||||
* - No inline edit mode — floating Edit/Save/Cancel panel removed
|
||||
* - No handle_save_changes / handle_cancel_changes / handle_print_badge
|
||||
* - Print button lives in ae_comp__badge_print_controls.svelte
|
||||
@@ -22,7 +22,7 @@
|
||||
event_badge_id: string;
|
||||
lq__event_badge_obj?: any;
|
||||
lq__event_badge_template_obj?: any;
|
||||
/** Kept for API compatibility; unused in v2 (no inline edit mode). */
|
||||
/** Kept for API compatibility; unused in v33 (no inline edit mode). */
|
||||
is_review_mode?: boolean;
|
||||
/** Optional px override for name font size. null/undefined → auto-scaling runs. */
|
||||
font_size_name?: number | null;
|
||||
@@ -343,13 +343,13 @@
|
||||
/* *** END *** Legacy ticket/option state */
|
||||
</script>
|
||||
|
||||
<!-- Template debug info: screen-only. Shows layout context and v2 marker. -->
|
||||
<!-- Template debug info: screen-only. Shows layout context and v3 marker. -->
|
||||
<div class="print:hidden flex items-center justify-center gap-2 text-xs text-gray-400 font-mono mb-1 h-6">
|
||||
<span title="Badge template name">{$lq__event_badge_template_obj?.name ?? '—'}</span>
|
||||
<span class="text-gray-300">|</span>
|
||||
<span title="Layout code">{$lq__event_badge_template_obj?.layout ?? '(no layout)'}</span>
|
||||
<span class="text-gray-300">|</span>
|
||||
<span class="text-blue-400" title="V2 — auto-scaling text, display-only render">v2</span>
|
||||
<span class="text-blue-400" title="V3 — auto-scaling text, display-only render">v3</span>
|
||||
{#if $ae_loc.edit_mode}
|
||||
<span class="text-gray-300">|</span>
|
||||
<button
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
import { Library, LoaderCircle, QrCode, RemoveFormatting, Search } from '@lucide/svelte';
|
||||
import { ae_loc, ae_api } from '$lib/stores/ae_stores';
|
||||
import { events_loc, events_sess } from '$lib/stores/ae_events_stores';
|
||||
import Element_qr_scanner_v3 from '$lib/elements/element_qr_scanner_v3.svelte';
|
||||
import Element_qr_scanner from '$lib/elements/element_qr_scanner.svelte';
|
||||
import { ae_util } from '$lib/ae_utils/ae_utils';
|
||||
|
||||
// ISHLT 2024 badge type codes
|
||||
@@ -193,7 +193,7 @@
|
||||
<div
|
||||
class="w-full max-w-2xl mx-auto p-4 bg-surface-100-900 rounded-lg shadow-lg"
|
||||
>
|
||||
<Element_qr_scanner_v3
|
||||
<Element_qr_scanner
|
||||
bind:start_qr_scanner={$events_sess.badges.qr_scan_start}
|
||||
on_qr_scan_result={handle_qr_scan_result}
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user