forked from andyburke/autonomous.contact
feature/refactor: smartfeeds to reduce the client complexity
This commit is contained in:
parent
46090d944a
commit
f6cd05beac
19 changed files with 782 additions and 800 deletions
|
|
@ -1,4 +1,8 @@
|
|||
<style>
|
||||
.new-blurb-container {
|
||||
margin-bottom: 2rem;
|
||||
}
|
||||
|
||||
.new-blurb-container input[type="file"] {
|
||||
display: none;
|
||||
visibility: hidden;
|
||||
|
|
@ -36,8 +40,9 @@
|
|||
width: 100%;
|
||||
transition: all 0.5s;
|
||||
"
|
||||
on_reply="async (blurb) => { await render_blurb(blurb); }"
|
||||
on_parsed="async (blurb) => { await render_blurb(blurb); document.getElementById(blurb.id)?.classList.add('sending'); }"
|
||||
url="/api/topics/${ document.body.dataset.topic }/events"
|
||||
on_reply="async (event) => { await document.getElementById( 'blurbs-list' ).__render(event); document.getElementById(event.id)?.classList.remove('sending'); }"
|
||||
on_parsed="async (event) => { await document.getElementById( 'blurbs-list' ).__render(event); document.getElementById(event.id)?.classList.add('sending'); }"
|
||||
>
|
||||
<input type="hidden" name="type" value="blurb" />
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue