🔥 Better boolean conditions
This commit is contained in:
@@ -409,7 +409,7 @@ button {
|
|||||||
&:not([disabled]):focus {
|
&:not([disabled]):focus {
|
||||||
color: var(--act-color);
|
color: var(--act-color);
|
||||||
fill: var(--act-color);
|
fill: var(--act-color);
|
||||||
box-shadow: 0 0 0 2px var(--fg-color);
|
box-shadow: inset 0 0 0 2px var(--fg-color);
|
||||||
transition: all 0.2s ease-in-out;
|
transition: all 0.2s ease-in-out;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
2
build.js
2
build.js
@@ -21,7 +21,7 @@ try {
|
|||||||
|
|
||||||
let version = {};
|
let version = {};
|
||||||
// Get the current version name as the tag from Git.
|
// Get the current version name as the tag from Git.
|
||||||
version.name = process.env.TRAVIS_TAG || runCommand("git", ["tag"]);
|
version.name = process.env.TRAVIS_TAG || runCommand("git", ["tag --sort=committerdate | tail -1"]);
|
||||||
|
|
||||||
// FALLBACK: If version.name was unset, let's grab it from GitHub.
|
// FALLBACK: If version.name was unset, let's grab it from GitHub.
|
||||||
if (!version.name) {
|
if (!version.name) {
|
||||||
|
|||||||
@@ -230,7 +230,7 @@
|
|||||||
v-tooltip.bottom="{ content: isHidden ? 'Show Code' : 'Hide Code'}"
|
v-tooltip.bottom="{ content: isHidden ? 'Show Code' : 'Hide Code'}"
|
||||||
>
|
>
|
||||||
<i class="material-icons" v-if="isHidden">flash_on</i>
|
<i class="material-icons" v-if="isHidden">flash_on</i>
|
||||||
<i class="material-icons" v-if="!isHidden">flash_off</i>
|
<i class="material-icons" v-else>flash_off</i>
|
||||||
</button>
|
</button>
|
||||||
<button
|
<button
|
||||||
:class="'icon' + (showPreRequestScript ? ' info-response' : '')"
|
:class="'icon' + (showPreRequestScript ? ' info-response' : '')"
|
||||||
@@ -246,7 +246,7 @@
|
|||||||
<i
|
<i
|
||||||
class="material-icons"
|
class="material-icons"
|
||||||
:class="showPreRequestScript"
|
:class="showPreRequestScript"
|
||||||
v-if="showPreRequestScript"
|
v-else
|
||||||
>close</i>
|
>close</i>
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
@@ -373,7 +373,7 @@
|
|||||||
</li>
|
</li>
|
||||||
</div>
|
</div>
|
||||||
</ul>
|
</ul>
|
||||||
<ul v-if="auth === 'Bearer Token'">
|
<ul v-else-if="auth === 'Bearer Token'">
|
||||||
<li>
|
<li>
|
||||||
<input placeholder="Token" name="bearer_token" v-model="bearerToken" />
|
<input placeholder="Token" name="bearer_token" v-model="bearerToken" />
|
||||||
</li>
|
</li>
|
||||||
@@ -586,7 +586,7 @@
|
|||||||
<div class="align-right" v-if="response.body && responseType === 'text/html'">
|
<div class="align-right" v-if="response.body && responseType === 'text/html'">
|
||||||
<button class="icon" @click.prevent="togglePreview">
|
<button class="icon" @click.prevent="togglePreview">
|
||||||
<i class="material-icons" v-if="!previewEnabled">visibility</i>
|
<i class="material-icons" v-if="!previewEnabled">visibility</i>
|
||||||
<i class="material-icons" v-if="previewEnabled">visibility_off</i>
|
<i class="material-icons" v-else>visibility_off</i>
|
||||||
<span>{{ previewEnabled ? 'Hide Preview' : 'Preview HTML' }}</span>
|
<span>{{ previewEnabled ? 'Hide Preview' : 'Preview HTML' }}</span>
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user