mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-11 08:55:23 +03:00
62 lines
1.4 KiB
Plaintext
62 lines
1.4 KiB
Plaintext
/- *resource
|
|
^?
|
|
|%
|
|
::
|
|
+$ group-path path
|
|
+$ app-name term
|
|
+$ app-path path
|
|
+$ md-resource [=app-name =resource]
|
|
+$ association [group=resource =metadata]
|
|
+$ associations (map md-resource association)
|
|
+$ group-preview
|
|
$: group=resource
|
|
channels=associations
|
|
members=@ud
|
|
channel-count=@ud
|
|
=metadata
|
|
==
|
|
::
|
|
+$ color @ux
|
|
+$ url @t
|
|
::
|
|
:: $vip-metadata: variation in permissions
|
|
::
|
|
:: This will be passed to the graph-permissions mark
|
|
:: conversion to allow for custom permissions.
|
|
::
|
|
:: %reader-comments: Allow readers to comment, regardless
|
|
:: of whether they can write. (notebook, collections)
|
|
:: %member-metadata: Allow members to add channels (groups)
|
|
:: %$: No variation
|
|
::
|
|
+$ vip-metadata ?(%reader-comments %member-metadata %$)
|
|
+$ metadata
|
|
$: title=cord
|
|
description=cord
|
|
=color
|
|
date-created=time
|
|
creator=ship
|
|
module=term
|
|
picture=url
|
|
preview=?
|
|
vip=vip-metadata
|
|
==
|
|
::
|
|
+$ metadata-action
|
|
$% [%add group=resource resource=md-resource =metadata]
|
|
[%remove group=resource resource=md-resource]
|
|
[%initial-group group=resource =associations]
|
|
==
|
|
::
|
|
+$ metadata-hook-update
|
|
$% [%req-preview group=resource]
|
|
[%preview group-preview]
|
|
==
|
|
::
|
|
+$ metadata-update
|
|
$% metadata-action
|
|
[%associations =associations]
|
|
[%updated-metadata group=resource resource=md-resource before=metadata =metadata]
|
|
==
|
|
--
|