node-red-contrib-3dm-space 1.0.2 → 1.0.5

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.
@@ -1,85 +1,44 @@
1
1
  <script type="text/javascript">
2
+ (function () {
3
+ "use strict";
4
+
2
5
  RED.nodes.registerType("3dm-cloud-config", {
3
6
  category: "config",
4
7
  defaults: {
5
- name: { value: "" },
6
- clientid: { value: "" }
8
+ clientid: { value: "" },
9
+ username: { value: "", required: true },
10
+ name: { value: "" }
7
11
  },
8
12
  credentials: {
9
- username: { type: "text" },
10
13
  password: { type: "password" }
11
14
  },
12
15
  label: function () {
13
16
  return this.name || this.clientid || "3DM Cloud Login";
14
17
  }
15
18
  });
19
+ })();
16
20
  </script>
17
21
 
18
22
  <script type="text/html" data-template-name="3dm-cloud-config">
19
- <style>
20
- .three-dm-login-panel {
21
- background: #2f3544;
22
- border-radius: 10px;
23
- padding: 14px;
24
- margin-bottom: 12px;
25
- }
26
-
27
- .three-dm-login-row {
28
- background: #3a4152;
29
- border-radius: 8px;
30
- padding: 10px 12px;
31
- margin-bottom: 12px;
32
- }
33
-
34
- .three-dm-login-row label {
35
- display: block;
36
- width: 100%;
37
- color: #69d36f;
38
- font-weight: bold;
39
- margin-bottom: 6px;
40
- }
41
-
42
- .three-dm-login-row input {
43
- width: 100%;
44
- box-sizing: border-box;
45
- background: #3a4152;
46
- color: #ffffff;
47
- border: none;
48
- font-size: 15px;
49
- padding: 4px 0;
50
- }
51
-
52
- .three-dm-login-row input::placeholder {
53
- color: #b8beca;
54
- }
55
-
56
- .three-dm-login-row input:focus {
57
- outline: none;
58
- box-shadow: none;
59
- }
60
-
61
- .three-dm-login-note {
62
- color: #c8ccd6;
63
- font-size: 12px;
64
- margin-top: 4px;
65
- }
66
- </style>
67
-
68
- <div class="three-dm-login-panel">
69
- <div class="three-dm-login-row">
70
- <label for="node-config-input-clientid">Client ID</label>
71
- <input type="text" id="node-config-input-clientid" placeholder="Paste Client ID from 3DM.space">
72
- </div>
23
+ <div class="form-row">
24
+ <label for="node-config-input-clientid">
25
+ <i class="fa fa-id-card"></i> Client ID
26
+ </label>
27
+ <input type="text" id="node-config-input-clientid" placeholder="Client ID">
28
+ </div>
73
29
 
74
- <div class="three-dm-login-row">
75
- <label for="node-config-input-username">User Name*</label>
76
- <input type="text" id="node-config-input-username" placeholder="Paste User Name from 3DM.space">
77
- </div>
30
+ <div class="form-row">
31
+ <label for="node-config-input-username">
32
+ <i class="fa fa-user"></i> User Name*
33
+ </label>
34
+ <input type="text" id="node-config-input-username" placeholder="User Name*">
35
+ </div>
78
36
 
79
- <div class="three-dm-login-row">
80
- <label for="node-config-input-password">Password</label>
81
- <input type="password" id="node-config-input-password" placeholder="Paste Password from 3DM.space">
82
- </div>
37
+ <div class="form-row">
38
+ <label for="node-config-input-password">
39
+ <i class="fa fa-lock"></i> Password
40
+ </label>
41
+ <input type="password" id="node-config-input-password" placeholder="Password">
83
42
  </div>
84
43
 
85
44
  <div class="form-row">
@@ -87,22 +46,25 @@
87
46
  <i class="fa fa-tag"></i> Node Name
88
47
  </label>
89
48
  <input type="text" id="node-config-input-name" placeholder="Optional, e.g. Main PassPort">
90
- <div class="three-dm-login-note">
91
- This is only the name shown inside Node-RED.
92
- </div>
93
49
  </div>
94
50
  </script>
95
51
 
96
52
  <script type="text/html" data-help-name="3dm-cloud-config">
97
- <p>Login details for 3DM.space SCADA Cloud.</p>
53
+ <p>
54
+ Stores the 3DM.space device login used by the 3DM nodes.
55
+ </p>
98
56
 
99
- <p>Copy the details from 3DM.space in this order:</p>
57
+ <p>
58
+ Copy the device credentials from 3DM.space into the matching fields:
59
+ </p>
100
60
 
101
- <ol>
61
+ <ul>
102
62
  <li>Client ID</li>
103
63
  <li>User Name*</li>
104
64
  <li>Password</li>
105
- </ol>
65
+ </ul>
106
66
 
107
- <p>Node Name is optional and is only used inside Node-RED.</p>
67
+ <p>
68
+ Node Name is optional and is only used inside Node-RED.
69
+ </p>
108
70
  </script>