Merge branch 'master' of https://github.com/liyasthomas/postwoman
This commit is contained in:
@@ -17,7 +17,7 @@ $responsiveWidth: 720px;
|
||||
box-sizing: border-box;
|
||||
outline: 0;
|
||||
border: 0;
|
||||
font-family: 'Poppins', 'Roboto', 'Noto', sans-serif;
|
||||
font-family: "Poppins", "Roboto", "Noto", sans-serif;
|
||||
}
|
||||
|
||||
@keyframes fadein {
|
||||
@@ -42,7 +42,7 @@ body {
|
||||
color: var(--fg-color);
|
||||
font-weight: 500;
|
||||
line-height: 1.5;
|
||||
animation: fadein .2s;
|
||||
animation: fadein 0.2s;
|
||||
-webkit-tap-highlight-color: transparent;
|
||||
-webkit-touch-callout: none;
|
||||
-webkit-user-select: none;
|
||||
@@ -119,7 +119,8 @@ legend {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
fieldset textarea, fieldset pre {
|
||||
fieldset textarea,
|
||||
fieldset pre {
|
||||
resize: vertical;
|
||||
}
|
||||
|
||||
@@ -131,6 +132,7 @@ fieldset.blue legend {
|
||||
color: #57b5f9;
|
||||
}
|
||||
|
||||
<<<<<<< HEAD
|
||||
fieldset.gray {
|
||||
border-color: #9B9B9B;
|
||||
}
|
||||
@@ -235,7 +237,6 @@ ol li {
|
||||
}
|
||||
|
||||
@media (max-width: $responsiveWidth) {
|
||||
|
||||
ul,
|
||||
ol {
|
||||
flex-direction: column;
|
||||
@@ -250,3 +251,23 @@ ol li {
|
||||
#installPWA {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.info-response {
|
||||
background-color: #ffeb3b;
|
||||
}
|
||||
|
||||
.success-response {
|
||||
background-color: #66BB6A;
|
||||
}
|
||||
|
||||
.redir-response {
|
||||
background-color: #ff5722;
|
||||
}
|
||||
|
||||
.cl-error-response {
|
||||
background-color: #ef5350;
|
||||
}
|
||||
|
||||
.sv-error-response {
|
||||
background-color: #b71c1c;
|
||||
}
|
||||
@@ -128,7 +128,7 @@
|
||||
<ul>
|
||||
<li>
|
||||
<label for="status">status</label>
|
||||
<input name="status" type="text" readonly :value="response.status || '(waiting to send request)'">
|
||||
<input name="status" type="text" readonly :value="response.status || '(waiting to send request)'" :class="statusCategory ? statusCategory.className : ''">
|
||||
</li>
|
||||
</ul>
|
||||
<ul v-for="(value, key) in response.headers">
|
||||
@@ -223,6 +223,15 @@
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
statusCategory(){
|
||||
return [
|
||||
{name: 'informational', statusCodeRegex: new RegExp(/[1][0-9]+/), className: 'info-response'},
|
||||
{name: 'successful', statusCodeRegex: new RegExp(/[2][0-9]+/), className: 'success-response'},
|
||||
{name: 'redirection', statusCodeRegex: new RegExp(/[3][0-9]+/), className: 'redir-response'},
|
||||
{name: 'client error', statusCodeRegex: new RegExp(/[4][0-9]+/), className: 'cl-error-response'},
|
||||
{name: 'server error', statusCodeRegex: new RegExp(/[5][0-9]+/), className: 'sv-error-response'},
|
||||
].find(status => status.statusCodeRegex.test(this.response.status));
|
||||
},
|
||||
noHistoryToClear() {
|
||||
return this.history.length === 0;
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user