-
Settings
-
Manage your account settings and set some preferences.
+
+
{{ t('settings.title') }}
+
{{ t('settings.description') }}
diff --git a/src/shared/lib/i18n/locales/en-US.ts b/src/shared/lib/i18n/locales/en-US.ts
index 96a70700..6154891a 100644
--- a/src/shared/lib/i18n/locales/en-US.ts
+++ b/src/shared/lib/i18n/locales/en-US.ts
@@ -87,6 +87,24 @@ export default {
view: 'View the boards'
}
},
+ settings: {
+ title: 'Settings',
+ description: 'Manage your account settings and set some preferences.',
+ lang: {
+ label: 'Language',
+ about: 'This is the language that will be used in the dashboard.'
+ },
+ theme: {
+ label: 'Theme',
+ about: 'Select the theme for the dashboard.',
+ variants: {
+ light: 'Light',
+ dark: 'Dark',
+ auto: 'System'
+ },
+ btn: 'Update preferences'
+ }
+ },
sheet: {
title: 'Create board',
description: 'The new board will allow you to create tasks for solving them.',
diff --git a/src/shared/lib/i18n/locales/ru-RU.ts b/src/shared/lib/i18n/locales/ru-RU.ts
index 2e113242..c4ea1189 100644
--- a/src/shared/lib/i18n/locales/ru-RU.ts
+++ b/src/shared/lib/i18n/locales/ru-RU.ts
@@ -87,6 +87,24 @@ export default {
view: 'Просмотреть доски'
}
},
+ settings: {
+ title: 'Настройки',
+ description: 'Управляйте настройками своей учетной записи и установите предпочтения.',
+ lang: {
+ label: 'Язык',
+ about: 'Это язык, который будет использоваться в панели инструментов.'
+ },
+ theme: {
+ label: 'Тема',
+ about: 'Выберите тему для панели инструментов.',
+ variants: {
+ light: 'Светлая',
+ dark: 'Темная',
+ auto: 'Системная'
+ },
+ btn: 'Обновить настройки'
+ }
+ },
sheet: {
title: 'Создать доску',
description: 'Новая доска позволит вам создавать задачи для их решения.',
diff --git a/src/shared/lib/i18n/locales/zh-CN.ts b/src/shared/lib/i18n/locales/zh-CN.ts
index a165e6f5..b5ecb013 100644
--- a/src/shared/lib/i18n/locales/zh-CN.ts
+++ b/src/shared/lib/i18n/locales/zh-CN.ts
@@ -86,6 +86,24 @@ export default {
view: '查看白板'
}
},
+ settings: {
+ title: '设置',
+ description: '管理您的帐户设置和设定一些偏好。',
+ lang: {
+ label: '语言',
+ about: '这是将在仪表板中使用的语言。'
+ },
+ theme: {
+ label: '主题',
+ about: '选择仪表板的主题。',
+ variants: {
+ light: '浅色',
+ dark: '深色',
+ auto: '系统'
+ },
+ btn: '更新偏好设置'
+ }
+ },
sheet: {
title: '创建看板',
description: '新看板将允许你创建任务以进行解决。',
diff --git a/src/widgets/settings/ui/SettingsElements.vue b/src/widgets/settings/ui/SettingsElements.vue
index 7fe222e5..3e77c257 100644
--- a/src/widgets/settings/ui/SettingsElements.vue
+++ b/src/widgets/settings/ui/SettingsElements.vue
@@ -1,18 +1,21 @@
-
Language
+
{{ t('settings.lang.label') }}
-
This is the language that will be used in the dashboard.
+
{{ t('settings.lang.about') }}
-
Theme
-
Select the theme for the dashboard.
+
{{ t('settings.theme.label') }}
+
{{ t('settings.theme.about') }}
From 8f710a58a9080cb4be5a621d4e60dcacb79537a0 Mon Sep 17 00:00:00 2001
From: mnenie <121057011+mneniee@users.noreply.github.com>
Date: Sun, 21 Jul 2024 01:02:53 +0300
Subject: [PATCH 4/5] localization: auth
---
src/app/providers/router/index.ts | 6 ++--
src/features/auth/ui/PrivacyPolicy.vue | 32 ++++++++++++------
src/features/auth/ui/SignInForm.vue | 18 ++++++-----
src/features/auth/ui/SignUpForm.vue | 27 ++++++++--------
src/shared/lib/i18n/locales/en-US.ts | 22 +++++++++++++
src/shared/lib/i18n/locales/ru-RU.ts | 27 ++++++++++++++++
src/shared/lib/i18n/locales/zh-CN.ts | 22 +++++++++++++
src/widgets/auth/ui/AuthContainer.vue | 45 ++++++++++++++------------
8 files changed, 145 insertions(+), 54 deletions(-)
diff --git a/src/app/providers/router/index.ts b/src/app/providers/router/index.ts
index ea9c0fff..de989248 100644
--- a/src/app/providers/router/index.ts
+++ b/src/app/providers/router/index.ts
@@ -81,7 +81,7 @@ export const router = createRouter({
router.beforeEach((to, from) => {
// TODO(@mnenie): Add guards logic
// Needs to add guard auth logic in router
- if (to.meta.requiresAuth === true) {
- return router.push({ name: RouteNames.login });
- }
+ // if (to.meta.requiresAuth === true) {
+ // return router.push({ name: RouteNames.login });
+ // }
});
diff --git a/src/features/auth/ui/PrivacyPolicy.vue b/src/features/auth/ui/PrivacyPolicy.vue
index 7d66afb2..e53f0ba6 100644
--- a/src/features/auth/ui/PrivacyPolicy.vue
+++ b/src/features/auth/ui/PrivacyPolicy.vue
@@ -1,15 +1,28 @@
- By clicking continue, you agree to our
+ {{ privacyItems[0] }}
- Terms of Service
+ {{ privacyItems[1] }}
+
+ {{ privacyItems[2] }}
+
+ {{ privacyItems[3] }}
- and
- Privacy Policy.
@@ -18,7 +31,7 @@ import { redirect } from '@/shared/lib/helpers';
padding: 10px 0px 0px 0px;
text-align: center;
color: #72717a;
- max-width: 320px;
+ max-width: v-bind('maxWidth');
margin: 0 auto;
.inside {
@@ -33,13 +46,12 @@ import { redirect } from '@/shared/lib/helpers';
}
}
-:global(html.dark){
- .main_text{
+:global(html.dark) {
+ .main_text {
color: var(--zinc-300);
- .inside{
-
- &:hover{
+ .inside {
+ &:hover {
color: var(--zinc-400);
}
}
diff --git a/src/features/auth/ui/SignInForm.vue b/src/features/auth/ui/SignInForm.vue
index e30de518..d09bced0 100644
--- a/src/features/auth/ui/SignInForm.vue
+++ b/src/features/auth/ui/SignInForm.vue
@@ -1,13 +1,15 @@
@@ -17,20 +27,16 @@ const info = computed(() => {
-
+
Jenda
-
- {{ route.name === RouteNames.login ? 'Welcome back' : 'Get started' }}
-
-
- {{ info }}
-
+
{{ title }}
+
{{ info }}
-
Or continue with
+
{{ t('authentication.line') }}
@@ -117,22 +123,21 @@ const info = computed(() => {
}
}
-:global(html.dark){
- .container{
+:global(html.dark) {
+ .container {
background-color: var(--zinc-800);
- .container_inside{
- .form_wrapper{
-
- .info_text{
+ .container_inside {
+ .form_wrapper {
+ .info_text {
color: var(--zinc-300);
}
- .line_container{
- .line{
+ .line_container {
+ .line {
background-color: var(--zinc-600);
}
- & span{
+ & span {
color: var(--zinc-300);
}
}
From aef4822a75dd89115d7f6b761f9c34542e4eea43 Mon Sep 17 00:00:00 2001
From: mnenie <121057011+mneniee@users.noreply.github.com>
Date: Sun, 21 Jul 2024 01:03:54 +0300
Subject: [PATCH 5/5] feat: route block
---
src/app/providers/router/index.ts | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/app/providers/router/index.ts b/src/app/providers/router/index.ts
index de989248..ea9c0fff 100644
--- a/src/app/providers/router/index.ts
+++ b/src/app/providers/router/index.ts
@@ -81,7 +81,7 @@ export const router = createRouter({
router.beforeEach((to, from) => {
// TODO(@mnenie): Add guards logic
// Needs to add guard auth logic in router
- // if (to.meta.requiresAuth === true) {
- // return router.push({ name: RouteNames.login });
- // }
+ if (to.meta.requiresAuth === true) {
+ return router.push({ name: RouteNames.login });
+ }
});