mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-14 08:34:25 +03:00
graph: got some things working and fixed an issue introduced by rebase
This commit is contained in:
parent
dd75717871
commit
ec432a5b10
@ -334,8 +334,11 @@
|
||||
[%x %keys ~] ``noun+!>(~(key by graphs))
|
||||
[%x %tags ~] ``noun+!>(~(key by tag-queries))
|
||||
[%x %graph @ @ ~]
|
||||
~& path+path
|
||||
=/ =ship (slav %p i.t.t.path)
|
||||
=/ =term i.t.t.path
|
||||
=/ =term i.t.t.t.path
|
||||
~& resource+[ship term]
|
||||
~& graphs+~(key by graphs)
|
||||
=/ graph=(unit graph:store) (~(get by graphs) [ship term])
|
||||
?~ graph
|
||||
~
|
||||
|
@ -102,11 +102,13 @@
|
||||
%fact
|
||||
?+ p.cage.sign (on-agent:def wire sign)
|
||||
%graph-update
|
||||
~& %graph-update
|
||||
:_ this
|
||||
%+ give
|
||||
%+ turn ~(tap by connections)
|
||||
|= [=atom:store *]
|
||||
^- path
|
||||
~& connection+atom
|
||||
/updates/(scot %ud atom)
|
||||
cage.sign
|
||||
==
|
||||
|
8
pkg/arvo/mar/graph/action.hoon
Normal file
8
pkg/arvo/mar/graph/action.hoon
Normal file
@ -0,0 +1,8 @@
|
||||
/+ *graph-store
|
||||
|_ act=action
|
||||
++ grab
|
||||
|%
|
||||
++ noun action
|
||||
++ json action:dejs
|
||||
--
|
||||
--
|
13
pkg/arvo/mar/graph/update.hoon
Normal file
13
pkg/arvo/mar/graph/update.hoon
Normal file
@ -0,0 +1,13 @@
|
||||
/+ *graph-store
|
||||
|_ upd=update
|
||||
++ grow
|
||||
|%
|
||||
++ json (update:enjs upd)
|
||||
--
|
||||
::
|
||||
++ grab
|
||||
|%
|
||||
++ noun update
|
||||
--
|
||||
::
|
||||
--
|
8
pkg/arvo/mar/graph/view-action.hoon
Normal file
8
pkg/arvo/mar/graph/view-action.hoon
Normal file
@ -0,0 +1,8 @@
|
||||
/+ *graph-view
|
||||
|_ act=action
|
||||
++ grab
|
||||
|%
|
||||
++ noun action
|
||||
++ json action:dejs
|
||||
--
|
||||
--
|
Loading…
Reference in New Issue
Block a user