@c8y/ng1-modules 1018.156.0 → 1018.158.0
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/NOTICES +2171 -3054
- package/administration-applicationSettings/views/index.html +51 -18
- package/devicemanagement-deviceNetwork/views/network.html +54 -33
- package/devicemanagement-logViewer/views/index.html +98 -40
- package/package.json +1 -1
- package/smartRestEditor/requestEditor/requestEditor.html +123 -49
- package/tenantPolicies/retentionRule/retentionRuleRow.html +29 -12
- package/tenantPolicies/tenantOptions/tenantOptionsRow.html +30 -9
- package/tenantPolicies/tenantPolicyDetail/accordion.html +14 -4
- package/tenantPolicies/tenantPolicyDetail/tenantPolicyDetail.html +65 -22
|
@@ -1,13 +1,30 @@
|
|
|
1
|
-
<div
|
|
1
|
+
<div
|
|
2
|
+
class="row"
|
|
3
|
+
data-ng-controller="applicationSettingsCtrl"
|
|
4
|
+
>
|
|
2
5
|
<c8y-breadcrumbs-set>
|
|
3
|
-
<c8y-breadcrumbs-item
|
|
4
|
-
|
|
6
|
+
<c8y-breadcrumbs-item
|
|
7
|
+
icon="cog"
|
|
8
|
+
label="{{ 'Application' | translate }}"
|
|
9
|
+
></c8y-breadcrumbs-item>
|
|
10
|
+
<c8y-breadcrumbs-item
|
|
11
|
+
icon="cog"
|
|
12
|
+
label="{{ 'Settings' | translate }}"
|
|
13
|
+
></c8y-breadcrumbs-item>
|
|
5
14
|
</c8y-breadcrumbs-set>
|
|
6
15
|
<div class="col-xs-12 col-sm-12 col-md-6">
|
|
7
|
-
<form
|
|
16
|
+
<form
|
|
17
|
+
name="defaultAppForm"
|
|
18
|
+
data-ng-submit="updateDefaultApp()"
|
|
19
|
+
>
|
|
8
20
|
<div class="card card--fullpage">
|
|
9
21
|
<div class="card-header separator p-l-16 p-r-16">
|
|
10
|
-
<div
|
|
22
|
+
<div
|
|
23
|
+
class="card-title"
|
|
24
|
+
translate
|
|
25
|
+
>
|
|
26
|
+
Default application
|
|
27
|
+
</div>
|
|
11
28
|
</div>
|
|
12
29
|
<div class="inner-scroll">
|
|
13
30
|
<div class="card-block p-l-16 p-r-16">
|
|
@@ -26,14 +43,14 @@
|
|
|
26
43
|
<div class="c8y-list__item__check p-l-0 m-t-auto m-b-auto">
|
|
27
44
|
<label class="c8y-radio">
|
|
28
45
|
<input
|
|
29
|
-
|
|
46
|
+
ng-class="{
|
|
47
|
+
active: applicationSettings.defaultApplication === application
|
|
48
|
+
}"
|
|
30
49
|
id="{{ 'apps' + $index }}"
|
|
31
50
|
name="defaultApp"
|
|
51
|
+
type="radio"
|
|
32
52
|
ng-model="applicationSettings.defaultApplication"
|
|
33
53
|
ng-value="application"
|
|
34
|
-
ng-class="{
|
|
35
|
-
active: applicationSettings.defaultApplication === application
|
|
36
|
-
}"
|
|
37
54
|
/>
|
|
38
55
|
<span data-cy="applicationSettingsCtrl--input-span"></span>
|
|
39
56
|
</label>
|
|
@@ -62,9 +79,9 @@
|
|
|
62
79
|
</div>
|
|
63
80
|
<div class="card-footer separator p-l-16 p-r-16">
|
|
64
81
|
<button
|
|
82
|
+
class="btn btn-primary"
|
|
65
83
|
title="{{ 'Save default application' | translate }}"
|
|
66
84
|
type="submit"
|
|
67
|
-
class="btn btn-primary"
|
|
68
85
|
ng-disabled="defaultAppForm.$invalid || defaultAppForm.$pristine"
|
|
69
86
|
>
|
|
70
87
|
{{ 'Save default application' | translate }}
|
|
@@ -76,28 +93,44 @@
|
|
|
76
93
|
|
|
77
94
|
<div class="col-xs-12 col-sm-12 col-md-6">
|
|
78
95
|
<form
|
|
96
|
+
class="card"
|
|
79
97
|
name="accessForm"
|
|
80
98
|
data-ng-submit="saveAccessControl(allow_origin)"
|
|
81
99
|
novalidate
|
|
82
|
-
class="card"
|
|
83
100
|
>
|
|
84
101
|
<div class="card card--fullpage">
|
|
85
102
|
<div class="card-header separator p-l-16 p-r-16">
|
|
86
|
-
<div
|
|
103
|
+
<div
|
|
104
|
+
class="card-title"
|
|
105
|
+
translate
|
|
106
|
+
>
|
|
107
|
+
Access control
|
|
108
|
+
</div>
|
|
87
109
|
</div>
|
|
88
110
|
<div class="inner-scroll">
|
|
89
111
|
<div class="card-block p-l-16 p-r-16">
|
|
90
|
-
<p
|
|
112
|
+
<p
|
|
113
|
+
class="m-b-24 text-pre-line"
|
|
114
|
+
ng-bind-html="helpText | translate"
|
|
115
|
+
></p>
|
|
91
116
|
<div class="form-group m-b-8">
|
|
92
|
-
<label
|
|
117
|
+
<label
|
|
118
|
+
for="allowedDomain"
|
|
119
|
+
translate
|
|
120
|
+
>
|
|
121
|
+
Allowed domain
|
|
122
|
+
</label>
|
|
93
123
|
<input
|
|
124
|
+
class="form-control"
|
|
94
125
|
id="allowedDomain"
|
|
126
|
+
placeholder="{{ placeholderText }}"
|
|
95
127
|
type="text"
|
|
96
|
-
class="form-control"
|
|
97
128
|
data-ng-model="allow_origin.value"
|
|
98
|
-
placeholder="{{ placeholderText }}"
|
|
99
129
|
/>
|
|
100
|
-
<p
|
|
130
|
+
<p
|
|
131
|
+
class="help-block"
|
|
132
|
+
translate
|
|
133
|
+
>
|
|
101
134
|
Be careful not to lock yourself out of the platform.
|
|
102
135
|
</p>
|
|
103
136
|
</div>
|
|
@@ -105,9 +138,9 @@
|
|
|
105
138
|
</div>
|
|
106
139
|
<div class="card-footer separator p-l-16 p-r-16">
|
|
107
140
|
<button
|
|
141
|
+
class="btn btn-primary"
|
|
108
142
|
title="{{ 'Save access control' | translate }}"
|
|
109
143
|
type="submit"
|
|
110
|
-
class="btn btn-primary"
|
|
111
144
|
ng-disabled="accessForm.$invalid || accessForm.$pristine"
|
|
112
145
|
>
|
|
113
146
|
{{ 'Save access control' | translate }}
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
<div
|
|
1
|
+
<div
|
|
2
|
+
class="deviceNetwork row"
|
|
3
|
+
ng-controller="deviceNetworkCtrl"
|
|
4
|
+
>
|
|
2
5
|
<div class="col-lg-12 col-lg-max">
|
|
3
6
|
<form name="wanForm">
|
|
4
7
|
<div class="card">
|
|
@@ -20,9 +23,9 @@
|
|
|
20
23
|
<div class="form-group">
|
|
21
24
|
<label for="apn">{{ 'APN' | translate }}</label>
|
|
22
25
|
<input
|
|
26
|
+
class="form-control"
|
|
23
27
|
id="apn"
|
|
24
28
|
type="text"
|
|
25
|
-
class="form-control"
|
|
26
29
|
ng-model="device.c8y_Network.c8y_WAN.apn"
|
|
27
30
|
/>
|
|
28
31
|
</div>
|
|
@@ -30,8 +33,8 @@
|
|
|
30
33
|
<label for="authType">{{ 'Auth type' | translate }}</label>
|
|
31
34
|
<div class="c8y-select-wrapper">
|
|
32
35
|
<select
|
|
33
|
-
id="authType"
|
|
34
36
|
class="form-control"
|
|
37
|
+
id="authType"
|
|
35
38
|
ng-model="device.c8y_Network.c8y_WAN.authType"
|
|
36
39
|
ng-options="authType.value as (authType.label | translate) for authType in authTypes"
|
|
37
40
|
></select>
|
|
@@ -43,18 +46,18 @@
|
|
|
43
46
|
<div class="form-group">
|
|
44
47
|
<label for="user">{{ 'User' | translate }}</label>
|
|
45
48
|
<input
|
|
49
|
+
class="form-control"
|
|
46
50
|
id="user"
|
|
47
51
|
type="text"
|
|
48
|
-
class="form-control"
|
|
49
52
|
ng-model="device.c8y_Network.c8y_WAN.username"
|
|
50
53
|
/>
|
|
51
54
|
</div>
|
|
52
55
|
<div class="form-group">
|
|
53
56
|
<label for="password">{{ 'Password' | translate }}</label>
|
|
54
57
|
<input
|
|
58
|
+
class="form-control"
|
|
55
59
|
id="password"
|
|
56
60
|
type="text"
|
|
57
|
-
class="form-control"
|
|
58
61
|
ng-model="device.c8y_Network.c8y_WAN.password"
|
|
59
62
|
/>
|
|
60
63
|
</div>
|
|
@@ -65,8 +68,8 @@
|
|
|
65
68
|
<div class="card-footer separator">
|
|
66
69
|
<button
|
|
67
70
|
class="btn btn-primary"
|
|
68
|
-
type="submit"
|
|
69
71
|
title="{{ 'Save' | translate }}"
|
|
72
|
+
type="submit"
|
|
70
73
|
ng-disabled="wanForm.$invalid || wanForm.$pristine"
|
|
71
74
|
ng-click="saveWANviaIP(device)"
|
|
72
75
|
>
|
|
@@ -74,14 +77,13 @@
|
|
|
74
77
|
</button>
|
|
75
78
|
<button
|
|
76
79
|
class="btn btn-primary"
|
|
77
|
-
type="submit"
|
|
78
80
|
title="{{ 'Save (SMS)' | translate }}"
|
|
81
|
+
type="submit"
|
|
79
82
|
ng-disabled="wanForm.$invalid || !smsEnabled || wanForm.$pristine"
|
|
80
83
|
ng-click="saveWANviaSMS(device)"
|
|
81
84
|
>
|
|
82
85
|
{{ 'Save (SMS)' | translate }}
|
|
83
86
|
<i
|
|
84
|
-
ng-if="!smsEnabled"
|
|
85
87
|
c8y-icon="question-circle-o"
|
|
86
88
|
uib-tooltip="{{
|
|
87
89
|
'Messaging provider must be configured to send WAN settings to device via SMS.'
|
|
@@ -89,6 +91,7 @@
|
|
|
89
91
|
}}"
|
|
90
92
|
tooltip-popup-delay="500"
|
|
91
93
|
tooltip-append-to-body="true"
|
|
94
|
+
ng-if="!smsEnabled"
|
|
92
95
|
></i>
|
|
93
96
|
</button>
|
|
94
97
|
</div>
|
|
@@ -97,7 +100,10 @@
|
|
|
97
100
|
</div>
|
|
98
101
|
|
|
99
102
|
<div class="col-lg-12 col-lg-max">
|
|
100
|
-
<form
|
|
103
|
+
<form
|
|
104
|
+
name="lanDhcpForm"
|
|
105
|
+
ng-submit="saveLANandDHCP(device)"
|
|
106
|
+
>
|
|
101
107
|
<div class="card m-b-0">
|
|
102
108
|
<div class="card-header separator">
|
|
103
109
|
<div class="card-title">{{ 'LAN' | translate }}</div>
|
|
@@ -122,19 +128,22 @@
|
|
|
122
128
|
</div>
|
|
123
129
|
|
|
124
130
|
<div class="col-xs-12 col-md-4">
|
|
125
|
-
<div
|
|
131
|
+
<div
|
|
132
|
+
class="form-group"
|
|
133
|
+
ng-class="{ 'has-error': invalid('lanDhcpForm', 'ip') }"
|
|
134
|
+
>
|
|
126
135
|
<label for="ip">{{ 'IP Address' | translate }}</label>
|
|
127
136
|
<input
|
|
137
|
+
class="form-control"
|
|
128
138
|
id="ip"
|
|
139
|
+
placeholder="{{ 'e.g.' | translate }} 192.168.0.1"
|
|
129
140
|
name="ip"
|
|
130
141
|
type="text"
|
|
142
|
+
required
|
|
131
143
|
validate-ip
|
|
132
|
-
class="form-control"
|
|
133
144
|
ng-model="device.c8y_Network.c8y_LAN.ip"
|
|
134
145
|
ng-change="onLanIpChanged(device.c8y_Network.c8y_LAN)"
|
|
135
|
-
placeholder="{{ 'e.g.' | translate }} 192.168.0.1"
|
|
136
146
|
maxlength="15"
|
|
137
|
-
required
|
|
138
147
|
/>
|
|
139
148
|
<c8y-messages>
|
|
140
149
|
<c8y-message
|
|
@@ -146,18 +155,21 @@
|
|
|
146
155
|
</c8y-messages>
|
|
147
156
|
</div>
|
|
148
157
|
|
|
149
|
-
<div
|
|
158
|
+
<div
|
|
159
|
+
class="form-group"
|
|
160
|
+
ng-class="{ 'has-error': invalid('lanDhcpForm', 'netmask') }"
|
|
161
|
+
>
|
|
150
162
|
<label for="netmaskLan">{{ 'Subnet mask' | translate }}</label>
|
|
151
163
|
<input
|
|
164
|
+
class="form-control"
|
|
152
165
|
id="netmaskLan"
|
|
166
|
+
placeholder="{{ 'e.g.' | translate }} 255.255.255.0"
|
|
153
167
|
name="netmask"
|
|
154
168
|
type="text"
|
|
169
|
+
required
|
|
155
170
|
validate-ip
|
|
156
|
-
class="form-control"
|
|
157
171
|
ng-model="device.c8y_Network.c8y_LAN.netmask"
|
|
158
|
-
placeholder="{{ 'e.g.' | translate }} 255.255.255.0"
|
|
159
172
|
maxlength="15"
|
|
160
|
-
required
|
|
161
173
|
/>
|
|
162
174
|
<c8y-messages>
|
|
163
175
|
<c8y-message
|
|
@@ -179,13 +191,13 @@
|
|
|
179
191
|
uib-btn-checkbox
|
|
180
192
|
>
|
|
181
193
|
<i
|
|
182
|
-
c8y-icon="minus-circle"
|
|
183
194
|
class="text-danger"
|
|
195
|
+
c8y-icon="minus-circle"
|
|
184
196
|
ng-show="!device.c8y_Network.c8y_LAN.enabled"
|
|
185
197
|
></i>
|
|
186
198
|
<i
|
|
187
|
-
c8y-icon="check-circle"
|
|
188
199
|
class="text-success"
|
|
200
|
+
c8y-icon="check-circle"
|
|
189
201
|
ng-show="device.c8y_Network.c8y_LAN.enabled"
|
|
190
202
|
></i>
|
|
191
203
|
<span
|
|
@@ -203,7 +215,10 @@
|
|
|
203
215
|
</button>
|
|
204
216
|
</div>
|
|
205
217
|
</div>
|
|
206
|
-
<div
|
|
218
|
+
<div
|
|
219
|
+
class="row"
|
|
220
|
+
ng-model="device.c8y_Network.c8y_DHCP.enabled"
|
|
221
|
+
>
|
|
207
222
|
<label class="c8y-checkbox input-sm p-l-16 col-md-3">
|
|
208
223
|
<input
|
|
209
224
|
type="checkbox"
|
|
@@ -218,11 +233,17 @@
|
|
|
218
233
|
</div>
|
|
219
234
|
</div>
|
|
220
235
|
|
|
221
|
-
<div
|
|
222
|
-
|
|
236
|
+
<div
|
|
237
|
+
class="collapse"
|
|
238
|
+
uib-collapse="!device.c8y_Network.c8y_DHCP.enabled"
|
|
239
|
+
>
|
|
240
|
+
<div
|
|
241
|
+
class="card-block bg-level-1"
|
|
242
|
+
ng-show="device.c8y_Network.c8y_LAN.enabled"
|
|
243
|
+
>
|
|
223
244
|
<fieldset
|
|
224
|
-
name="lanDhcpForm"
|
|
225
245
|
class="c8y-fieldset"
|
|
246
|
+
name="lanDhcpForm"
|
|
226
247
|
ng-model="device.c8y_Network.c8y_LAN.enabled"
|
|
227
248
|
>
|
|
228
249
|
<legend class="m-b-8">{{ 'DHCP' | translate }}</legend>
|
|
@@ -237,14 +258,14 @@
|
|
|
237
258
|
ng-class="{ 'has-error': invalid('lanDhcpForm', 'addressRangeStart') }"
|
|
238
259
|
>
|
|
239
260
|
<input
|
|
261
|
+
class="form-control"
|
|
240
262
|
id="addressRangeStart"
|
|
263
|
+
placeholder="{{ 'e.g.' | translate }} 192.168.0.1"
|
|
241
264
|
name="addressRangeStart"
|
|
242
265
|
type="text"
|
|
243
266
|
validate-ip
|
|
244
|
-
class="form-control"
|
|
245
267
|
ng-model="device.c8y_Network.c8y_DHCP.addressRange.start"
|
|
246
268
|
ng-disabled="!device.c8y_Network.c8y_LAN.enabled"
|
|
247
|
-
placeholder="{{ 'e.g.' | translate }} 192.168.0.1"
|
|
248
269
|
maxlength="15"
|
|
249
270
|
ng-required="device.c8y_Network.c8y_DHCP.enabled"
|
|
250
271
|
/>
|
|
@@ -263,14 +284,14 @@
|
|
|
263
284
|
ng-class="{ 'has-error': invalid('lanDhcpForm', 'addressRangeEnd') }"
|
|
264
285
|
>
|
|
265
286
|
<input
|
|
287
|
+
class="form-control"
|
|
266
288
|
id="addressRangeEnd"
|
|
289
|
+
placeholder="{{ 'e.g.' | translate }} 192.168.0.10"
|
|
267
290
|
name="addressRangeEnd"
|
|
268
291
|
type="text"
|
|
269
292
|
validate-ip
|
|
270
|
-
class="form-control"
|
|
271
293
|
ng-model="device.c8y_Network.c8y_DHCP.addressRange.end"
|
|
272
294
|
ng-disabled="!device.c8y_Network.c8y_LAN.enabled"
|
|
273
|
-
placeholder="{{ 'e.g.' | translate }} 192.168.0.10"
|
|
274
295
|
maxlength="15"
|
|
275
296
|
ng-required="device.c8y_Network.c8y_DHCP.enabled"
|
|
276
297
|
/>
|
|
@@ -289,9 +310,9 @@
|
|
|
289
310
|
<div class="form-group form-group-sm">
|
|
290
311
|
<label for="domainName">{{ 'Domain name' | translate }}</label>
|
|
291
312
|
<input
|
|
313
|
+
class="form-control"
|
|
292
314
|
id="domainName"
|
|
293
315
|
type="text"
|
|
294
|
-
class="form-control"
|
|
295
316
|
ng-model="device.c8y_Network.c8y_DHCP.domainName"
|
|
296
317
|
ng-disabled="!device.c8y_Network.c8y_LAN.enabled"
|
|
297
318
|
/>
|
|
@@ -304,14 +325,14 @@
|
|
|
304
325
|
>
|
|
305
326
|
<label for="dns1">{{ 'DNS' | translate }}</label>
|
|
306
327
|
<input
|
|
328
|
+
class="form-control"
|
|
307
329
|
id="dns1"
|
|
330
|
+
placeholder="{{ 'e.g.' | translate }} 192.168.0.1"
|
|
308
331
|
name="dns1"
|
|
309
332
|
type="text"
|
|
310
333
|
validate-ip
|
|
311
|
-
class="form-control"
|
|
312
334
|
ng-model="device.c8y_Network.c8y_DHCP.dns1"
|
|
313
335
|
ng-disabled="!device.c8y_Network.c8y_LAN.enabled"
|
|
314
|
-
placeholder="{{ 'e.g.' | translate }} 192.168.0.1"
|
|
315
336
|
maxlength="15"
|
|
316
337
|
/>
|
|
317
338
|
<c8y-messages>
|
|
@@ -330,14 +351,14 @@
|
|
|
330
351
|
>
|
|
331
352
|
<label for="dns2">{{ 'DNS 2' | translate }}</label>
|
|
332
353
|
<input
|
|
354
|
+
class="form-control"
|
|
333
355
|
id="dns2"
|
|
356
|
+
placeholder="{{ 'e.g.' | translate }} 192.168.0.2"
|
|
334
357
|
name="dns2"
|
|
335
358
|
type="text"
|
|
336
359
|
validate-ip
|
|
337
|
-
class="form-control"
|
|
338
360
|
ng-model="device.c8y_Network.c8y_DHCP.dns2"
|
|
339
361
|
ng-disabled="!device.c8y_Network.c8y_LAN.enabled"
|
|
340
|
-
placeholder="{{ 'e.g.' | translate }} 192.168.0.2"
|
|
341
362
|
maxlength="15"
|
|
342
363
|
/>
|
|
343
364
|
|
|
@@ -359,8 +380,8 @@
|
|
|
359
380
|
<div class="card-footer separator">
|
|
360
381
|
<button
|
|
361
382
|
class="btn btn-primary"
|
|
362
|
-
type="submit"
|
|
363
383
|
title="{{ 'Save' | translate }}"
|
|
384
|
+
type="submit"
|
|
364
385
|
ng-disabled="lanDhcpForm.$invalid || lanDhcpForm.$pristine"
|
|
365
386
|
>
|
|
366
387
|
{{ 'Save' | translate }}
|