Getting rid of old code. Wrapping up for the day and week.

This commit is contained in:
Scott Idem
2025-09-19 16:23:39 -04:00
parent f06358439f
commit 5b7aa320e2
3 changed files with 1 additions and 132 deletions

View File

@@ -565,54 +565,6 @@ async function handle_event_file_close () {
}
// Updated 2023-3-31
// export let open_event_file_as_modal = function open_event_file_as_modal({event_file_id, filename=null, extension=null, modal_title='Poster'}) {
// console.log('*** open_event_file_as_modal() ***');
// // NOTE: I can not set the ae_event_launcher values directly. Passing them back to the component and setting them there. Not ideal. This might be improved/fixed in the future?
// let launcher_modal_values = {'show_modal_file': true, 'event_file_open': {}};
// // launcher_modal_values.show_modal_file = true;
// if (extension == 'png' || extension == 'jpg') {
// launcher_modal_values.event_file_open.file_type = 'image';
// } else if (extension == 'mp4' || extension == 'mov') {
// launcher_modal_values.event_file_open.file_type = 'video';
// } else {
// return false;
// }
// launcher_modal_values.event_file_open.file_src = `/event/file/${event_file_id}/download`;
// launcher_modal_values.event_file_open.modal_title = modal_title;
// // NOTE: Be sure to set these values in the actual ae_event_launcher object!
// return launcher_modal_values;
// }
// interface Props {
// /** @type {import('./$types').LayoutData} */
// data: any;
// // Updated 2023-3-31
// close_event_file_as_modal?: any;
// children?: import('svelte').Snippet;
// }
// let { data = $bindable(), close_event_file_as_modal = function close_event_file_as_modal({}) {
// console.log('*** close_event_file_as_modal() ***');
// // NOTE: I can not set the ae_event_launcher values directly. Passing them back to the component and setting them there. Not ideal. This might be improved/fixed in the future?
// let launcher_modal_values = {'show_modal_file': false, 'event_file_open': {}};
// // NOTE: Be sure to set these values in the actual ae_event_launcher object!
// return launcher_modal_values;
// }, children }: Props = $props();
if (!$events_loc.launcher.idle_timer) {
$events_loc.launcher.idle_timer = 4 * 60 * 1000;
}
@@ -1225,4 +1177,4 @@ $effect(() => {
/>
<!-- on:ws_recv={handle_ws_recv} -->
{/if}
{/if}