Trying to make things work for the morning...

This commit is contained in:
2024-04-09 21:25:12 -04:00
parent 4460b38098
commit f68bccddb9
4 changed files with 104 additions and 41 deletions

View File

@@ -22,7 +22,12 @@ onMount(() => {
</script>
<section class="ae_root md:container h-full mx-auto flex flex-col items-center p-4 space-y-12">
<section
class="ae_root md:container h-full mx-auto flex flex-col items-center p-4 space-y-12"
class:ae_root--auth_access={$ae_loc.auth_access}
class:ae_root--trusted_access={$ae_loc.trusted_access}
class:ae_root--administrator_access={$ae_loc.administrator_access}
>
<Element_data_store
ds_code="hub__site__root_page_header"
@@ -41,16 +46,17 @@ onMount(() => {
for_type={null}
for_id={null}
ds_name="Default: AE Hub - Site root page content HTML"
show_edit={false}
class_li={$ae_sess.ds_loaded.hub__site__root_page_content === false ? 'hidden' : 'grow'}
bind:ds_loaded={$ae_sess.ds_loaded.hub__site__root_page_content}
/>
<!-- page content DS: {$ae_sess.ds_loaded.hub__site__root_page_content} -->
<section class="flex flex-col items-center p-4 space-y-6">
<section class="flex flex-col gap-2 items-center p-4 space-y-6">
<div data-sveltekit-preload-data="false" class="">
<button
class="btn btn-sm variant-soft text-error-300 hover:text-error-800"
class="btn btn-sm m-1 variant-soft text-error-300 hover:text-error-800"
title="Reload and clear the page cache"
on:click={() => {
window.location.reload(true);
@@ -60,7 +66,7 @@ onMount(() => {
Reload and Clear Cache
</button>
<button
class="btn btn-sm variant-soft text-error-300 hover:text-error-800"
class="btn btn-sm m-1 variant-soft text-error-300 hover:text-error-800"
title="Clear the browser storage for this page"
on:click={() => {
localStorage.clear();

View File

@@ -75,6 +75,9 @@ onMount(() => {
let url = window.location.href;
$ae_loc.href_url = url;
// The assumption is that if they know how to get to exactly this page then they are authorized in some way. Very limited risk!
$ae_loc.auth_access = true;
});