graph-view: working json parsing for fetches

This commit is contained in:
Logan Allen 2020-06-12 15:07:10 -04:00
parent 59a4c52232
commit 8d5fb16685
2 changed files with 27 additions and 1 deletions

View File

@ -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))
==
::

View File

@ -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]
==
--
--
--