feature: forum replies

feature: blurbs
This commit is contained in:
Andy Burke 2025-09-21 18:29:37 -07:00
parent ab63d4ba8d
commit 591fd38088
14 changed files with 651 additions and 290 deletions

View file

@ -1,3 +1,3 @@
# Forum
Forums are for more thoughtful and long form discussion.
This is the place for thoughtful and long form discussion.

View file

@ -146,6 +146,8 @@
<div class="label">Forum</div></label
>
<div class="tab-content forum-container">
<!-- #include file="./README.md" -->
<div id="forum-posts" class="container">
<div id="forum-posts-list"></div>
<script>

View file

@ -14,8 +14,8 @@
width: 100%;
transition: all 0.5s;
"
on_reply="(post) => { append_posts([post]); }"
on_parsed="(post) => { render_post(post); document.getElementById('post-' + post.id)?.classList.add('sending'); }"
on_reply="async (post) => { await append_posts([post]); }"
on_parsed="async (post) => { await render_post(post); document.getElementById('post-' + post.id)?.classList.add('sending'); }"
>
<input type="hidden" name="type" value="post" />
@ -32,6 +32,12 @@
reset-on-submit
/>
<input
type="hidden"
name="creator_id"
generator="() => { return JSON.parse( document.body.dataset.user ?? '{}' ).id; }"
/>
<input
type="hidden"
name="timestamps.created"
@ -66,6 +72,7 @@
type="file"
multiple
data-smartforms-save-to-home="true"
name="data.media"
reset-on-submit
/>
<div class="icon attachment"></div>