General code clean up. A lot less _random!

This commit is contained in:
Scott Idem
2024-10-16 10:28:47 -04:00
parent 9160591fc4
commit 67a4fbe17e
14 changed files with 186 additions and 320 deletions

View File

@@ -3,8 +3,8 @@
import type { key_val } from '$lib/ae_stores';
import { ae_util } from '$lib/ae_utils/ae_utils';
import { api } from '$lib/api';
import Element_ae_crud from '$lib/element_ae_crud.svelte';
import Launcher_file_cont from './launcher_file_cont.svelte';
// import Element_ae_crud from '$lib/element_ae_crud.svelte';
// import Launcher_file_cont from './launcher_file_cont.svelte';
import Launcher_presenter_view from './launcher_presenter_view.svelte';
import { liveQuery } from "dexie";
@@ -45,9 +45,9 @@ export let lq__event_session_obj: any;
// import Event_launcher_file_cont from './launcher_file_cont.svelte';
export let hide_description: boolean = true;
export let show_designations: boolean = false;
export let show_email: boolean = false;
// export let hide_description: boolean = true;
// export let show_designations: boolean = false;
// export let show_email: boolean = false;
// Event File
let lq__event_file_obj_li = liveQuery(
@@ -97,9 +97,9 @@ $: lq__event_presenter_obj_li = liveQuery(async () => {
return results;
});
let show_modal_upload_files: boolean = false;
let link_to_type: null|string = null;
let link_to_id: null|string = null;
// let show_modal_upload_files: boolean = false;
// let link_to_type: null|string = null;
// let link_to_id: null|string = null;
let ae_promises: key_val = {};

View File

@@ -1,7 +1,7 @@
<script lang="ts">
/** @type {import('./$types').PageData} */
export let data: any;
let log_lvl = 2;
let log_lvl = 0;
// console.log(`ae_events_pres_mgmt event [event_id] +page.svelte data:`, data);
import { browser } from '$app/environment';
@@ -28,24 +28,22 @@ import Event_page_menu from '../event_page_menu.svelte';
// $slct.account_id = data.account_id;
// console.log(`$slct.account_id = `, $slct.account_id);
let ae_acct = data[$slct.account_id];
console.log(`ae_acct = `, ae_acct);
if (log_lvl) {
console.log(`ae_acct = `, ae_acct);
}
console.log(`event_id layout A: ${data.params.event_id}`);
console.log(`event_id layout B: ${ae_acct.slct.event_id}`);
console.log(`event_id layout C: ${$events_slct.event_id}`);
if (log_lvl) {
console.log(`event_id layout A: ${data.params.event_id}`);
console.log(`event_id layout B: ${ae_acct.slct.event_id}`);
console.log(`event_id layout C: ${$events_slct.event_id}`);
}
$: event_id = data.params.event_id;
// $events_slct.event_id = data.params.event_id;
// $events_slct.event_obj = ae_acct.slct.event_obj;
// $events_slct.event_session_obj_li = ae_acct.slct.event_session_obj_li;
// import Leads_add_scan from './leads_add_scan.svelte';
// import Sessions_list from './sessions_list.svelte';
// import Leads_manage from './leads_manage.svelte';
// import Leads_payment from './leads_payment.svelte';
$: lq__event_obj = liveQuery(async () => {
console.log(`*** LiveQuery: lq__event_obj *** event_id=${$events_slct.event_id}`);
if (log_lvl) {
console.log(`*** LiveQuery: lq__event_obj *** event_id=${$events_slct.event_id}`);
}
let results = await db_events.events
.get($events_slct.event_id)
@@ -138,7 +136,9 @@ $: if ($events_trigger == 'load__event_session_obj_li' && $events_slct.event_id)
function process_search_string(search_str: string) {
console.log('process_search_string()');
if (log_lvl) {
console.log(`process_search_string() search_str=${search_str}`);
}
if (search_str?.length) {
console.log(`*** Search string length: ${search_str.length} ***`);
@@ -222,7 +222,9 @@ async function handle_search__event_session(
log_lvl?: number,
}
) {
console.log('handle_search__event_session()');
if (log_lvl) {
console.log('handle_search__event_session()');
}
if ($events_sess.pres_mgmt?.status_qry__search != null && $events_sess.pres_mgmt?.status_qry__search != 'done') {
console.log('*** TEST SEARCH - $events_sess.pres_mgmt.status_qry__search != done ***');
@@ -234,7 +236,7 @@ async function handle_search__event_session(
search_delay += 50+random_delay;
}
log_lvl = 2;
log_lvl = 1;
let count = 0;
let request_loop = setInterval(() => {

View File

@@ -1,14 +1,12 @@
<script lang="ts">
/** @type {import('./$types').PageData} */
export let data: any;
let log_lvl = 1;
let log_lvl = 0;
// console.log(`ae_events_pres_mgmt location [slug] +page.svelte data:`, data);
// Imports
import { onMount } from 'svelte';
import { clipboard } from '@skeletonlabs/skeleton';
import type { key_val } from '$lib/ae_stores';
import { ae_util } from '$lib/ae_utils/ae_utils';
// import Element_data_store from '$lib/element_data_store_v2.svelte';
@@ -77,7 +75,7 @@ let lq__event_location_obj = liveQuery(
let lq__event_session_obj_li = liveQuery(
() => db_events.sessions
.where('event_location_id_random')
.where('event_location_id')
.equals(ae_acct.slct.event_location_id)
.sortBy('start_datetime')
);
@@ -104,7 +102,7 @@ $: if ($lq__event_session_obj_li) {
let tmp_li = []; // This is to prevent the array from constantly updating and triggering the liveQuery.
if ($lq__event_session_obj_li) {
for (let i = 0; i < $lq__event_session_obj_li.length; i++) {
tmp_li.push($lq__event_session_obj_li[i].event_session_id_random);
tmp_li.push($lq__event_session_obj_li[i].event_session_id);
}
}
event_session_id_random_li = tmp_li;
@@ -152,8 +150,6 @@ onMount(() => {
>
<Location_page_menu
data={data}
event_location_id={$lq__event_location_obj?.event_location_id}
lq__event_location_obj={lq__event_location_obj}
/>
@@ -216,10 +212,7 @@ onMount(() => {
<Location_view
show__launcher_link={$events_loc.pres_mgmt.show__launcher_link}
show__launcher_link_legacy={$events_loc.pres_mgmt.show__launcher_link_legacy}
event_location_id={$lq__event_location_obj?.event_location_id}
lq__event_obj={lq__event_obj}
lq__event_location_obj={lq__event_location_obj}
lq__event_session_obj_li={lq__event_session_obj_li}
/>
<!-- Sessions in the location -->
@@ -287,9 +280,9 @@ onMount(() => {
<div class="overflow-x-auto w-max max-w-full">
<Element_manage_event_file_li_wrap
link_to_type={'event_location'}
link_to_id={$lq__event_location_obj?.event_location_id_random}
allow_basic={$events_loc.auth__kv.location[$lq__event_location_obj.event_location_id_random] || $events_loc.auth__kv.location[$lq__event_location_obj?.event_location_id_random]}
allow_moderator={$events_loc.auth__kv.location[$lq__event_location_obj.event_location_id_random]}
link_to_id={$lq__event_location_obj?.event_location_id}
allow_basic={$events_loc.auth__kv.location[$lq__event_location_obj.event_location_id] || $events_loc.auth__kv.location[$lq__event_location_obj?.event_location_id]}
allow_moderator={$events_loc.auth__kv.location[$lq__event_location_obj.event_location_id]}
container_class_li={''}
/>
</div>
@@ -313,93 +306,5 @@ onMount(() => {
</section>
{#if $events_sess.pres_mgmt?.show_form__sign_in}
<div class="ae_quick_modal_container">
<section class="ae_quick_popover">
<div class="flex flex-col items-center">
<!-- <div class="h-4 p-10"> -->
<!-- </div> -->
<section class="ae_modal_scrollfix">
<button
on:click={
() => {
$events_sess.pres_mgmt.show_content__agree_text = null;
}
}
class="btn btn-md variant-soft-secondary hover:variant-filled-secondary float-right"
>
<span class="fas fa-times m-1"></span>
Close
</button>
</section>
<!-- <div class="h-12"> -->
<button
on:click={
() => {
$events_sess.pres_mgmt.show_content__agree_text = null;
}
}
class="btn btn-md variant-soft-secondary hover:variant-filled-secondary"
>
<span class="fas fa-times m-1"></span>
Close
</button>
<!-- </div> -->
</div>
</section>
</div>
{/if}
<style lang="postcss">
/* Use the div.ae_quick_modal_container to block background clicks when using the section.ae_quick_popover. */
div.ae_quick_modal_container {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 100;
background-color: hsla(0, 0%, 50%, .75);
/* padding: 1rem; */
/* border: solid thick red; */
}
/* The section.ae_quick_popover should be above the rest of the content and centered on the page. */
section.ae_quick_popover {
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
z-index: 100;
background-color: hsla(0, 0%, 97%, .97);
/* margin-top: 1rem;
margin-bottom: 2rem; */
/* padding: 1rem;
padding-top:4rem; */
/* padding-bottom: 4rem; */
border: solid thin hsla(0, 0%, 0%, .9);
border-radius: .5rem;
box-shadow: 0 0 1rem hsla(0, 0%, 0%, .5);
min-height: 30%;
/* max-height: 100vh; */
min-width: 80%;
/* overflow-y: auto; */
}
</style>

View File

@@ -1,6 +1,6 @@
<script lang="ts">
console.log(`ae_events_pres_mgmt location_view.svelte`);
export let log_lvl = 1;
export let log_lvl = 0;
// import { clipboard } from '@skeletonlabs/skeleton';
import { liveQuery } from "dexie";
@@ -29,49 +29,17 @@ import { events_func } from '$lib/ae_events_functions';
if (!$events_sess.pres_mgmt) {
$events_sess.pres_mgmt = {};
// $events_sess.pres_mgmt.show_content__agree_text = null;
// $events_sess.pres_mgmt.show_content__presentation_start = null;
}
// $events_sess.pres_mgmt.show_content__agree_text = false;
// $events_sess.pres_mgmt.show_content__presentation_start = false;
export let show__launcher_link: boolean = false;
export let show__launcher_link_legacy: boolean = true;
export let lq__event_obj: any;
export let lq__event_location_obj: any;
// let lq__event_location_obj = liveQuery(
// () => db_events.locations.get(event_location_id)
// );
// export let lq__auth__event_presentation_obj: any;
export let lq__event_session_obj_li: any;
// let lq__event_session_obj_li = liveQuery(
// () => db_events.sessions
// .where('event_location_id_random')
// .equals(event_location_id)
// .sortBy('name')
// );
let lq__event_session_obj = liveQuery(
() => db_events.sessions.get($events_slct.event_session_id)
);
// let lq__auth__event_presentation_obj = liveQuery(
// () => db_events.presentations.get($events_slct.auth__event_presentation_id)
// );
let lq__event_presentation_obj = liveQuery(
() => db_events.presentations.get($events_slct.event_presentation_id)
);
// $slct.person_obj_kv = {}; // This is intended for the person POC lookup list when generated.
$events_sess.pres_mgmt.location__updated_on = null;
$: if ($lq__event_location_obj) {
@@ -90,13 +58,13 @@ $: if ($lq__event_location_obj) {
console.log('Updated on is different.');
}
// FUTURE USE: Generate a QR code for the object ID.
// ae_promises.generate_qr_code_obj_id = core_func.generate_qr_code({api_cfg: $ae_api, account_id: $slct.account_id, qr_type: 'obj', qr_id: $lq__event_location_obj?.event_location_id_random, obj_type: 'event_location', obj_id: $lq__event_location_obj?.event_location_id_random});
// ae_promises.generate_qr_code_obj_id = core_func.generate_qr_code({api_cfg: $ae_api, account_id: $slct.account_id, qr_type: 'obj', qr_id: $lq__event_location_obj?.event_location_id, obj_type: 'event_location', obj_id: $lq__event_location_obj?.event_location_id});
// Generate a QR code for the URL.
let qr_id_url = `${$lq__event_location_obj?.event_location_id_random}_url`;
let qr_id_url = `${$lq__event_location_obj?.event_location_id}_url`;
// URL for this page (be sure to URL encode it):
let url_str = `${$ae_loc.url_origin}/events/${$lq__event_location_obj?.event_id_random}/location/${$lq__event_location_obj?.event_location_id_random}`;
let url_str = `${$ae_loc.url_origin}/events/${$lq__event_location_obj?.event_id}/location/${$lq__event_location_obj?.event_location_id}`;
url_str = encodeURI(url_str);
ae_promises.generate_qr_code_url = core_func.generate_qr_code({api_cfg: $ae_api, account_id: $slct.account_id, qr_type: 'str', qr_id: qr_id_url, str: url_str});
@@ -152,7 +120,7 @@ $: if ($lq__event_location_obj) {
<Element_ae_crud
api_cfg={$ae_api}
object_type={'event_location'}
object_id={$lq__event_location_obj?.event_location_id_random}
object_id={$lq__event_location_obj?.event_location_id}
field_name={'external_id'}
field_type={'text'}
field_value={$lq__event_location_obj?.external_id}
@@ -168,7 +136,7 @@ $: if ($lq__event_location_obj) {
events_func.load_ae_obj_id__event_location({
api_cfg: $ae_api,
event_location_id: $lq__event_location_obj?.event_location_id_random,
event_location_id: $lq__event_location_obj?.event_location_id,
log_lvl: 1
})
.then(function (load_results) {
@@ -185,7 +153,7 @@ $: if ($lq__event_location_obj) {
<Element_ae_crud
api_cfg={$ae_api}
object_type={'event_location'}
object_id={$lq__event_location_obj?.event_location_id_random}
object_id={$lq__event_location_obj?.event_location_id}
field_name={'code'}
field_type={'text'}
field_value={$lq__event_location_obj?.code}
@@ -201,7 +169,7 @@ $: if ($lq__event_location_obj) {
events_func.load_ae_obj_id__event_location({
api_cfg: $ae_api,
event_location_id: $lq__event_location_obj?.event_location_id_random,
event_location_id: $lq__event_location_obj?.event_location_id,
log_lvl: 1
})
.then(function (load_results) {
@@ -216,7 +184,7 @@ $: if ($lq__event_location_obj) {
<Element_ae_crud
api_cfg={$ae_api}
object_type={'event_location'}
object_id={$lq__event_location_obj?.event_location_id_random}
object_id={$lq__event_location_obj?.event_location_id}
field_name={'name'}
field_type={'text'}
field_value={$lq__event_location_obj?.name}
@@ -232,7 +200,7 @@ $: if ($lq__event_location_obj) {
events_func.load_ae_obj_id__event_location({
api_cfg: $ae_api,
event_location_id: $lq__event_location_obj?.event_location_id_random,
event_location_id: $lq__event_location_obj?.event_location_id,
log_lvl: 1
})
.then(function (load_results) {
@@ -246,7 +214,7 @@ $: if ($lq__event_location_obj) {
<Element_ae_crud
api_cfg={$ae_api}
object_type={'event_location'}
object_id={$lq__event_location_obj?.event_location_id_random}
object_id={$lq__event_location_obj?.event_location_id}
field_name={'code'}
field_type={'text'}
field_value={$lq__event_location_obj?.code}
@@ -262,7 +230,7 @@ $: if ($lq__event_location_obj) {
events_func.load_ae_obj_id__event_location({
api_cfg: $ae_api,
event_location_id: $lq__event_location_obj?.event_location_id_random,
event_location_id: $lq__event_location_obj?.event_location_id,
log_lvl: 1
})
.then(function (load_results) {
@@ -283,9 +251,9 @@ $: if ($lq__event_location_obj) {
{#if show__launcher_link_legacy}
<a
data-sveltekit-preload-data="false"
href="/event/{$lq__event_location_obj?.event_id_random}/launcher/{$lq__event_location_obj?.event_location_id_random}"
href="/event/{$lq__event_location_obj?.event_id}/launcher/{$lq__event_location_obj?.event_location_id}"
class="btn btn-sm variant-glass-secondary hover:variant-filled-secondary"
title="Launcher: {$lq__event_location_obj?.name} {$lq__event_location_obj?.event_location_id_random}"
title="Launcher: {$lq__event_location_obj?.name} {$lq__event_location_obj?.event_location_id}"
>
<span class="fas fa-paper-plane m-1"></span>
{@html $lq__event_location_obj?.name ? $lq__event_location_obj?.name : ae_snip.html__not_set}
@@ -296,9 +264,9 @@ $: if ($lq__event_location_obj) {
{#if show__launcher_link}
<a
data-sveltekit-preload-data="false"
href="/events/{$lq__event_location_obj?.event_id_random}/launcher/{$lq__event_location_obj?.event_location_id_random}"
href="/events/{$lq__event_location_obj?.event_id}/launcher/{$lq__event_location_obj?.event_location_id}"
class="btn btn-sm variant-glass-secondary hover:variant-filled-secondary"
title="Launcher: {$lq__event_location_obj?.name} {$lq__event_location_obj?.event_location_id_random}"
title="Launcher: {$lq__event_location_obj?.name} {$lq__event_location_obj?.event_location_id}"
>
<span class="fas fa-plane m-1"></span>
<!-- {@html $lq__event_location_obj?.name ? $lq__event_location_obj?.name : ae_snip.html__not_set} -->
@@ -314,7 +282,7 @@ $: if ($lq__event_location_obj) {
<Element_ae_crud
api_cfg={$ae_api}
object_type={'event_location'}
object_id={$lq__event_location_obj?.event_location_id_random}
object_id={$lq__event_location_obj?.event_location_id}
field_name={'passcode'}
field_type={'text'}
field_value={$lq__event_location_obj?.passcode}
@@ -330,7 +298,7 @@ $: if ($lq__event_location_obj) {
events_func.load_ae_obj_id__event_location({
api_cfg: $ae_api,
event_location_id: $lq__event_location_obj?.event_location_id_random,
event_location_id: $lq__event_location_obj?.event_location_id,
log_lvl: 1
})
.then(function (load_results) {
@@ -346,7 +314,7 @@ $: if ($lq__event_location_obj) {
<Element_ae_crud
api_cfg={$ae_api}
object_type={'event_location'}
object_id={$lq__event_location_obj?.event_location_id_random}
object_id={$lq__event_location_obj?.event_location_id}
field_name={'description'}
field_type={'textarea'}
field_value={$lq__event_location_obj.description}
@@ -363,7 +331,7 @@ $: if ($lq__event_location_obj) {
events_func.load_ae_obj_id__event_location({
api_cfg: $ae_api,
event_location_id: $lq__event_location_obj?.event_location_id_random,
event_location_id: $lq__event_location_obj?.event_location_id,
log_lvl: 1
});
}}
@@ -404,17 +372,6 @@ $: if ($lq__event_location_obj) {
</ul>
<!-- <label
class="text-sm"
>Location description:
<textarea
class="textarea my-1 p-2"
cols="30"
rows="4"
disabled
>{$lq__event_location_obj.description}</textarea>
</label> -->
<div class="m-1 flex flex-col flex-wrap gap-1 items-center">
{#if $ae_loc.trusted_access }
<!-- Message if they have agreed -->
@@ -423,7 +380,7 @@ $: if ($lq__event_location_obj) {
ds_name="Default: Events - Pres Mgmt Location Authorized Info"
ds_type="html"
for_type="event"
for_id={$lq__event_presentation_obj?.event_id_random}
for_id={$lq__event_presentation_obj?.event_id}
class_li="w-fit max-w-screen-lg flex flex-col gap-1"
show_edit={false}
show_edit_btn={true}
@@ -435,9 +392,6 @@ $: if ($lq__event_location_obj) {
Not authorized
{/if}
</div>
</section>

View File

@@ -1,5 +1,5 @@
<script lang="ts">
export let data: any;
// export let data: any;
export let log_lvl = 0;
import type { key_val } from '$lib/ae_stores';
@@ -10,9 +10,9 @@ import { events_func } from '$lib/ae_events_functions';
import Element_ae_crud from '$lib/element_ae_crud.svelte';
import Element_data_store from '$lib/element_data_store_v2.svelte';
export let event_location_id: string;
// export let event_location_id: string;
export let lq__event_location_obj: any;
export let lq__auth__event_presenter_obj: any;
// export let lq__auth__event_presenter_obj: any;
let ae_tmp: key_val = {};
let ae_triggers: key_val = {};
@@ -33,7 +33,7 @@ let ae_triggers: key_val = {};
<span
class="ae_menu__navigation_options flex flex-row items-center justify-around"
>
<a href="/events/{$lq__event_location_obj?.event_id_random}" class="{ae_snip.classes__events_pres_mgmt_menu__button}">
<a href="/events/{$lq__event_location_obj?.event_id}" class="{ae_snip.classes__events_pres_mgmt_menu__button}">
<span class="fas fa-arrow-left m-1"></span>
Back to Session Search
</a>
@@ -142,7 +142,7 @@ let ae_triggers: key_val = {};
trigger_patch={ae_triggers.priority}
api_cfg={$ae_api}
object_type={'event_location'}
object_id={$lq__event_location_obj?.event_location_id_random}
object_id={$lq__event_location_obj?.event_location_id}
field_name={'priority'}
field_type={'button'}
field_value={ae_tmp.value__priority}
@@ -157,7 +157,7 @@ let ae_triggers: key_val = {};
events_func.load_ae_obj_id__event_location({
api_cfg: $ae_api,
event_location_id: $lq__event_location_obj?.event_location_id_random,
event_location_id: $lq__event_location_obj?.event_location_id,
log_lvl: log_lvl
});
}}
@@ -196,7 +196,7 @@ let ae_triggers: key_val = {};
trigger_patch={ae_triggers.hide}
api_cfg={$ae_api}
object_type={'event_location'}
object_id={$lq__event_location_obj?.event_location_id_random}
object_id={$lq__event_location_obj?.event_location_id}
field_name={'hide'}
field_type={'button'}
field_value={ae_tmp.value__hide}
@@ -211,7 +211,7 @@ let ae_triggers: key_val = {};
events_func.load_ae_obj_id__event_location({
api_cfg: $ae_api,
event_location_id: $lq__event_location_obj?.event_location_id_random,
event_location_id: $lq__event_location_obj?.event_location_id,
log_lvl: log_lvl
});
}}
@@ -249,7 +249,7 @@ let ae_triggers: key_val = {};
trigger_patch={ae_triggers.enable}
api_cfg={$ae_api}
object_type={'event_location'}
object_id={$lq__event_location_obj?.event_location_id_random}
object_id={$lq__event_location_obj?.event_location_id}
field_name={'enable'}
field_type={'button'}
field_value={ae_tmp.value__enable}
@@ -264,7 +264,7 @@ let ae_triggers: key_val = {};
events_func.load_ae_obj_id__event_location({
api_cfg: $ae_api,
event_location_id: $lq__event_location_obj?.event_location_id_random,
event_location_id: $lq__event_location_obj?.event_location_id,
log_lvl: log_lvl
})
.then(function (load_results) {
@@ -444,7 +444,7 @@ let ae_triggers: key_val = {};
ds_name="Default: Events - Pres Mgmt Session Help"
ds_type="html"
for_type="event"
for_id={$lq__event_location_obj?.event_id_random}
for_id={$lq__event_location_obj?.event_id}
class_li="bg-yellow-100 border border-yellow-400 p-2 rounded-md max-w-xl"
show_edit={false}
show_edit_btn={true}

View File

@@ -26,14 +26,15 @@ import Presenter_view from './presenter_view.svelte';
import Presenter_page_menu from './presenter_page_menu.svelte';
// Exports
export let display_mode: string = 'default'; // 'default', 'compact', 'minimal', 'launcher'
// export let display_mode: string = 'default'; // 'default', 'compact', 'minimal', 'launcher'
// Variables
// Quickly save the data passed from the parent(s) to the Svelte stores, localStorage, and other.
$slct.account_id = data.account_id;
// console.log(`$slct.account_id = `, $slct.account_id);
let ae_acct = data[$slct.account_id];
// console.log(`ae_acct = `, ae_acct);
if (log_lvl) {
console.log(`ae_acct = `, ae_acct);
}
$ae_loc.url_origin = data.url.origin;
@@ -155,7 +156,7 @@ if (!$ae_loc.authenticated_access && $events_loc.pres_mgmt.show_content__present
{@html $lq__event_presenter_obj?.full_name ?? ae_snip.html__not_set}
<!-- <span class="text-sm text-gray-600 dark:text-gray-400">
Presenter ID: {$lq__event_presenter_obj?.event_presenter_id_random}
Presenter ID: {$lq__event_presenter_obj?.event_presenter_id}
</span> -->
@@ -266,7 +267,7 @@ if (!$ae_loc.authenticated_access && $events_loc.pres_mgmt.show_content__present
ds_name="Default: Events - Pres Mgmt Session Authorized Info"
ds_type="html"
for_type="event"
for_id={$lq__event_presenter_obj?.event_id_random}
for_id={$lq__event_presenter_obj?.event_id}
class_li="w-fit max-w-screen-lg flex flex-row gap-1"
show_edit={false}
show_edit_btn={true}
@@ -289,7 +290,7 @@ if (!$ae_loc.authenticated_access && $events_loc.pres_mgmt.show_content__present
</h3>
<!-- Yes... This is a duplicate of what is shown when they press "Presenter Files" button. It can be cleaned up later. -->
{#if $ae_loc.trusted_access || $events_loc.auth__kv.presenter[$lq__event_presenter_obj?.event_presenter_id_random]}
{#if $ae_loc.trusted_access || $events_loc.auth__kv.presenter[$lq__event_presenter_obj?.event_presenter_id]}
<Comp_event_files_upload
class_li="border border-gray-300 rounded-md p-2 bg-gray-100 hover:bg-gray-200"
link_to_type="event_presenter"
@@ -313,9 +314,9 @@ if (!$ae_loc.authenticated_access && $events_loc.pres_mgmt.show_content__present
<div class="overflow-x-auto w-max max-w-full">
<Element_manage_event_file_li_wrap
link_to_type={'event_presenter'}
link_to_id={$lq__event_presenter_obj?.event_presenter_id_random}
allow_basic={$events_loc.auth__kv.presenter[$lq__event_presenter_obj?.event_presenter_id_random] || $events_loc.auth__kv.presenter[$lq__event_presenter_obj?.event_presenter_id_random]}
allow_moderator={$events_loc.auth__kv.presenter[$lq__event_presenter_obj?.event_presenter_id_random]}
link_to_id={$lq__event_presenter_obj?.event_presenter_id}
allow_basic={$events_loc.auth__kv.presenter[$lq__event_presenter_obj?.event_presenter_id] || $events_loc.auth__kv.presenter[$lq__event_presenter_obj?.event_presenter_id]}
allow_moderator={$events_loc.auth__kv.presenter[$lq__event_presenter_obj?.event_presenter_id]}
container_class_li={''}
/>
</div>
@@ -335,7 +336,7 @@ if (!$ae_loc.authenticated_access && $events_loc.pres_mgmt.show_content__present
</span>
</h3>
{#if $ae_loc.public_access || $events_loc.auth__kv.presenter[$lq__event_presenter_obj?.event_presenter_id_random]}
{#if $ae_loc.public_access || $events_loc.auth__kv.presenter[$lq__event_presenter_obj?.event_presenter_id]}
<Comp_event_files_upload
class_li="border border-gray-300 rounded-md p-2 bg-gray-100 hover:bg-gray-200"
link_to_type="event_presenter"
@@ -359,9 +360,9 @@ if (!$ae_loc.authenticated_access && $events_loc.pres_mgmt.show_content__present
<div class="overflow-x-auto w-max max-w-full">
<Element_manage_event_file_li_wrap
link_to_type={'event_presenter'}
link_to_id={$lq__event_presenter_obj?.event_presenter_id_random}
allow_basic={$ae_loc.public_access || $events_loc.auth__kv.presenter[$lq__event_presenter_obj?.event_presenter_id_random]}
allow_moderator={$events_loc.auth__kv.presenter[$lq__event_presenter_obj?.event_presenter_id_random]}
link_to_id={$lq__event_presenter_obj?.event_presenter_id}
allow_basic={$ae_loc.public_access || $events_loc.auth__kv.presenter[$lq__event_presenter_obj?.event_presenter_id]}
allow_moderator={$events_loc.auth__kv.presenter[$lq__event_presenter_obj?.event_presenter_id]}
container_class_li={''}
/>
</div>
@@ -378,7 +379,7 @@ if (!$ae_loc.authenticated_access && $events_loc.pres_mgmt.show_content__present
ds_name="Default: Events - Pres Mgmt Session Authorized Info"
ds_type="html"
for_type="event"
for_id={$lq__event_presenter_obj?.event_id_random}
for_id={$lq__event_presenter_obj?.event_id}
class_li="w-fit max-w-screen-lg flex flex-row gap-1"
show_edit={false}
show_edit_btn={true}