urbit/sur/collections.hoon

61 lines
3.2 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
:: ::
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
== ::
{$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
== ::
--
--