Staring work on getting Electron working from Svelte app. Wrapping up for the day.
This commit is contained in:
@@ -194,9 +194,7 @@ function process_search_string(search_str: string) {
|
||||
// params['qry__limit'] = 35;
|
||||
// }
|
||||
|
||||
search__event_session({
|
||||
api_cfg: $ae_api,
|
||||
event_id: $events_slct.event_id,
|
||||
handle_search__event_session({
|
||||
ft_search_str: ft_search_str_new,
|
||||
lk_search_str: lk_search_str_new,
|
||||
// fulltext_search_qry_str: ft_search_str_new,
|
||||
@@ -213,8 +211,6 @@ function process_search_string(search_str: string) {
|
||||
|
||||
async function handle_search__event_session(
|
||||
{
|
||||
api_cfg,
|
||||
event_id,
|
||||
ft_search_str = '',
|
||||
lk_search_str = '',
|
||||
search_delay = 0,
|
||||
@@ -227,8 +223,6 @@ async function handle_search__event_session(
|
||||
try_cache=false,
|
||||
log_lvl=1,
|
||||
}: {
|
||||
api_cfg: any,
|
||||
event_id: string,
|
||||
ft_search_str?: string,
|
||||
lk_search_str?: string,
|
||||
search_delay?: number, // In milliseconds
|
||||
@@ -269,7 +263,7 @@ async function handle_search__event_session(
|
||||
|
||||
$events_sess.pres_mgmt.status_qry__search = 'loading';
|
||||
|
||||
search_submit_results = events_func.handle_search__event_session({
|
||||
search_submit_results = events_func.search__event_session({
|
||||
api_cfg: $ae_api,
|
||||
event_id: $events_slct.event_id,
|
||||
// type_code: type_code,
|
||||
|
||||
@@ -228,14 +228,16 @@ async function handle_qry__event_session(
|
||||
enabled = $events_loc.pres_mgmt.qry_enabled ?? 'enabled',
|
||||
hidden = $events_loc.pres_mgmt.qry_hidden ?? 'not_hidden',
|
||||
limit = $events_loc.pres_mgmt.qry_limit__session ?? 150,
|
||||
log_lvl=2,
|
||||
log_lvl=0,
|
||||
}: {
|
||||
qry_files?: boolean,
|
||||
// file_count?: boolean,
|
||||
// file_count_all?: null|number,
|
||||
// ft_search_str?: string,
|
||||
// lk_search_str?: string,
|
||||
params?: key_val,
|
||||
enabled?: string,
|
||||
hidden?: string,
|
||||
limit?: number,
|
||||
log_lvl?: number,
|
||||
}
|
||||
) {
|
||||
@@ -263,12 +265,14 @@ async function handle_qry__event_session(
|
||||
$events_sess.pres_mgmt.status_qry__search = 'processing';
|
||||
$events_sess.pres_mgmt.status_rpt[$events_sess.pres_mgmt.show_report] = 'processing';
|
||||
$events_slct.event_session_obj_li = search_results;
|
||||
console.log(search_results);
|
||||
if (log_lvl) {
|
||||
console.log(`Search results:`, search_results);
|
||||
}
|
||||
// $events_sess.pres_mgmt.status_qry__search = 'done';
|
||||
})
|
||||
.finally(() => {
|
||||
if (log_lvl) {
|
||||
console.log('TEST SEARCH - Search done. Pulling out the event_session_id_randoms.');
|
||||
console.log('API query done. Pulling out the event_session_id_random values.');
|
||||
}
|
||||
// console.log(`TEST search: ${$lq_kv__event_session_obj_li}`);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user