Enable more security by default.
This commit is contained in:
@@ -1,10 +1,24 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
/** @type {import('./$types').LayoutData} */
|
/** @type {import('./$types').LayoutData} */
|
||||||
export let data: any;
|
export let data: any;
|
||||||
|
import { ae_snip, ae_loc, ae_sess, ae_api, ae_trig, slct, slct_trigger } from '$lib/ae_stores';
|
||||||
let log_lvl = 0;
|
let log_lvl = 0;
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
||||||
|
{#if ($ae_loc.trusted_access)}
|
||||||
<slot />
|
<slot />
|
||||||
|
{:else}
|
||||||
|
<div class="container flex flex-col gap-1 w-full items-center justify-center font-bold p-8 m-8">
|
||||||
|
<h1>
|
||||||
|
<span class="text-red-500">
|
||||||
|
<span class="fas fa-exclamation-triangle"></span>
|
||||||
|
Access Denied
|
||||||
|
<span class="fas fa-exclamation-triangle"></span>
|
||||||
|
</span>
|
||||||
|
</h1>
|
||||||
|
<p>You do not have access to this page.</p>
|
||||||
|
</div>
|
||||||
|
{/if}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
21
src/routes/idaa/(idaa)/archives/+layout.svelte
Normal file
21
src/routes/idaa/(idaa)/archives/+layout.svelte
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
<script lang="ts">
|
||||||
|
/** @type {import('./$types').LayoutData} */
|
||||||
|
export let data: any;
|
||||||
|
let log_lvl = 2;
|
||||||
|
console.log(`ae_idaa_archives +layout.svelte data:`, data);
|
||||||
|
|
||||||
|
import { ae_snip, ae_loc, ae_sess, ae_api, ae_trig, slct, slct_trigger } from '$lib/ae_stores';
|
||||||
|
import { idaa_loc, idaa_sess, idaa_slct } from '$lib/ae_idaa_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);
|
||||||
|
let ae_acct = data[$slct.account_id];
|
||||||
|
console.log(`ae_acct = `, ae_acct);
|
||||||
|
|
||||||
|
$idaa_slct.post_obj_li = ae_acct.slct.post_obj_li;
|
||||||
|
|
||||||
|
</script>
|
||||||
|
|
||||||
|
|
||||||
|
<slot />
|
||||||
8
src/routes/idaa/(idaa)/archives/+page.svelte
Normal file
8
src/routes/idaa/(idaa)/archives/+page.svelte
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
<script lang="ts">
|
||||||
|
/** @type {import('./$types').PageData} */
|
||||||
|
export let data: any;
|
||||||
|
let log_lvl = 2;
|
||||||
|
// console.log(`ae_events_pres_mgmt event [event_id] +page.svelte data:`, data);
|
||||||
|
|
||||||
|
|
||||||
|
</script>
|
||||||
Reference in New Issue
Block a user