Initial release v1.0.0 — Nextcloud Collabora Node-RED sidecar
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
'use strict';
|
||||
|
||||
module.exports = function (RED) {
|
||||
function NcCollabConfigNode(n) {
|
||||
RED.nodes.createNode(this, n);
|
||||
this.nextcloudUrl = (n.nextcloudUrl || '').replace(/\/$/, '');
|
||||
this.collaboraUrl = (n.collaboraUrl || '').replace(/\/$/, '');
|
||||
this.collaboraPublicUrl = (n.collaboraPublicUrl || '').replace(/\/$/, '');
|
||||
this.username = n.username || '';
|
||||
this.verifyTls = n.verifyTls !== false && n.verifyTls !== 'false';
|
||||
this.password = this.credentials.password || '';
|
||||
}
|
||||
|
||||
RED.nodes.registerType('nc-collab-config', NcCollabConfigNode, {
|
||||
credentials: {
|
||||
password: { type: 'password' }
|
||||
}
|
||||
});
|
||||
};
|
||||
Reference in New Issue
Block a user