shrub/pkg/arvo/sur/contact-store.hoon

41 lines
784 B
Plaintext
Raw Normal View History

/- *resource
2019-11-19 01:41:08 +03:00
|%
+$ rolodex (map ship contact)
2019-11-19 01:41:08 +03:00
+$ contact
$: nickname=@t
bio=@t
status=@t
2019-11-19 01:41:08 +03:00
color=@ux
avatar=(unit @t)
cover=(unit @t)
groups=(set resource)
last-updated=@da
2019-11-19 01:41:08 +03:00
==
::
+$ edit-field
$% [%nickname nickname=@t]
[%bio bio=@t]
[%status status=@t]
2019-11-19 01:41:08 +03:00
[%color color=@ux]
[%avatar avatar=(unit @t)]
[%add-group =resource]
[%remove-group =resource]
[%cover cover=(unit @t)]
2019-11-19 01:41:08 +03:00
==
::
+$ beings
$% [%ships ships=(set ship)]
[%group =resource]
==
::
+$ update
$% [%initial =rolodex is-public=?]
[%add =ship =contact]
[%remove =ship]
2021-02-12 03:42:46 +03:00
[%edit =ship =edit-field timestamp=@da]
[%allow =beings]
[%disallow =beings]
[%set-public public=?]
2019-11-19 01:41:08 +03:00
==
--