urbit/sur/collections.hoon

63 lines
3.3 KiB
Plaintext
Raw Normal View History

2017-12-16 01:52:30 +03:00
=< |=(a=* %.(a (map time collection))) :: collections by name
|% ::
++ collection ::
2017-12-16 04:05:23 +03:00
$: conf/{mod/@da config} :: configuration
2017-12-16 01:52:30 +03:00
tops/(map @da topicful) ::
$~ :: /. compatibility
== ::
2018-06-04 20:09:04 +03:00
++ coll-full
{host/(unit @p) col/time}
2017-12-16 04:05:23 +03:00
++ topicful ::
$: info/{mod/@da topic} ::
2017-12-16 05:19:39 +03:00
coms/(map @da {mod/@da comment}) ::
2017-12-16 04:05:23 +03:00
$~ :: /. compatibility
== ::
2017-12-16 01:52:30 +03:00
:: ::
2018-03-10 04:31:38 +03:00
++ topicshow
$: top/topicful
snip/{hed/marl tal/marl}
$~
==
2017-12-16 01:52:30 +03:00
++ config ::
$: desc/cord :: description
publ/? :: public or private
visi/? :: visible or hidden
2018-02-07 02:11:47 +03:00
comm/? :: comments
xeno/? :: foreign posters?
2017-12-16 01:52:30 +03:00
mems/(set ship) :: ships on list
== ::
++ topic ::
$: tit/cord :: title
2017-12-16 04:05:23 +03:00
who/ship :: author
wat/wain :: content
2017-12-16 01:52:30 +03:00
== ::
++ comment ::
$: who/ship :: author
wat/wain :: content
== ::
::
++ api
|%
++ kind ?($blog $fora $note) ::
++ action ::
$% $: $create :: create a collection
2018-02-05 23:49:24 +03:00
::wat/kind :: collection kind
desc/cord :: name
publ/? :: public or private
visi/? :: visible or hidden
comm/? :: others can comment
xeno/? :: others can post
2017-12-16 01:52:30 +03:00
ses/(set ship) :: black/whitelist
== ::
2018-06-04 20:09:04 +03:00
{$submit col/coll-full tit/cord wat/wain}
{$resubmit col/coll-full top/@da tit/cord wat/wain} :: edit a post/note
{$comment col/coll-full top/@da com/?(~ @da) wat/wain} :: submit a comment
{$delete col/coll-full} :: delete a collection
2017-12-21 04:28:13 +03:00
::
::REVIEW names? nest collection/topic/comment actions?
2018-06-04 20:09:04 +03:00
{$delete-topic col/coll-full top/@da} :: delete a collection
{$delete-comment col/coll-full top/@da com/@da} :: delete a collection
2017-12-16 01:52:30 +03:00
== ::
--
--