Skip to content

Commit

Permalink
Merge pull request #16 from mountaindude/main
Browse files Browse the repository at this point in the history
fix: Add missing config nodes
  • Loading branch information
mountaindude authored Sep 2, 2023
2 parents 101ae9e + b24ad1a commit 1ab5da6
Show file tree
Hide file tree
Showing 11 changed files with 15 additions and 13 deletions.
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,12 @@
"node-red": {
"version": ">=3.0.0",
"nodes": {
"qseow-sense-server": "src/qseow-server-config-nr.js",
"qseow-app": "src/qseow-app-nr.js",
"qseow-task": "src/qseow-task-nr.js",
"qseow-service-status": "src/qseow-service-status-nr.js",
"qseow-tag": "src/qseow-tag-nr.js",
"qscloud-tenant": "src/qscloud-tenant-config-nr.js",
"qscloud-app": "src/qscloud-app-nr.js",
"qscloud-license": "src/qscloud-license-nr.js",
"qscloud-reload": "src/qscloud-reload-nr.js",
Expand Down
2 changes: 1 addition & 1 deletion src/qseow-app-nr.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
color: '#589442',
defaults: {
name: { value: '' },
server: { value: '', type: 'qlik-sense-server' },
server: { value: '', type: 'qseow-sense-server' },
op: { value: 'r', options: ['c', 'r', 'u', 'd'], required: true },
appId: { value: '', required: false },
appSource1: { value: 'predefined', options: ['predefined', 'msg-in'] },
Expand Down
2 changes: 1 addition & 1 deletion src/qseow-app-nr.js
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ module.exports = function (RED) {

RED.nodes.registerType('qseow-app', QseowApp, {
defaults: {
senseServer: { value: '', type: 'qlik-sense-server', required: true },
senseServer: { value: '', type: 'qseow-sense-server', required: true },
},
});
};
8 changes: 4 additions & 4 deletions src/qseow-server-config-nr.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script type="text/javascript">
// eslint-disable-next-line no-undef
RED.nodes.registerType('qlik-sense-server', {
RED.nodes.registerType('qseow-sense-server', {
category: 'config',
defaults: {
name: { value: '' },
Expand All @@ -13,7 +13,7 @@
jwt: { value: '', required: false },
},
label() {
return this.name || 'qlik-sense-server';
return this.name || 'qseow-sense-server';
},
oneditprepare() {
// eslint-disable-next-line no-unused-vars
Expand Down Expand Up @@ -45,7 +45,7 @@
});
</script>

<script type="text/html" data-template-name="qlik-sense-server">
<script type="text/html" data-template-name="qseow-sense-server">
<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" placeholder="Name">
Expand Down Expand Up @@ -87,7 +87,7 @@
</div>
</script>

<script type="text/html" data-help-name="qlik-sense-server">
<script type="text/html" data-help-name="qseow-sense-server">
<p>A configuration node that represents a Qlik Sense server</p>

<h2>Properties</h2>
Expand Down
2 changes: 1 addition & 1 deletion src/qseow-server-config-nr.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ module.exports = function (RED) {
node.jwt = config.jwt || '';
}
}
RED.nodes.registerType('qlik-sense-server', QlikSenseServerNode, {});
RED.nodes.registerType('qseow-sense-server', QlikSenseServerNode, {});
};
2 changes: 1 addition & 1 deletion src/qseow-service-status-nr.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
color: '#589442',
defaults: {
name: { value: '' },
server: { value: '', type: 'qlik-sense-server' },
server: { value: '', type: 'qseow-sense-server' },
},
inputs: 1,
outputs: 1,
Expand Down
2 changes: 1 addition & 1 deletion src/qseow-service-status-nr.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ module.exports = function (RED) {

RED.nodes.registerType('qseow-service-status', QseowServiceStatusGet, {
defaults: {
senseServer: { value: '', type: 'qlik-sense-server', required: true },
senseServer: { value: '', type: 'qseow-sense-server', required: true },
},
});
};
2 changes: 1 addition & 1 deletion src/qseow-tag-nr.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
color: '#589442',
defaults: {
name: { value: '' },
server: { value: '', type: 'qlik-sense-server' },
server: { value: '', type: 'qseow-sense-server' },
op: { value: 'r', options: ['c', 'r', 'u', 'd'], required: true },
tagName: { value: '', required: false },
tagSource: { value: 'predefined', options: ['predefined', 'msg-in'] },
Expand Down
2 changes: 1 addition & 1 deletion src/qseow-tag-nr.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ module.exports = function (RED) {

RED.nodes.registerType('qseow-tag', QseowTag, {
defaults: {
senseServer: { value: '', type: 'qlik-sense-server', required: true },
senseServer: { value: '', type: 'qseow-sense-server', required: true },
tagNames: { value: [], required: false },
},
});
Expand Down
2 changes: 1 addition & 1 deletion src/qseow-task-nr.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
color: '#589442',
defaults: {
name: { value: '' },
server: { value: '', type: 'qlik-sense-server' },
server: { value: '', type: 'qseow-sense-server' },
op: { value: 'start', options: ['start'], required: true },
taskId: { value: '', required: false },
taskSource1: { value: 'predefined', options: ['predefined', 'msg-in'] },
Expand Down
2 changes: 1 addition & 1 deletion src/qseow-task-nr.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ module.exports = function (RED) {

RED.nodes.registerType('qseow-task', QseowTask, {
defaults: {
senseServer: { value: '', type: 'qlik-sense-server', required: true },
senseServer: { value: '', type: 'qseow-sense-server', required: true },
taskId: { value: [], required: false },
},
});
Expand Down

0 comments on commit 1ab5da6

Please sign in to comment.