Re-work of site permissions and Novi permissions.
This commit is contained in:
@@ -23,81 +23,88 @@ onMount(() => {
|
||||
|
||||
|
||||
<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--public_access={$ae_loc.public_access}
|
||||
class:ae_root--trusted_access={$ae_loc.trusted_access}
|
||||
class:ae_root--administrator_access={$ae_loc.administrator_access}
|
||||
class:ae_root--manager_access={$ae_loc.manager_access}
|
||||
class:ae_root--super_access={$ae_loc.super_access}
|
||||
>
|
||||
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--public_access={$ae_loc.public_access}
|
||||
class:ae_root--trusted_access={$ae_loc.trusted_access}
|
||||
class:ae_root--administrator_access={$ae_loc.administrator_access}
|
||||
class:ae_root--manager_access={$ae_loc.manager_access}
|
||||
class:ae_root--super_access={$ae_loc.super_access}
|
||||
>
|
||||
|
||||
<Element_data_store
|
||||
ds_code="hub__site__root_page_header"
|
||||
ds_type="html"
|
||||
for_type={null}
|
||||
for_id={null}
|
||||
ds_name="Default: AE Hub - Site root page header HTML"
|
||||
class_li={$ae_sess.ds_loaded.hub__site__root_page_header === false ? 'hidden' : ''}
|
||||
bind:ds_loaded={$ae_sess.ds_loaded.hub__site__root_page_header}
|
||||
/>
|
||||
ds_code="hub__site__root_page_header"
|
||||
ds_type="html"
|
||||
for_type={null}
|
||||
for_id={null}
|
||||
ds_name="Default: AE Hub - Site root page header HTML"
|
||||
class_li={$ae_sess.ds_loaded.hub__site__root_page_header === false ? 'hidden' : ''}
|
||||
bind:ds_loaded={$ae_sess.ds_loaded.hub__site__root_page_header}
|
||||
/>
|
||||
<!-- page header DS: {$ae_sess.ds_loaded.hub__site__root_page_header} -->
|
||||
|
||||
<Element_data_store
|
||||
ds_code="hub__site__root_page_content"
|
||||
ds_type="html"
|
||||
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}
|
||||
/>
|
||||
ds_code="hub__site__root_page_content"
|
||||
ds_type="html"
|
||||
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 gap-2 items-center p-4 space-y-6">
|
||||
|
||||
<div data-sveltekit-preload-data="false" class="">
|
||||
<button
|
||||
class="btn btn-sm m-1 variant-glass-surface hover:variant-outline-warning text-error-300 hover:text-error-800"
|
||||
title="Reload and clear the page cache"
|
||||
on:click={() => {
|
||||
window.location.reload(true);
|
||||
}}
|
||||
>
|
||||
<span class="fas fa-sync mx-1"></span>
|
||||
Reload and Clear Cache
|
||||
</button>
|
||||
<button
|
||||
class="btn btn-sm m-1 variant-glass-surface hover:variant-outline-warning text-error-300 hover:text-error-800"
|
||||
title="Clear the browser storage for this page"
|
||||
on:click={() => {
|
||||
localStorage.clear();
|
||||
sessionStorage.clear();
|
||||
alert('Local and Session Storage cleared. You will probably want to refresh the page.');
|
||||
}}
|
||||
>
|
||||
<span class="fas fa-sync mx-1"></span>
|
||||
Clear Storage
|
||||
</button>
|
||||
</div>
|
||||
<div
|
||||
data-sveltekit-preload-data="false"
|
||||
class="flex flex-row flex-wrap items-center justify-center"
|
||||
>
|
||||
<button
|
||||
type="button"
|
||||
class="btn btn-sm m-1 variant-glass-surface hover:variant-outline-warning text-error-300 hover:text-error-800"
|
||||
title="Reload and clear the page cache"
|
||||
on:click={() => {
|
||||
window.location.reload(true);
|
||||
}}
|
||||
>
|
||||
<span class="fas fa-sync mx-1"></span>
|
||||
Reload
|
||||
</button>
|
||||
<button
|
||||
type="button"
|
||||
class="btn btn-sm m-1 p-1 variant-glass-surface hover:variant-outline-warning text-error-300 hover:text-error-800"
|
||||
title="Reload and clear the page cache"
|
||||
on:click={() => {
|
||||
localStorage.clear();
|
||||
sessionStorage.clear();
|
||||
alert('Local and Session Storage cleared. The page should now refresh on its own.');
|
||||
window.location.reload(true);
|
||||
}}
|
||||
>
|
||||
<span class="fas fa-sync mx-1"></span>
|
||||
Clear Storage and Reload
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<Element_data_store
|
||||
expire_minutes={2}
|
||||
ds_code="hub__site__root_page_footer"
|
||||
ds_type="html"
|
||||
for_type={null}
|
||||
for_id={null}
|
||||
ds_name="Default: AE Hub - Site root page footer HTML"
|
||||
display="block"
|
||||
class_li={!$ae_loc.manager_access && $ae_sess.ds_loaded.hub__site__root_page_footer === false ? 'hidden' : ''}
|
||||
bind:ds_loaded={$ae_sess.ds_loaded.hub__site__root_page_footer}
|
||||
/>
|
||||
<!-- page footer DS: {$ae_sess.ds_loaded.hub__site__root_page_footer} -->
|
||||
<Element_data_store
|
||||
expire_minutes={2}
|
||||
ds_code="hub__site__root_page_footer"
|
||||
ds_type="html"
|
||||
for_type={null}
|
||||
for_id={null}
|
||||
ds_name="Default: AE Hub - Site root page footer HTML"
|
||||
display="block"
|
||||
class_li={!$ae_loc.manager_access && $ae_sess.ds_loaded.hub__site__root_page_footer === false ? 'hidden' : ''}
|
||||
bind:ds_loaded={$ae_sess.ds_loaded.hub__site__root_page_footer}
|
||||
/>
|
||||
<!-- page footer DS: {$ae_sess.ds_loaded.hub__site__root_page_footer} -->
|
||||
|
||||
<ol class="list-decimal hidden">
|
||||
<li>Placeholder for Tailwind</li>
|
||||
</ol>
|
||||
|
||||
<ol class="list-decimal hidden">
|
||||
<li>Placeholder for Tailwind</li>
|
||||
</ol>
|
||||
|
||||
</section>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user