diff --git a/README.md b/README.md
index 047d83fb9..b3651ca3a 100644
--- a/README.md
+++ b/README.md
@@ -103,8 +103,8 @@
---
-- Choose theme: System, Light, Dark (default) and Black
-- Choose accent color: Blue, Green (default), Teal, Indigo, Purple, Orange, Pink, Red, and Yellow
+- Choose theme: System (default), Light, Dark and Black
+- Choose accent color: Green (default), Teal, Blue, Indigo, Purple, Yellow, Orange, Red and Pink
- Toggle auto-scroll to response
diff --git a/assets/scss/styles.scss b/assets/scss/styles.scss
index 9a3728ed7..b03f6aaf1 100644
--- a/assets/scss/styles.scss
+++ b/assets/scss/styles.scss
@@ -85,7 +85,6 @@ a {
@apply text-current;
@apply no-underline;
@apply outline-none;
- @apply focus-visible:(ring ring-inset ring-accent);
@apply transition;
&.link {
@@ -94,6 +93,7 @@ a {
@apply -mx-2 -my-1;
@apply text-accent;
@apply hover:text-accentDark;
+ @apply focus-visible:(ring ring-inset ring-accent);
}
}
@@ -265,19 +265,19 @@ input[type="checkbox"] {
}
.info-response {
- @apply text-pink-400;
+ @apply text-pink-500;
}
.success-response {
- @apply text-green-400;
+ @apply text-green-500;
}
.redir-response {
- @apply text-yellow-400;
+ @apply text-yellow-500;
}
.cl-error-response {
- @apply text-red-400;
+ @apply text-red-500;
}
.sv-error-response {
diff --git a/assets/scss/themes.scss b/assets/scss/themes.scss
index f84ca5d46..703f44f0b 100644
--- a/assets/scss/themes.scss
+++ b/assets/scss/themes.scss
@@ -85,21 +85,6 @@
--editor-theme: "twilight";
}
-@mixin blueTheme {
- // Accent color
- --accent-color: theme("colors.blue.500");
- // Light Accent color
- --accent-light-color: theme("colors.blue.400");
- // Dark Accent color
- --accent-dark-color: theme("colors.blue.600");
- // Gradient from
- --gradient-from-color: theme("colors.blue.200");
- // Gradient via
- --gradient-via-color: theme("colors.blue.400");
- // Gradient to
- --gradient-to-color: theme("colors.blue.600");
-}
-
@mixin greenTheme {
// Accent color
--accent-color: theme("colors.green.500");
@@ -130,6 +115,21 @@
--gradient-to-color: theme("colors.teal.600");
}
+@mixin blueTheme {
+ // Accent color
+ --accent-color: theme("colors.blue.500");
+ // Light Accent color
+ --accent-light-color: theme("colors.blue.400");
+ // Dark Accent color
+ --accent-dark-color: theme("colors.blue.600");
+ // Gradient from
+ --gradient-from-color: theme("colors.blue.200");
+ // Gradient via
+ --gradient-via-color: theme("colors.blue.400");
+ // Gradient to
+ --gradient-to-color: theme("colors.blue.600");
+}
+
@mixin indigoTheme {
// Accent color
--accent-color: theme("colors.indigo.500");
@@ -160,6 +160,21 @@
--gradient-to-color: theme("colors.purple.600");
}
+@mixin yellowTheme {
+ // Accent color
+ --accent-color: theme("colors.yellow.500");
+ // Light Accent color
+ --accent-light-color: theme("colors.yellow.400");
+ // Dark Accent color
+ --accent-dark-color: theme("colors.yellow.600");
+ // Gradient from
+ --gradient-from-color: theme("colors.yellow.200");
+ // Gradient via
+ --gradient-via-color: theme("colors.yellow.400");
+ // Gradient to
+ --gradient-to-color: theme("colors.yellow.600");
+}
+
@mixin orangeTheme {
// Accent color
--accent-color: theme("colors.orange.500");
@@ -175,21 +190,6 @@
--gradient-to-color: theme("colors.orange.600");
}
-@mixin pinkTheme {
- // Accent color
- --accent-color: theme("colors.pink.500");
- // Light Accent color
- --accent-light-color: theme("colors.pink.400");
- // Dark Accent color
- --accent-dark-color: theme("colors.pink.600");
- // Gradient from
- --gradient-from-color: theme("colors.pink.200");
- // Gradient via
- --gradient-via-color: theme("colors.pink.400");
- // Gradient to
- --gradient-to-color: theme("colors.pink.600");
-}
-
@mixin redTheme {
// Accent color
--accent-color: theme("colors.red.500");
@@ -205,19 +205,19 @@
--gradient-to-color: theme("colors.red.600");
}
-@mixin yellowTheme {
+@mixin pinkTheme {
// Accent color
- --accent-color: theme("colors.yellow.500");
+ --accent-color: theme("colors.pink.500");
// Light Accent color
- --accent-light-color: theme("colors.yellow.400");
+ --accent-light-color: theme("colors.pink.400");
// Dark Accent color
- --accent-dark-color: theme("colors.yellow.600");
+ --accent-dark-color: theme("colors.pink.600");
// Gradient from
- --gradient-from-color: theme("colors.yellow.200");
+ --gradient-from-color: theme("colors.pink.200");
// Gradient via
- --gradient-via-color: theme("colors.yellow.400");
+ --gradient-via-color: theme("colors.pink.400");
// Gradient to
- --gradient-to-color: theme("colors.yellow.600");
+ --gradient-to-color: theme("colors.pink.600");
}
:root {
diff --git a/components/app/Shortcuts.vue b/components/app/Shortcuts.vue
index 063517ef4..c9165fd28 100644
--- a/components/app/Shortcuts.vue
+++ b/components/app/Shortcuts.vue
@@ -14,7 +14,7 @@
justify-between
"
>
-
{{ $t("shortcuts") }}
+ {{ $t("shortcuts") }}
@@ -39,7 +39,7 @@
{{ map.section }}
diff --git a/components/button/Primary.vue b/components/button/Primary.vue
index 4f459a910..7f141fab4 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-white bg-accent hover:bg-accentDark focus:bg-accentDark`,
+ : `text-primary 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/button/Secondary.vue b/components/button/Secondary.vue
index 1b29e5d1d..9b25b4344 100644
--- a/components/button/Secondary.vue
+++ b/components/button/Secondary.vue
@@ -15,7 +15,7 @@
"
:class="[
color
- ? `text-${color}-400 hover:text-${color}-600 focus:text-${color}-600`
+ ? `text-${color}-500 hover:text-${color}-600 focus:text-${color}-600`
: 'text-secondary hover:text-secondaryDark focus:text-secondaryDark',
label ? 'px-4' : 'px-2',
rounded ? 'rounded-full' : 'rounded',
diff --git a/components/collections/graphql/Collection.vue b/components/collections/graphql/Collection.vue
index 8b3708d33..0777dedd2 100644
--- a/components/collections/graphql/Collection.vue
+++ b/components/collections/graphql/Collection.vue
@@ -13,7 +13,7 @@
class="cursor-pointer flex w-10 justify-center items-center truncate"
@click="toggleShowChildren()"
>
-
+
{{ getCollectionIcon }}
diff --git a/components/collections/graphql/Folder.vue b/components/collections/graphql/Folder.vue
index 0602c26c8..ae472152d 100644
--- a/components/collections/graphql/Folder.vue
+++ b/components/collections/graphql/Folder.vue
@@ -13,7 +13,7 @@
class="cursor-pointer flex w-10 justify-center items-center truncate"
@click="toggleShowChildren()"
>
-
+
{{ getCollectionIcon }}
diff --git a/components/collections/graphql/Request.vue b/components/collections/graphql/Request.vue
index 91f0b3114..ae710b33e 100644
--- a/components/collections/graphql/Request.vue
+++ b/components/collections/graphql/Request.vue
@@ -21,7 +21,7 @@
"
@click="!doc ? selectRequest() : {}"
>
-
+
{{ isSelected ? "check_circle" : "description" }}
diff --git a/components/collections/graphql/index.vue b/components/collections/graphql/index.vue
index 1d21a59f5..1e9d73e13 100644
--- a/components/collections/graphql/index.vue
+++ b/components/collections/graphql/index.vue
@@ -70,6 +70,7 @@
diff --git a/components/collections/index.vue b/components/collections/index.vue
index 403320f96..8adfb0ef4 100644
--- a/components/collections/index.vue
+++ b/components/collections/index.vue
@@ -113,9 +113,11 @@
disabled
:title="$t('disable_new_collection')"
:label="$t('add_new')"
+ outline
/>
diff --git a/components/collections/my/Collection.vue b/components/collections/my/Collection.vue
index 070e6438c..97a4239f3 100644
--- a/components/collections/my/Collection.vue
+++ b/components/collections/my/Collection.vue
@@ -13,7 +13,7 @@
class="cursor-pointer flex w-10 justify-center items-center truncate"
@click="toggleShowChildren()"
>
-
+
{{ getCollectionIcon }}
diff --git a/components/collections/my/Folder.vue b/components/collections/my/Folder.vue
index 321780172..ef3c9a156 100644
--- a/components/collections/my/Folder.vue
+++ b/components/collections/my/Folder.vue
@@ -13,7 +13,7 @@
class="cursor-pointer flex w-10 justify-center items-center truncate"
@click="toggleShowChildren()"
>
-
+
{{ getCollectionIcon }}
diff --git a/components/collections/my/Request.vue b/components/collections/my/Request.vue
index 2721dd361..eac9156d4 100644
--- a/components/collections/my/Request.vue
+++ b/components/collections/my/Request.vue
@@ -25,7 +25,7 @@
check_circle
@@ -128,11 +128,11 @@ export default {
return {
dragging: false,
requestMethodLabels: {
- get: "text-green-400",
- post: "text-yellow-400",
- put: "text-blue-400",
- delete: "text-red-400",
- default: "text-gray-400",
+ get: "text-green-500",
+ post: "text-yellow-500",
+ put: "text-blue-500",
+ delete: "text-red-500",
+ default: "text-gray-500",
},
confirmRemove: false,
}
diff --git a/components/collections/teams/Collection.vue b/components/collections/teams/Collection.vue
index 668ae1085..78d589fb8 100644
--- a/components/collections/teams/Collection.vue
+++ b/components/collections/teams/Collection.vue
@@ -5,7 +5,7 @@
class="cursor-pointer flex w-10 justify-center items-center truncate"
@click="toggleShowChildren()"
>
-
+
{{ getCollectionIcon }}
diff --git a/components/collections/teams/Folder.vue b/components/collections/teams/Folder.vue
index aac16d222..4fe8bec54 100644
--- a/components/collections/teams/Folder.vue
+++ b/components/collections/teams/Folder.vue
@@ -5,7 +5,7 @@
class="cursor-pointer flex w-10 justify-center items-center truncate"
@click="toggleShowChildren()"
>
-
+
{{ getCollectionIcon }}
diff --git a/components/collections/teams/Request.vue b/components/collections/teams/Request.vue
index 77c1a3f0e..220c8934d 100644
--- a/components/collections/teams/Request.vue
+++ b/components/collections/teams/Request.vue
@@ -18,7 +18,7 @@
check_circle
@@ -119,11 +119,11 @@ export default {
data() {
return {
requestMethodLabels: {
- get: "text-green-400",
- post: "text-yellow-400",
- put: "text-blue-400",
- delete: "text-red-400",
- default: "text-gray-400",
+ get: "text-green-500",
+ post: "text-yellow-500",
+ put: "text-blue-500",
+ delete: "text-red-500",
+ default: "text-gray-500",
},
confirmRemove: false,
}
diff --git a/components/environments/index.vue b/components/environments/index.vue
index fc7091d7e..9c55f63b9 100644
--- a/components/environments/index.vue
+++ b/components/environments/index.vue
@@ -68,6 +68,7 @@
diff --git a/components/http/Headers.vue b/components/http/Headers.vue
index 43837c94d..3dde2892b 100644
--- a/components/http/Headers.vue
+++ b/components/http/Headers.vue
@@ -148,7 +148,11 @@
{{ $t("headers_empty") }}
-
+
diff --git a/components/http/Parameters.vue b/components/http/Parameters.vue
index de2839d19..9a26a63de 100644
--- a/components/http/Parameters.vue
+++ b/components/http/Parameters.vue
@@ -169,7 +169,11 @@
{{ $t("parameters_empty") }}
-
+
diff --git a/components/http/Request.vue b/components/http/Request.vue
index 5ffb98f59..71fe01ec7 100644
--- a/components/http/Request.vue
+++ b/components/http/Request.vue
@@ -91,9 +91,8 @@
diff --git a/components/http/ResponseMeta.vue b/components/http/ResponseMeta.vue
index 1d328c601..d0907418f 100644
--- a/components/http/ResponseMeta.vue
+++ b/components/http/ResponseMeta.vue
@@ -5,15 +5,20 @@
class="
flex flex-col flex-1
text-secondaryLight
- p-4
items-center
justify-center
"
>
send
-
+
{{ $t("waiting_send_req") }}
+
diff --git a/components/realtime/Websocket.vue b/components/realtime/Websocket.vue
index 0b5351344..04ae26031 100644
--- a/components/realtime/Websocket.vue
+++ b/components/realtime/Websocket.vue
@@ -256,6 +256,9 @@ export default defineComponent({
this.worker.terminate()
},
methods: {
+ clearContent() {
+ this.protocols = []
+ },
debouncer: debounce(function () {
this.worker.postMessage({ type: "ws", url: this.url })
}, 1000),
@@ -330,6 +333,8 @@ export default defineComponent({
disconnect() {
if (this.socket) {
this.socket.close()
+ this.connectionState = false
+ this.connectingState = false
}
},
handleError(error) {
diff --git a/components/smart/AccentModePicker.vue b/components/smart/AccentModePicker.vue
index 0f70cda53..d85970afe 100644
--- a/components/smart/AccentModePicker.vue
+++ b/components/smart/AccentModePicker.vue
@@ -1,14 +1,14 @@
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
diff --git a/pages/settings.vue b/pages/settings.vue
index cbea54d76..0876b41f2 100644
--- a/pages/settings.vue
+++ b/pages/settings.vue
@@ -316,6 +316,7 @@
v-tippy="{ theme: 'tooltip' }"
:title="$t('reset_default')"
:icon="clearIcon"
+ outline
@click.native="resetProxy"
/>
@@ -396,7 +397,7 @@ export default defineComponent({
showLogin: false,
- active: getLocalConfig("THEME_COLOR") || "indigo",
+ active: getLocalConfig("THEME_COLOR") || "green",
confirmRemove: false,
}
},