refactor: minor ui improvements

This commit is contained in:
liyasthomas
2021-12-14 22:41:07 +05:30
parent 70555cd4a6
commit a2757a0335
58 changed files with 289 additions and 110 deletions

View File

@@ -46,11 +46,16 @@
<SmartTab
:id="'preRequestScript'"
:label="`${$t('tab.pre_request_script')}`"
:indicator="preRequestScript.length > 0"
>
<HttpPreRequestScript />
</SmartTab>
<SmartTab :id="'tests'" :label="`${$t('tab.tests')}`">
<SmartTab
:id="'tests'"
:label="`${$t('tab.tests')}`"
:indicator="testScript.length > 0"
>
<HttpTests />
</SmartTab>
</SmartTabs>
@@ -129,6 +134,8 @@ import {
setRESTRequest,
setRESTAuth,
restAuth$,
useTestScript,
usePreRequestScript,
} from "~/newstore/RESTSession"
import { translateExtURLParams } from "~/helpers/RESTExtURLParams"
import {
@@ -211,6 +218,9 @@ export default defineComponent({
setup() {
const requestForSync = ref<HoppRESTRequest | null>(null)
const testScript = useTestScript()
const preRequestScript = usePreRequestScript()
const confirmSync = ref(false)
const syncRequest = () => {
@@ -247,6 +257,8 @@ export default defineComponent({
syncRequest,
oAuthURL,
requestForSync,
testScript,
preRequestScript,
}
},
})

View File

@@ -79,7 +79,7 @@
<h4 class="font-semibold text-secondaryDark">
{{ t("settings.profile") }}
</h4>
<div class="mt-1 text-secondaryLight">
<div class="my-1 text-secondaryLight">
{{ t("settings.profile_description") }}
</div>
<div class="py-4">
@@ -141,7 +141,7 @@
<h4 class="font-semibold text-secondaryDark">
{{ t("settings.sync") }}
</h4>
<div class="mt-1 text-secondaryLight">
<div class="my-1 text-secondaryLight">
{{ t("settings.sync_description") }}
</div>
<div class="space-y-4 py-4">

View File

@@ -6,7 +6,7 @@
<h3 class="heading">
{{ $t("settings.theme") }}
</h3>
<p class="mt-1 text-secondaryLight">
<p class="my-1 text-secondaryLight">
{{ $t("settings.theme_description") }}
</p>
</div>
@@ -15,7 +15,7 @@
<h4 class="font-semibold text-secondaryDark">
{{ $t("settings.background") }}
</h4>
<div class="mt-1 text-secondaryLight">
<div class="my-1 text-secondaryLight">
<ColorScheme placeholder="..." tag="span">
{{ $t(getColorModeName($colorMode.preference)) }}
<span v-if="$colorMode.preference === 'system'">
@@ -31,7 +31,7 @@
<h4 class="font-semibold text-secondaryDark">
{{ $t("settings.accent_color") }}
</h4>
<div class="mt-1 text-secondaryLight">
<div class="my-1 text-secondaryLight">
{{ active.charAt(0).toUpperCase() + active.slice(1) }}
</div>
<div class="mt-4">
@@ -58,7 +58,7 @@
<h4 class="font-semibold text-secondaryDark">
{{ $t("settings.experiments") }}
</h4>
<div class="mt-1 text-secondaryLight">
<div class="my-1 text-secondaryLight">
{{ $t("settings.experiments_notice") }}
<SmartLink
class="link"
@@ -105,7 +105,7 @@
<h3 class="heading">
{{ $t("settings.interceptor") }}
</h3>
<p class="mt-1 text-secondaryLight">
<p class="my-1 text-secondaryLight">
{{ $t("settings.interceptor_description") }}
</p>
</div>
@@ -114,7 +114,7 @@
<h4 class="font-semibold text-secondaryDark">
{{ $t("settings.extensions") }}
</h4>
<div class="mt-1 text-secondaryLight">
<div class="my-1 text-secondaryLight">
<span v-if="extensionVersion != null">
{{
`${$t("settings.extension_version")}: v${
@@ -166,7 +166,7 @@
<h4 class="font-semibold text-secondaryDark">
{{ $t("settings.proxy") }}
</h4>
<div class="mt-1 text-secondaryLight">
<div class="my-1 text-secondaryLight">
{{
`${$t("settings.official_proxy_hosting")} ${$t(
"settings.read_the"