mirror of
https://github.com/urbit/shrub.git
synced 2024-12-21 09:51:36 +03:00
83 lines
1.8 KiB
Plaintext
83 lines
1.8 KiB
Plaintext
::
|
|
:::: /hoon/action/publish/mar
|
|
::
|
|
/+ *publish
|
|
::
|
|
|_ del=primary-delta
|
|
::
|
|
++ grab
|
|
|%
|
|
++ noun primary-delta
|
|
--
|
|
++ grow
|
|
|%
|
|
++ json
|
|
%+ frond:enjs:format -.del
|
|
?- -.del
|
|
%add-book
|
|
%+ frond:enjs:format (scot %p host.del)
|
|
%+ frond:enjs:format book.del
|
|
(notebook-short:enjs data.del)
|
|
::
|
|
%add-note
|
|
%+ frond:enjs:format (scot %p host.del)
|
|
%+ frond:enjs:format book.del
|
|
(note-full:enjs note.del data.del)
|
|
::
|
|
%add-comment
|
|
%- pairs:enjs:format
|
|
:~ host+s+(scot %p host.del)
|
|
book+s+book.del
|
|
note+s+note.del
|
|
comment+(comment:enjs comment-date.del data.del)
|
|
==
|
|
::
|
|
%edit-book
|
|
%+ frond:enjs:format (scot %p host.del)
|
|
%+ frond:enjs:format book.del
|
|
(notebook-short:enjs data.del)
|
|
::
|
|
%edit-note
|
|
%+ frond:enjs:format (scot %p host.del)
|
|
%+ frond:enjs:format book.del
|
|
(note-full:enjs note.del data.del)
|
|
::
|
|
%edit-comment
|
|
%- pairs:enjs:format
|
|
:~ host+s+(scot %p host.del)
|
|
book+s+book.del
|
|
note+s+note.del
|
|
comment+(comment:enjs comment-date.del data.del)
|
|
==
|
|
::
|
|
%del-book
|
|
%- pairs:enjs:format
|
|
:~ host+s+(scot %p host.del)
|
|
book+s+book.del
|
|
==
|
|
::
|
|
%del-note
|
|
%- pairs:enjs:format
|
|
:~ host+s+(scot %p host.del)
|
|
book+s+book.del
|
|
note+s+note.del
|
|
==
|
|
::
|
|
%del-comment
|
|
%- pairs:enjs:format
|
|
:~ host+s+(scot %p host.del)
|
|
book+s+book.del
|
|
note+s+note.del
|
|
comment+s+(scot %da comment.del)
|
|
==
|
|
::
|
|
%read
|
|
%- pairs:enjs:format
|
|
:~ host+s+(scot %p who.del)
|
|
book+s+book.del
|
|
note+s+note.del
|
|
==
|
|
==
|
|
--
|
|
--
|