Lots of code clean up. Finally working on the Launcher piece again.

This commit is contained in:
Scott Idem
2025-07-21 16:40:37 -04:00
parent ee0e108322
commit b54f43be35
25 changed files with 411 additions and 355 deletions

View File

@@ -100,7 +100,8 @@ export async function load_ae_obj_id__event_location(
api_cfg: api_cfg,
for_obj_type: 'event_location',
for_obj_id: event_location_id,
params: {qry__enabled: 'all', qry__limit: 15},
enabled: 'all',
limit: 15,
try_cache: try_cache,
log_lvl: log_lvl
})
@@ -126,7 +127,8 @@ export async function load_ae_obj_id__event_location(
api_cfg: api_cfg,
for_obj_type: 'event_location',
for_obj_id: event_location_id,
params: {qry__enabled: 'all', qry__limit: 15},
enabled: 'all',
limit: 15,
try_cache: try_cache,
log_lvl: log_lvl
});
@@ -150,6 +152,10 @@ export async function load_ae_obj_li__event_location(
inc_device_li = false,
inc_file_li = false,
inc_session_li = false,
enabled = 'enabled',
hidden = 'not_hidden',
limit = 29,
offset = 0,
order_by_li = {'priority': 'DESC', 'sort': 'DESC', 'name': 'ASC', 'code': 'ASC', 'updated_on': 'DESC', 'created_on': 'DESC'},
params = {},
try_cache = true,
@@ -161,6 +167,10 @@ export async function load_ae_obj_li__event_location(
inc_device_li?: boolean,
inc_file_li?: boolean,
inc_session_li?: boolean,
enabled?: string, // all, disabled, enabled
hidden?: string, // all, hidden, not_hidden
limit?: number, // 99
offset?: number, // 0
order_by_li?: key_val,
params?: key_val,
try_cache?: boolean,
@@ -171,11 +181,6 @@ export async function load_ae_obj_li__event_location(
console.log(`*** load_ae_obj_li__event_location() *** for_obj_type=${for_obj_type} for_obj_id=${for_obj_id}`);
}
let enabled: string = (params.qry__enabled ?? 'enabled'); // all, disabled, enabled
let hidden: string = (params.qry__hidden ?? 'all'); // all, hidden, not_hidden
let limit: number = (params.qry__limit ?? 99); // 99
let offset: number = (params.qry__offset ?? 0); // 0
let params_json: key_val = {};
// console.log('params_json:', params_json);
@@ -284,7 +289,8 @@ export async function load_ae_obj_li__event_location(
api_cfg: api_cfg,
for_obj_type: 'event_location',
for_obj_id: event_location_id,
params: {qry__enabled: enabled, qry__limit: limit},
enabled: enabled,
limit: limit,
try_cache: try_cache,
log_lvl: log_lvl
})
@@ -314,7 +320,8 @@ export async function load_ae_obj_li__event_location(
api_cfg: api_cfg,
for_obj_type: 'event_location',
for_obj_id: event_location_id,
params: {qry__enabled: enabled, qry__limit: limit},
enabled: enabled,
limit: limit,
try_cache: try_cache,
log_lvl: log_lvl
})