mirror of
https://github.com/urbit/shrub.git
synced 2024-12-19 08:32:39 +03:00
40 lines
729 B
Plaintext
40 lines
729 B
Plaintext
/- *resource
|
|
|%
|
|
+$ rolodex (map ship contact)
|
|
+$ contact
|
|
$: nickname=@t
|
|
bio=@t
|
|
status=@t
|
|
color=@ux
|
|
avatar=(unit @t)
|
|
cover=(unit @t)
|
|
groups=(set resource)
|
|
last-updated=@da
|
|
==
|
|
::
|
|
+$ edit-field
|
|
$% [%nickname nickname=@t]
|
|
[%bio bio=@t]
|
|
[%status status=@t]
|
|
[%color color=@ux]
|
|
[%avatar avatar=(unit @t)]
|
|
[%add-group =resource]
|
|
[%remove-group =resource]
|
|
[%cover cover=(unit @t)]
|
|
==
|
|
::
|
|
+$ beings
|
|
$% [%ships ships=(set ship)]
|
|
[%group =resource]
|
|
==
|
|
::
|
|
+$ update
|
|
$% [%initial =rolodex]
|
|
[%add =ship =contact]
|
|
[%remove =ship]
|
|
[%edit =ship =edit-field]
|
|
[%allow =beings]
|
|
[%disallow =beings]
|
|
==
|
|
--
|