mirror of
https://github.com/bitinflow/expose.git
synced 2026-03-16 15:05:56 +00:00
Allow users to specify custom hostnames
This commit is contained in:
@@ -43,6 +43,25 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="sm:grid sm:grid-cols-3 sm:gap-4 sm:items-start sm:pt-5">
|
||||
<label for="can_specify_hostnames"
|
||||
class="block text-sm font-medium leading-5 text-gray-700 sm:mt-px sm:pt-2">
|
||||
Can specify custom hostnames
|
||||
</label>
|
||||
<div class="mt-1 sm:mt-0 sm:col-span-2">
|
||||
<div class="mt-2 flex items-center justify-between">
|
||||
<div class="flex items-center">
|
||||
<input id="can_specify_hostnames"
|
||||
v-model="userForm.can_specify_hostnames"
|
||||
name="can_specify_hostnames"
|
||||
value="1" type="checkbox" class="form-checkbox h-4 w-4 text-indigo-600 transition duration-150 ease-in-out" />
|
||||
<label for="can_specify_hostnames" class="ml-2 block text-sm leading-5 text-gray-900">
|
||||
Yes
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="sm:grid sm:grid-cols-3 sm:gap-4 sm:items-start sm:pt-5">
|
||||
<label for="can_share_tcp_ports"
|
||||
class="block text-sm font-medium leading-5 text-gray-700 sm:mt-px sm:pt-2">
|
||||
@@ -92,6 +111,9 @@
|
||||
<th class="px-6 py-3 border-b border-gray-200 bg-gray-50 text-left text-xs leading-4 font-medium text-gray-500 uppercase tracking-wider">
|
||||
Custom Subdomains
|
||||
</th>
|
||||
<th class="px-6 py-3 border-b border-gray-200 bg-gray-50 text-left text-xs leading-4 font-medium text-gray-500 uppercase tracking-wider">
|
||||
Custom Hostnames
|
||||
</th>
|
||||
<th class="px-6 py-3 border-b border-gray-200 bg-gray-50 text-left text-xs leading-4 font-medium text-gray-500 uppercase tracking-wider">
|
||||
TCP ports
|
||||
</th>
|
||||
@@ -117,6 +139,14 @@
|
||||
Yes
|
||||
</span>
|
||||
</td>
|
||||
<td class="px-6 py-4 whitespace-no-wrap border-b border-gray-200 text-sm leading-5 text-gray-500">
|
||||
<span v-if="user.can_specify_hostnames === 0">
|
||||
No
|
||||
</span>
|
||||
<span v-else>
|
||||
Yes
|
||||
</span>
|
||||
</td>
|
||||
<td class="px-6 py-4 whitespace-no-wrap border-b border-gray-200 text-sm leading-5 text-gray-500">
|
||||
<span v-if="user.can_share_tcp_ports === 0">
|
||||
No
|
||||
@@ -174,6 +204,7 @@
|
||||
userForm: {
|
||||
name: '',
|
||||
can_specify_subdomains: true,
|
||||
can_specify_hostnames: true,
|
||||
can_share_tcp_ports: true,
|
||||
errors: {},
|
||||
},
|
||||
@@ -218,6 +249,7 @@
|
||||
if (data.user) {
|
||||
this.userForm.name = '';
|
||||
this.userForm.can_specify_subdomains = true;
|
||||
this.userForm.can_specify_hostnames = true;
|
||||
this.userForm.can_share_tcp_ports = true;
|
||||
this.userForm.errors = {};
|
||||
this.users.unshift(data.user);
|
||||
|
||||
Reference in New Issue
Block a user