Initial commit: Nextcloud Node-RED Docker image and custom nodes
This commit is contained in:
@@ -0,0 +1,37 @@
|
||||
<script type="text/javascript">
|
||||
RED.nodes.registerType('nextcloud-config', {
|
||||
category: 'config',
|
||||
defaults: {
|
||||
name: { value: "" },
|
||||
baseUrl: { value: "https://cloud.hannesahlin.se" }
|
||||
},
|
||||
credentials: {
|
||||
username: { type: "text" },
|
||||
password: { type: "password" }
|
||||
},
|
||||
label: function() {
|
||||
return this.name || "Nextcloud Config";
|
||||
}
|
||||
});
|
||||
</script>
|
||||
<script type="text/html" data-template-name="nextcloud-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" placeholder="Name">
|
||||
</div>
|
||||
<div class="form-row">
|
||||
<label for="node-config-input-baseUrl"><i class="fa fa-globe"></i> Nextcloud URL</label>
|
||||
<input type="text" id="node-config-input-baseUrl" placeholder="https://cloud.hannesahlin.se">
|
||||
</div>
|
||||
<div class="form-row">
|
||||
<label for="node-config-input-username"><i class="fa fa-user"></i> Username</label>
|
||||
<input type="text" id="node-config-input-username" placeholder="admin">
|
||||
</div>
|
||||
<div class="form-row">
|
||||
<label for="node-config-input-password"><i class="fa fa-lock"></i> App Password</label>
|
||||
<input type="password" id="node-config-input-password" placeholder="App password">
|
||||
</div>
|
||||
<div class="form-tips">
|
||||
<p>Generate an app password in Nextcloud under Settings > Security > Devices & sessions.</p>
|
||||
</div>
|
||||
</script>
|
||||
Reference in New Issue
Block a user