Feat: Suggest IP or Hostname (#1739)

* get ip and hostnames

* use heroicons

* add host field

* get private info

* unstyled prototype

* styled select

* add to setup

* fix types
This commit is contained in:
Bernd Storath
2025-03-14 10:33:02 +01:00
committed by GitHub
parent 86bdbe4c3d
commit 198b240755
39 changed files with 450 additions and 302 deletions
+2 -1
View File
@@ -3,11 +3,12 @@
<FormElement @submit.prevent="submit">
<FormGroup>
<FormHeading>{{ $t('admin.config.connection') }}</FormHeading>
<FormTextField
<FormHostField
id="host"
v-model="data.host"
:label="$t('general.host')"
:description="$t('admin.config.hostDesc')"
url="/api/admin/ip-info"
/>
<FormNumberField
id="port"
+2 -1
View File
@@ -5,12 +5,13 @@
</p>
<div class="mt-8 flex flex-col gap-3">
<div class="flex flex-col">
<FormNullTextField
<FormHostField
id="host"
v-model="host"
:label="$t('general.host')"
placeholder="vpn.example.com"
:description="$t('setup.hostDesc')"
url="/api/setup/4"
/>
</div>
<div class="flex flex-col">