Initial commit: Nextcloud Node-RED Docker image and custom nodes
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
module.exports = function(RED) {
|
||||
function NextcloudConfigNode(config) {
|
||||
RED.nodes.createNode(this, config);
|
||||
this.name = config.name;
|
||||
this.baseUrl = config.baseUrl;
|
||||
this.username = config.username;
|
||||
this.password = config.password;
|
||||
}
|
||||
RED.nodes.registerType("nextcloud-config", NextcloudConfigNode, {
|
||||
credentials: {
|
||||
username: { type: "text" },
|
||||
password: { type: "password" }
|
||||
}
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user