From dc5a09bebcdfd301ad106d7cdcd11fece9cee793 Mon Sep 17 00:00:00 2001 From: Liyas Thomas Date: Mon, 5 Jul 2021 05:08:03 +0000 Subject: [PATCH] feat: settings page --- components/app/Login.vue | 26 --- components/smart/ChangeLanguage.vue | 3 +- lang/en-US.json | 3 +- nuxt.config.js | 1 - pages/profile.vue | 8 + pages/settings.vue | 273 ++++++++++++++-------------- plugins/formatCountry.js | 7 - 7 files changed, 147 insertions(+), 174 deletions(-) delete mode 100644 components/app/Login.vue delete mode 100644 plugins/formatCountry.js diff --git a/components/app/Login.vue b/components/app/Login.vue deleted file mode 100644 index 8c7a4373f..000000000 --- a/components/app/Login.vue +++ /dev/null @@ -1,26 +0,0 @@ - - - diff --git a/components/smart/ChangeLanguage.vue b/components/smart/ChangeLanguage.vue index 6e417f1c5..2fb20d026 100644 --- a/components/smart/ChangeLanguage.vue +++ b/components/smart/ChangeLanguage.vue @@ -14,7 +14,6 @@ :title="$t('choose_language')" :label="`${ $i18n.locales.find(({ code }) => code == $i18n.locale).country - | formatCountry } ${$i18n.locales.find(({ code }) => code == $i18n.locale).name}`" /> @@ -24,7 +23,7 @@ )" :key="locale.code" :to="switchLocalePath(locale.code).toString()" - :label="`${locale.country | formatCountry} ${locale.name}`" + :label="`${locale.country} ${locale.name}`" /> diff --git a/lang/en-US.json b/lang/en-US.json index efe18936f..7fbff12dc 100644 --- a/lang/en-US.json +++ b/lang/en-US.json @@ -341,5 +341,6 @@ "show_sidebar": "Show sidebar", "protocols": "Protocols", "protocol_count": "protocol {count}", - "share": "Share" + "share": "Share", + "interceptor": "Interceptor" } diff --git a/nuxt.config.js b/nuxt.config.js index d99e5595f..d48c71a20 100644 --- a/nuxt.config.js +++ b/nuxt.config.js @@ -98,7 +98,6 @@ export default { "~/plugins/vue-rx", "~/plugins/vue-apollo", { src: "~/plugins/web-worker", ssr: false }, - "~/plugins/formatCountry.js", ], // Auto import components (https://go.nuxtjs.dev/config-components) diff --git a/pages/profile.vue b/pages/profile.vue index 56cf95145..2fd1d7537 100644 --- a/pages/profile.vue +++ b/pages/profile.vue @@ -5,22 +5,30 @@ label="Get Started" @click.native="showLogin = true" /> +
+ +