@letis009/node-red-contrib-tdn-report 1.0.1 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@letis009/node-red-contrib-tdn-report",
3
- "version": "1.0.1",
3
+ "version": "1.0.3",
4
4
  "description": "TDN Deposit Report Formatter Node",
5
5
  "main": "tdn-report.js",
6
6
  "node-red": {
package/report-logic.js CHANGED
@@ -1,11 +1,2 @@
1
1
  module.exports = function(msg, RED, node) {
2
- // const printStringArray = [];
3
- const global = {
4
- get: (key) => {
5
- if (key === "prod.enabledDevice") return "ANALOGUE";
6
- if (key === "prod.reportFormat") return "SBV+Rej";
7
- return undefined;
8
- }
9
- };
10
- /* Full report logic from user’s function goes here */
11
2
  };
@@ -0,0 +1,26 @@
1
+ <script type="text/javascript">
2
+ RED.nodes.registerType('tdn-report', {
3
+ category: 'function',
4
+ color: '#fdd0a2',
5
+ defaults: {
6
+ name: { value: "" }
7
+ },
8
+ inputs: 1,
9
+ outputs: 1,
10
+ icon: "font-awesome/fa-file-text-o",
11
+ label: function () {
12
+ return this.name || "tdn-report";
13
+ }
14
+ });
15
+ </script>
16
+
17
+ <script type="text/html" data-template-name="tdn-report">
18
+ <div class="form-row">
19
+ <label for="node-input-name"><i class="fa fa-tag"></i> Name</label>
20
+ <input type="text" id="node-input-name" placeholder="Name">
21
+ </div>
22
+ </script>
23
+
24
+ <script type="text/html" data-help-name="tdn-report">
25
+ <p>This node formats deposit reports based on dataset and report type.</p>
26
+ </script>