Separating out components and functions to make things more modular.

This commit is contained in:
Scott Idem
2024-07-03 17:48:06 -04:00
parent 270a1429f8
commit 4aae2bead4
16 changed files with 528 additions and 119 deletions

View File

@@ -13,7 +13,7 @@ import { core_func } from '$lib/ae_core_functions';
// *** Import Aether module components
// *** Export/Exposed variables and functions for component
export let log_lvl: number = 1;
export let log_lvl: number = 0;
export let trigger_patch: any = null;
export let api_cfg: key_val = {'api_crud_super_key': null};
// export let api_crud_super_key: null|string = api_cfg.api_crud_super_key;
@@ -56,7 +56,6 @@ const dispatch = createEventDispatcher();
onMount(() => {
// console.log('** Element Mounted: ** Element AE CRUD');
if (log_lvl) {
console.log(`Element AE CRUD: Object Type: ${object_type}; Object ID: ${object_id}; Field Name: ${field_name}; Field Value: ${field_value} (Original: ${original_field_value})`);
// ; Super Key: ${api_crud_super_key}
@@ -66,7 +65,6 @@ onMount(() => {
$: if (trigger_patch == true) {
console.log('AE CRUD: Patch triggered!');
// console.log(trigger_patch);
trigger_patch = null;
handle_obj_field_patch(field_value);
}