Fixing id_random vs id for links and other things. Fixed the hash SHA256 error.

This commit is contained in:
Scott Idem
2025-11-13 18:59:27 -05:00
parent e9a8f7df00
commit 0e960ba955
5 changed files with 10 additions and 8 deletions

View File

@@ -650,6 +650,8 @@ export async function process_ae_obj__archive_content_props({
obj.tmp_sort_3 = `${obj.original_datetime ?? ''}_${obj.group ?? ''}_${
obj.priority ? '1' : '0'}_${obj.sort?.toString().padStart(3, '0') ?? ''}`;
obj.hash_sha256 = obj.hosted_file_hash_sha256;
return obj;
}
});

View File

@@ -162,7 +162,7 @@ if (!$events_loc.pres_mgmt?.location_kv) {
<span class="links">
<a
href="/events/{event_location_obj?.event_id}/location/{event_location_obj?.event_location_id_random}"
href="/events/{event_location_obj?.event_id}/location/{event_location_obj?.event_location_id}"
class="btn btn-sm preset-tonal-secondary hover:preset-filled-secondary-500 transition-all hover:transition-all *:hover:inline text-xs"
title="View this location"
>
@@ -171,7 +171,7 @@ if (!$events_loc.pres_mgmt?.location_kv) {
</a>
<a
href="/event/{event_location_obj?.event_id}/launcher/{event_location_obj?.event_location_id_random}"
href="/events/{event_location_obj?.event_id}/launcher/{event_location_obj?.event_location_id}"
class="btn btn-sm preset-tonal-secondary hover:preset-filled-secondary-500 transition-all hover:transition-all *:hover:inline text-xs"
title="The legacy launcher that not actively being developed. Use with the native launcher for oral sessions."
>
@@ -180,7 +180,7 @@ if (!$events_loc.pres_mgmt?.location_kv) {
</a>
<a
href="/events/{event_location_obj?.event_id}/launcher/{event_location_obj?.event_location_id_random}"
href="/events/{event_location_obj?.event_id}/launcher/{event_location_obj?.event_location_id}"
class="btn btn-sm preset-tonal-tertiary border border-tertiary-500 hover:preset-filled-secondary-500 transition-all hover:transition-all *:hover:inline text-xs"
title="The new launcher that is actively being developed. Do not use with the native launcher."
>

View File

@@ -387,7 +387,7 @@ let clipboard_success = $state(false);
<!-- Legacy link (Flask) -->
<a
data-sveltekit-preload-data="false"
href="/event/{$lq__event_session_obj?.event_id}/launcher/{$lq__event_session_obj?.event_location_id}"
href="/events/{$lq__event_session_obj?.event_id}/launcher/{$lq__event_session_obj?.event_location_id}"
class:hidden={$events_loc.pres_mgmt?.hide__launcher_link_legacy && !($ae_loc.trusted_access && $ae_loc.edit_mode)}
class="btn btn-sm preset-tonal-secondary hover:preset-filled-secondary-500 transition-all"
title={`Legacy Launcher (Flask): ${$lq__event_session_obj?.event_location_name}\n${$lq__event_session_obj?.event_location_id_random}`}
@@ -413,7 +413,7 @@ let clipboard_success = $state(false);
<!-- Location details link -->
<a
href="/events/{$lq__event_session_obj?.event_id_random}/location/{$lq__event_session_obj?.event_location_id_random}"
href="/events/{$lq__event_session_obj?.event_id}/location/{$lq__event_session_obj?.event_location_id}"
class:hidden={$events_loc.pres_mgmt?.hide__location_link && !($ae_loc.trusted_access && $ae_loc.edit_mode)}
class="btn btn-sm preset-tonal-surface hover:preset-filled-tertiary-500 group transition-all"
title={`Location Details: ${$lq__event_session_obj?.event_location_name}\n${$lq__event_session_obj?.event_location_id_random}`}

View File

@@ -255,7 +255,7 @@ let trigger_reload_session_id: string = $state('');
<span class="flex flex-row gap-0.5 items-center justify-center">
<a
data-sveltekit-preload-data="false"
href="/event/{session_obj?.event_id}/launcher/{session_obj?.event_location_id}"
href="/events/{session_obj?.event_id}/launcher/{session_obj?.event_location_id}"
class:hidden={hide__launcher_link_legacy && !($ae_loc.trusted_access && $ae_loc.edit_mode)}
class="btn btn-sm preset-tonal-secondary hover:preset-filled-secondary-500 transition-all group"
title={`Legacy Launcher (Flask): ${session_obj?.event_location_name}\n${session_obj?.event_location_id_random}`}
@@ -283,7 +283,7 @@ let trigger_reload_session_id: string = $state('');
<!-- Location details link -->
<a
href="/events/{session_obj?.event_id_random}/location/{session_obj?.event_location_id_random}"
href="/events/{session_obj?.event_id}/location/{session_obj?.event_location_id}"
class:hidden={hide__location_link && !($ae_loc.trusted_access && $ae_loc.edit_mode)}
class="btn btn-sm preset-tonal-surface hover:preset-filled-tertiary-500 group transition-all"
title={`Location Details: ${session_obj?.event_location_name}\n${session_obj?.event_location_id_random}`}

View File

@@ -6,7 +6,7 @@ interface Props {
let { data }: Props = $props();
let log_lvl: number = 1;
let log_lvl: number = 2;
// *** Import Svelte specific
import { onDestroy } from "svelte";