-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprocesscube-engine-config.html
86 lines (73 loc) · 3.46 KB
/
processcube-engine-config.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
<script type="text/javascript">
RED.nodes.registerType('processcube-engine-config', {
category: 'config',
defaults: {
name: { value: '' },
url: { value: 'http://engine:8000', required: true },
urlType: { type: 'str' },
clientId: { value: '' },
clientIdType: { type: 'str' },
clientSecret: { value: '' },
clientSecretType: { type: 'str' },
},
label: function () {
return this.name || this.url;
},
oneditprepare: function () {
$('#node-config-input-url').typedInput({
default: 'str',
types: ['str', 'env', 'cred'],
});
$('#node-config-input-clientId').typedInput({
default: 'str',
types: ['str', 'env', 'cred'],
});
$('#node-config-input-clientSecret').typedInput({
default: 'str',
types: ['str', 'env', 'cred'],
});
$('#node-config-input-url').typedInput('value', this.url);
$('#node-config-input-url').typedInput('type', this.urlType);
$('#node-config-input-clientId').typedInput('value', this.clientId);
$('#node-config-input-clientId').typedInput('type', this.clientIdType);
$('#node-config-input-clientSecret').typedInput('value', this.clientSecret);
$('#node-config-input-clientSecret').typedInput('type', this.clientSecretType);
},
oneditsave: function () {
this.url = $('#node-config-input-url').typedInput('value');
this.urlType = $('#node-config-input-url').typedInput('type');
this.clientId = $('#node-config-input-clientId').typedInput('value');
this.clientIdType = $('#node-config-input-clientId').typedInput('type');
this.clientSecret = $('#node-config-input-clientSecret').typedInput('value');
this.clientSecretType = $('#node-config-input-clientSecret').typedInput('type');
},
});
</script>
<script type="text/html" data-template-name="processcube-engine-config">
<div class="form-row">
<label for="node-config-input-name"><i class="fa fa-tag"></i> Name</label>
<input type="text" id="node-config-input-name" />
</div>
<div class="form-row">
<label for="node-config-input-url"><i class="fa fa-bookmark"></i> Url</label>
<input type="text" id="node-config-input-url" />
</div>
<div class="form-row">
<label for="node-config-input-clientId"><i class="fa fa-bookmark"></i> Client id</label>
<input type="text" id="node-config-input-clientId" />
</div>
<div class="form-row">
<label for="node-config-input-clientSecret"><i class="fa fa-bookmark"></i> Client secret</label>
<input type="text" id="node-config-input-clientSecret" />
</div>
</script>
<script type="text/markdown" data-help-name="processcube-engine-config">
The configuration for the ProcessCube engine.
## Inputs
: url (String) : The URL of the ProcessCube engine.
: clientId (String) : The client id for the ProcessCube engine.
: clientSecret (String) : The client secret for the ProcessCube engine.
### References
- [The ProcessCube© Developer Network](https://processcube.io) - All documentation for the ProcessCube© platform
- [ProcessCube© LowCode Integration](https://processcube.io/docs/node-red) - LowCode integration in ProcessCube©
</script>