mirror of
https://github.com/urbit/shrub.git
synced 2024-12-21 01:41:37 +03:00
45 lines
952 B
Plaintext
45 lines
952 B
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
|
|
+$ metadata
|
|
$: title=cord
|
|
description=cord
|
|
=color
|
|
date-created=time
|
|
creator=ship
|
|
module=term
|
|
picture=url
|
|
preview=?
|
|
==
|
|
::
|
|
+$ metadata-action
|
|
$% [%add group=resource resource=md-resource =metadata]
|
|
[%remove group=resource resource=md-resource]
|
|
[%initial-group group=resource =associations]
|
|
==
|
|
::
|
|
+$ metadata-update
|
|
$% metadata-action
|
|
[%associations =associations]
|
|
[%updated-metadata group=resource resource=md-resource before=metadata =metadata]
|
|
[%preview group-preview]
|
|
==
|
|
--
|