From e2fc0564884d07f78706281c60dc3fc978c39ab7 Mon Sep 17 00:00:00 2001 From: liyasthomas Date: Sat, 31 Jul 2021 23:58:34 +0530 Subject: [PATCH] feat: make smart url feild the default input --- components/button/Primary.vue | 2 +- components/http/Request.vue | 17 +++++++++++-- components/smart/UrlField.vue | 47 +++++++++++++++++++++++++++++------ newstore/settings.ts | 2 +- 4 files changed, 57 insertions(+), 11 deletions(-) diff --git a/components/button/Primary.vue b/components/button/Primary.vue index 7f141fab4..4f459a910 100644 --- a/components/button/Primary.vue +++ b/components/button/Primary.vue @@ -15,7 +15,7 @@ :class="[ color ? `text-${color}-800 bg-${color}-200 hover:text-${color}-900 hover:bg-${color}-300 focus:text-${color}-900 focus:bg-${color}-300` - : `text-primary bg-accent hover:bg-accentDark focus:bg-accentDark`, + : `text-white bg-accent hover:bg-accentDark focus:bg-accentDark`, label ? 'px-4' : 'px-2', rounded ? 'rounded-full' : 'rounded', { 'opacity-75 cursor-not-allowed': disabled }, diff --git a/components/http/Request.vue b/components/http/Request.vue index 2903ccf23..4e789cd4f 100644 --- a/components/http/Request.vue +++ b/components/http/Request.vue @@ -30,7 +30,6 @@ focus:outline-none focus:border-accent " :value="newMethod" - autofocus readonly /> @@ -45,7 +44,13 @@
+
-
diff --git a/components/smart/UrlField.vue b/components/smart/UrlField.vue index f6b3959d8..160d63959 100644 --- a/components/smart/UrlField.vue +++ b/components/smart/UrlField.vue @@ -5,7 +5,13 @@ @@ -35,7 +41,7 @@ export default { highlight: [ { text: /(<<\w+>>)/g, - style: "VAR", + style: "text-white bg-accentDark rounded px-1.5 py-0.5 mx-0.5", }, ], highlightEnabled: true, @@ -389,18 +395,45 @@ export default { } -