2021-03-05 04:09:41 +03:00
|
|
|
/- spider, graph-view, graph=graph-store,
|
|
|
|
met=metadata-store, *group, *metadata-store
|
2020-09-10 14:36:00 +03:00
|
|
|
/+ strandio, resource
|
|
|
|
=>
|
|
|
|
|%
|
|
|
|
++ strand strand:spider
|
|
|
|
++ poke poke:strandio
|
|
|
|
++ poke-our poke-our:strandio
|
|
|
|
::
|
|
|
|
++ check-live
|
|
|
|
|= who=ship
|
|
|
|
=/ m (strand ,~)
|
|
|
|
^- form:m
|
|
|
|
%+ (set-timeout:strandio ,~) ~s20
|
|
|
|
;< ~ bind:m
|
|
|
|
(poke [who %hood] %helm-hi !>(~))
|
|
|
|
(pure:m ~)
|
|
|
|
::
|
|
|
|
++ scry-group
|
|
|
|
|= rid=resource
|
|
|
|
=/ m (strand ,group)
|
|
|
|
^- form:m
|
|
|
|
;< ugroup=(unit group) bind:m
|
|
|
|
%+ scry:strandio (unit group)
|
|
|
|
%+ weld /gx/group-store/groups
|
|
|
|
(snoc (en-path:resource rid) %noun)
|
|
|
|
?> ?=(^ ugroup)
|
|
|
|
(pure:m u.ugroup)
|
|
|
|
::
|
|
|
|
++ scry-metadatum
|
2020-09-15 23:25:58 +03:00
|
|
|
|= rid=resource
|
2021-03-05 04:09:41 +03:00
|
|
|
=/ m (strand ,metadatum:met)
|
2020-09-10 14:36:00 +03:00
|
|
|
^- form:m
|
2020-09-22 20:44:52 +03:00
|
|
|
=/ enc-path=@t (scot %t (spat (en-path:resource rid)))
|
2021-03-05 04:09:41 +03:00
|
|
|
;< umeta=(unit metadatum:met) bind:m
|
|
|
|
%+ scry:strandio (unit metadatum:met)
|
2020-09-10 14:36:00 +03:00
|
|
|
%+ weld /gx/metadata-store/metadata
|
2020-09-15 23:25:58 +03:00
|
|
|
/[enc-path]/graph/[enc-path]/noun
|
2020-09-10 14:36:00 +03:00
|
|
|
?> ?=(^ umeta)
|
|
|
|
(pure:m u.umeta)
|
|
|
|
--
|
|
|
|
::
|
|
|
|
^- thread:spider
|
|
|
|
|= arg=vase
|
|
|
|
=/ m (strand ,vase)
|
|
|
|
^- form:m
|
2020-12-02 01:38:02 +03:00
|
|
|
=+ !<([~ =action:graph-view] arg)
|
2020-09-10 14:36:00 +03:00
|
|
|
?> ?=(%groupify -.action)
|
|
|
|
;< =group bind:m (scry-group rid.action)
|
2020-09-11 06:08:16 +03:00
|
|
|
?. hidden.group
|
|
|
|
(strand-fail:strandio %bad-request ~)
|
2021-03-05 04:09:41 +03:00
|
|
|
;< =metadatum:met bind:m (scry-metadatum rid.action)
|
2020-09-10 14:36:00 +03:00
|
|
|
?~ to.action
|
|
|
|
;< ~ bind:m
|
|
|
|
%+ poke-our %contact-view
|
2020-09-22 20:44:52 +03:00
|
|
|
:- %contact-view-action
|
2021-03-05 04:09:41 +03:00
|
|
|
!>([%groupify rid.action title.metadatum description.metadatum])
|
2020-09-10 14:36:00 +03:00
|
|
|
(pure:m !>(~))
|
|
|
|
;< new=^group bind:m (scry-group u.to.action)
|
|
|
|
?< hidden.new
|
|
|
|
;< ~ bind:m
|
2021-03-05 04:09:41 +03:00
|
|
|
%+ poke-our %metadata-store
|
|
|
|
:- %metadata-action
|
|
|
|
!> ^- action:met
|
|
|
|
[%add u.to.action [%graph rid.action] metadatum]
|
2020-09-10 14:36:00 +03:00
|
|
|
;< ~ bind:m
|
2020-09-15 23:25:58 +03:00
|
|
|
%+ poke-our %metadata-store
|
2021-03-05 04:09:41 +03:00
|
|
|
:- %metadata-action
|
|
|
|
!> ^- action:met
|
|
|
|
[%remove rid.action [%graph rid.action]]
|
2020-09-10 14:36:00 +03:00
|
|
|
;< ~ bind:m
|
2020-11-05 05:02:59 +03:00
|
|
|
(poke-our %group-store %group-update !>([%remove-group rid.action ~]))
|
2020-09-10 14:36:00 +03:00
|
|
|
(pure:m !>(~))
|