mirror of
https://github.com/yuto-yuto/node-red-contrib-password-generator.git
synced 2026-02-17 13:53:12 +01:00
fix
This commit is contained in:
@@ -1,15 +1,33 @@
|
||||
<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-key"><i class="fa fa-key"></i> Key prop</label>
|
||||
<input type="text" id="node-input-key" placeholder="payload.key">
|
||||
<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-size"><i class="fa fa-database"></i> Size</label>
|
||||
<input type="text" id="node-input-size">
|
||||
<label for="node-input-length"> Length</label>
|
||||
<input type="text" id="node-input-length">
|
||||
</div>
|
||||
<div class="form-row">
|
||||
<label for="node-input-to"><i class="fa fa-database"></i> to</label>
|
||||
<input type="text" id="node-input-to">
|
||||
<label for="node-input-setTo"><i class="fa fa-ellipsis-he"></i> to</label>
|
||||
<input type="text" id="node-input-setTo">
|
||||
</div>
|
||||
</script>
|
||||
|
||||
@@ -18,9 +36,9 @@
|
||||
|
||||
<h3>Configuration</h3>
|
||||
<dl class="message-properties">
|
||||
<dt>size</dt>
|
||||
<dd> The output size of the string. </dd>
|
||||
<dt>Length</dt>
|
||||
<dd> Password length. </dd>
|
||||
<dt>to</dt>
|
||||
<dd> The property to set password. </dd>
|
||||
<dd> The property to set generated password. </dd>
|
||||
</dl>
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user