@energyweb/node-red-contrib-green-proof-worker
Version:
## Peer dependencies
47 lines (41 loc) • 1.16 kB
HTML
<script type="text/javascript">
RED.nodes.registerType('tx-validator',{
category: 'Generic Green Proofs',
color: '#B28CFF',
icon: 'ewf-logo.svg',
defaults: {
name: { value: "" }
},
inputs: 1,
outputs: 2,
outputLabels: ["success", "failure"],
labelStyle: 'ggp-label-style',
paletteLabel: 'Transaction validator',
label: function() {
return this.name || 'Transaction validator';
},
});
</script>
<script type="text/html" data-template-name="tx-validator">
<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>
</script>
<script type="text/html" data-help-name="tx-validator">
<p>Validates if transaction can be executed and puts txValid flag in payload</p>
</script><style>.ggp-label-style {
/** Text color */
/* fill: #fff; */
}
.red-ui-flow-node-icon-group:has(~ .ggp-label-style) {
image {
width: 15px;
height: 15px;
x: 9px;
y: 7.5px;
}
}
.red-ui-flow-node:has(~ .ggp-label-style) {
stroke-width: 0;
}</style>