UNPKG

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

Version:
45 lines (40 loc) 1.17 kB
<script type="text/javascript"> RED.nodes.registerType('sqlite-config',{ category: 'config', defaults: { name: { value: "" }, dbLocation: { value: "" }, }, paletteLabel: 'SQLite config', label: function() { return this.name || 'SQLite config'; } }); </script> <script type="text/html" data-template-name="sqlite-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-dbLocation"><i class="fa fa-bookmark"></i> DB location (ENV default)</label> <input type="text" id="node-config-input-dbLocation"> </div> </script> <script type="text/html" data-help-name="sqlite-config"> <p>Ledger config for 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>