Getting some basic things ready for CHOW 2025
This commit is contained in:
@@ -1,10 +1,9 @@
|
||||
/** @type {import('./$types').LayoutLoad} */
|
||||
console.log(`ae_events_speakers +layout.ts start`);
|
||||
|
||||
// import { get } from 'svelte/store';
|
||||
// import { browser } from '$app/environment';
|
||||
|
||||
// import { api } from '$lib/api';
|
||||
// import type { key_val } from '$lib/ae_stores';
|
||||
// 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 { events_loc, events_slct, events_trigger } from '$lib/ae_events_stores';
|
||||
@@ -17,12 +16,12 @@ export async function load({ parent }) {
|
||||
|
||||
let account_id = data.account_id;
|
||||
let ae_acct = data[account_id];
|
||||
console.log(`ae_acct = `, ae_acct);
|
||||
// console.log(`ae_acct = `, ae_acct);
|
||||
|
||||
if (!account_id) {
|
||||
console.log(`events_speakers +layout.ts: The account_id was not found in the data!!!`);
|
||||
return false;
|
||||
}
|
||||
// if (!account_id) {
|
||||
// console.log(`events_speakers +layout.ts: The account_id was not found in the data!!!`);
|
||||
// return false;
|
||||
// }
|
||||
|
||||
let event_id = ae_acct.slct.event_id;
|
||||
if (!event_id) {
|
||||
|
||||
@@ -30,10 +30,13 @@ export async function load({ fetch, params, parent }) { // route
|
||||
for_obj_type: 'account',
|
||||
for_obj_id: account_id,
|
||||
inc_content_li: true,
|
||||
enabled: 'enabled',
|
||||
hidden: 'not_hidden',
|
||||
limit: 20,
|
||||
order_by_li: {'priority': 'DESC', 'sort': 'DESC', 'updated_on': 'DESC', 'created_on': 'DESC', 'name': 'ASC'},
|
||||
params: {qry__enabled: 'enabled', qry__hidden: 'not_hidden', qry__limit: 20},
|
||||
params: params,
|
||||
try_cache: true,
|
||||
log_lvl: log_lvl
|
||||
log_lvl: 2
|
||||
});
|
||||
console.log(`load_event_obj_li = `, load_event_obj_li);
|
||||
ae_acct.slct.event_obj_li = load_event_obj_li;
|
||||
|
||||
@@ -1,11 +1,9 @@
|
||||
/** @type {import('./$types').LayoutLoad} */
|
||||
console.log(`ae_sponsorships +layout.ts start`);
|
||||
|
||||
// import { get } from 'svelte/store';
|
||||
// import { browser } from '$app/environment';
|
||||
|
||||
// import type { key_val } from '$lib/ae_stores';
|
||||
// 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 { spons_func } from '$lib/ae_sponsorships/ae_sponsorships_functions';
|
||||
@@ -19,10 +17,10 @@ export async function load({ parent }) {
|
||||
let ae_acct = data[account_id];
|
||||
// console.log(`ae_acct = `, ae_acct);
|
||||
|
||||
if (!account_id) {
|
||||
console.log(`sponsorships +layout.ts: The account_id was not found in the data!!!`);
|
||||
return false;
|
||||
}
|
||||
// if (!account_id) {
|
||||
// console.log(`sponsorships +layout.ts: The account_id was not found in the data!!!`);
|
||||
// return false;
|
||||
// }
|
||||
|
||||
let sponsorship_cfg_id = ae_acct.slct.sponsorship_cfg_id;
|
||||
if (!sponsorship_cfg_id) {
|
||||
|
||||
Reference in New Issue
Block a user