General clean up. No working on the new event presenter components.
This commit is contained in:
@@ -21,47 +21,47 @@ onMount(() => {
|
||||
});
|
||||
|
||||
|
||||
let data_store_obj_get_promises: key_val = {};
|
||||
let get_ds_hub_site_header_promise = handle_get_data_store_obj_w_code({code: 'hub_site_header'});
|
||||
let get_ds_hub_site_footer_promise = handle_get_data_store_obj_w_code({code: 'hub_site_footer'});
|
||||
// let data_store_obj_get_promises: key_val = {};
|
||||
// let get_ds_hub_site_header_promise = handle_get_data_store_obj_w_code({code: 'hub_site_header'});
|
||||
// let get_ds_hub_site_footer_promise = handle_get_data_store_obj_w_code({code: 'hub_site_footer'});
|
||||
|
||||
async function handle_get_data_store_obj_w_code({code}: {code: string}, data_type='text') {
|
||||
console.log('*** handle_get_data_store_obj_w_code() ***');
|
||||
// async function handle_get_data_store_obj_w_code({code}: {code: string}, data_type='text') {
|
||||
// console.log('*** handle_get_data_store_obj_w_code() ***');
|
||||
|
||||
// let get_item_result = window.localStorage.getItem(code);
|
||||
// localStorage.getItem(code);
|
||||
// // let get_item_result = window.localStorage.getItem(code);
|
||||
// // localStorage.getItem(code);
|
||||
|
||||
// if ($ae_loc_test_store) {
|
||||
// $ae_loc.hub.ds[code] = $ae_loc_test_store;
|
||||
// } else {
|
||||
// console.log('Get local storage item miss.');
|
||||
// }
|
||||
// // if ($ae_loc_test_store) {
|
||||
// // $ae_loc.hub.ds[code] = $ae_loc_test_store;
|
||||
// // } else {
|
||||
// // console.log('Get local storage item miss.');
|
||||
// // }
|
||||
|
||||
data_store_obj_get_promises[code] = api.get_data_store_obj_w_code({
|
||||
api_cfg: $ae_api,
|
||||
data_store_code: code,
|
||||
data_type: data_type,
|
||||
log_lvl: 1
|
||||
})
|
||||
.then(function (get_data_store_result) {
|
||||
if (get_data_store_result) {
|
||||
// data_store_obj_get_promises[code] = api.get_data_store_obj_w_code({
|
||||
// api_cfg: $ae_api,
|
||||
// data_store_code: code,
|
||||
// data_type: data_type,
|
||||
// log_lvl: 1
|
||||
// })
|
||||
// .then(function (get_data_store_result) {
|
||||
// if (get_data_store_result) {
|
||||
|
||||
if (data_type == 'text') {
|
||||
// console.log(get_data_store_result.text);
|
||||
$ae_loc.hub.ds[code] = get_data_store_result.text;
|
||||
} else if (data_type == 'json') {
|
||||
// console.log(get_data_store_result.json);
|
||||
$ae_loc.hub.ds[code] = get_data_store_result.json;
|
||||
}
|
||||
// if (data_type == 'text') {
|
||||
// // console.log(get_data_store_result.text);
|
||||
// $ae_loc.hub.ds[code] = get_data_store_result.text;
|
||||
// } else if (data_type == 'json') {
|
||||
// // console.log(get_data_store_result.json);
|
||||
// $ae_loc.hub.ds[code] = get_data_store_result.json;
|
||||
// }
|
||||
|
||||
// console.log(`Code: ${$ae_loc.hub.ds[code]}`);
|
||||
// console.log(`Code:`, $ae_loc.hub.ds[code]);
|
||||
}
|
||||
})
|
||||
.catch(function (error) {
|
||||
console.log('No results returned or failed.', error);
|
||||
});
|
||||
}
|
||||
// // console.log(`Code: ${$ae_loc.hub.ds[code]}`);
|
||||
// // console.log(`Code:`, $ae_loc.hub.ds[code]);
|
||||
// }
|
||||
// })
|
||||
// .catch(function (error) {
|
||||
// console.log('No results returned or failed.', error);
|
||||
// });
|
||||
// }
|
||||
|
||||
</script>
|
||||
|
||||
@@ -74,17 +74,13 @@ async function handle_get_data_store_obj_w_code({code}: {code: string}, data_typ
|
||||
<a
|
||||
class="btn variant-filled"
|
||||
href="/sponsorships"
|
||||
target="_blank"
|
||||
rel="noreferrer"
|
||||
>
|
||||
Open Sponsorships
|
||||
</a>
|
||||
|
||||
<a
|
||||
class="btn variant-filled"
|
||||
href="/sponsorships"
|
||||
target="_blank"
|
||||
rel="noreferrer"
|
||||
href="/events_speakers"
|
||||
>
|
||||
Open Speakers
|
||||
</a>
|
||||
|
||||
Reference in New Issue
Block a user