urbit/sur/collections.hoon

54 lines
3.0 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
== ::
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
:: ::
++ config ::
$: desc/cord :: description
publ/? :: public or private
visi/? :: visible or hidden
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
== ::
{$submit col/time tit/cord wat/wain} :: submit a post/note
2017-12-21 06:50:00 +03:00
{$resubmit col/time top/@da tit/cord wat/wain} :: edit a post/note
2017-12-19 03:50:21 +03:00
{$comment col/time top/@da com/?(~ @da) wat/wain} :: submit a comment
2017-12-16 01:52:30 +03:00
{$delete col/time} :: delete a collection
2017-12-21 04:28:13 +03:00
::
::REVIEW names? nest collection/topic/comment actions?
{$delete-topic col/time top/@da} :: delete a collection
{$delete-comment col/time top/@da com/@da} :: delete a collection
2017-12-16 01:52:30 +03:00
== ::
--
--