forked from PAR-Government/node_red_sitx_bridge_adapter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsitx-bridge-adapter.html
152 lines (133 loc) · 5.51 KB
/
sitx-bridge-adapter.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
<script type="text/javascript">
RED.nodes.registerType('sitx-bridge-adapter both', {
category: 'SitX / TeamConnect',
color: '#a6bbcf',
defaults: {
name: {value:""},
access_key_id: {value:""},
secret_key: {value:""},
resource_uri: {value:""},
scope: {value:"/.bridge-both"}
},
inputs:1,
outputs:1,
icon: "PAR-SITX-Logo.png",
label: function() {
return this.name||"sitx-bridge-adapter";
}
});
RED.nodes.registerType('sitx-bridge-adapter in', {
category: 'SitX / TeamConnect',
color: '#a6bbcf',
defaults: {
name: {value:""},
access_key_id: {value:""},
secret_key: {value:""},
resource_uri: {value:""},
scope: {value:"/.bridge-out"}
},
inputs:0,
outputs:1,
icon: "PAR-SITX-Logo.png",
label: function() {
return this.name||"sitx-bridge-adapter";
}
});
RED.nodes.registerType('sitx-bridge-adapter out', {
category: 'SitX / TeamConnect',
color: '#a6bbcf',
defaults: {
name: {value:""},
access_key_id: {value:""},
secret_key: {value:""},
resource_uri: {value:""},
scope: {value:"/.bridge-in"}
},
inputs:1,
outputs:0,
icon: "PAR-SITX-Logo.png",
label: function() {
return this.name||"sitx-bridge-adapter";
}
});
</script>
<script type="text/html" data-template-name="sitx-bridge-adapter both">
<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">
<input type="hidden" id="node-input-scope">
</div>
<div class="form-row">
<label for="node-input-resource_uri"><i class="fa fa-tag"></i> GroupURI</label>
<input type="text" id="node-input-resource_uri" placeholder="Your SitX Group URI">
</div>
<div class="form-row">
<label for="node-input-access_key_id"><i class="fa fa-tag"></i> AccessKey</label>
<input type="text" id="node-input-access_key_id" placeholder="Access Key">
</div>
<div class="form-row">
<label for="node-input-secret_key"><i class="fa fa-tag"></i> SecretKey</label>
<input type="text" id="node-input-secret_key" placeholder="Secret Key">
</div>
</script>
<script type="text/html" data-template-name="sitx-bridge-adapter in">
<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">
<input type="hidden" id="node-input-scope">
</div>
<div class="form-row">
<label for="node-input-resource_uri"><i class="fa fa-tag"></i> GroupURI</label>
<input type="text" id="node-input-resource_uri" placeholder="Your SitX Group URI">
</div>
<div class="form-row">
<label for="node-input-access_key_id"><i class="fa fa-tag"></i> AccessKey</label>
<input type="text" id="node-input-access_key_id" placeholder="Access Key">
</div>
<div class="form-row">
<label for="node-input-secret_key"><i class="fa fa-tag"></i> SecretKey</label>
<input type="text" id="node-input-secret_key" placeholder="Secret Key">
</div>
</script>
<script type="text/html" data-template-name="sitx-bridge-adapter out">
<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">
<input type="hidden" id="node-input-scope">
</div>
<div class="form-row">
<label for="node-input-resource_uri"><i class="fa fa-tag"></i> GroupURI</label>
<input type="text" id="node-input-resource_uri" placeholder="Your SitX Group URI">
</div>
<div class="form-row">
<label for="node-input-access_key_id"><i class="fa fa-tag"></i> AccessKey</label>
<input type="text" id="node-input-access_key_id" placeholder="Access Key">
</div>
<div class="form-row">
<label for="node-input-secret_key"><i class="fa fa-tag"></i> SecretKey</label>
<input type="text" id="node-input-secret_key" placeholder="Secret Key">
</div>
</script>
<script type="text/html" data-help-name="sitx-bridge-adapter both">
<p>A connector to establish a Sit(x) Bridge Adatper by PAR Gov.</p>
</script>
<script type="text/html" data-help-name="sitx-bridge-adapter in">
<p>Sit(x) Bridge Adapter in node.
<p>A connector to establish a Sit(x) Bridge Adatper by PAR Gov into a Node-RED Flow.</p>
<h3>Details</h3>
<p>
<code>Required Authorized Sit(x) Scope</code>
<p>The "Sit(x) Bridge Adapter In" node requires an ACCESS KEY and SECRET with an authorized Sit(x) group scope of "bridge-out"; i.e. it bridges data out of an authorized group and into the respective Flow defined here in Node-RED.</p>
<p><code>Payload</code>
<p>All <code>msg.payload</code> data that flows through this node is required to be valid CoT XML (Cursor-on-Target schema).
</script>
<script type="text/html" data-help-name="sitx-bridge-adapter out">
<p>Sit(x) Bridge Adapter out node.
<p>A connector to establish a Sit(x) Bridge Adatper by PAR Gov out of a Node-RED Flow.</p>
<h3>Details</h3>
<p>
<code>Required Authorized Sit(x) Scope</code>
<p>The "Sit(x) Bridge Adapter Out" node requires an ACCESS KEY and SECRET with an authorized Sit(x) group scope of "bridge-in"; i.e. it bridges data out of a Node-RED flow and into an authorized Sit(x) Group.</p>
<p><code>Payload</code>
<p>All <code>msg.payload</code> data that flows through this node is required to be valid CoT XML (Cursor-on-Target schema).
</script>