mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-21 05:41:43 +03:00
170f0602a3
Conflicts: urb/zod/docs/psal.hook urb/zod/docs/pub/doc.md urb/zod/docs/pub/doc/arvo.md urb/zod/docs/pub/doc/arvo/ames.md urb/zod/docs/pub/doc/arvo/ames/commentary.md urb/zod/docs/pub/doc/arvo/arvo.md urb/zod/docs/pub/doc/arvo/arvo/commentary.md urb/zod/docs/pub/doc/arvo/clay.md urb/zod/docs/pub/doc/arvo/clay/commentary.md urb/zod/docs/pub/doc/arvo/dill.md urb/zod/docs/pub/doc/arvo/dill/commentary.md urb/zod/docs/pub/doc/arvo/eyre.md urb/zod/docs/pub/doc/arvo/eyre/commentary.md urb/zod/docs/pub/doc/arvo/ford.md urb/zod/docs/pub/doc/arvo/ford/commentary.md urb/zod/docs/pub/doc/arvo/gall.md urb/zod/docs/pub/doc/arvo/gall/gall.md urb/zod/docs/pub/doc/arvo/ives.md urb/zod/docs/pub/doc/arvo/ives/ives.md urb/zod/docs/pub/doc/arvo/jael.md urb/zod/docs/pub/doc/arvo/jael/jael.md urb/zod/docs/pub/doc/arvo/kahn.md urb/zod/docs/pub/doc/arvo/kahn/kahn.md urb/zod/docs/pub/doc/arvo/lunt.md urb/zod/docs/pub/doc/arvo/lunt/lunt.md urb/zod/docs/pub/doc/arvo/time.md urb/zod/docs/pub/doc/arvo/util.md urb/zod/docs/pub/doc/guide.md urb/zod/docs/pub/doc/guide/a-ford.md urb/zod/docs/pub/doc/guide/b-cli.md urb/zod/docs/pub/doc/guide/c-gall.md urb/zod/docs/pub/doc/guide/d-app.md urb/zod/docs/pub/doc/guide/e-dev.md urb/zod/docs/pub/doc/hoon.md urb/zod/docs/pub/doc/hoon/library.md urb/zod/docs/pub/doc/hoon/library/0.md urb/zod/docs/pub/doc/hoon/library/1.md urb/zod/docs/pub/doc/hoon/library/2a.md urb/zod/docs/pub/doc/hoon/library/2b.md urb/zod/docs/pub/doc/hoon/library/2c.md urb/zod/docs/pub/doc/hoon/library/2da.md urb/zod/docs/pub/doc/hoon/library/2db.md urb/zod/docs/pub/doc/hoon/library/2dc.md urb/zod/docs/pub/doc/hoon/library/2dd.md urb/zod/docs/pub/doc/hoon/library/2ea.md urb/zod/docs/pub/doc/hoon/library/2eb.md urb/zod/docs/pub/doc/hoon/library/2ec.md urb/zod/docs/pub/doc/hoon/library/2ed.md urb/zod/docs/pub/doc/hoon/library/2ee.md urb/zod/docs/pub/doc/hoon/library/2ef.md urb/zod/docs/pub/doc/hoon/library/2eg.md urb/zod/docs/pub/doc/hoon/library/2eh.md urb/zod/docs/pub/doc/hoon/library/2ei.md urb/zod/docs/pub/doc/hoon/library/2ej.md urb/zod/docs/pub/doc/hoon/library/2ek.md urb/zod/docs/pub/doc/hoon/library/2el.md urb/zod/docs/pub/doc/hoon/library/2em.md urb/zod/docs/pub/doc/hoon/library/2en.md urb/zod/docs/pub/doc/hoon/library/2eo.md urb/zod/docs/pub/doc/hoon/library/2ep.md urb/zod/docs/pub/doc/hoon/library/2ew.md urb/zod/docs/pub/doc/hoon/library/2ex.md urb/zod/docs/pub/doc/hoon/library/2ey.md urb/zod/docs/pub/doc/hoon/library/2ez.md urb/zod/docs/pub/doc/hoon/library/3ba.md urb/zod/docs/pub/doc/hoon/library/3bb.md urb/zod/docs/pub/doc/hoon/library/3bc.md urb/zod/docs/pub/doc/hoon/library/3bd.md urb/zod/docs/pub/doc/hoon/library/3be.md urb/zod/docs/pub/doc/hoon/library/3bf.md urb/zod/docs/pub/doc/hoon/library/3bg.md urb/zod/docs/pub/doc/hoon/library/3bh.md urb/zod/docs/pub/doc/hoon/library/3bi.md urb/zod/docs/pub/doc/hoon/reference.md urb/zod/docs/pub/doc/hoon/reference/odors.md urb/zod/docs/pub/doc/hoon/runes.md urb/zod/docs/pub/doc/hoon/runes/bc.md urb/zod/docs/pub/doc/hoon/runes/bc/bcbr.md urb/zod/docs/pub/doc/hoon/runes/bc/bccb.md urb/zod/docs/pub/doc/hoon/runes/bc/bccl.md urb/zod/docs/pub/doc/hoon/runes/bc/bccm.md urb/zod/docs/pub/doc/hoon/runes/bc/bccn.md urb/zod/docs/pub/doc/hoon/runes/bc/bckt.md urb/zod/docs/pub/doc/hoon/runes/bc/bcls.md urb/zod/docs/pub/doc/hoon/runes/bc/bcpm.md urb/zod/docs/pub/doc/hoon/runes/bc/bcpt.md urb/zod/docs/pub/doc/hoon/runes/bc/bctr.md urb/zod/docs/pub/doc/hoon/runes/bc/bcts.md urb/zod/docs/pub/doc/hoon/runes/bc/bcwt.md urb/zod/docs/pub/doc/hoon/runes/bc/bczp.md urb/zod/docs/pub/doc/hoon/runes/br.md urb/zod/docs/pub/doc/hoon/runes/br/brcb.md urb/zod/docs/pub/doc/hoon/runes/br/brcn.md urb/zod/docs/pub/doc/hoon/runes/br/brdt.md urb/zod/docs/pub/doc/hoon/runes/br/brfs.md urb/zod/docs/pub/doc/hoon/runes/br/brhp.md urb/zod/docs/pub/doc/hoon/runes/br/brkt.md urb/zod/docs/pub/doc/hoon/runes/br/brls.md urb/zod/docs/pub/doc/hoon/runes/br/brtr.md urb/zod/docs/pub/doc/hoon/runes/br/brts.md urb/zod/docs/pub/doc/hoon/runes/br/brwt.md urb/zod/docs/pub/doc/hoon/runes/cl.md urb/zod/docs/pub/doc/hoon/runes/cl/clcb.md urb/zod/docs/pub/doc/hoon/runes/cl/clfs.md urb/zod/docs/pub/doc/hoon/runes/cl/clhp.md urb/zod/docs/pub/doc/hoon/runes/cl/clkt.md urb/zod/docs/pub/doc/hoon/runes/cl/clls.md urb/zod/docs/pub/doc/hoon/runes/cl/clsg.md urb/zod/docs/pub/doc/hoon/runes/cl/cltr.md urb/zod/docs/pub/doc/hoon/runes/cn.md urb/zod/docs/pub/doc/hoon/runes/cn/cncb.md urb/zod/docs/pub/doc/hoon/runes/cn/cncl.md urb/zod/docs/pub/doc/hoon/runes/cn/cndt.md urb/zod/docs/pub/doc/hoon/runes/cn/cnhp.md urb/zod/docs/pub/doc/hoon/runes/cn/cnkt.md urb/zod/docs/pub/doc/hoon/runes/cn/cnls.md urb/zod/docs/pub/doc/hoon/runes/cn/cnsg.md urb/zod/docs/pub/doc/hoon/runes/cn/cntr.md urb/zod/docs/pub/doc/hoon/runes/cn/cnts.md urb/zod/docs/pub/doc/hoon/runes/cn/cnzy.md urb/zod/docs/pub/doc/hoon/runes/cn/cnzz.md urb/zod/docs/pub/doc/hoon/runes/dt.md urb/zod/docs/pub/doc/hoon/runes/dt/dtkt.md urb/zod/docs/pub/doc/hoon/runes/dt/dtls.md urb/zod/docs/pub/doc/hoon/runes/dt/dttr.md urb/zod/docs/pub/doc/hoon/runes/dt/dtts.md urb/zod/docs/pub/doc/hoon/runes/dt/dtwt.md urb/zod/docs/pub/doc/hoon/runes/dt/dtzy.md urb/zod/docs/pub/doc/hoon/runes/dt/dtzz.md urb/zod/docs/pub/doc/hoon/runes/hx.md urb/zod/docs/pub/doc/hoon/runes/hx/hxgl.md urb/zod/docs/pub/doc/hoon/runes/hx/hxgr.md urb/zod/docs/pub/doc/hoon/runes/kt.md urb/zod/docs/pub/doc/hoon/runes/kt/ktbr.md urb/zod/docs/pub/doc/hoon/runes/kt/ktdt.md urb/zod/docs/pub/doc/hoon/runes/kt/kthp.md urb/zod/docs/pub/doc/hoon/runes/kt/ktls.md urb/zod/docs/pub/doc/hoon/runes/kt/ktpm.md urb/zod/docs/pub/doc/hoon/runes/kt/ktsg.md urb/zod/docs/pub/doc/hoon/runes/kt/ktts.md urb/zod/docs/pub/doc/hoon/runes/kt/ktwt.md urb/zod/docs/pub/doc/hoon/runes/sg.md urb/zod/docs/pub/doc/hoon/runes/sg/sgbc.md urb/zod/docs/pub/doc/hoon/runes/sg/sgbr.md urb/zod/docs/pub/doc/hoon/runes/sg/sgcb.md urb/zod/docs/pub/doc/hoon/runes/sg/sgcn.md urb/zod/docs/pub/doc/hoon/runes/sg/sgfs.md urb/zod/docs/pub/doc/hoon/runes/sg/sggl.md urb/zod/docs/pub/doc/hoon/runes/sg/sggr.md urb/zod/docs/pub/doc/hoon/runes/sg/sgls.md urb/zod/docs/pub/doc/hoon/runes/sg/sgpm.md urb/zod/docs/pub/doc/hoon/runes/sg/sgts.md urb/zod/docs/pub/doc/hoon/runes/sg/sgwt.md urb/zod/docs/pub/doc/hoon/runes/sg/sgzp.md urb/zod/docs/pub/doc/hoon/runes/sm.md urb/zod/docs/pub/doc/hoon/runes/sm/smcl.md urb/zod/docs/pub/doc/hoon/runes/sm/smcn.md urb/zod/docs/pub/doc/hoon/runes/sm/smdq.md urb/zod/docs/pub/doc/hoon/runes/sm/smhp.md urb/zod/docs/pub/doc/hoon/runes/sm/smls.md urb/zod/docs/pub/doc/hoon/runes/sm/smsg.md urb/zod/docs/pub/doc/hoon/runes/sm/smsm.md urb/zod/docs/pub/doc/hoon/runes/sm/smtr.md urb/zod/docs/pub/doc/hoon/runes/sm/smzz.md urb/zod/docs/pub/doc/hoon/runes/ts.md urb/zod/docs/pub/doc/hoon/runes/ts/tsbr.md urb/zod/docs/pub/doc/hoon/runes/ts/tscl.md urb/zod/docs/pub/doc/hoon/runes/ts/tsdt.md urb/zod/docs/pub/doc/hoon/runes/ts/tsgl.md urb/zod/docs/pub/doc/hoon/runes/ts/tsgr.md urb/zod/docs/pub/doc/hoon/runes/ts/tshp.md urb/zod/docs/pub/doc/hoon/runes/ts/tskt.md urb/zod/docs/pub/doc/hoon/runes/ts/tsls.md urb/zod/docs/pub/doc/hoon/runes/ts/tssg.md urb/zod/docs/pub/doc/hoon/runes/ts/tstr.md urb/zod/docs/pub/doc/hoon/runes/wt.md urb/zod/docs/pub/doc/hoon/runes/wt/wtbr.md urb/zod/docs/pub/doc/hoon/runes/wt/wtcl.md urb/zod/docs/pub/doc/hoon/runes/wt/wtdt.md urb/zod/docs/pub/doc/hoon/runes/wt/wtgl.md urb/zod/docs/pub/doc/hoon/runes/wt/wtgr.md urb/zod/docs/pub/doc/hoon/runes/wt/wthp.md urb/zod/docs/pub/doc/hoon/runes/wt/wthz.md urb/zod/docs/pub/doc/hoon/runes/wt/wtkt.md urb/zod/docs/pub/doc/hoon/runes/wt/wtkz.md urb/zod/docs/pub/doc/hoon/runes/wt/wtls.md urb/zod/docs/pub/doc/hoon/runes/wt/wtlz.md urb/zod/docs/pub/doc/hoon/runes/wt/wtpm.md urb/zod/docs/pub/doc/hoon/runes/wt/wtpt.md urb/zod/docs/pub/doc/hoon/runes/wt/wtpz.md urb/zod/docs/pub/doc/hoon/runes/wt/wtsg.md urb/zod/docs/pub/doc/hoon/runes/wt/wtsz.md urb/zod/docs/pub/doc/hoon/runes/wt/wtts.md urb/zod/docs/pub/doc/hoon/runes/wt/wttz.md urb/zod/docs/pub/doc/hoon/runes/wt/wtzp.md urb/zod/docs/pub/doc/hoon/runes/zp.md urb/zod/docs/pub/doc/hoon/runes/zp/zpcb.md urb/zod/docs/pub/doc/hoon/runes/zp/zpcm.md urb/zod/docs/pub/doc/hoon/runes/zp/zpfs.md urb/zod/docs/pub/doc/hoon/runes/zp/zpgr.md urb/zod/docs/pub/doc/hoon/runes/zp/zpsm.md urb/zod/docs/pub/doc/hoon/runes/zp/zpts.md urb/zod/docs/pub/doc/hoon/runes/zp/zpwt.md urb/zod/docs/pub/doc/hoon/runes/zp/zpzp.md urb/zod/docs/pub/doc/nock.md urb/zod/docs/pub/doc/nock/reference.md urb/zod/docs/pub/doc/reference.md urb/zod/docs/pub/doc/reference/glossary.md urb/zod/docs/pub/doc/reference/vere.md urb/zod/docs/pub/tree/src/css/fonts.styl urb/zod/docs/pub/tree/src/css/main.css urb/zod/docs/pub/tree/src/css/main.styl urb/zod/docs/pub/tree/src/css/mobile.styl urb/zod/docs/pub/tree/src/js/actions/TreeActions.coffee urb/zod/docs/pub/tree/src/js/components/AnchorComponent.coffee urb/zod/docs/pub/tree/src/js/components/BodyComponent.coffee urb/zod/docs/pub/tree/src/js/components/KidsComponent.coffee urb/zod/docs/pub/tree/src/js/components/ListComponent.coffee urb/zod/docs/pub/tree/src/js/components/LoadComponent.coffee urb/zod/docs/pub/tree/src/js/dispatcher/Dispatcher.coffee urb/zod/docs/pub/tree/src/js/main.coffee urb/zod/docs/pub/tree/src/js/main.js urb/zod/docs/pub/tree/src/js/package.json urb/zod/docs/pub/tree/src/js/persistence/TreePersistence.coffee urb/zod/docs/pub/tree/src/js/stores/TreeStore.coffee urb/zod/docs/tree/hymn.hook urb/zod/docs/tree/json.hook urb/zod/docs/tree/util.hoon
57 lines
1.2 KiB
Plaintext
57 lines
1.2 KiB
Plaintext
!:
|
|
|_ gas=epic
|
|
::
|
|
++ get-path
|
|
^- path
|
|
(tope bem.gas(s (welp but.gas /pub)))
|
|
::
|
|
++ get-parent
|
|
^- path
|
|
(tope bem.gas(s (welp (slag 1 but.gas) /pub)))
|
|
::
|
|
++ get-tree
|
|
^- arch
|
|
((hard arch) .^(%cy get-path))
|
|
++ kids-json
|
|
|= kids=(list ,@ta)
|
|
:- %a
|
|
%+ turn kids
|
|
|= kid=@t [%s kid]
|
|
++ bread-json
|
|
|= kids=(list path)
|
|
:- %a
|
|
%+ turn kids
|
|
|= kid=path [%s (spat (flop kid))]
|
|
++ parent-json
|
|
|= pare=path [%s (spat (slag 3 pare))]
|
|
++ get-kids
|
|
%- sort :_ aor
|
|
^- (list span)
|
|
%+ murn (~(tap by r:get-tree))
|
|
=+ pax=get-path
|
|
|= [kid=span ~] ^- (unit span)
|
|
=+ ark=;;(arch .^(%cy (welp pax /[kid])))
|
|
?~ r.ark ~
|
|
(some kid)
|
|
++ get-link
|
|
|= [pax=path mal=marl]
|
|
^- manx
|
|
=+ rut=`path`[q.bem.gas (flop (slag 1 s.bem.gas))]
|
|
;a/"/gen{<rut>}{<(slag 4 pax)>}":"*{mal}"
|
|
++ get-down
|
|
^- marl
|
|
%+ turn get-kids
|
|
|= a=span
|
|
;span: +{(get-link (welp get-path /[a]) ;"{(trip a)}")}
|
|
++ render-bread
|
|
|= a=path
|
|
^- manx
|
|
;span: /+{(get-link (tope bem.gas(s a)) ;"{(trip (snag 0 a))}")}
|
|
::
|
|
++ get-bread
|
|
=+ [pax=`path`/pub paf=(flop but.gas)]
|
|
|- ^- (list path)
|
|
?~ paf ~[pax]
|
|
[pax $(paf t.paf, pax [i.paf pax])]
|
|
--
|