Lots of clean up. Updates to Archive related admin section and some fields.

This commit is contained in:
Scott Idem
2025-07-09 16:33:48 -04:00
parent 8a80bb1a2f
commit 06cf665b06
13 changed files with 334 additions and 196 deletions

View File

@@ -1,9 +1,12 @@
<script lang="ts">
import type { PageData } from './$types';
interface Props {
/** @type {import('./$types').PageData} */
data: any;
}
let { data }: { data: PageData } = $props();
let { data }: Props = $props();
let log_lvl: number = 1;
let log_lvl: number = 0;
// *** Import Svelte specific
import { onDestroy } from "svelte";

View File

@@ -23,7 +23,7 @@ export const load = (async ({ params, parent }) => { // route
if (log_lvl) {
console.log(`ae_idaa_posts posts [post_id] +page.ts: post_id = `, post_id);
}
// Load post post object
// Load post object
let load_post_obj = await posts_func.load_ae_obj_id__post({
api_cfg: ae_acct.api,
post_id: post_id,
@@ -50,5 +50,4 @@ export const load = (async ({ params, parent }) => { // route
data[account_id] = ae_acct;
return data;
// return {};
}) satisfies PageLoad;

View File

@@ -404,7 +404,7 @@ $effect(() => {
{/if}
{/await}
<section class="text-center"> <!-- BEGIN: section post__options -->
<div class="text-center"> <!-- BEGIN: section post__options -->
<button
type="button"
onclick={() => {
@@ -427,7 +427,7 @@ $effect(() => {
<span class="fas fa-times m-1"></span>
Cancel Edit
</button>
</section> <!-- END: section post__options -->
</div> <!-- END: section post__options -->
<!-- <h3 class="h3">Post</h3> -->
@@ -440,21 +440,21 @@ $effect(() => {
<span class="text-sm font-semibold text-surface-600-400">
Title of BB post:
</span>
<input
type="text"
id="title"
name="title"
required
max="200"
bind:value={$idaa_slct.post_obj.title}
placeholder="Title of Post"
autocomplete="off"
class="
input w-full
preset-tonal-surface hover:preset-filled-surface-100-900
form-control
"
/>
<input
type="text"
id="title"
name="title"
required
max="200"
bind:value={$idaa_slct.post_obj.title}
autocomplete="off"
class="
input w-full
preset-tonal-surface hover:preset-filled-surface-100-900
form-control
"
placeholder="Title of Post"
/>
</label>
</div>

View File

@@ -63,7 +63,7 @@ onMount(() => {
btn btn-md preset-filled-primary-200-800
transition
"
title={`Open to see details: ${idaa_post_obj?.name}`}
title={`View: ${idaa_post_obj?.name}`}
>
<span class="fas fa-envelope-open m-1"></span>
<!-- <span class="fas fa-info-circle"></span> -->