diff --git a/pkg/arvo/neo/cod/std/src/con/diary-htmx.hoon b/pkg/arvo/neo/cod/std/src/con/diary-htmx.hoon index b32e9e53e4..080c50a926 100644 --- a/pkg/arvo/neo/cod/std/src/con/diary-htmx.hoon +++ b/pkg/arvo/neo/cod/std/src/con/diary-htmx.hoon @@ -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))) diff --git a/pkg/arvo/neo/cod/std/src/con/folder-diff-htmx.hoon b/pkg/arvo/neo/cod/std/src/con/folder-diff-htmx.hoon deleted file mode 100644 index 76c1d72e76..0000000000 --- a/pkg/arvo/neo/cod/std/src/con/folder-diff-htmx.hoon +++ /dev/null @@ -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 -== diff --git a/pkg/arvo/neo/cod/std/src/con/node-sail.hoon b/pkg/arvo/neo/cod/std/src/con/node-sail.hoon index 32524abb98..4d1099cf97 100644 --- a/pkg/arvo/neo/cod/std/src/con/node-sail.hoon +++ b/pkg/arvo/neo/cod/std/src/con/node-sail.hoon @@ -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 diff --git a/pkg/arvo/neo/cod/std/src/imp/folder.hoon b/pkg/arvo/neo/cod/std/src/imp/folder.hoon index ac010a4cbb..9088bf2f81 100644 --- a/pkg/arvo/neo/cod/std/src/imp/folder.hoon +++ b/pkg/arvo/neo/cod/std/src/imp/folder.hoon @@ -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