More work on IDAA and LCI style and themes.
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
<script lang="ts">
|
||||
import { run } from 'svelte/legacy';
|
||||
|
||||
import { page } from '$app/state';
|
||||
interface Props {
|
||||
/** @type {import('./$types').PageData} */
|
||||
@@ -9,7 +8,8 @@ interface Props {
|
||||
|
||||
let { data }: Props = $props();
|
||||
|
||||
let log_lvl: number = 0;
|
||||
let log_lvl: number = $state(0);
|
||||
|
||||
if (log_lvl) {
|
||||
console.log(`ae_idaa_bb +page.svelte data:`, data);
|
||||
}
|
||||
@@ -42,7 +42,7 @@ if (!post_id) {
|
||||
$idaa_trig.post_id = post_id;
|
||||
}
|
||||
|
||||
|
||||
// Functions and Logic
|
||||
let lq__post_obj_li = $derived(liveQuery(async () => {
|
||||
let results = await db_posts.post
|
||||
.where('account_id')
|
||||
|
||||
@@ -1,4 +1,8 @@
|
||||
<script lang="ts">
|
||||
/** @type {import('./$types').PageData} */
|
||||
export let data: any;
|
||||
let log_lvl: number = 0;
|
||||
|
||||
// *** Import Svelte core
|
||||
import { onMount } from 'svelte';
|
||||
import { Spinner } from 'flowbite-svelte';
|
||||
@@ -11,7 +15,9 @@ import { idaa_loc, idaa_sess, idaa_slct } from '$lib/ae_idaa_stores';
|
||||
export let lq__post_obj_li: any;
|
||||
|
||||
onMount(() => {
|
||||
console.log('** Component Mounted: ** List - Bulletin Board (Post) Obj');
|
||||
if (log_lvl) {
|
||||
console.log('** Component Mounted: ** List - Bulletin Board (Post) Obj', data?.route.toString() ?? 'unknown');
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
@@ -23,7 +29,7 @@ onMount(() => {
|
||||
|
||||
{#if idaa_post_obj} <!-- This check for the idaa_post_obj is here in case the IDB entry is deleted. -->
|
||||
<div
|
||||
class="container bb_post post_obj border border p-2 mb-2 space-y-2 w-full max-w-(--breakpoint-lg) flex flex-col items-center justify-center bg-white rounded-lg"
|
||||
class="container bb_post post_obj border p-2 mb-2 space-y-2 w-full max-w-(--breakpoint-lg) flex flex-col items-center justify-center bg-white rounded-lg"
|
||||
class:dim={idaa_post_obj?.hide}
|
||||
class:bg-warning-100={!idaa_post_obj?.enable}
|
||||
class:hidden={(idaa_post_obj.hide && $idaa_loc.bb.qry__hidden != 'all') || (!idaa_post_obj.enable && $idaa_loc.bb.qry__enabled != 'all')}
|
||||
@@ -123,6 +129,7 @@ onMount(() => {
|
||||
{#if $ae_loc.trusted_access && idaa_post_obj.email}
|
||||
(<a href="mailto:{idaa_post_obj.email}?subject=IDAA BB Post">{idaa_post_obj.email}</a>)
|
||||
{/if}
|
||||
</span>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user