-
Notifications
You must be signed in to change notification settings - Fork 1
/
receiver.html
36 lines (34 loc) · 1.36 KB
/
receiver.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<script type="text/javascript">
RED.nodes.registerType('Tydids-Receiver',{
category: 'P2P Network',
color: '#3FADB5',
defaults: {
name: {value:""},
address: {value:"",required:true},
privateKey: {value:""}
},
inputs:1,
outputs:4,
icon: "bridge.svg",
label: function() {
return this.name||"Tydids-Receiver";
}
});
</script>
<script type="text/html" data-template-name="Tydids-Receiver">
<div class="form-row">
<label for="node-input-name"><i class="fa fa-tag"></i> Name</label>
<input type="text" id="node-input-name" placeholder="Name">
</div>
<div class="form-row">
<label for="node-input-address"><i class="fa fa-tag"></i> Presentation</label>
<input type="text" id="node-input-address" min-length="42" max-length="42" placeholder="(0x....)">
</div>
<div class="form-tips"><b>Tip:</b> Paste address from <strong>TyDIDS-Sender</strong>.</div>
</script>
<script type="text/html" data-help-name="Tydids-Receiver">
<p>
Creates a DID Receiver. In case an update is received this event will be made available as `output[0]` (payload only) and output[1]` (full DID).
Same for `output[2]` and `output[3]` that will return last payload/DID received as soon as triggered by an input.
</p>
</script>