chore(refactor): removed absolute codes
This commit is contained in:
@@ -1,10 +1,8 @@
|
|||||||
<template>
|
<template>
|
||||||
<pw-section class="green" icon="history" :label="$t('environments')" ref="environments" no-legend>
|
<pw-section class="green" icon="history" :label="$t('environments')" ref="environments" no-legend>
|
||||||
<div class="show-on-large-screen">
|
<div class="show-on-large-screen">
|
||||||
<!-- <label for="currentEnvironment">{{ $t("select_environment") }}</label> -->
|
|
||||||
<span class="select-wrapper">
|
<span class="select-wrapper">
|
||||||
<select
|
<select
|
||||||
id="currentEnvironment"
|
|
||||||
v-model="selectedEnvironmentIndex"
|
v-model="selectedEnvironmentIndex"
|
||||||
:disabled="environments.length == 0"
|
:disabled="environments.length == 0"
|
||||||
class="rounded-t-lg"
|
class="rounded-t-lg"
|
||||||
|
|||||||
@@ -39,7 +39,6 @@
|
|||||||
<button
|
<button
|
||||||
class="icon"
|
class="icon"
|
||||||
@click="copyRequestCode"
|
@click="copyRequestCode"
|
||||||
id="copyRequestCode"
|
|
||||||
ref="copyRequestCode"
|
ref="copyRequestCode"
|
||||||
v-tooltip="$t('copy_code')"
|
v-tooltip="$t('copy_code')"
|
||||||
>
|
>
|
||||||
|
|||||||
@@ -11,7 +11,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div slot="body" class="flex flex-col">
|
<div slot="body" class="flex flex-col">
|
||||||
<textarea id="import-curl" autofocus rows="8" :placeholder="$t('enter_curl')"></textarea>
|
<textarea autofocus rows="8" :placeholder="$t('enter_curl')"></textarea>
|
||||||
</div>
|
</div>
|
||||||
<div slot="footer">
|
<div slot="footer">
|
||||||
<div class="row-wrapper">
|
<div class="row-wrapper">
|
||||||
|
|||||||
@@ -12,7 +12,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div slot="body" class="flex flex-col">
|
<div slot="body" class="flex flex-col">
|
||||||
<div class="row-wrapper">
|
<div class="row-wrapper">
|
||||||
<label for="token-list">{{ $t("token_list") }}</label>
|
<label>{{ $t("token_list") }}</label>
|
||||||
<div v-if="tokens.length != 0">
|
<div v-if="tokens.length != 0">
|
||||||
<button
|
<button
|
||||||
class="icon"
|
class="icon"
|
||||||
@@ -23,7 +23,7 @@
|
|||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<ul id="token-list" v-for="(token, index) in tokens" :key="index">
|
<ul v-for="(token, index) in tokens" :key="index">
|
||||||
<li>
|
<li>
|
||||||
<input
|
<input
|
||||||
:placeholder="`name ${index + 1}`"
|
:placeholder="`name ${index + 1}`"
|
||||||
|
|||||||
@@ -66,7 +66,6 @@
|
|||||||
<div>
|
<div>
|
||||||
<button
|
<button
|
||||||
class="icon"
|
class="icon"
|
||||||
:id="'use-button#' + index"
|
|
||||||
@click="useHistory(entry)"
|
@click="useHistory(entry)"
|
||||||
:aria-label="$t('edit')"
|
:aria-label="$t('edit')"
|
||||||
v-close-popover
|
v-close-popover
|
||||||
@@ -78,7 +77,6 @@
|
|||||||
<div>
|
<div>
|
||||||
<button
|
<button
|
||||||
class="icon"
|
class="icon"
|
||||||
:id="'delete-button#' + index"
|
|
||||||
@click="deleteHistory(entry)"
|
@click="deleteHistory(entry)"
|
||||||
:aria-label="$t('delete')"
|
:aria-label="$t('delete')"
|
||||||
v-close-popover
|
v-close-popover
|
||||||
@@ -146,12 +144,7 @@
|
|||||||
</p>
|
</p>
|
||||||
<div v-if="history.length !== 0" class="rounded-b-lg bg-bgDarkColor">
|
<div v-if="history.length !== 0" class="rounded-b-lg bg-bgDarkColor">
|
||||||
<div class="row-wrapper" v-if="!isClearingHistory">
|
<div class="row-wrapper" v-if="!isClearingHistory">
|
||||||
<button
|
<button class="icon" :disabled="history.length === 0" @click="enableHistoryClearing">
|
||||||
class="icon"
|
|
||||||
id="clear-history-button"
|
|
||||||
:disabled="history.length === 0"
|
|
||||||
@click="enableHistoryClearing"
|
|
||||||
>
|
|
||||||
<i class="material-icons">clear_all</i>
|
<i class="material-icons">clear_all</i>
|
||||||
<span>{{ $t("clear_all") }}</span>
|
<span>{{ $t("clear_all") }}</span>
|
||||||
</button>
|
</button>
|
||||||
@@ -208,24 +201,12 @@
|
|||||||
</v-popover>
|
</v-popover>
|
||||||
</div>
|
</div>
|
||||||
<div class="row-wrapper" v-else>
|
<div class="row-wrapper" v-else>
|
||||||
<p for="clear-history-button" class="info">
|
<p class="info"><i class="material-icons">help_outline</i> {{ $t("are_you_sure") }}</p>
|
||||||
<i class="material-icons">help_outline</i> {{ $t("are_you_sure") }}
|
|
||||||
</p>
|
|
||||||
<div>
|
<div>
|
||||||
<button
|
<button class="icon" @click="clearHistory" v-tooltip="$t('yes')">
|
||||||
class="icon"
|
|
||||||
id="confirm-clear-history-button"
|
|
||||||
@click="clearHistory"
|
|
||||||
v-tooltip="$t('yes')"
|
|
||||||
>
|
|
||||||
<i class="material-icons">done</i>
|
<i class="material-icons">done</i>
|
||||||
</button>
|
</button>
|
||||||
<button
|
<button class="icon" @click="disableHistoryClearing" v-tooltip="$t('no')">
|
||||||
class="icon"
|
|
||||||
id="reject-clear-history-button"
|
|
||||||
@click="disableHistoryClearing"
|
|
||||||
v-tooltip="$t('no')"
|
|
||||||
>
|
|
||||||
<i class="material-icons">close</i>
|
<i class="material-icons">close</i>
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -89,7 +89,6 @@
|
|||||||
class="icon"
|
class="icon"
|
||||||
@click="removeCommunicationInput({ index })"
|
@click="removeCommunicationInput({ index })"
|
||||||
v-tooltip.bottom="$t('delete')"
|
v-tooltip.bottom="$t('delete')"
|
||||||
:id="`delete-socketio-message-${index}`"
|
|
||||||
>
|
>
|
||||||
<i class="material-icons">delete</i>
|
<i class="material-icons">delete</i>
|
||||||
</button>
|
</button>
|
||||||
|
|||||||
@@ -93,7 +93,6 @@
|
|||||||
class="icon"
|
class="icon"
|
||||||
@click="removeRequestHeader(index)"
|
@click="removeRequestHeader(index)"
|
||||||
v-tooltip.bottom="$t('delete')"
|
v-tooltip.bottom="$t('delete')"
|
||||||
id="header"
|
|
||||||
>
|
>
|
||||||
<i class="material-icons">delete</i>
|
<i class="material-icons">delete</i>
|
||||||
</button>
|
</button>
|
||||||
@@ -165,7 +164,6 @@
|
|||||||
class="rounded-b-lg missing-data-response"
|
class="rounded-b-lg missing-data-response"
|
||||||
:value="$t('waiting_receive_schema')"
|
:value="$t('waiting_receive_schema')"
|
||||||
ref="status"
|
ref="status"
|
||||||
id="status"
|
|
||||||
name="status"
|
name="status"
|
||||||
readonly
|
readonly
|
||||||
type="text"
|
type="text"
|
||||||
@@ -281,7 +279,6 @@
|
|||||||
class="rounded-b-lg missing-data-response"
|
class="rounded-b-lg missing-data-response"
|
||||||
:value="$t('waiting_receive_response')"
|
:value="$t('waiting_receive_response')"
|
||||||
ref="status"
|
ref="status"
|
||||||
id="status"
|
|
||||||
name="status"
|
name="status"
|
||||||
readonly
|
readonly
|
||||||
type="text"
|
type="text"
|
||||||
@@ -334,11 +331,7 @@
|
|||||||
:label="$t('types')"
|
:label="$t('types')"
|
||||||
ref="typesTab"
|
ref="typesTab"
|
||||||
>
|
>
|
||||||
<div
|
<div v-for="type in filteredGraphqlTypes" :key="type.name">
|
||||||
v-for="type in filteredGraphqlTypes"
|
|
||||||
:key="type.name"
|
|
||||||
:id="`type_${type.name}`"
|
|
||||||
>
|
|
||||||
<type
|
<type
|
||||||
:gqlType="type"
|
:gqlType="type"
|
||||||
:isHighlighted="isGqlTypeHighlighted({ gqlType: type })"
|
:isHighlighted="isGqlTypeHighlighted({ gqlType: type })"
|
||||||
|
|||||||
Reference in New Issue
Block a user