mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-17 20:01:32 +03:00
63 lines
3.3 KiB
Plaintext
63 lines
3.3 KiB
Plaintext
=< |=(a=* %.(a (map time collection))) :: collections by name
|
|
|% ::
|
|
++ collection ::
|
|
$: conf/{mod/@da config} :: configuration
|
|
tops/(map @da topicful) ::
|
|
$~ :: /. compatibility
|
|
== ::
|
|
++ coll-full
|
|
{host/(unit @p) col/time}
|
|
++ topicful ::
|
|
$: info/{mod/@da topic} ::
|
|
coms/(map @da {mod/@da comment}) ::
|
|
$~ :: /. compatibility
|
|
== ::
|
|
:: ::
|
|
++ topicshow
|
|
$: top/topicful
|
|
snip/{hed/marl tal/marl}
|
|
$~
|
|
==
|
|
++ config ::
|
|
$: desc/cord :: description
|
|
publ/? :: public or private
|
|
visi/? :: visible or hidden
|
|
comm/? :: comments
|
|
xeno/? :: foreign posters?
|
|
mems/(set ship) :: ships on list
|
|
== ::
|
|
++ topic ::
|
|
$: tit/cord :: title
|
|
who/ship :: author
|
|
wat/wain :: content
|
|
== ::
|
|
++ comment ::
|
|
$: who/ship :: author
|
|
wat/wain :: content
|
|
== ::
|
|
::
|
|
++ api
|
|
|%
|
|
++ kind ?($blog $fora $note) ::
|
|
++ action ::
|
|
$% $: $create :: create a collection
|
|
::wat/kind :: collection kind
|
|
desc/cord :: name
|
|
publ/? :: public or private
|
|
visi/? :: visible or hidden
|
|
comm/? :: others can comment
|
|
xeno/? :: others can post
|
|
ses/(set ship) :: black/whitelist
|
|
== ::
|
|
{$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
|
|
::
|
|
::REVIEW names? nest collection/topic/comment actions?
|
|
{$delete-topic col/coll-full top/@da} :: delete a collection
|
|
{$delete-comment col/coll-full top/@da com/@da} :: delete a collection
|
|
== ::
|
|
--
|
|
--
|