mirror of
https://github.com/yuto-yuto/node-red-contrib-password-generator.git
synced 2026-03-10 02:31:21 +01:00
Add options
This commit is contained in:
@@ -5,8 +5,11 @@
|
||||
color: "#D8BFD8",
|
||||
defaults: {
|
||||
name: { value: "" },
|
||||
length: { value: "", required: true, validate: RED.validators.number() },
|
||||
length: { value: "", required: true, validate: (v) => v > 4 },
|
||||
setTo: { value: "" },
|
||||
isNumberDisabled: { value: false, require: true },
|
||||
isSpecialCharsDisabled: { value: false, require: true },
|
||||
isSpaceDisabled: { value: false, require: true },
|
||||
},
|
||||
inputs: 1,
|
||||
outputs: 1,
|
||||
@@ -26,9 +29,21 @@
|
||||
<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>
|
||||
<label for="node-input-setTo"><i class="fa fa-ellipsis-h"></i> to</label>
|
||||
<input type="text" id="node-input-setTo">
|
||||
</div>
|
||||
<div class="form-row">
|
||||
<label for="node-input-isNumberDisabled"> Disable Number</label>
|
||||
<input type="checkbox" id="node-input-isNumberDisabled">
|
||||
</div>
|
||||
<div class="form-row">
|
||||
<label for="node-input-isSpecialCharsDisabled"> Disable Special chars</label>
|
||||
<input type="checkbox" id="node-input-isSpecialCharsDisabled">
|
||||
</div>
|
||||
<div class="form-row">
|
||||
<label for="node-input-isSpaceDisabled"> Disable Space</label>
|
||||
<input type="checkbox" id="node-input-isSpaceDisabled">
|
||||
</div>
|
||||
</script>
|
||||
|
||||
<script type="text/html" data-help-name="password-generator">
|
||||
@@ -40,5 +55,7 @@
|
||||
<dd> Password length. </dd>
|
||||
<dt>to</dt>
|
||||
<dd> The property to set generated password. </dd>
|
||||
<dt>Disable options</dt>
|
||||
<dd> Excludes the characters from the generated password. </dd>
|
||||
</dl>
|
||||
</script>
|
||||
</script>
|
||||
Reference in New Issue
Block a user