chore(refactor): better inputs
This commit is contained in:
@@ -27,7 +27,12 @@
|
|||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<ul v-for="(variable, index) in this.editingEnvCopy.variables" :key="index">
|
<ul
|
||||||
|
v-for="(variable, index) in this.editingEnvCopy.variables"
|
||||||
|
:key="index"
|
||||||
|
class="border-b border-dashed divide-x border-brdColor divide-dashed divide-brdColor"
|
||||||
|
:class="{ 'border-t': index == 0 }"
|
||||||
|
>
|
||||||
<li>
|
<li>
|
||||||
<input
|
<input
|
||||||
:placeholder="$t('parameter_count', { count: index + 1 })"
|
:placeholder="$t('parameter_count', { count: index + 1 })"
|
||||||
|
|||||||
@@ -16,7 +16,12 @@
|
|||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
<ul v-for="(header, index) in headers" :key="`${header.value}_${index}`">
|
<ul
|
||||||
|
v-for="(header, index) in headers"
|
||||||
|
:key="`${header.value}_${index}`"
|
||||||
|
class="border-b border-dashed divide-x border-brdColor divide-dashed divide-brdColor"
|
||||||
|
:class="{ 'border-t': index == 0 }"
|
||||||
|
>
|
||||||
<li>
|
<li>
|
||||||
<autocomplete
|
<autocomplete
|
||||||
:placeholder="$t('header_count', { count: index + 1 })"
|
:placeholder="$t('header_count', { count: index + 1 })"
|
||||||
|
|||||||
@@ -16,7 +16,12 @@
|
|||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
<ul v-for="(param, index) in params" :key="index">
|
<ul
|
||||||
|
v-for="(param, index) in params"
|
||||||
|
:key="index"
|
||||||
|
class="border-b border-dashed divide-x border-brdColor divide-dashed divide-brdColor"
|
||||||
|
:class="{ 'border-t': index == 0 }"
|
||||||
|
>
|
||||||
<li>
|
<li>
|
||||||
<input
|
<input
|
||||||
:placeholder="$t('parameter_count', { count: index + 1 })"
|
:placeholder="$t('parameter_count', { count: index + 1 })"
|
||||||
|
|||||||
@@ -26,7 +26,7 @@
|
|||||||
<ul id="token-list" v-for="(token, index) in tokens" :key="index">
|
<ul id="token-list" v-for="(token, index) in tokens" :key="index">
|
||||||
<li>
|
<li>
|
||||||
<input
|
<input
|
||||||
:placeholder="'name ' + (index + 1)"
|
:placeholder="`name ${index + 1}`"
|
||||||
:value="token.name"
|
:value="token.name"
|
||||||
@change="
|
@change="
|
||||||
$store.commit('setOAuthTokenName', {
|
$store.commit('setOAuthTokenName', {
|
||||||
|
|||||||
@@ -10,6 +10,7 @@
|
|||||||
v-model="url"
|
v-model="url"
|
||||||
spellcheck="false"
|
spellcheck="false"
|
||||||
class="md:rounded-bl-lg"
|
class="md:rounded-bl-lg"
|
||||||
|
:placeholder="$t('url')"
|
||||||
/>
|
/>
|
||||||
</li>
|
</li>
|
||||||
<div>
|
<div>
|
||||||
@@ -44,7 +45,13 @@
|
|||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<label for="mqtt-message">{{ $t("message") }}</label>
|
<label for="mqtt-message">{{ $t("message") }}</label>
|
||||||
<input id="mqtt-message" type="text" v-model="msg" spellcheck="false" />
|
<input
|
||||||
|
id="mqtt-message"
|
||||||
|
type="text"
|
||||||
|
v-model="msg"
|
||||||
|
spellcheck="false"
|
||||||
|
class="border-dashed md:border-l border-brdColor"
|
||||||
|
/>
|
||||||
</li>
|
</li>
|
||||||
<div>
|
<div>
|
||||||
<li>
|
<li>
|
||||||
|
|||||||
@@ -12,6 +12,7 @@
|
|||||||
v-model="url"
|
v-model="url"
|
||||||
@keyup.enter="urlValid ? toggleConnection() : null"
|
@keyup.enter="urlValid ? toggleConnection() : null"
|
||||||
class="md:rounded-bl-lg"
|
class="md:rounded-bl-lg"
|
||||||
|
:placeholder="$t('url')"
|
||||||
/>
|
/>
|
||||||
</li>
|
</li>
|
||||||
<div>
|
<div>
|
||||||
@@ -67,7 +68,12 @@
|
|||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
<ul v-for="(input, index) of communication.inputs" :key="`input-${index}`">
|
<ul
|
||||||
|
v-for="(input, index) of communication.inputs"
|
||||||
|
:key="`input-${index}`"
|
||||||
|
class="border-b border-dashed divide-x border-brdColor divide-dashed divide-brdColor"
|
||||||
|
:class="{ 'border-t': index == 0 }"
|
||||||
|
>
|
||||||
<li>
|
<li>
|
||||||
<input
|
<input
|
||||||
name="message"
|
name="message"
|
||||||
|
|||||||
@@ -11,6 +11,7 @@
|
|||||||
v-model="server"
|
v-model="server"
|
||||||
@keyup.enter="serverValid ? toggleSSEConnection() : null"
|
@keyup.enter="serverValid ? toggleSSEConnection() : null"
|
||||||
class="md:rounded-bl-lg"
|
class="md:rounded-bl-lg"
|
||||||
|
:placeholder="$t('url')"
|
||||||
/>
|
/>
|
||||||
</li>
|
</li>
|
||||||
<div>
|
<div>
|
||||||
|
|||||||
@@ -12,6 +12,7 @@
|
|||||||
v-model="url"
|
v-model="url"
|
||||||
@keyup.enter="urlValid ? toggleConnection() : null"
|
@keyup.enter="urlValid ? toggleConnection() : null"
|
||||||
class="md:rounded-bl-lg"
|
class="md:rounded-bl-lg"
|
||||||
|
:placeholder="$t('url')"
|
||||||
/>
|
/>
|
||||||
</li>
|
</li>
|
||||||
<div>
|
<div>
|
||||||
|
|||||||
@@ -13,6 +13,7 @@
|
|||||||
spellcheck="false"
|
spellcheck="false"
|
||||||
@keyup.enter="onPollSchemaClick()"
|
@keyup.enter="onPollSchemaClick()"
|
||||||
class="md:rounded-bl-lg"
|
class="md:rounded-bl-lg"
|
||||||
|
:placeholder="$t('url')"
|
||||||
/>
|
/>
|
||||||
</li>
|
</li>
|
||||||
<div>
|
<div>
|
||||||
@@ -51,7 +52,12 @@
|
|||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
<ul v-for="(header, index) in headers" :key="`${header.value}_${index}`">
|
<ul
|
||||||
|
v-for="(header, index) in headers"
|
||||||
|
:key="`${header.value}_${index}`"
|
||||||
|
class="border-b border-dashed divide-x border-brdColor divide-dashed divide-brdColor"
|
||||||
|
:class="{ 'border-t': index == 0 }"
|
||||||
|
>
|
||||||
<li>
|
<li>
|
||||||
<autocomplete
|
<autocomplete
|
||||||
:placeholder="$t('header_count', { count: index + 1 })"
|
:placeholder="$t('header_count', { count: index + 1 })"
|
||||||
@@ -70,7 +76,7 @@
|
|||||||
<li>
|
<li>
|
||||||
<input
|
<input
|
||||||
:placeholder="$t('value_count', { count: index + 1 })"
|
:placeholder="$t('value_count', { count: index + 1 })"
|
||||||
:name="'value' + index"
|
:name="`value ${index}`"
|
||||||
:value="header.value"
|
:value="header.value"
|
||||||
@change="
|
@change="
|
||||||
$store.commit('setGQLHeaderValue', {
|
$store.commit('setGQLHeaderValue', {
|
||||||
|
|||||||
@@ -40,7 +40,7 @@
|
|||||||
<input
|
<input
|
||||||
v-if="!this.$store.state.postwoman.settings.EXPERIMENTAL_URL_BAR_ENABLED"
|
v-if="!this.$store.state.postwoman.settings.EXPERIMENTAL_URL_BAR_ENABLED"
|
||||||
:class="{ error: !isValidURL }"
|
:class="{ error: !isValidURL }"
|
||||||
class="rounded-none"
|
class="border-dashed md:border-l border-brdColor"
|
||||||
@keyup.enter="isValidURL ? sendRequest() : null"
|
@keyup.enter="isValidURL ? sendRequest() : null"
|
||||||
id="url"
|
id="url"
|
||||||
name="url"
|
name="url"
|
||||||
@@ -77,13 +77,7 @@
|
|||||||
<ul>
|
<ul>
|
||||||
<li>
|
<li>
|
||||||
<label for="name" class="text-sm">{{ $t("token_req_name") }}</label>
|
<label for="name" class="text-sm">{{ $t("token_req_name") }}</label>
|
||||||
<input
|
<input id="name" name="name" type="text" v-model="name" class="text-sm" />
|
||||||
id="name"
|
|
||||||
name="name"
|
|
||||||
type="text"
|
|
||||||
v-model="name"
|
|
||||||
class="text-sm rounded-none"
|
|
||||||
/>
|
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
<div label="Request Body" v-if="['POST', 'PUT', 'PATCH', 'DELETE'].includes(method)">
|
<div label="Request Body" v-if="['POST', 'PUT', 'PATCH', 'DELETE'].includes(method)">
|
||||||
@@ -94,7 +88,7 @@
|
|||||||
:source="validContentTypes"
|
:source="validContentTypes"
|
||||||
:spellcheck="false"
|
:spellcheck="false"
|
||||||
v-model="contentType"
|
v-model="contentType"
|
||||||
styles="text-sm rounded-none"
|
styles="text-sm"
|
||||||
/>
|
/>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
@@ -174,11 +168,16 @@
|
|||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
<ul v-for="(param, index) in bodyParams" :key="index">
|
<ul
|
||||||
|
v-for="(param, index) in bodyParams"
|
||||||
|
:key="index"
|
||||||
|
class="border-b border-dashed divide-x border-brdColor divide-dashed divide-brdColor"
|
||||||
|
:class="{ 'border-t': index == 0 }"
|
||||||
|
>
|
||||||
<li>
|
<li>
|
||||||
<input
|
<input
|
||||||
:placeholder="'key ' + (index + 1)"
|
:placeholder="`key ${index + 1}`"
|
||||||
:name="'bparam' + index"
|
:name="`bparam ${index}`"
|
||||||
:value="param.key"
|
:value="param.key"
|
||||||
@change="
|
@change="
|
||||||
$store.commit('setKeyBodyParams', {
|
$store.commit('setKeyBodyParams', {
|
||||||
@@ -192,8 +191,8 @@
|
|||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<input
|
<input
|
||||||
:placeholder="'value ' + (index + 1)"
|
:placeholder="`value ${index + 1}`"
|
||||||
:id="'bvalue' + index"
|
:id="`bvalue ${index}`"
|
||||||
:name="'bvalue' + index"
|
:name="'bvalue' + index"
|
||||||
:value="param.value"
|
:value="param.value"
|
||||||
@change="
|
@change="
|
||||||
|
|||||||
@@ -127,6 +127,7 @@
|
|||||||
type="url"
|
type="url"
|
||||||
v-model="settings.PROXY_URL"
|
v-model="settings.PROXY_URL"
|
||||||
:disabled="!settings.PROXY_ENABLED"
|
:disabled="!settings.PROXY_ENABLED"
|
||||||
|
:placeholder="$t('url')"
|
||||||
/>
|
/>
|
||||||
<p class="info">
|
<p class="info">
|
||||||
{{ $t("postwoman_official_proxy_hosting") }}
|
{{ $t("postwoman_official_proxy_hosting") }}
|
||||||
|
|||||||
Reference in New Issue
Block a user