node-red-contrib-password-g.../lib/PasswordGeneratorNode.html
yuto-yuto 456f4332e3 fix
2021-07-11 09:57:56 +02:00

45 lines
1.4 KiB
HTML

<script type="text/javascript">
const nodeName = "password-generator";
RED.nodes.registerType(nodeName, {
category: "function",
color: "#D8BFD8",
defaults: {
name: { value: "" },
length: { value: "", required: true, validate: RED.validators.number() },
setTo: { value: "" },
},
inputs: 1,
outputs: 1,
icon: "font-awesome/fa-key",
label: function () {
return this.name || nodeName;
},
});
</script>
<script type="text/html" data-template-name="password-generator">
<div class="form-row">
<label for="node-input-name"><i class="fa fa-tag"></i> Name</label>
<input type="text" id="node-input-name" placeholder="Name">
</div>
<div class="form-row">
<label for="node-input-length"> Length</label>
<input type="text" id="node-input-length">
</div>
<div class="form-row">
<label for="node-input-setTo"><i class="fa fa-ellipsis-he"></i> to</label>
<input type="text" id="node-input-setTo">
</div>
</script>
<script type="text/html" data-help-name="password-generator">
<p>Send incoming message only when the value of the specified key path changes.</p>
<h3>Configuration</h3>
<dl class="message-properties">
<dt>Length</dt>
<dd> Password length. </dd>
<dt>to</dt>
<dd> The property to set generated password. </dd>
</dl>
</script>