Skip to content

Commit 1474380

Browse files
authored
Merge pull request #126 from LKuemmel/url
use url for json and http
2 parents c145172 + bca55db commit 1474380

File tree

2 files changed

+9
-28
lines changed

2 files changed

+9
-28
lines changed

src/components/devices/http/device.vue

Lines changed: 7 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -4,40 +4,21 @@
44
Einstellungen für Http
55
<span class="small">(Modul: {{ $options.name }})</span>
66
</openwb-base-heading>
7-
<openwb-base-select-input
8-
title="Protokoll"
9-
:options="[
10-
{ value: 'http', text: 'Unverschlüsselt (http://)' },
11-
{ value: 'https', text: 'Verschlüsselt (https://)' },
12-
]"
13-
:model-value="configuration.protocol"
14-
@update:model-value="
15-
updateConfiguration($event, 'configuration.protocol')
16-
"
17-
/>
187
<openwb-base-text-input
19-
title="IP oder Hostname"
8+
title="URL"
209
subtype="host"
2110
required
22-
:model-value="configuration.domain"
23-
@update:model-value="
24-
updateConfiguration($event, 'configuration.domain')
25-
"
26-
/>
27-
<openwb-base-number-input
28-
title="Port"
29-
:min="1"
30-
:max="65535"
31-
:model-value="configuration.port"
11+
:model-value="configuration.url"
3212
@update:model-value="
33-
updateConfiguration($event, 'configuration.port')
13+
updateConfiguration($event, 'configuration.url')
3414
"
3515
>
3616
<template #help>
37-
Diese Angabe ist optional. Ist kein Port angegeben, so wird je
38-
nach Protokoll der Standardport genutzt.
17+
Es wird eine komplette URL erwartet mit Angaben zum Protokoll,
18+
IP oder Hostnamen, optional einem Port und einem Pfad.<br />
19+
Beispiel: "http://192.168.1.1:8080/json?data=1"
3920
</template>
40-
</openwb-base-number-input>
21+
</openwb-base-text-input>
4122
</div>
4223
</template>
4324

src/components/devices/json/device.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88
title="URL"
99
subtype="host"
1010
required
11-
:model-value="configuration.ip_address"
11+
:model-value="configuration.url"
1212
@update:model-value="
13-
updateConfiguration($event, 'configuration.ip_address')
13+
updateConfiguration($event, 'configuration.url')
1414
"
1515
>
1616
<template #help>

0 commit comments

Comments
 (0)