Updated packages previously. Minor changes
This commit is contained in:
@@ -21,6 +21,9 @@ export let video_clip_file_kv: key_val = {};
|
|||||||
export let class_li_default: string = 'flex flex-row flex-wrap gap-2 items-center justify-center w-full max-w-2xl p-2 mx-auto my-1 border border-gray-300 rounded-lg';
|
export let class_li_default: string = 'flex flex-row flex-wrap gap-2 items-center justify-center w-full max-w-2xl p-2 mx-auto my-1 border border-gray-300 rounded-lg';
|
||||||
export let class_li: string = '';
|
export let class_li: string = '';
|
||||||
|
|
||||||
|
export let link_to_type: string;
|
||||||
|
export let link_to_id: string;
|
||||||
|
|
||||||
let ae_promises: key_val = {};
|
let ae_promises: key_val = {};
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
@@ -29,7 +32,7 @@ let ae_promises: key_val = {};
|
|||||||
<h3 class="h3">{Object.entries($ae_loc.files).length}× files clipped</h3>
|
<h3 class="h3">{Object.entries($ae_loc.files).length}× files clipped</h3>
|
||||||
<div class="{class_li_default} {class_li} ">
|
<div class="{class_li_default} {class_li} ">
|
||||||
|
|
||||||
{#each Object.entries($ae_loc.files.video_clip_file_kv) as [hosted_file_id, hosted_file_obj]}
|
{#each Object.entries(video_clip_file_kv) as [hosted_file_id, hosted_file_obj]}
|
||||||
<button
|
<button
|
||||||
type="button"
|
type="button"
|
||||||
disabled={!$ae_loc.trusted_access}
|
disabled={!$ae_loc.trusted_access}
|
||||||
@@ -40,7 +43,7 @@ let ae_promises: key_val = {};
|
|||||||
return_file: true,
|
return_file: true,
|
||||||
filename: hosted_file_obj.filename,
|
filename: hosted_file_obj.filename,
|
||||||
auto_download: true,
|
auto_download: true,
|
||||||
log_lvl: 0
|
log_lvl: log_lvl
|
||||||
});
|
});
|
||||||
|
|
||||||
// window.postMessage({ type: 'download_event_file', hosted_file_id: idaa_archive_content_obj.hosted_file_id, filename: idaa_archive_content_obj.filename, auto_download: true }, '*');
|
// window.postMessage({ type: 'download_event_file', hosted_file_id: idaa_archive_content_obj.hosted_file_id, filename: idaa_archive_content_obj.filename, auto_download: true }, '*');
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ import type { key_val } from '$lib/ae_stores';
|
|||||||
import Element_manage_hosted_file_li from '$lib/element_manage_hosted_file_li.svelte';
|
import Element_manage_hosted_file_li from '$lib/element_manage_hosted_file_li.svelte';
|
||||||
|
|
||||||
// import { core_func } from '$lib/ae_core_functions';
|
// import { core_func } from '$lib/ae_core_functions';
|
||||||
import { ae_loc, ae_sess, ae_api, ae_trig, slct, slct_trigger } from '$lib/ae_stores';
|
// import { ae_loc, ae_sess, ae_api, ae_trig, slct, slct_trigger } from '$lib/ae_stores';
|
||||||
import { db_core } from "$lib/ae_core/db_core";
|
import { db_core } from "$lib/ae_core/db_core";
|
||||||
// import { events_loc, events_sess, events_slct, events_trigger } from '$lib/ae_events_stores';
|
// import { events_loc, events_sess, events_slct, events_trigger } from '$lib/ae_events_stores';
|
||||||
// import { events_func } from '$lib/ae_events_functions';
|
// import { events_func } from '$lib/ae_events_functions';
|
||||||
@@ -36,20 +36,20 @@ ae_tmp.show__direct_download = false;
|
|||||||
// let ae_triggers: key_val = {};
|
// let ae_triggers: key_val = {};
|
||||||
|
|
||||||
let dq__where_val: string = `${link_to_type}_id`; // no more _random ???
|
let dq__where_val: string = `${link_to_type}_id`; // no more _random ???
|
||||||
let dq__where_eq_val: string = link_to_id ?? 'Q8lR8Ai8hx2FjbQ3C_EH1Q';
|
let dq__where_eq_val: string = link_to_id;
|
||||||
|
|
||||||
// This should include all files that are associated with an object (event, location, session, presenter, etc.)
|
// This should include all files that are associated with an object (event, location, session, presenter, etc.)
|
||||||
// I am not sure why, but doing reverse() and then sortBy() seems to sort in descending order.
|
// I am not sure why, but doing reverse() and then sortBy() seems to sort in descending order.
|
||||||
$: lq__hosted_file_obj_li = liveQuery(async () => {
|
$: lq__hosted_file_obj_li = liveQuery(async () => {
|
||||||
console.log(`dq__where_val: ${dq__where_val}`);
|
// console.log(`dq__where_val: ${dq__where_val}`);
|
||||||
console.log(`dq__where_eq_val: ${dq__where_eq_val}`);
|
// console.log(`dq__where_eq_val: ${dq__where_eq_val}`);
|
||||||
let results = await db_core.file
|
let results = await db_core.file
|
||||||
// .where(dq__where_val)
|
.where(dq__where_val)
|
||||||
.where('account_id')
|
// .where('account_id')
|
||||||
// .equals(dq__where_eq_val)
|
.equals(dq__where_eq_val)
|
||||||
.equals('Q8lR8Ai8hx2FjbQ3C_EH1Q')
|
// .equals('Q8lR8Ai8hx2FjbQ3C_EH1Q')
|
||||||
// .reverse()
|
// .reverse()
|
||||||
// .sortBy('created_on')
|
.sortBy('created_on')
|
||||||
// .toArray()
|
// .toArray()
|
||||||
;
|
;
|
||||||
return results;
|
return results;
|
||||||
|
|||||||
Reference in New Issue
Block a user