UNPKG

@energyweb/node-red-contrib-green-proof-worker

Version:

## Peer dependencies

60 lines (55 loc) 1.89 kB
<script type="text/javascript"> RED.nodes.registerType('voting-marketplace',{ category: 'Generic Green Proofs', color: '#B28CFF', icon: 'ewf-logo.svg', defaults: { name: { value: "" }, workerAddress: { value: "" }, indexerUrl: { value: "" }, solutionNamespace: { value: "" }, }, inputs: 1, outputs: 1, labelStyle: 'ggp-label-style', paletteLabel: 'Voting (Marketplace)', label: function() { return this.name || 'Voting (Marketplace)'; } }); </script> <script type="text/html" data-template-name="voting-marketplace"> <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-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-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-marketplace"> <p>Votes on given changes using Marketplace API (skip already casted votes)</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>