urbit/pkg/arvo/sur/launch-store.hoon
Isaac Visintainer b2887e75a0 btc: add tile
2021-05-26 18:30:18 -07:00

39 lines
764 B
Plaintext

|%
+$ tiles-0 (map term tile-0)
+$ tile-0
$: type=tile-type-0
is-shown=?
==
+$ tile-type-0
$% [%basic title=cord icon-url=cord linked-url=cord]
[%custom ~]
==
::
+$ tiles (map term tile)
+$ tile-ordering (list term)
::
+$ tile
$: type=tile-type
is-shown=?
==
::
+$ tile-type
$% [%basic title=cord icon-url=cord linked-url=cord]
[%custom linked-url=(unit cord) image=(unit cord)]
==
::
+$ action
$% [%add name=term =tile]
[%remove name=term]
[%change-order =tile-ordering]
[%change-first-time first-time=?]
[%change-is-shown name=term is-shown=?]
==
::
+$ update
$% [%initial =tiles =tile-ordering first-time=?]
[%keys keys=(set term)]
action
==
--