mirror of
https://github.com/tloncorp/landscape.git
synced 2024-12-19 14:51:55 +03:00
7455e2d778
Includes the bark/growl system for sharing activity summaries. The growl agent respects the "activity logging" consent flag used by groups, defaults to not sharing if that flag is not set, and only shares with the "bark host" when prompted. (The bark host, in turn, currently only stores responses for hosted ships.) Also includes all the groups-side dependencies this has, which it needs for the chats & groups types. Hard-including those files will save us some run-around during deploy. Co-authored-by: midsum-salrux <nathan@tlon.io>
58 lines
871 B
Plaintext
58 lines
871 B
Plaintext
/- sur=resource
|
|
=< resource
|
|
|%
|
|
+$ resource resource:sur
|
|
++ en-path
|
|
|= =resource
|
|
^- path
|
|
~[%ship (scot %p entity.resource) name.resource]
|
|
::
|
|
++ de-path
|
|
|= =path
|
|
^- resource
|
|
(need (de-path-soft path))
|
|
::
|
|
++ de-path-soft
|
|
|= =path
|
|
^- (unit resource)
|
|
?. ?=([%ship @ @ *] path)
|
|
~
|
|
=/ ship
|
|
(slaw %p i.t.path)
|
|
?~ ship
|
|
~
|
|
`[u.ship i.t.t.path]
|
|
::
|
|
++ enjs
|
|
|= =resource
|
|
^- json
|
|
=, enjs:format
|
|
%- pairs
|
|
:~ ship+(ship entity.resource)
|
|
name+s+name.resource
|
|
==
|
|
::
|
|
++ enjs-path
|
|
|= =resource
|
|
%- spat
|
|
(en-path resource)
|
|
::
|
|
++ dejs-path
|
|
%- su:dejs:format
|
|
;~ pfix
|
|
(jest '/ship/')
|
|
;~((glue fas) ;~(pfix sig fed:ag) urs:ab)
|
|
==
|
|
::
|
|
++ dejs
|
|
=, dejs:format
|
|
^- $-(json resource)
|
|
|= jon=json
|
|
~| dejs+%resource
|
|
%. jon
|
|
%- ot
|
|
:~ ship+(su ;~(pfix sig fed:ag))
|
|
name+so
|
|
==
|
|
--
|