Work on expanding the routes

This commit is contained in:
Scott Idem
2024-03-04 20:55:48 -05:00
parent 6c60ee3086
commit 19a6ff6dbe
22 changed files with 846 additions and 118 deletions

View File

@@ -0,0 +1,40 @@
<script lang="ts">
export let data;
// console.log(`ae_ Svelte Events Badges +page data:`, data);
import { onMount } from 'svelte';
import { api } from '$lib/api';
import { ae_loc, ae_sess, ae_api, slct, slct_trigger } from '$lib/ae_stores';
import { ae_util } from '$lib/ae_utils';
import type { key_val } from '$lib/ae_stores';
onMount(() => {
console.log('Events Badges: +page.svelte');
let href_url = window.location.href;
// console.log(href_url);
$ae_loc.href_url = href_url;
// console.log(`$ae_loc.href_url = `, $ae_loc.href_url);
// $slct_trigger = 'msg_parent';
ae_util.handle_url_and_message('event_id', $slct.event_id);
ae_util.handle_url_and_message('event_badge_id', $slct.event_badge_id);
if ($slct.event_badge_id) {
console.log(`Got an ID. Let's show the modal!`);
modalStore.trigger(modal_edit__event_badge_obj);
}
});
</script>
<section class="ae_events_badges md:container h-full mx-auto">
</section>
<style lang="postcss">
</style>