-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.x.cache
1 lines (1 loc) · 4.99 KB
/
.x.cache
1
{"dependencies":{"npm":{"handlebars":"latest","hark":"0.x.x"}},"nodeDefinitions":{"https://serve-chix.rhcloud.com/nodes/{ns}/{name}":{"template":{"handlebars":{"_id":"52ea878d1905561c7aa3bdbc","name":"handlebars","ns":"template","description":"Handlebars Template engine","phrases":{"active":"Compiling handlebars template"},"ports":{"input":{"body":{"type":"string","format":"html","title":"Template body","description":"The body of the handlebars template","required":true},"vars":{"type":"object","title":"Input variables","description":"the input variables for this template","default":{}},"handlebars":{"type":"function","title":"Handlebars","default":null}},"output":{"out":{"title":"HTML","type":"string"}}},"dependencies":{"npm":{"handlebars":"latest"}},"fn":"var hb = input.handlebars || handlebars;\nvar tpl = hb.compile(input.body);\noutput = {\n out: tpl(input.vars)\n}\n","provider":"https://serve-chix.rhcloud.com/nodes/{ns}/{name}","title":"MlkView"}},"dom":{"setHtml":{"_id":"52be32d46a14bb6fbd924a24","name":"setHtml","ns":"dom","description":"dom setHtml","async":true,"phrases":{"active":"Adding html"},"ports":{"input":{"element":{"type":"HTMLElement","title":"Dom Element"},"html":{"type":"string","format":"html","title":"html","async":true}},"output":{"element":{"type":"HTMLElement","title":"Dom Element"}}},"fn":"on.input.html = function(data) {\n input.element.innerHTML = data;\n output({ element: input.element });\n};\n","provider":"https://serve-chix.rhcloud.com/nodes/{ns}/{name}","title":"MlkViewUpdate"},"querySelector":{"_id":"527299bb30b8af4b8910216b","name":"querySelector","ns":"dom","title":"SpeakingEl","description":"[Document query selector](https://developer.mozilla.org/en-US/docs/Web/API/document.querySelector)","expose":["document"],"phrases":{"active":"Gathering elements matching criteria: {{input.selector}}"},"ports":{"input":{"element":{"title":"Element","type":"HTMLElement","default":null},"selector":{"title":"Selector","type":"string"}},"output":{"element":{"title":"Element","type":"HTMLElement"},"selection":{"title":"Selection","type":"HTMLElement"},"error":{"title":"Error","type":"Error"}}},"fn":"var el = input.element ? input.element : document;\noutput = {\n element: el\n};\n\nvar selection = el.querySelector(input.selector);\nif(selection) {\n output.selection = selection;\n} else {\n output.error = Error('Selector ' + input.selector + ' did not match');\n}\n","provider":"https://serve-chix.rhcloud.com/nodes/{ns}/{name}"},"show":{"_id":"52be32d46a14bb6fbd924a26","name":"show","ns":"dom","async":true,"description":"dom show","phrases":{"active":"Showing"},"ports":{"input":{"element":{"type":"HTMLElement","title":"Dom Element","async":true}},"output":{"element":{"type":"HTMLElement","title":"Dom Element"}}},"fn":"on.input.element = function(data) {\n data.style.display = 'block';\n output({ element: data });\n};\n","provider":"https://serve-chix.rhcloud.com/nodes/{ns}/{name}","title":"Speaking"},"hide":{"_id":"52be32d46a14bb6fbd924a22","name":"hide","ns":"dom","async":true,"description":"dom hide","phrases":{"active":"hideing"},"ports":{"input":{"element":{"type":"HTMLElement","title":"Dom Element","async":true}},"output":{"element":{"type":"HTMLElement","title":"Dom Element"}}},"fn":"on.input.element = function(data) {\n data.style.display = 'none';\n output({ element: data });\n};\n","provider":"https://serve-chix.rhcloud.com/nodes/{ns}/{name}","title":"Silent"}},"webrtc":{"hark":{"_id":"52ef363fcf8e1bab142d53c4","name":"hark","ns":"webrtc","description":"Hark","phrases":{"active":"Harking"},"ports":{"input":{"stream":{"title":"Stream","type":"HTMLElement","description":"e.g. document.querySelector('audio')","required":true}},"output":{"stream":{"title":"Stream","type":"HTMLElement"},"speaking":{"title":"Speaking","type":"HTMLElement"},"silence":{"title":"Silence","type":"HTMLelement"},"volume":{"title":"volume","type":"number"},"threshold":{"title":"Treshold","type":"number"}}},"dependencies":{"npm":{"hark":"0.x.x"}},"fn":"var speechEvents = hark(input.stream);\n\noutput = function (cb) {\n\n cb({\n stream: input.stream\n });\n\n speechEvents.on('speaking', function () {\n cb({\n speaking: input.stream\n });\n });\n\n speechEvents.on('volume_change', function (volume, threshold) {\n cb({\n volume: volume,\n threshold: threshold\n });\n });\n\n speechEvents.on('stopped_speaking', function () {\n cb({\n silence: input.stream\n });\n });\n\n};\n","provider":"https://serve-chix.rhcloud.com/nodes/{ns}/{name}","title":"WebrtcHark"}},"console":{"log":{"_id":"52645993df5da0102500004e","name":"log","ns":"console","description":"Console log","async":true,"phrases":{"active":"Logging to console"},"ports":{"input":{"msg":{"type":"any","title":"Log message","description":"Logs a message to the console","async":true,"required":true}},"output":{"out":{"type":"any","title":"Log message"}}},"fn":"on.input.msg = function() {\n console.log(data);\n output( { out: data });\n}\n","provider":"https://serve-chix.rhcloud.com/nodes/{ns}/{name}"}}}}}