UNPKG

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

Version:

## Peer dependencies

51 lines (45 loc) 1.4 kB
<script type="text/javascript"> RED.nodes.registerType('processed-update-sqlite',{ category: 'Generic Green Proofs', color: '#B28CFF', icon: 'ewf-logo.svg', defaults: { name: { value: "" }, sqliteConfig: { value:"", type: "sqlite-config", required: true }, }, inputs: 1, outputs: 1, labelStyle: 'ggp-label-style', paletteLabel: 'Processed update (SQLite)', label: function() { return this.name || 'Processed update (SQLite)'; }, }); </script> <script type="text/html" data-template-name="processed-update-sqlite"> <div class="form-row"> <label for="node-input-sqliteConfig"><i class="fa fa-bookmark"></i> SQLite config</label> <input type="text" id="node-input-sqliteConfig"> </div> <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="processed-update-sqlite"> <p>Saves processed changes from source message using SQLite</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>