small fixes for diary, sail, and folder

This commit is contained in:
Will Hanlen 2024-05-30 22:07:58 +02:00 committed by SuperCoolYun
parent 083a578f8b
commit 8b0e0c5209
4 changed files with 28 additions and 25 deletions

View File

@ -7,14 +7,18 @@
|^
;div.p2
=label "Diary"
;div.ma.fc.g2
=style "max-width: 650px;"
;div.ma.fc.g2.mw-page
;+ form-put-entry
;*
%+ turn ~
:: %+ sort ~(tap of:neo kids.bowl)
:: |= [a=[=pith *] b=[=pith *]]
:: (gth ->.pith.a ->.pith.b)
%+ turn
%+ sort
%+ murn
~(tap of:neo kids.bowl)
|= [=pith =idea:neo]
?~ pith ~
`[pith idea]
|= [a=[=pith *] b=[=pith *]]
(gth ->.pith.a ->.pith.b)
link-entry
==
==
@ -22,7 +26,7 @@
::
;form.fc.g2
=style "margin-bottom: 30px;"
=hx-post "{(en-tape:pith:neo :(weld /neo/hawk here.bowl))}?stud=diary-diff"
=hx-post "/neo/hawk{(en-tape:pith:neo here.bowl)}?stud=diary-diff"
=hx-on-submit "this.reset()"
=hx-target "find .loading"
=hx-swap "outerHTML"
@ -47,8 +51,8 @@
::
++ link-entry
::
|= [pax=pith =pail:neo]
=/ tape (trip !<(@t q.pail))
|= [pax=pith =idea:neo]
=/ tape (trip !<(@t q.pail.idea))
=/ subject-end (fall (find [10]~ tape) 56)
=/ subject (scag subject-end tape)
=/ id (trip (snag 0 (pout pax)))

View File

@ -1,13 +0,0 @@
/@ folder-diff
/- feather-icons
:- [%folder-diff %$ %htmx]
|= =folder-diff
|= =bowl:neo
;div.loading
=hx-get "/neo/hawk{(en-tape:pith:neo here.bowl)}"
=hx-target "closest .hawk"
=hx-indicator "closest .loader"
=hx-swap "innerHTML"
=hx-trigger "load"
;+ loading.feather-icons
==

View File

@ -8,8 +8,9 @@
=/ mu ~(. manx-utils nod)
=/ code
=/ raw=tape (need (val:mu "code"))
?: =((rear raw) '\0a') (crip (snip raw))
(crip raw)
?: =(0 (lent raw)) (crip raw)
?. =((rear raw) '\0a') (crip raw)
(crip (snip raw))
=/ class (vol:mu "classes")
[code class `(render-udon code)]
++ render-udon

View File

@ -1,5 +1,16 @@
/@ folder
/@ folder-diff
=>
|%
++ default-pails
%- malt
^- (list [stud:neo pail:neo])
:~
[%iframe iframe/!>('')]
[%txt txt/!>('')]
[%sail sail/!>(['' '' ~])]
==
--
^- kook:neo
|%
++ state pro/%folder
@ -26,7 +37,7 @@
?- -.poke
%make
:_ folder/!>([name.poke this])
:~ [(snoc here.bowl name.poke) %make stud.poke ~ ~]
:~ [(snoc here.bowl name.poke) %make stud.poke (~(get by default-pails) stud.poke) ~]
==
::
%tomb