Renaming the page access code to site access code.
This commit is contained in:
@@ -160,6 +160,8 @@ export async function load({ fetch, params, parent, route, url }) { // params, r
|
||||
ae_loc_init['site_header_image_path'] = site_domain_results.header_image_path;
|
||||
ae_loc_init['site_style_href'] = site_domain_results.style_href;
|
||||
ae_loc_init['site_google_tracking_id'] = site_domain_results.google_tracking_id;
|
||||
ae_loc_init['site_access_code_kv'] = site_domain_results.access_code_kv_json;
|
||||
ae_loc_init['page_access_code_li'] = site_domain_results.access_code_kv_json; // Old style. This is only temporary. Start using site_*_kv version.
|
||||
ae_loc_init['site_cfg_json'] = site_domain_results.cfg_json;
|
||||
|
||||
console.log(`root layout.ts: Returning account_id = `, site_domain_results.account_id_random);
|
||||
@@ -182,26 +184,26 @@ export async function load({ fetch, params, parent, route, url }) { // params, r
|
||||
// console.log(ae_loc_init);
|
||||
|
||||
// NOTE: We need to wait for the account_id to be returned before we can continue. It is required for the api_cfg.
|
||||
let ds_type: null|string = 'json';
|
||||
ds_code = 'hub__page__access_code_li_json';
|
||||
// console.log(`INFO: ae_ account_id = `, account_id);
|
||||
// ae_acct['ds'][ds_code]
|
||||
ds_code_li[ds_code] = await core_func.handle_load_ae_obj_code__data_store({
|
||||
api_cfg: ae_api_init,
|
||||
code: ds_code,
|
||||
data_type: ds_type,
|
||||
save_idb: false
|
||||
})
|
||||
.then(function (ds_results) {
|
||||
if (ds_results) {
|
||||
console.log(`ae_ ds_results = `, ds_results);
|
||||
return ds_results;
|
||||
}
|
||||
// let ds_type: null|string = 'json';
|
||||
// ds_code = 'hub__page__access_code_li_json';
|
||||
// // console.log(`INFO: ae_ account_id = `, account_id);
|
||||
// // ae_acct['ds'][ds_code]
|
||||
// ds_code_li[ds_code] = await core_func.handle_load_ae_obj_code__data_store({
|
||||
// api_cfg: ae_api_init,
|
||||
// code: ds_code,
|
||||
// data_type: ds_type,
|
||||
// save_idb: false
|
||||
// })
|
||||
// .then(function (ds_results) {
|
||||
// if (ds_results) {
|
||||
// console.log(`ae_ ds_results = `, ds_results);
|
||||
// return ds_results;
|
||||
// }
|
||||
|
||||
}
|
||||
);
|
||||
// }
|
||||
// );
|
||||
|
||||
ae_loc_init['page_access_code_li'] = ds_code_li['hub__page__access_code_li_json'];
|
||||
// ae_loc_init['page_access_code_li'] = ds_code_li['hub__page__access_code_li_json'];
|
||||
|
||||
ae_acct['api'] = ae_api_init;
|
||||
ae_acct['loc'] = ae_loc_init;
|
||||
|
||||
Reference in New Issue
Block a user