diff --git a/assets/scss/themes.scss b/assets/scss/themes.scss index 0c32c2fa3..f84ca5d46 100644 --- a/assets/scss/themes.scss +++ b/assets/scss/themes.scss @@ -241,27 +241,35 @@ :root[data-accent="blue"] { @include blueTheme; } + :root[data-accent="green"] { @include greenTheme; } + :root[data-accent="teal"] { @include tealTheme; } + :root[data-accent="indigo"] { @include indigoTheme; } + :root[data-accent="purple"] { @include purpleTheme; } + :root[data-accent="orange"] { @include orangeTheme; } + :root[data-accent="pink"] { @include pinkTheme; } + :root[data-accent="red"] { @include redTheme; } + :root[data-accent="yellow"] { @include yellowTheme; } diff --git a/components/app/Header.vue b/components/app/Header.vue index 9b1f625f9..21c0193a2 100644 --- a/components/app/Header.vue +++ b/components/app/Header.vue @@ -47,6 +47,7 @@ '
' + `${currentUser.email || 'Email not found'}` " + :indicator="isOnLine ? 'bg-green-500' : 'bg-red-500'" /> { + this.isOnLine = true + }) + window.addEventListener("offline", () => { + this.isOnLine = false + }) + // Initializes the PWA code - checks if the app is installed, // etc. this.showInstallPrompt = await intializePwa() diff --git a/components/collections/graphql/index.vue b/components/collections/graphql/index.vue index a258d4ef1..1d21a59f5 100644 --- a/components/collections/graphql/index.vue +++ b/components/collections/graphql/index.vue @@ -65,9 +65,13 @@ class="flex flex-col text-secondaryLight p-4 items-center justify-center" > create_new_folder - - {{ $t("create_new_collection") }} + + {{ $t("collections_empty") }} +
create_new_folder - - {{ $t("create_new_collection") }} + + {{ $t("collections_empty") }} + +
library_add - - {{ $t("create_new_environment") }} + + {{ $t("environments_empty") }} +
post_add - + {{ $t("headers_empty") }} +
diff --git a/components/http/Parameters.vue b/components/http/Parameters.vue index 18e906c00..de2839d19 100644 --- a/components/http/Parameters.vue +++ b/components/http/Parameters.vue @@ -166,9 +166,10 @@ class="flex flex-col text-secondaryLight p-4 items-center justify-center" > post_add - + {{ $t("parameters_empty") }} + diff --git a/components/profile/Picture.vue b/components/profile/Picture.vue index cbe39a357..282873f4f 100644 --- a/components/profile/Picture.vue +++ b/components/profile/Picture.vue @@ -16,18 +16,10 @@ />
@@ -46,8 +38,8 @@ export default { default: "Profile picture", }, indicator: { - type: Boolean, - default: false, + type: String, + default: "bg-green-500", }, }, } diff --git a/components/smart/AutoComplete.vue b/components/smart/AutoComplete.vue index 2f604565c..718796217 100644 --- a/components/smart/AutoComplete.vue +++ b/components/smart/AutoComplete.vue @@ -211,6 +211,7 @@ export default { @apply w-full; @apply block; @apply py-2 px-4; + @apply text-secondaryLight; @apply font-semibold font-mono; &:last-child { diff --git a/lang/en-US.json b/lang/en-US.json index 9d617ed2e..4af738e7a 100644 --- a/lang/en-US.json +++ b/lang/en-US.json @@ -119,7 +119,7 @@ "no_prerequest_script": "No pre-request script", "search": "Search", "history_empty": "History is empty", - "history_deleted": "History Deleted", + "history_deleted": "History deleted", "clear": "Clear", "clear_all": "Clear All", "cleared": "Cleared", @@ -356,5 +356,7 @@ "script": "Script", "results": "Results", "add_test_scripts": "Add test script", - "protocols_empty": "Protocols are empty" + "protocols_empty": "Protocols are empty", + "environments_empty": "Environments are empty", + "collections_empty": "Collections are empty" } diff --git a/newstore/settings.ts b/newstore/settings.ts index 0071040a3..953ae1064 100644 --- a/newstore/settings.ts +++ b/newstore/settings.ts @@ -67,7 +67,7 @@ export const defaultSettings: SettingsType = { httpPassword: true, bearerToken: true, }, - THEME_COLOR: "green", + THEME_COLOR: "indigo", BG_COLOR: "system", TELEMETRY_ENABLED: true, SHORTCUT_INDICATOR: false, diff --git a/pages/graphql.vue b/pages/graphql.vue index 4dda0eb20..deaaf8faa 100644 --- a/pages/graphql.vue +++ b/pages/graphql.vue @@ -204,6 +204,15 @@ :spellcheck="false" :value="header.key" autofocus + styles=" + bg-primaryLight + flex + font-semibold font-mono + flex-1 + py-1 + px-4 + focus:outline-none + " @input=" $store.commit('setGQLHeaderKey', { index, @@ -216,8 +225,8 @@ bg-primaryLight flex font-semibold font-mono - flex-1 - py-2 + w-full + py-1 px-4 focus:outline-none " @@ -281,9 +290,13 @@ " > post_add - + {{ $t("headers_empty") }} + diff --git a/pages/settings.vue b/pages/settings.vue index 980a2ca7b..cbea54d76 100644 --- a/pages/settings.vue +++ b/pages/settings.vue @@ -299,10 +299,10 @@ bg-primaryLight border border-divider rounded-r + flex font-semibold font-mono flex-1 mr-2 - w-full py-2 px-4 block @@ -396,7 +396,7 @@ export default defineComponent({ showLogin: false, - active: getLocalConfig("THEME_COLOR") || "green", + active: getLocalConfig("THEME_COLOR") || "indigo", confirmRemove: false, } },