mirror of
https://github.com/urbit/shrub.git
synced 2024-12-11 11:02:25 +03:00
43 lines
777 B
Plaintext
43 lines
777 B
Plaintext
/- *identity
|
|
|%
|
|
+$ rolodex (map path contacts)
|
|
::
|
|
+$ contacts (map ship contact)
|
|
::
|
|
+$ avatar [content-type=@t octs=[p=@ud q=@t]]
|
|
::
|
|
+$ contact
|
|
$: nickname=@t
|
|
email=@t
|
|
phone=@t
|
|
website=@t
|
|
notes=@t
|
|
color=@ux
|
|
avatar=(unit avatar)
|
|
==
|
|
::
|
|
+$ edit-field
|
|
$% [%nickname nickname=@t]
|
|
[%email email=@t]
|
|
[%phone phone=@t]
|
|
[%website website=@t]
|
|
[%notes notes=@t]
|
|
[%color color=@ux]
|
|
[%avatar avatar=(unit avatar)]
|
|
==
|
|
::
|
|
+$ contact-action
|
|
$% [%create =path]
|
|
[%delete =path]
|
|
[%add =path =ship =contact]
|
|
[%remove =path =ship]
|
|
[%edit =path =ship =edit-field]
|
|
==
|
|
::
|
|
+$ contact-update
|
|
$% [%rolodex =rolodex]
|
|
[%contacts =path =contacts]
|
|
contact-action
|
|
==
|
|
--
|