💄 Updating the UI and style files
This commit is contained in:
@@ -387,6 +387,10 @@ h3.title {
|
|||||||
color: var(--fg-light-color);
|
color: var(--fg-light-color);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.bg-color {
|
||||||
|
background-color: transparent;
|
||||||
|
}
|
||||||
|
|
||||||
button {
|
button {
|
||||||
display: inline-flex;
|
display: inline-flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
|||||||
@@ -38,10 +38,6 @@
|
|||||||
.virtual-list {
|
.virtual-list {
|
||||||
max-height: calc(100vh - 288px);
|
max-height: calc(100vh - 288px);
|
||||||
}
|
}
|
||||||
|
|
||||||
.bg-color {
|
|
||||||
background-color: transparent;
|
|
||||||
}
|
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
|||||||
@@ -314,10 +314,6 @@ ol li {
|
|||||||
padding: 0 0 8px;
|
padding: 0 0 8px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.bg-color {
|
|
||||||
background-color: transparent;
|
|
||||||
}
|
|
||||||
|
|
||||||
@media (max-width: 720px) {
|
@media (max-width: 720px) {
|
||||||
.virtual-list.filled {
|
.virtual-list.filled {
|
||||||
min-height: 320px;
|
min-height: 320px;
|
||||||
|
|||||||
@@ -28,8 +28,8 @@
|
|||||||
v-model="preRequestScript"
|
v-model="preRequestScript"
|
||||||
:lang="'javascript'"
|
:lang="'javascript'"
|
||||||
:options="{
|
:options="{
|
||||||
maxLines: responseBodyMaxLines,
|
maxLines: '16',
|
||||||
minLines: '16',
|
minLines: '8',
|
||||||
fontSize: '16px',
|
fontSize: '16px',
|
||||||
autoScrollEditorIntoView: true,
|
autoScrollEditorIntoView: true,
|
||||||
showPrintMargin: false,
|
showPrintMargin: false,
|
||||||
@@ -359,29 +359,42 @@
|
|||||||
v-model="testScript"
|
v-model="testScript"
|
||||||
:lang="'javascript'"
|
:lang="'javascript'"
|
||||||
:options="{
|
:options="{
|
||||||
maxLines: responseBodyMaxLines,
|
maxLines: '16',
|
||||||
minLines: '16',
|
minLines: '8',
|
||||||
fontSize: '16px',
|
fontSize: '16px',
|
||||||
autoScrollEditorIntoView: true,
|
autoScrollEditorIntoView: true,
|
||||||
showPrintMargin: false,
|
showPrintMargin: false,
|
||||||
useWorker: false
|
useWorker: false
|
||||||
}"
|
}"
|
||||||
/>
|
/>
|
||||||
<label>Test Reports<span v-if="testReports"></span></label>
|
|
||||||
<div v-if="testReports">
|
<div v-if="testReports">
|
||||||
|
<div class="flex-wrap">
|
||||||
|
<label>Test Reports</label>
|
||||||
|
<div>
|
||||||
|
<button
|
||||||
|
class="icon"
|
||||||
|
@click="clearContent('tests', $event)"
|
||||||
|
v-tooltip.bottom="$t('clear')"
|
||||||
|
>
|
||||||
|
<i class="material-icons">clear_all</i>
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
<div v-for="testReport in testReports">
|
<div v-for="testReport in testReports">
|
||||||
<div v-if="testReport.result">
|
<div v-if="testReport.result" class="flex-wrap">
|
||||||
<span :class="testReport.styles.class">
|
<span :class="testReport.styles.class" class="info">
|
||||||
<i class="material-icons">
|
<i class="material-icons">
|
||||||
{{ testReport.styles.icon }}
|
{{ testReport.styles.icon }}
|
||||||
</i>
|
</i>
|
||||||
{{ testReport.result }}
|
<span> {{ testReport.result }}</span>
|
||||||
</span>
|
</span>
|
||||||
<ul v-if="testReport.message">
|
<ul v-if="testReport.message">
|
||||||
<li>{{ testReport.message }}</li>
|
<li>
|
||||||
|
<label>{{ testReport.message }}</label>
|
||||||
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
<div v-else-if="testReport.startBlock">
|
<div v-else-if="testReport.startBlock" class="info">
|
||||||
<h4>{{ testReport.startBlock }}</h4>
|
<h4>{{ testReport.startBlock }}</h4>
|
||||||
</div>
|
</div>
|
||||||
<div v-else-if="testReport.endBlock"><br /></div>
|
<div v-else-if="testReport.endBlock"><br /></div>
|
||||||
@@ -2605,6 +2618,9 @@ export default {
|
|||||||
break;
|
break;
|
||||||
case "tokenReqs":
|
case "tokenReqs":
|
||||||
this.tokenReqs = [];
|
this.tokenReqs = [];
|
||||||
|
case "tests":
|
||||||
|
this.testReports = null;
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
(this.label = ""),
|
(this.label = ""),
|
||||||
(this.method = "GET"),
|
(this.method = "GET"),
|
||||||
|
|||||||
@@ -172,7 +172,7 @@
|
|||||||
<label for="url">{{ $t("url") }}</label>
|
<label for="url">{{ $t("url") }}</label>
|
||||||
<button
|
<button
|
||||||
class="icon"
|
class="icon"
|
||||||
@click="settings.PROXY_URL = `https://postwoman.apollotv.xyz/`"
|
@click="resetProxy"
|
||||||
v-tooltip.bottom="$t('reset_default')"
|
v-tooltip.bottom="$t('reset_default')"
|
||||||
>
|
>
|
||||||
<i class="material-icons">clear_all</i>
|
<i class="material-icons">clear_all</i>
|
||||||
@@ -326,6 +326,7 @@ export default {
|
|||||||
PROXY_KEY: this.$store.state.postwoman.settings.PROXY_KEY || ""
|
PROXY_KEY: this.$store.state.postwoman.settings.PROXY_KEY || ""
|
||||||
},
|
},
|
||||||
|
|
||||||
|
doneButton: '<i class="material-icons">done</i>',
|
||||||
fb
|
fb
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
@@ -456,6 +457,17 @@ export default {
|
|||||||
initSettings() {
|
initSettings() {
|
||||||
fb.writeSettings("syncHistory", true);
|
fb.writeSettings("syncHistory", true);
|
||||||
fb.writeSettings("syncCollections", false);
|
fb.writeSettings("syncCollections", false);
|
||||||
|
},
|
||||||
|
resetProxy(e) {
|
||||||
|
this.settings.PROXY_URL = `https://postwoman.apollotv.xyz/`;
|
||||||
|
e.target.innerHTML = this.doneButton;
|
||||||
|
this.$toast.info(this.$t("cleared"), {
|
||||||
|
icon: "clear_all"
|
||||||
|
});
|
||||||
|
setTimeout(
|
||||||
|
() => (e.target.innerHTML = '<i class="material-icons">clear_all</i>'),
|
||||||
|
1000
|
||||||
|
);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user