2017-12-02 21:45:47 +03:00
|
|
|
:: /app/collection/hoon
|
|
|
|
::
|
|
|
|
/- hall
|
|
|
|
/+ hall
|
|
|
|
::
|
2017-12-11 22:59:44 +03:00
|
|
|
:: things to keep in sync:
|
|
|
|
:: collections: state, files, hall unique by name
|
|
|
|
:: topics: state, files, hall, notify unique by date
|
|
|
|
:: comments: s a e, files, notify unique by date/number?
|
2017-12-05 00:34:44 +03:00
|
|
|
::
|
2017-12-11 22:59:44 +03:00
|
|
|
:: filepaths:
|
2017-12-05 00:34:44 +03:00
|
|
|
:: /web/collections/my-coll.config
|
|
|
|
:: /web/collections/my-coll/some.topic
|
|
|
|
:: /web/collections/my-coll/some/1.comment
|
|
|
|
::
|
2017-12-11 22:59:44 +03:00
|
|
|
:: notification circles:
|
|
|
|
:: %collections--my-blog new/changed post notifications
|
|
|
|
:: %collections--my-blog--post-title new/changed comments notifications
|
2017-12-02 21:45:47 +03:00
|
|
|
::
|
|
|
|
=> |%
|
|
|
|
++ state ::
|
|
|
|
$: cols/(map term collection) :: collections by name
|
|
|
|
== ::
|
|
|
|
++ collection ::
|
|
|
|
$: conf/config :: configuration
|
2017-12-05 00:34:44 +03:00
|
|
|
tops/(map @da topic) :: parent-level content
|
|
|
|
== ::
|
|
|
|
++ topic ::
|
|
|
|
$: tit/cord :: title
|
|
|
|
comment ::
|
2017-12-02 21:45:47 +03:00
|
|
|
== ::
|
|
|
|
++ comment ::
|
|
|
|
$: who/ship :: author
|
|
|
|
wen/@da :: created
|
|
|
|
wed/@da :: editted
|
|
|
|
wat/wain :: content
|
|
|
|
== ::
|
|
|
|
++ config ::
|
|
|
|
$: desc/cord :: description
|
|
|
|
publ/? :: public or private
|
|
|
|
visi/? :: visible or hidden
|
|
|
|
mems/(set ship) :: ships on list
|
|
|
|
== ::
|
|
|
|
++ action ::
|
|
|
|
$% $: $create :: create a collection
|
|
|
|
wat/kind :: collection kind
|
|
|
|
des/cord :: name
|
|
|
|
pub/? :: public or private
|
|
|
|
vis/? :: visible or hidden
|
2017-12-05 00:34:44 +03:00
|
|
|
ses/(set ship) :: black/whitelist
|
|
|
|
== ::
|
2017-12-11 22:59:44 +03:00
|
|
|
::TODO probably want to specify @da here too.
|
|
|
|
{$submit col/term tit/cord wat/wain} :: submit a post/note
|
|
|
|
{$comment col/term top/@da com/@da wat/wain} :: submit a comment
|
|
|
|
{$delete col/term} :: delete a collection
|
|
|
|
== ::
|
|
|
|
++ kind ?($blog $fora $note) ::
|
|
|
|
++ move (pair bone card) :: all actions
|
|
|
|
++ lime :: diff fruit
|
2017-12-02 21:45:47 +03:00
|
|
|
$% {$hall-prize prize:hall} ::
|
|
|
|
{$hall-rumor rumor:hall} ::
|
|
|
|
== ::
|
|
|
|
++ poke ::
|
|
|
|
$% {$hall-action action:hall} ::
|
|
|
|
== ::
|
|
|
|
++ card ::
|
|
|
|
$% {$diff lime} ::
|
|
|
|
{$info wire ship term nori:clay} ::
|
|
|
|
{$peer wire dock path} ::
|
|
|
|
{$poke wire dock poke} ::
|
|
|
|
{$pull wire dock $~} ::
|
2017-12-11 22:59:44 +03:00
|
|
|
{$warp wire sock riff:clay} ::
|
2017-12-02 21:45:47 +03:00
|
|
|
{$quit $~} ::
|
|
|
|
== ::
|
|
|
|
--
|
|
|
|
::
|
|
|
|
|_ {bol/bowl:gall state}
|
|
|
|
::
|
2017-12-11 22:59:44 +03:00
|
|
|
++ prep ::< prepare state
|
|
|
|
::> adapts state.
|
|
|
|
::
|
|
|
|
|= old/(unit *)
|
|
|
|
^- (quip move _..prep)
|
|
|
|
::?~ old
|
|
|
|
[~ ..prep] ::TODO init, start clay subs
|
|
|
|
::[~ ..prep(+<+ u.old)]
|
2017-12-02 21:45:47 +03:00
|
|
|
::
|
|
|
|
++ poke-noun
|
|
|
|
|= a/@
|
|
|
|
^- (quip move _+>)
|
|
|
|
~& %poked
|
2017-12-05 00:34:44 +03:00
|
|
|
ta-done:(ta-write-config:ta %test ['a description' & & [~palzod ~ ~]])
|
2017-12-02 21:45:47 +03:00
|
|
|
::
|
2017-12-11 22:59:44 +03:00
|
|
|
++ writ
|
|
|
|
|= {wir/wire rit/riot:clay}
|
|
|
|
^- (quip move _+>)
|
|
|
|
[~ +>]
|
|
|
|
::TODO watch for file changes. create on new files, update on change, delete
|
|
|
|
:: on remove. we want to watch /web/collections recursively if possible,
|
|
|
|
:: or /web/collections/[col] for each collection and then
|
|
|
|
:: /web/collections/[col]/[top] for each topic as they get created.
|
|
|
|
::
|
2017-12-02 21:45:47 +03:00
|
|
|
++ poke-collections-action
|
|
|
|
|= act/action
|
|
|
|
^- (quip move _+>)
|
2017-12-05 00:47:41 +03:00
|
|
|
?. ?- -.act
|
|
|
|
?($create $delete)
|
2017-12-11 22:59:44 +03:00
|
|
|
(team:title our.bol src.bol)
|
2017-12-05 00:47:41 +03:00
|
|
|
::
|
|
|
|
?($submit $comment)
|
|
|
|
=+ col=(~(get by cols) nom.act)
|
|
|
|
?~ col |
|
|
|
|
?! .= publ.conf.u.col
|
|
|
|
(~(has in mems.conf.u.col) src.bol)
|
|
|
|
==
|
|
|
|
[~ +>]
|
2017-12-05 00:34:44 +03:00
|
|
|
=< ta-done
|
2017-12-02 21:45:47 +03:00
|
|
|
?- -.act
|
2017-12-05 00:34:44 +03:00
|
|
|
$create (ta-create:ta +.act)
|
|
|
|
$submit (ta-submit:ta +.act)
|
|
|
|
$comment (ta-comment:ta +.act)
|
|
|
|
$delete (ta-delete:ta +.act)
|
2017-12-02 21:45:47 +03:00
|
|
|
==
|
|
|
|
::
|
|
|
|
++ diff-hall-prize
|
|
|
|
|= {wir/wire piz/prize:hall}
|
|
|
|
^- (quip move _+>)
|
|
|
|
[~ +>]
|
|
|
|
::
|
|
|
|
++ diff-hall-rumor
|
|
|
|
|= {wir/wire rum/rumor:hall}
|
|
|
|
^- (quip move _+>)
|
|
|
|
?> ?=({$hall @tas $~} wir)
|
|
|
|
=+ nom=i.t.wir
|
|
|
|
?> ?=({$circle $config *} rum)
|
|
|
|
ta-done:(ta-apply-config-diff:ta nom dif.rum.rum)
|
|
|
|
::
|
|
|
|
++ ta
|
|
|
|
|_ moves/(list move)
|
|
|
|
::
|
|
|
|
++ ta-done
|
|
|
|
[(flop moves) +>]
|
|
|
|
::
|
|
|
|
++ ta-emit
|
|
|
|
|= mov/move
|
|
|
|
%_(+> moves [mov moves])
|
|
|
|
::
|
|
|
|
++ ta-emil
|
|
|
|
|= mos/(list move)
|
|
|
|
%_(+> moves (welp (flop mos) moves))
|
|
|
|
::
|
|
|
|
++ ta-hall-action
|
|
|
|
|= act/action:hall
|
|
|
|
%- ta-emit
|
2017-12-11 22:59:44 +03:00
|
|
|
:^ ost.bol %poke / ::TODO wire, handle ++coup.
|
2017-12-02 21:45:47 +03:00
|
|
|
:+ [our.bol %hall] %hall-action
|
|
|
|
act
|
|
|
|
::
|
2017-12-05 00:34:44 +03:00
|
|
|
:: %performing-actions
|
2017-12-02 21:45:47 +03:00
|
|
|
::
|
2017-12-05 00:34:44 +03:00
|
|
|
++ ta-create
|
|
|
|
|= {wat/kind des/cord pub/? vis/? ses/(set ship)}
|
2017-12-02 21:45:47 +03:00
|
|
|
^+ +>
|
2017-12-05 00:34:44 +03:00
|
|
|
=+ nom=(sane-cord des)
|
2017-12-05 01:09:44 +03:00
|
|
|
=- (ta-change-config nom - %coll)
|
|
|
|
[des pub vis ses]
|
2017-12-02 21:45:47 +03:00
|
|
|
::
|
2017-12-05 00:34:44 +03:00
|
|
|
++ ta-submit
|
2017-12-11 22:59:44 +03:00
|
|
|
|= {col/term tit/cord wat/wain}
|
|
|
|
%+ ta-change-topic col
|
2017-12-05 00:34:44 +03:00
|
|
|
[[tit src.bol now.bol now.bol wat] %coll]
|
|
|
|
::
|
|
|
|
++ ta-comment
|
2017-12-11 22:59:44 +03:00
|
|
|
|= {col/term top/@da com/@da wat/wain}
|
2017-12-05 00:34:44 +03:00
|
|
|
^+ +>
|
2017-12-11 22:59:44 +03:00
|
|
|
=+ col=(~(get by cols) col)
|
2017-12-05 00:34:44 +03:00
|
|
|
?~ col +>.$
|
|
|
|
=+ tob=(~(get by tops.u.col) top)
|
|
|
|
?~ tob +>.$
|
2017-12-11 22:59:44 +03:00
|
|
|
=+ old=(get-comment col top com)
|
2017-12-05 00:34:44 +03:00
|
|
|
?~ old
|
2017-12-11 22:59:44 +03:00
|
|
|
%^ ta-write-comment col top
|
2017-12-05 00:34:44 +03:00
|
|
|
[src.bol now.bol now.bol wat]
|
|
|
|
?. =(who.u.old src.bol) +>.$
|
2017-12-11 22:59:44 +03:00
|
|
|
%^ ta-write-comment col top
|
2017-12-05 00:34:44 +03:00
|
|
|
u.old(wat wat, wed now.bol)
|
|
|
|
::
|
|
|
|
++ ta-delete
|
2017-12-11 22:59:44 +03:00
|
|
|
|= col/term
|
2017-12-05 00:34:44 +03:00
|
|
|
^+ +>
|
|
|
|
+>
|
|
|
|
::TODO - delete files
|
2017-12-11 22:59:44 +03:00
|
|
|
:: - unsubscribe from clay
|
|
|
|
:: - unsubscribe from hall
|
2017-12-05 00:34:44 +03:00
|
|
|
:: - send delete action to hall
|
|
|
|
:: - remove from state
|
|
|
|
::
|
|
|
|
:: %applying-changes
|
|
|
|
::
|
2017-12-02 21:45:47 +03:00
|
|
|
++ ta-apply-config-diff
|
2017-12-11 22:59:44 +03:00
|
|
|
|= {col/term dif/diff-config:hall}
|
2017-12-02 21:45:47 +03:00
|
|
|
^+ +>
|
2017-12-11 22:59:44 +03:00
|
|
|
=+ cof=conf:(~(got by cols) col)
|
2017-12-05 00:59:53 +03:00
|
|
|
=; new/(unit config)
|
|
|
|
?~ new +>.$
|
2017-12-11 22:59:44 +03:00
|
|
|
(ta-change-config col u.new %hall)
|
2017-12-05 00:59:53 +03:00
|
|
|
?+ -.dif ~
|
|
|
|
$caption
|
|
|
|
`cof(desc cap.dif)
|
|
|
|
::
|
|
|
|
$permit
|
|
|
|
%- some
|
|
|
|
%_ cof
|
|
|
|
mems
|
|
|
|
%. mems.cof
|
|
|
|
?: add.dif
|
|
|
|
~(dif in sis.dif)
|
|
|
|
~(int in sis.dif)
|
|
|
|
==
|
|
|
|
::
|
|
|
|
$remove
|
|
|
|
`cof ::TODO/REVIEW ignore/recreate? *don't* remove files.
|
|
|
|
==
|
2017-12-02 21:45:47 +03:00
|
|
|
::
|
|
|
|
++ ta-change-config
|
2017-12-11 22:59:44 +03:00
|
|
|
|= {col/term new/config src/?($file $hall $coll)}
|
2017-12-02 21:45:47 +03:00
|
|
|
^+ +>
|
|
|
|
:: if not changed on disk, update the file.
|
|
|
|
=? +> !?=($file src)
|
2017-12-11 22:59:44 +03:00
|
|
|
(ta-write-config col new)
|
|
|
|
=+ ole=(~(get by cols) col)
|
2017-12-02 21:45:47 +03:00
|
|
|
:: if we don't have it yet, add to state and hall.
|
|
|
|
?~ ole
|
2017-12-11 22:59:44 +03:00
|
|
|
=. cols (~(put by cols) col new ~)
|
|
|
|
(ta-hall-create col ~ new)
|
2017-12-05 00:34:44 +03:00
|
|
|
:: make sure publ stays unchanged.
|
|
|
|
=. +>.$
|
|
|
|
?: =(publ.conf.u.ole publ.new) +>.$
|
|
|
|
=. new new(publ publ.conf.u.ole)
|
2017-12-11 22:59:44 +03:00
|
|
|
(ta-write-config col new)
|
2017-12-02 21:45:47 +03:00
|
|
|
:: update config in state.
|
2017-12-11 22:59:44 +03:00
|
|
|
=. cols (~(put by cols) col u.ole(conf new))
|
2017-12-05 00:34:44 +03:00
|
|
|
:: update config in hall.
|
2017-12-02 21:45:47 +03:00
|
|
|
=+ dif=(ta-config-diff conf.u.ole new)
|
|
|
|
=? +>.$ ?=(^ des.dif)
|
2017-12-11 22:59:44 +03:00
|
|
|
(ta-hall-set-description col u.des.dif)
|
2017-12-02 21:45:47 +03:00
|
|
|
=? +>.$ ?=(^ vis.dif)
|
2017-12-11 22:59:44 +03:00
|
|
|
(ta-hall-set-visible col u.vis.dif)
|
|
|
|
::TODO do below for all topic circles as well.
|
2017-12-02 21:45:47 +03:00
|
|
|
=? +>.$ ?=(^ rem.dif)
|
2017-12-11 22:59:44 +03:00
|
|
|
(ta-hall-set-permissions col | rem.dif)
|
2017-12-02 21:45:47 +03:00
|
|
|
=? +>.$ ?=(^ add.dif)
|
2017-12-11 22:59:44 +03:00
|
|
|
(ta-hall-set-permissions col & add.dif)
|
2017-12-02 21:45:47 +03:00
|
|
|
+>.$
|
|
|
|
::
|
|
|
|
++ ta-config-diff
|
|
|
|
|= {old/config new/config}
|
|
|
|
^- $: des/(unit cord)
|
|
|
|
vis/(unit ?)
|
|
|
|
rem/(set ship)
|
|
|
|
add/(set ship)
|
|
|
|
==
|
|
|
|
:+ ?: =(desc.old desc.new) ~
|
|
|
|
`desc.new
|
|
|
|
?: =(visi.old visi.new) ~
|
|
|
|
`visi.new
|
|
|
|
:- (~(dif in mems.old) mems.new)
|
|
|
|
(~(dif in mems.new) mems.old)
|
|
|
|
::
|
2017-12-05 00:34:44 +03:00
|
|
|
++ ta-change-topic
|
2017-12-11 22:59:44 +03:00
|
|
|
|= {col/term top/topic src/?($file $coll)}
|
2017-12-05 00:34:44 +03:00
|
|
|
^+ +>
|
2017-12-11 22:59:44 +03:00
|
|
|
=+ old=(get-topic col wen.top)
|
2017-12-05 00:34:44 +03:00
|
|
|
:: only original poster and host can edit.
|
|
|
|
?. |(?=($~ old) =(who.u.old src.bol) ?=($file src)) +>.$
|
|
|
|
:: ensure legit author.
|
|
|
|
=? top ?=($coll src)
|
|
|
|
top(who src.bol)
|
|
|
|
:: change last edit date.
|
|
|
|
=. top top(wed now.bol)
|
|
|
|
:: store in state.
|
|
|
|
=. cols
|
2017-12-11 22:59:44 +03:00
|
|
|
%+ ~(put by cols) col
|
|
|
|
=+ col=(~(got by cols) col)
|
2017-12-05 00:34:44 +03:00
|
|
|
col(tops (~(put by tops.col) wen.top top))
|
|
|
|
=+ new=?=($~ old)
|
|
|
|
=? +>.$ new
|
2017-12-11 22:59:44 +03:00
|
|
|
(ta-hall-create col `wen.top conf:(~(got by cols) col))
|
2017-12-05 00:34:44 +03:00
|
|
|
=. +>.$
|
2017-12-11 22:59:44 +03:00
|
|
|
(ta-write-topic col top)
|
|
|
|
(ta-hall-notify col wen.top ~ new wat.top)
|
2017-12-05 00:34:44 +03:00
|
|
|
::
|
|
|
|
++ ta-change-comment
|
2017-12-11 22:59:44 +03:00
|
|
|
|= {col/term top/@da com/comment src/?($file $coll)}
|
2017-12-05 00:34:44 +03:00
|
|
|
^+ +>
|
2017-12-11 22:59:44 +03:00
|
|
|
=+ old=(get-comment col top wen.com)
|
2017-12-05 00:34:44 +03:00
|
|
|
:: only original poster and host can edit.
|
|
|
|
?. |(?=($~ old) =(who.u.old src.bol) ?=($file src))
|
|
|
|
+>.$
|
|
|
|
:: ensure legit author.
|
|
|
|
=? com ?=($coll src)
|
|
|
|
com(who src.bol)
|
|
|
|
:: change last edit date.
|
|
|
|
=. com com(wed now.bol)
|
|
|
|
=. +>.$
|
2017-12-11 22:59:44 +03:00
|
|
|
(ta-write-comment col top com)
|
|
|
|
(ta-hall-notify col top `wen.com ?=($~ old) wat.com)
|
2017-12-05 00:34:44 +03:00
|
|
|
::
|
|
|
|
:: %writing-files
|
|
|
|
::
|
|
|
|
++ ta-write-config
|
2017-12-11 22:59:44 +03:00
|
|
|
|= {col/term cof/config}
|
2017-12-02 21:45:47 +03:00
|
|
|
^+ +>
|
2017-12-05 00:34:44 +03:00
|
|
|
%- ta-emit
|
|
|
|
=/ paf/path
|
|
|
|
%- make-path
|
2017-12-11 22:59:44 +03:00
|
|
|
/[col]/collections-config
|
2017-12-05 00:34:44 +03:00
|
|
|
:* ost.bol
|
|
|
|
%info
|
2017-12-11 22:59:44 +03:00
|
|
|
/config/[col]
|
2017-12-05 00:34:44 +03:00
|
|
|
our.bol
|
|
|
|
(foal:space:userlib paf [%collections-config !>(cof)])
|
|
|
|
==
|
|
|
|
::
|
|
|
|
++ ta-write-topic
|
2017-12-11 22:59:44 +03:00
|
|
|
|= {col/term top/topic}
|
2017-12-05 00:34:44 +03:00
|
|
|
^+ +>
|
|
|
|
=+ wan=(scot %da wen.top)
|
2017-12-11 22:59:44 +03:00
|
|
|
=+ pax=(make-path /[col]/[wan]/collections-topic)
|
2017-12-05 00:34:44 +03:00
|
|
|
%- ta-emit
|
|
|
|
:* ost.bol
|
|
|
|
%info
|
2017-12-11 22:59:44 +03:00
|
|
|
/topic/[col]/[wan]
|
2017-12-05 00:34:44 +03:00
|
|
|
our.bol
|
|
|
|
(foal:space:userlib pax [%collections-topic !>(top)])
|
|
|
|
==
|
|
|
|
::
|
|
|
|
++ ta-write-comment
|
2017-12-11 22:59:44 +03:00
|
|
|
|= {col/term top/@da com/comment}
|
2017-12-05 00:34:44 +03:00
|
|
|
^+ +>
|
|
|
|
=+ tap=(scot %da top)
|
|
|
|
=+ wan=(scot %da wen.com)
|
|
|
|
=/ pax/path
|
|
|
|
%- make-path
|
2017-12-11 22:59:44 +03:00
|
|
|
/[col]/[tap]/[wan]/collections-comment
|
2017-12-05 00:34:44 +03:00
|
|
|
%- ta-emit
|
|
|
|
:* ost.bol
|
|
|
|
%info
|
2017-12-11 22:59:44 +03:00
|
|
|
/comment/[col]/[tap]/[wan]
|
2017-12-05 00:34:44 +03:00
|
|
|
our.bol
|
|
|
|
(foal:space:userlib pax [%collections-comment !>(com)])
|
|
|
|
==
|
|
|
|
::
|
|
|
|
:: %hall-changes
|
|
|
|
::
|
|
|
|
++ ta-hall-create
|
2017-12-11 22:59:44 +03:00
|
|
|
|= {col/term top/(unit @da) cof/config}
|
2017-12-05 00:34:44 +03:00
|
|
|
^+ +>
|
2017-12-11 22:59:44 +03:00
|
|
|
=+ nam=(make-circle col top)
|
2017-12-02 21:45:47 +03:00
|
|
|
=. +>.$
|
|
|
|
%- ta-hall-action
|
|
|
|
[%create nam desc.cof ?:(publ.cof %journal %village)]
|
2017-12-05 01:09:44 +03:00
|
|
|
=? +>.$ ?=($~ top)
|
|
|
|
%- ta-emit
|
|
|
|
:* 0
|
|
|
|
%peer
|
2017-12-11 22:59:44 +03:00
|
|
|
/hall/[col]
|
2017-12-05 01:09:44 +03:00
|
|
|
[our.bol %hall]
|
|
|
|
/circle/[nam]/config-l
|
|
|
|
==
|
2017-12-02 21:45:47 +03:00
|
|
|
=? +>.$ visi.cof
|
|
|
|
(ta-hall-set-visible nam &)
|
2017-12-05 00:34:44 +03:00
|
|
|
=? +>.$ ?=(^ top)
|
|
|
|
%- ta-hall-action
|
|
|
|
::NOTE %source also subs to local config & presence, but
|
|
|
|
:: that generally won't result in visible notifications.
|
2017-12-11 22:59:44 +03:00
|
|
|
:^ %source (make-circle col ~) &
|
2017-12-05 00:34:44 +03:00
|
|
|
[`source:hall`[[our.bol nam] ~] ~ ~]
|
2017-12-02 21:45:47 +03:00
|
|
|
?~ mems.cof +>.$
|
|
|
|
(ta-hall-set-permissions nam & mems.cof)
|
|
|
|
::
|
|
|
|
++ ta-hall-set-description
|
2017-12-11 22:59:44 +03:00
|
|
|
|= {col/term des/cord}
|
2017-12-02 21:45:47 +03:00
|
|
|
^+ +>
|
|
|
|
%- ta-hall-action
|
2017-12-11 22:59:44 +03:00
|
|
|
[%depict (make-circle col ~) des]
|
2017-12-02 21:45:47 +03:00
|
|
|
::
|
|
|
|
++ ta-hall-set-visible
|
2017-12-11 22:59:44 +03:00
|
|
|
|= {col/term vis/?}
|
2017-12-02 21:45:47 +03:00
|
|
|
^+ +>
|
|
|
|
%- ta-hall-action
|
2017-12-11 22:59:44 +03:00
|
|
|
[%public vis our.bol (make-circle col ~)]
|
2017-12-02 21:45:47 +03:00
|
|
|
::
|
|
|
|
++ ta-hall-set-permissions
|
2017-12-11 22:59:44 +03:00
|
|
|
|= {col/term inv/? sis/(set ship)}
|
2017-12-02 21:45:47 +03:00
|
|
|
^+ +>
|
|
|
|
%- ta-hall-action
|
2017-12-11 22:59:44 +03:00
|
|
|
[%permit (make-circle col ~) inv sis]
|
2017-12-05 00:34:44 +03:00
|
|
|
::
|
|
|
|
++ ta-hall-notify
|
2017-12-11 22:59:44 +03:00
|
|
|
|= {col/term top/@da com/(unit @da) new/? wat/wain}
|
2017-12-05 00:34:44 +03:00
|
|
|
^+ +>
|
|
|
|
%- ta-hall-action
|
|
|
|
=- :+ %phrase [[our.bol tar] ~ ~]
|
|
|
|
[%fat [%text wat] [%lin | msg]]~
|
|
|
|
^- {tar/naem:hall msg/cord}
|
|
|
|
::TODO
|
2017-12-11 22:59:44 +03:00
|
|
|
[(make-circle col ~) 'TODO']
|
2017-12-02 21:45:47 +03:00
|
|
|
--
|
|
|
|
::
|
|
|
|
++ sane-cord
|
|
|
|
|= c/cord
|
|
|
|
^- term
|
|
|
|
%- crip
|
|
|
|
%- zing
|
|
|
|
%+ scan (cass (trip c))
|
|
|
|
=+ val=;~(pose low nud)
|
|
|
|
=+ inv=(plus ;~(less ;~(pose low nud) next))
|
|
|
|
%+ ifix [(star inv) (star inv)]
|
|
|
|
%- star ;~ pose
|
|
|
|
;~(plug val (easy ~))
|
|
|
|
;~(plug (cold '-' inv) val (easy ~))
|
|
|
|
==
|
|
|
|
::
|
|
|
|
++ make-circle
|
2017-12-05 00:34:44 +03:00
|
|
|
|= {n/term t/(unit @da)}
|
2017-12-02 21:45:47 +03:00
|
|
|
^- term
|
|
|
|
;: (cury cat 3)
|
|
|
|
%collection--
|
|
|
|
n
|
|
|
|
?~(t %$ '--')
|
2017-12-05 00:34:44 +03:00
|
|
|
?~(t %$ (sane-cord (scot %da u.t)))
|
2017-12-02 21:45:47 +03:00
|
|
|
==
|
|
|
|
::
|
2017-12-05 00:34:44 +03:00
|
|
|
++ beak-now
|
|
|
|
byk.bol(r [%da now.bol])
|
|
|
|
::
|
|
|
|
++ make-path
|
|
|
|
|= pax/path
|
|
|
|
:(welp (en-beam:format beak-now ~) /web/collections pax)
|
|
|
|
::
|
|
|
|
++ has-file
|
|
|
|
|= pax/path
|
|
|
|
::NOTE %cu not implemented, so we use %cy instead.
|
|
|
|
=- ?=(^ fil.-)
|
|
|
|
.^(arch %cy pax)
|
|
|
|
::
|
|
|
|
++ get-config
|
2017-12-11 22:59:44 +03:00
|
|
|
|= col/term
|
2017-12-05 00:34:44 +03:00
|
|
|
^- (unit config)
|
|
|
|
=/ pax
|
|
|
|
%- make-path
|
2017-12-11 22:59:44 +03:00
|
|
|
/[col]/collections-config
|
2017-12-05 00:34:44 +03:00
|
|
|
?. (has-file pax) ~
|
|
|
|
`.^(config %cx pax)
|
|
|
|
::
|
|
|
|
++ get-topic
|
2017-12-11 22:59:44 +03:00
|
|
|
|= {col/term top/@da}
|
2017-12-05 00:34:44 +03:00
|
|
|
^- (unit topic)
|
|
|
|
=/ pax
|
|
|
|
%- make-path
|
2017-12-11 22:59:44 +03:00
|
|
|
/[col]/(scot %da top)/collections-topic
|
2017-12-05 00:34:44 +03:00
|
|
|
?. (has-file pax) ~
|
|
|
|
`.^(topic %cx pax)
|
|
|
|
::
|
|
|
|
++ get-comment
|
2017-12-11 22:59:44 +03:00
|
|
|
|= {col/term top/@da wen/@da}
|
2017-12-05 00:34:44 +03:00
|
|
|
^- (unit comment)
|
|
|
|
=/ pax
|
|
|
|
%- make-path
|
2017-12-11 22:59:44 +03:00
|
|
|
/[col]/(scot %da top)/(scot %da wen)/collections-comment
|
2017-12-05 00:34:44 +03:00
|
|
|
?. (has-file pax) ~
|
|
|
|
`.^(comment %cx pax)
|
2017-12-02 21:45:47 +03:00
|
|
|
--
|