diff --git a/packages/hoppscotch-app/assets/icons/verified.svg b/packages/hoppscotch-app/assets/icons/verified.svg new file mode 100644 index 000000000..2a2c4e926 --- /dev/null +++ b/packages/hoppscotch-app/assets/icons/verified.svg @@ -0,0 +1 @@ + diff --git a/packages/hoppscotch-app/components/app/Header.vue b/packages/hoppscotch-app/components/app/Header.vue index 283e58b48..04804d63f 100644 --- a/packages/hoppscotch-app/components/app/Header.vue +++ b/packages/hoppscotch-app/components/app/Header.vue @@ -69,6 +69,12 @@ svg="user" /> + - - {{ $t("team.title") }} - - - - - + + + + + + + + + + + + + + {{ currentUser.displayName || $t("state.nothing_found") }} + + + {{ currentUser.email || $t("state.nothing_found") }} + + + + + + + + + {{ $t("settings.sync") }} + + + {{ $t("settings.sync_description") }} + + + + + {{ $t("settings.sync_collections") }} + + + + + {{ $t("settings.sync_environments") }} + + + + + {{ $t("settings.sync_history") }} + + + + + + + + + + + + + + + + + + + diff --git a/packages/hoppscotch-app/pages/settings.vue b/packages/hoppscotch-app/pages/settings.vue index 27bad3436..3229a1ff2 100644 --- a/packages/hoppscotch-app/pages/settings.vue +++ b/packages/hoppscotch-app/pages/settings.vue @@ -1,104 +1,6 @@ - - - - {{ $t("settings.account") }} - - - {{ $t("settings.account_description") }} - - - - - - - - - - {{ $t("settings.user") }} - - - - - - - - - - {{ currentUser.displayName || $t("state.nothing_found") }} - - - {{ $t("settings.account_name_description") }} - - - - - - - - - - {{ currentUser.email || $t("state.nothing_found") }} - - - {{ $t("settings.account_email_description") }} - - - - - - - - - {{ $t("settings.sync") }} - - - {{ $t("settings.sync_description") }} - - - - - {{ $t("settings.sync_collections") }} - - - - - {{ $t("settings.sync_environments") }} - - - - - {{ $t("settings.sync_history") }} - - - - - - - - @@ -325,7 +227,6 @@ - import { defineComponent } from "@nuxtjs/composition-api" -import { currentUserInfo$ } from "~/helpers/teams/BackendUserInfo" import { hasExtensionInstalled, hasChromeExtensionInstalled, @@ -357,9 +257,7 @@ import { useSetting, } from "~/newstore/settings" import type { KeysMatching } from "~/types/ts-utils" -import { currentUser$ } from "~/helpers/fb/auth" import { getLocalConfig } from "~/newstore/localpersistence" -import { useReadonlyStream } from "~/helpers/utils/composables" type SettingsType = typeof defaultSettings @@ -371,17 +269,9 @@ export default defineComponent({ PROXY_KEY: useSetting("PROXY_KEY"), EXTENSIONS_ENABLED: useSetting("EXTENSIONS_ENABLED"), EXPERIMENTAL_URL_BAR_ENABLED: useSetting("EXPERIMENTAL_URL_BAR_ENABLED"), - SYNC_COLLECTIONS: useSetting("syncCollections"), - SYNC_ENVIRONMENTS: useSetting("syncEnvironments"), - SYNC_HISTORY: useSetting("syncHistory"), TELEMETRY_ENABLED: useSetting("TELEMETRY_ENABLED"), LEFT_SIDEBAR: useSetting("LEFT_SIDEBAR"), ZEN_MODE: useSetting("ZEN_MODE"), - currentUser: useReadonlyStream(currentUser$, currentUser$.value), - currentBackendUser: useReadonlyStream( - currentUserInfo$, - currentUserInfo$.value - ), } }, data() { @@ -395,9 +285,7 @@ export default defineComponent({ clearIcon: "rotate-ccw", - showLogin: false, - - active: getLocalConfig("THEME_COLOR") || "indigo", + active: getLocalConfig("THEME_COLOR") || "blue", confirmRemove: false, } },
+ {{ currentUser.email || $t("state.nothing_found") }} + +
- {{ $t("settings.account_description") }} -
- {{ $t("settings.account_name_description") }} -
- {{ $t("settings.account_email_description") }} -