Initial release v1.0.0 — Nextcloud Collabora Node-RED sidecar

This commit is contained in:
Hannes Ahlin
2026-08-22 14:56:38 +02:00
commit 9e5b0b6f83
37 changed files with 2035 additions and 0 deletions
+19
View File
@@ -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' }
}
});
};