This commit is contained in:
Marcel Pociot
2020-05-04 21:02:46 +02:00
parent 424f20bd90
commit 37fc6007a0
4 changed files with 38 additions and 15 deletions

View File

@@ -202,21 +202,23 @@
<p class="mt-1 max-w-2xl text-sm leading-5 text-gray-500">
<span class="text-xs text-gray-600">Received at: @{ currentLog.performed_at }</span>
<span
v-if="currentLog.response?.status >= 200 && currentLog.response?.status < 300"
class="inline-flex items-center px-3 py-0.5 rounded-full text-xs font-medium leading-5 bg-green-100 text-green-800">
@{ currentLog.response?.status } - @{ currentLog.response?.reason }
</span>
<span
v-if="currentLog.response?.status >= 400 && currentLog.response?.status < 500"
class="inline-flex items-center px-3 py-0.5 rounded-full text-xs font-medium leading-5 bg-yellow-100 text-yellow-800">
@{ currentLog.response?.status } - @{ currentLog.response?.reason }
</span>
<span
v-if="currentLog.response?.status >= 500"
class="inline-flex items-center px-3 py-0.5 rounded-full text-xs font-medium leading-5 bg-red-100 text-red-800">
@{ currentLog.response?.status } - @{ currentLog.response?.reason }
</span>
<div v-if="currentLog.response">
<span
v-if="currentLog.response.status >= 200 && currentLog.response.status < 300"
class="inline-flex items-center px-3 py-0.5 rounded-full text-xs font-medium leading-5 bg-green-100 text-green-800">
@{ currentLog.response.status } - @{ currentLog.response.reason }
</span>
<span
v-if="currentLog.response.status >= 400 && currentLog.response.status < 500"
class="inline-flex items-center px-3 py-0.5 rounded-full text-xs font-medium leading-5 bg-yellow-100 text-yellow-800">
@{ currentLog.response.status } - @{ currentLog.response.reason }
</span>
<span
v-if="currentLog.response.status >= 500"
class="inline-flex items-center px-3 py-0.5 rounded-full text-xs font-medium leading-5 bg-red-100 text-red-800">
@{ currentLog.response.status } - @{ currentLog.response.reason }
</span>
</div>
</p>
</div>
<div>

View File

@@ -56,6 +56,22 @@
</div>
</div>
<div
class="mt-6 sm:mt-5 sm:grid sm:grid-cols-3 sm:gap-4 sm:items-start sm:border-t sm:border-gray-200 sm:pt-5">
<label for="maximum_connection_length"
class="block text-sm font-medium leading-5 text-gray-700 sm:mt-px sm:pt-2">
Maximum connection length
</label>
<div class="mt-1 sm:mt-0 sm:col-span-2">
<div class="max-w-lg flex rounded-md shadow-sm">
<input type="number" id="maximum_connection_length" name="maximum_connection_length"
v-model="configuration.maximum_connection_length"
class="form-textarea block w-full transition duration-150 ease-in-out sm:text-sm sm:leading-5" />
</div>
<p class="mt-2 text-sm text-gray-500">The amount of minutes that clients may be connected to this expose server. 0 means there is no limit.</p>
</div>
</div>
<div
class="mt-6 sm:mt-5 sm:grid sm:grid-cols-3 sm:gap-4 sm:items-start sm:border-t sm:border-gray-200 sm:pt-5">
<label for="invalid_auth_token"