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

59 lines
1.1 KiB
Plaintext
Raw Normal View History

2019-11-19 01:41:08 +03:00
/- *identity
|%
+$ rolodex-0 (map path contacts-0)
+$ rolodex (map path contacts)
2019-11-19 01:41:08 +03:00
::
+$ contacts-0 (map ship contact-0)
+$ contacts (map ship contact)
2019-11-19 01:41:08 +03:00
::
+$ avatar-0 [content-type=@t octs=[p=@ud q=@t]]
+$ avatar
$% [%octt [file-extension=@t octs=[p=@ud q=@t]]]
[%url url=@t]
==
::
+$ contact-0
$: nickname=@t
email=@t
phone=@t
website=@t
notes=@t
color=@ux
avatar=(unit avatar-0)
==
2019-11-19 01:41:08 +03:00
::
+$ 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
==
--