Wrapping up for the night at 4 AM. Made lots of progress with the Journals module. Should have saved more often.
This commit is contained in:
34
src/routes/journals/hold+layout.ts
Normal file
34
src/routes/journals/hold+layout.ts
Normal file
@@ -0,0 +1,34 @@
|
||||
/** @type {import('./$types').LayoutLoad} */
|
||||
|
||||
// import { error } from '@sveltejs/kit';
|
||||
import { browser } from '$app/environment';
|
||||
|
||||
// import { api } from '$lib/api';
|
||||
// import { ae_loc, ae_sess, ae_api, slct, slct_trigger } from '$lib/ae_stores';
|
||||
// import { core_func } from '$lib/ae_core/ae_core_functions';
|
||||
// import type { key_val } from '$lib/ae_stores';
|
||||
|
||||
|
||||
export async function load({ fetch, params, parent, route, url }) {
|
||||
let log_lvl: number = 0;
|
||||
|
||||
let parent_data = await parent();
|
||||
|
||||
let account_id = parent_data.account_id;
|
||||
|
||||
let ae_acct = parent_data[account_id];
|
||||
if (log_lvl) {
|
||||
console.log(`ae_acct = `, ae_acct);
|
||||
}
|
||||
|
||||
|
||||
// let ae_params = {};
|
||||
|
||||
if (browser) {
|
||||
|
||||
}
|
||||
|
||||
parent_data[account_id] = ae_acct;
|
||||
|
||||
return parent_data;
|
||||
}
|
||||
Reference in New Issue
Block a user