mirror of
https://github.com/urbit/shrub.git
synced 2025-01-01 17:16:47 +03:00
graph-view: working json parsing for fetches
This commit is contained in:
parent
59a4c52232
commit
8d5fb16685
@ -86,7 +86,7 @@
|
||||
?> (team:title our.bowl src.bowl)
|
||||
?+ path (on-watch:def path)
|
||||
[%updates @ ~]
|
||||
:- ~
|
||||
:- [%give %fact ~ %json !>([(frond:enjs:format %graph-view s+'bound')])]~
|
||||
this(connections (~(put by connections) i.t.path now.bowl))
|
||||
==
|
||||
::
|
||||
|
@ -3,4 +3,30 @@
|
||||
=< [sur .]
|
||||
=, sur
|
||||
|%
|
||||
++ dejs
|
||||
=, dejs:format
|
||||
|%
|
||||
++ action
|
||||
|= jon=json
|
||||
^- ^action
|
||||
=< (parse-json jon)
|
||||
|%
|
||||
++ parse-json
|
||||
%- of
|
||||
:~ [%fetch fetch]
|
||||
==
|
||||
::
|
||||
++ fetch
|
||||
%- ot
|
||||
:~ [%connection ni]
|
||||
[%type fetch-type]
|
||||
==
|
||||
::
|
||||
++ fetch-type
|
||||
%- of
|
||||
:~ [%all ul]
|
||||
==
|
||||
--
|
||||
--
|
||||
|
||||
--
|
||||
|
Loading…
Reference in New Issue
Block a user