urbit/pkg/arvo/mar/publish/primary-delta.hoon

83 lines
1.8 KiB
Plaintext
Raw Normal View History

2019-12-14 01:27:37 +03:00
::
:::: /hoon/action/publish/mar
::
2019-12-19 01:45:37 +03:00
/+ *publish
2019-12-14 01:27:37 +03:00
::
|_ del=primary-delta
::
++ grab
|%
++ noun primary-delta
--
++ grow
|%
++ json
2019-12-19 01:45:37 +03:00
%+ frond:enjs:format -.del
2019-12-14 01:27:37 +03:00
?- -.del
%add-book
2019-12-19 01:45:37 +03:00
%+ frond:enjs:format (scot %p host.del)
%+ frond:enjs:format book.del
(notebook-short:enjs data.del)
2019-12-14 01:27:37 +03:00
::
%add-note
2019-12-19 01:45:37 +03:00
%+ frond:enjs:format (scot %p host.del)
%+ frond:enjs:format book.del
(note-full:enjs note.del data.del)
2019-12-14 01:27:37 +03:00
::
%add-comment
%- pairs:enjs:format
2019-12-19 01:45:37 +03:00
:~ host+s+(scot %p host.del)
2019-12-14 01:27:37 +03:00
book+s+book.del
note+s+note.del
comment+(comment:enjs comment-date.del data.del)
2019-12-14 01:27:37 +03:00
==
2019-12-19 01:45:37 +03:00
::
2019-12-14 01:27:37 +03:00
%edit-book
2019-12-19 01:45:37 +03:00
%+ frond:enjs:format (scot %p host.del)
%+ frond:enjs:format book.del
(notebook-short:enjs data.del)
2019-12-14 01:27:37 +03:00
::
%edit-note
2019-12-19 01:45:37 +03:00
%+ frond:enjs:format (scot %p host.del)
%+ frond:enjs:format book.del
(note-full:enjs note.del data.del)
2019-12-14 01:27:37 +03:00
::
%edit-comment
%- pairs:enjs:format
2019-12-19 01:45:37 +03:00
:~ host+s+(scot %p host.del)
2019-12-14 01:27:37 +03:00
book+s+book.del
note+s+note.del
comment+(comment:enjs comment-date.del data.del)
2019-12-14 01:27:37 +03:00
==
::
%del-book
%- pairs:enjs:format
2019-12-19 01:45:37 +03:00
:~ host+s+(scot %p host.del)
2019-12-14 01:27:37 +03:00
book+s+book.del
==
::
%del-note
%- pairs:enjs:format
2019-12-19 01:45:37 +03:00
:~ host+s+(scot %p host.del)
2019-12-14 01:27:37 +03:00
book+s+book.del
note+s+note.del
==
::
%del-comment
%- pairs:enjs:format
2019-12-19 01:45:37 +03:00
:~ host+s+(scot %p host.del)
2019-12-14 01:27:37 +03:00
book+s+book.del
note+s+note.del
2019-12-19 01:45:37 +03:00
comment+s+(scot %da comment.del)
2019-12-14 01:27:37 +03:00
==
2020-01-09 02:13:42 +03:00
::
%read
%- pairs:enjs:format
:~ host+s+(scot %p who.del)
book+s+book.del
note+s+note.del
==
2019-12-19 01:45:37 +03:00
==
2019-12-14 01:27:37 +03:00
--
--