Done for the night I guess.
This commit is contained in:
@@ -174,7 +174,7 @@ async function handle_load_ae_obj_code__data_store(
|
||||
|
||||
if (save_idb) {
|
||||
if (browser) {
|
||||
console.log(`ae_ds__ key: ${code}, value:`, get_ds_result);
|
||||
// console.log(`ae_ds__ key: ${code}, value:`, get_ds_result);
|
||||
localStorage.setItem(`ae_ds__${code}`, JSON.stringify(get_ds_result));
|
||||
} else {
|
||||
console.log('No browser!!!');
|
||||
|
||||
@@ -86,9 +86,9 @@ $ae_sess.ds.update_status = null;
|
||||
|
||||
let trigger: null|string = null;
|
||||
|
||||
$: if (ae_ds_tmp) {
|
||||
console.log(`ae_e_data_store ae_ds_loc = `, ae_ds_tmp);
|
||||
}
|
||||
// $: if (ae_ds_tmp) {
|
||||
// console.log(`ae_e_data_store ae_ds_loc = `, ae_ds_tmp);
|
||||
// }
|
||||
|
||||
import { browser } from '$app/environment';
|
||||
|
||||
|
||||
@@ -168,7 +168,7 @@ export async function load({ fetch, params, parent, route, url }) { // params, r
|
||||
// return true;
|
||||
// });
|
||||
|
||||
console.log(ae_loc_init);
|
||||
// console.log(ae_loc_init);
|
||||
|
||||
// if (browser) {
|
||||
// localStorage.setItem('ae_account_id', await account_id);
|
||||
@@ -177,7 +177,7 @@ export async function load({ fetch, params, parent, route, url }) { // params, r
|
||||
// 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);
|
||||
// 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) {
|
||||
|
||||
@@ -8,9 +8,9 @@ import { ae_loc, ae_sess, ae_api, slct, slct_trigger } from '$lib/ae_stores';
|
||||
|
||||
// Quickly save the data passed from the parent(s) to the Svelte stores, localStorage, and other.
|
||||
// $slct.account_id = data.account_id;
|
||||
console.log(`$slct.account_id = `, $slct.account_id);
|
||||
// console.log(`$slct.account_id = `, $slct.account_id);
|
||||
let ae_acct = data[$slct.account_id];
|
||||
console.log(`ae_acct = `, ae_acct);
|
||||
// console.log(`ae_acct = `, ae_acct);
|
||||
|
||||
// $ae_loc = data.ae_loc;
|
||||
$ae_loc.mod.events.event_id = data.ae_slct.event_id;
|
||||
@@ -27,7 +27,7 @@ if (data.ae_ds) {
|
||||
}
|
||||
|
||||
onMount(() => {
|
||||
console.log(`$slct.event_id = `, $slct.event_id);
|
||||
// console.log(`$slct.event_id = `, $slct.event_id);
|
||||
if (data.url.searchParams.get('event_id')) {
|
||||
$slct.event_id = data.url.searchParams.get('event_id');
|
||||
$ae_loc.mod.events.event_id = data.url.searchParams.get('event_id');
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<script lang="ts">
|
||||
export let data: any;
|
||||
|
||||
console.log(`ae_ Svelte Events Speakers +page data:`, data);
|
||||
// console.log(`ae_ Svelte Events Speakers +page data:`, data);
|
||||
|
||||
import { onMount } from 'svelte';
|
||||
|
||||
|
||||
@@ -8,9 +8,9 @@ import { ae_loc, ae_sess, ae_api, slct, slct_trigger } from '$lib/ae_stores';
|
||||
|
||||
// Quickly save the data passed from the parent(s) to the Svelte stores, localStorage, and other.
|
||||
// $slct.account_id = data.account_id;
|
||||
console.log(`$slct.account_id = `, $slct.account_id);
|
||||
// console.log(`$slct.account_id = `, $slct.account_id);
|
||||
let ae_acct = data[$slct.account_id];
|
||||
console.log(`ae_acct = `, ae_acct);
|
||||
// console.log(`ae_acct = `, ae_acct);
|
||||
|
||||
// $ae_loc = ae_acct.loc;
|
||||
$ae_loc.mod.sponsorships.cfg_id = ae_acct.slct.sponsorship_cfg_id;
|
||||
@@ -37,6 +37,7 @@ $ae_loc.mod.sponsorships.level_guest_max_li = {
|
||||
|
||||
|
||||
onMount(() => {
|
||||
// console.log($slct.sponsorship_cfg_obj);
|
||||
if (data.url.searchParams.get('sponsorship_cfg_id')) {
|
||||
$ae_loc.mod.sponsorships.cfg_id = data.url.searchParams.get('sponsorship_cfg_id');
|
||||
$slct.sponsorship_cfg_id = data.url.searchParams.get('sponsorship_cfg_id');
|
||||
@@ -46,7 +47,7 @@ onMount(() => {
|
||||
|
||||
|
||||
<svelte:head>
|
||||
<title>Sponsor Hub - {$ae_loc.title}</title>
|
||||
<title>Sponsor Hub - {$ae_loc.title ?? 'Æ loading...'}</title>
|
||||
</svelte:head>
|
||||
|
||||
<!-- <h1>Sponsorships Layout?</h1> -->
|
||||
|
||||
@@ -17,7 +17,7 @@ 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(`sponsorships +layout.ts: The account_id was not found in the data!!!`);
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
<script lang="ts">
|
||||
export let data;
|
||||
|
||||
// console.log(`ae_ Svelte Sponsorships +page data:`, data);
|
||||
|
||||
import { onMount } from 'svelte';
|
||||
|
||||
Reference in New Issue
Block a user