diff --git a/src/routes/idaa/(idaa)/archives/+layout.svelte b/src/routes/idaa/(idaa)/archives/+layout.svelte index 7e7304f5..e981d7fb 100644 --- a/src/routes/idaa/(idaa)/archives/+layout.svelte +++ b/src/routes/idaa/(idaa)/archives/+layout.svelte @@ -48,9 +48,6 @@ }); } }); - // $idaa_slct.archive_id = ae_acct.slct.archive_id; // Not set here yet. - - // *** Set initial variables {@render children?.()} diff --git a/src/routes/idaa/(idaa)/archives/+layout.ts b/src/routes/idaa/(idaa)/archives/+layout.ts index d4dbd029..224e77ed 100644 --- a/src/routes/idaa/(idaa)/archives/+layout.ts +++ b/src/routes/idaa/(idaa)/archives/+layout.ts @@ -26,16 +26,6 @@ export async function load({ fetch, params, parent }) { } }; } - // console.log(`ae_acct = `, ae_acct); - - // if (!account_id) { - // console.log(`ae IDAA Archives - [account_id] +page.ts: The account_id was not found!!!`); - // error(404, { - // message: 'Account ID not found' - // }); - // } - - // ae_acct.slct.account_id = account_id; if (browser) { const load_archive_obj_li = archives_func.load_ae_obj_li__archive({ diff --git a/src/routes/idaa/(idaa)/archives/+page.svelte b/src/routes/idaa/(idaa)/archives/+page.svelte index 2ff49418..3dcd0bd3 100644 --- a/src/routes/idaa/(idaa)/archives/+page.svelte +++ b/src/routes/idaa/(idaa)/archives/+page.svelte @@ -13,7 +13,6 @@ // import { goto, invalidate, pushState, replaceState } from '$app/navigation'; // *** Import other supporting libraries - // import { Modal } from 'flowbite-svelte'; import { liveQuery } from 'dexie'; // *** Import Aether specific variables and functions @@ -90,58 +89,58 @@ // ); } - function add_activity_log({ - action = 'idaa_archives_page', - action_with = 'none' - }: { - action?: string; - action_with?: string; - }) { - let last_cache_refresh_iso = new Date($ae_loc?.last_cache_refresh); + // function add_activity_log({ + // action = 'idaa_archives_page', + // action_with = 'none' + // }: { + // action?: string; + // action_with?: string; + // }) { + // let last_cache_refresh_iso = new Date($ae_loc?.last_cache_refresh); - let activity_description = ` - ${$idaa_loc.novi_full_name ?? 'none'} ${$idaa_loc.novi_email ?? 'no-email'} - allow=${$ae_loc?.allow_access} - last_cache_refresh=${last_cache_refresh_iso.toLocaleString()} - data_route=${data?.route.toString() ?? 'unknown'} - `; + // let activity_description = ` + // ${$idaa_loc.novi_full_name ?? 'none'} ${$idaa_loc.novi_email ?? 'no-email'} + // allow=${$ae_loc?.allow_access} + // last_cache_refresh=${last_cache_refresh_iso.toLocaleString()} + // data_route=${data?.route.toString() ?? 'unknown'} + // `; - let data_kv = { - external_client_id: data?.route.id, - name: `IDAA: ${$idaa_loc.novi_full_name ?? 'none'} ${$idaa_loc.novi_email ?? ''}`, - description: activity_description ?? null, - object_type: 'archive', // archive, post, event - // object_id_random: data?.params?.archive_id ?? null, - // object_id_random: ae_acct.slct.archive_id, // data?.params?.archive_id ?? null, - url_root: data?.url.origin, - // url_full_path: data?.url.href, - url_full_path: data?.url.pathname, - url_params: data?.url.searchParams.toString(), - action: action, - action_with: action_with ?? 'none', - meta_json: { - allow_access: $ae_loc?.allow_access, - last_cache_refresh: $ae_loc?.last_cache_refresh, - last_cache_refresh_iso: last_cache_refresh_iso.toISOString(), - last_cache_refresh_locale: - last_cache_refresh_iso.toLocaleString(), - access_level: $ae_loc?.access_level, - iframe: $ae_loc?.iframe - // site_access_key: $ae_loc?.site_access_key, - // site_domain_access_key: $ae_loc?.site_domain_access_key, - // site_domain: $ae_loc?.site_domain, - // extra_data: extra_data ?? '', - // log_lvl: log_lvl, - } - }; + // let data_kv = { + // external_client_id: data?.route.id, + // name: `IDAA: ${$idaa_loc.novi_full_name ?? 'none'} ${$idaa_loc.novi_email ?? ''}`, + // description: activity_description ?? null, + // object_type: 'archive', // archive, post, event + // // object_id: data?.params?.archive_id ?? null, + // // object_id: ae_acct.slct.archive_id, // data?.params?.archive_id ?? null, + // url_root: data?.url.origin, + // // url_full_path: data?.url.href, + // url_full_path: data?.url.pathname, + // url_params: data?.url.searchParams.toString(), + // action: action, + // action_with: action_with ?? 'none', + // meta_json: { + // allow_access: $ae_loc?.allow_access, + // last_cache_refresh: $ae_loc?.last_cache_refresh, + // last_cache_refresh_iso: last_cache_refresh_iso.toISOString(), + // last_cache_refresh_locale: + // last_cache_refresh_iso.toLocaleString(), + // access_level: $ae_loc?.access_level, + // iframe: $ae_loc?.iframe + // // site_access_key: $ae_loc?.site_access_key, + // // site_domain_access_key: $ae_loc?.site_domain_access_key, + // // site_domain: $ae_loc?.site_domain, + // // extra_data: extra_data ?? '', + // // log_lvl: log_lvl, + // } + // }; - core_func.create_ae_obj__activity_log({ - api_cfg: $ae_api, - account_id: $ae_loc.account_id, - data_kv: data_kv, - log_lvl: log_lvl - }); - } + // core_func.create_ae_obj__activity_log({ + // api_cfg: $ae_api, + // account_id: $ae_loc.account_id, + // data_kv: data_kv, + // log_lvl: log_lvl + // }); + // } diff --git a/src/routes/idaa/(idaa)/archives/ae_idaa_comp__archive_obj_li.svelte b/src/routes/idaa/(idaa)/archives/ae_idaa_comp__archive_obj_li.svelte index 4eda988b..e1dc53bb 100644 --- a/src/routes/idaa/(idaa)/archives/ae_idaa_comp__archive_obj_li.svelte +++ b/src/routes/idaa/(idaa)/archives/ae_idaa_comp__archive_obj_li.svelte @@ -18,7 +18,7 @@ slct, slct_trigger } from '$lib/stores/ae_stores'; - import { idaa_loc, idaa_sess, idaa_slct } from '$lib/stores/ae_idaa_stores'; + // import { idaa_loc, idaa_sess, idaa_slct } from '$lib/stores/ae_idaa_stores'; interface Props { lq__archive_obj_li: any; diff --git a/src/routes/idaa/(idaa)/archives/ae_idaa_comp__media_player.svelte b/src/routes/idaa/(idaa)/archives/ae_idaa_comp__media_player.svelte index fc0d908e..c54b93b8 100644 --- a/src/routes/idaa/(idaa)/archives/ae_idaa_comp__media_player.svelte +++ b/src/routes/idaa/(idaa)/archives/ae_idaa_comp__media_player.svelte @@ -1,6 +1,6 @@
- + {#if $ae_loc.authenticated_access} - {@const file_id = linked_obj?.hosted_file_id_random || linked_obj?.id || linked_obj?.hosted_file_id} + {@const file_id = linked_obj?.hosted_file_id || linked_obj?.id} {#if file_id} {@const ext = (linked_obj.extension || linked_obj.file_extension || ae_util.guess_file_extension(linked_obj.filename) || '').toLowerCase()} {#if ['png', 'jpg', 'jpeg', 'gif', 'webp', 'svg'].includes(ext)}