@energyweb/node-red-contrib-green-proof-worker
Version:
## Peer dependencies
68 lines (63 loc) • 2.28 kB
HTML
<script type="text/javascript">
RED.nodes.registerType('voting-service-config',{
category: 'config',
color: '#B28CFF',
icon: 'ewf-logo.svg',
defaults: {
name: { value: "" },
workerSeed: { value: "" },
votingUrl: { value: "" },
solutionNamespace: { value: "" },
workerAddress: { value: "" },
indexerUrl: { value: "" },
},
labelStyle: 'ggp-label-style',
paletteLabel: 'Voting service config',
label: function() {
return this.name || 'Voting service config';
}
});
</script>
<script type="text/html" data-template-name="voting-service-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-workerSeed"><i class="fa fa-bookmark"></i> Worker seed (ENV default)</label>
<input type="text" id="node-config-input-workerSeed">
</div>
<div class="form-row">
<label for="node-config-input-workerAddress"><i class="fa fa-bookmark"></i> Worker address (ENV default)</label>
<input type="text" id="node-config-input-workerAddress">
</div>
<div class="form-row">
<label for="node-config-input-votingUrl"><i class="fa fa-bookmark"></i> Voting URL (ENV default)</label>
<input type="text" id="node-config-input-votingUrl">
</div>
<div class="form-row">
<label for="node-config-input-indexerUrl"><i class="fa fa-bookmark"></i> Indexer URL (ENV default)</label>
<input type="text" id="node-config-input-indexerUrl">
</div>
<div class="form-row">
<label for="node-config-input-solutionNamespace"><i class="fa fa-bookmark"></i> Solution namespace (ENV default)</label>
<input type="text" id="node-config-input-solutionNamespace">
</div>
</script>
<script type="text/html" data-help-name="voting-service-config">
<p>Configuration for voting</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>