{{ $t(userStatus.text) }}
@@ -132,8 +132,8 @@
import { computed } from 'vue'
import { useCompaniesStore } from 'stores/companies'
import { useI18n } from 'vue-i18n'
- import { convertEmptyStringsToNull } from 'src/helpers/helpers'
- import type { User } from 'types/Users'
+ import { convertEmptyStringsToNull } from 'src/utils/helpers'
+ import type { User } from 'types/User'
const { t } = useI18n()
@@ -177,8 +177,9 @@
)
const userStatus = computed(() => {
- if (modelValue.value.is_blocked) return { status: 'blocked', text: 'user_block__user_blocked'}
- if (modelValue.value.is_leave) return { status: 'leave', text: 'user_block__user_leave'}
+ if (modelValue.value.is_blocked) return { status: 'blocked', text: 'user_block__user_blocked' }
+ if (modelValue.value.is_leave) return { status: 'leave', text: 'user_block__user_leave' }
+ if (!modelValue.value.is_terms_accepted) return { status: 'pending', text: 'user_block__user_pending' }
return null
})
@@ -190,12 +191,17 @@
}
.status-blocked {
- border: 2px solid red;
- color: red;
+ border: 2px solid var(--q-negative);
+ color: var(--q-negative);
}
.status-leave {
border: 2px solid var(--q-primary);
color: var(--q-primary);
}
+
+ .status-pending{
+ border: 2px solid var(--q-secondary);
+ color: var(--q-secondary);
+ }
diff --git a/src/composables/useUserSection.ts b/src/composables/useUserSection.ts
index b525b3c..077a914 100644
--- a/src/composables/useUserSection.ts
+++ b/src/composables/useUserSection.ts
@@ -1,5 +1,5 @@
import { useCompaniesStore } from 'stores/companies'
-import type { User } from 'types/Users'
+import type { User } from 'types/User'
export function useUserSection() {
const companiesStore = useCompaniesStore()
diff --git a/src/i18n/en-US/index.ts b/src/i18n/en-US/index.ts
index 9c3ee34..7566c81 100644
--- a/src/i18n/en-US/index.ts
+++ b/src/i18n/en-US/index.ts
@@ -1 +1 @@
-export default { EN: 'EN', RU: 'RU', continue: 'Continue', back: 'Back', close: 'Close', cancel: 'Cancel', code: 'Code', month: 'month', months: 'months', slogan: 'Work together - it\'s magic!', login__email: 'E-mail', login__password: 'Password', login__forgot_password: 'Forgot Password?', login__sign_in: 'Log in', login__or_continue_as: 'or continue as', login__register: 'Create account', login__register_title: 'Register', login__incorrect_email: 'Please enter a valid email address', login__password_require: 'At least 8 characters', projects__title: 'Projects', projects__search: 'Search', projects__show_archive: 'Show archive', projects__hide_archive: 'Hide archive', projects__dialog_archive_title: 'Archive project?', projects__dialog_archive_message: 'Chat tracking will stop.', projects__dialog_archive_message2: 'Chat data during archiving will be lost!', projects__dialog_archive_ok: 'Archive', projects__dialog_restore_title: 'Restore project?', projects__dialog_restore_message: 'Chat tracking will resume.', projects__dialog_restore_message2: 'Archive period data won\'t be recovered!', projects__dialog_restore_ok: 'Restore', projects__lets_start: 'Create a Project', projects__lets_start_description: 'Projects isolate data: contacts, tasks, documents, and chats are visible only to members', header__to_projects: 'Projects', project__chats: 'Chats', project__users: 'Team', project__companies: 'Companies', project_create__title_card: 'New project', project_create__btn: 'Create', project_edit__title_card: 'Edit project', project_edit__btn: 'Apply', project_block__project_name: 'Name', project_block__project_description: 'Description', project_block__error_name: 'Field is required', chats__search: 'Search', chats__send_chat: 'Request for attach chat', chats__send_chat_description: 'Provide instructions to the chat admin', chats__attach_chat: 'Attach chat', chats__attach_chat_description: 'Requires chat administrator privileges', chats_disabled_FAB: 'To add chats, please use the Telegram app', chats__send_chat_title: 'To connect the chat to ProjectsNode, add the bot to it using the provided link:', chats__dialog_unlink_title: 'Unlink chat?', chats__dialog_unlink_message: 'Chat tracking will be discontinued.', chats__dialog_unlink_message2: 'If necessary, the cat can be attached again.', chats__dialog_unlink_ok: 'Unlink', chats__onboard_msg1: 'Attach chats to the project', chats__onboard_msg2: 'Chat control is enabled from the moment of attachment', chat_card__title: 'Chat card', chat_card__go_chat: 'Go to chat', chat_card__members: 'Members', chat_page__user_blocked: 'Blocked', users__search: 'Search', users__show_blocked_users: 'Show Blocked', users__hide_blocked_users: 'Hide Blocked', users__show_left_users: 'Show Leavers (inactive)', users__hide_left_users: 'Hide Leavers (inactive)', users__dialog_block_title: 'Block Employee?', users__dialog_block_message: 'System access will be disabled.', users__dialog_block_message2: 'The employee will be removed from all chats (except those where they are the owner).', users__dialog_block_ok: 'Block', users__dialog_restore_title: 'Restore Employee?', users__dialog_restore_message: 'System access will be restored.', users__dialog_restore_message2: 'Add them to chats manually if required.', users__dialog_restore_ok: 'Restore', users__onboard_msg1: 'Project Contact List', users__onboard_msg2: 'After attaching chats, members are imported automatically. You’ll need to define who is who', user_edit__title_card: 'Edit employee', user_edit__btn: 'Apply', user_block__name: 'Name', user_block__company: 'Company', user_block__department: 'Department', user_block__role: 'Role', user_block__no_company: 'Not specified', user_block__user_blocked: 'BLOCKED', user_block__user_leave: 'Inactive', companies__dialog_delete_title: 'Delete company?', companies__dialog_delete_message: 'This action cannot be undone!', companies__dialog_delete_message2: 'Company employees will be moved to \'No Company\'', companies__dialog_delete_ok: 'Delete', companies__mask: 'Cloacking', companies__my_company: 'My company', companies__onboard_msg1: 'Add Companies', companies__onboard_msg2: 'Recommended for projects involving 3+ companies', company_add__title_card: 'Add company', company_add__btn: 'Add', company_edit__title_card: 'Edit company', company_edit__btn: 'Apply', company_edit__my_company: 'My company', company_edit__my_company_hint: 'Form pre-filling is configured in Settings:', company_edit__my_company_href: 'Your company data', company_block__name: 'Name', company_block__error_name: 'Field is required', company_block__description: 'Description', mask__title: 'Companies cloaking ', mask__help_title: 'Cloaking ', mask__help_message1: 'Cloaking conceals a company by making its personnel appear as if they belong to other companies, except those listed as "Visible"', mask__help_message2: 'Use the Toggle to enable or disable cloaking. Configure exceptions using the "+" button.', mask__info_block: 'Your company\'s employees will see all companies, regardless of the cloaking settings.', mask__table_header_company: 'Company', mask__table_header_visible: 'Visible', mask__table_visible_none: 'None', mask__table_visible_all: 'All', mask__btn_ok: 'Apply', account_helper__enter_email: 'Enter account e-mail', account_helper__email: 'E-mail', account_helper__confirm_email: 'Confirm e-mail', account_helper__confirm_email_message: 'Enter the Code from e-mail to continue. If you haven\'t received an e-mail with the Code, check the Spam folder.', account_helper__code: 'Code', account_helper__code_error: 'Incorrect code. Ensure your e-mail is correct and try again.', account_helper__set_password: 'Set password', account_helper__password: 'Password', account_helper__finish: 'Finish', account_helper__register_message1: 'Welcome!', account_helper__forgot_password_message1: 'Password set!', account_helper__change_password_message1: 'Password changed!', account_helper__change_method_message1: 'Login method changed!', account_helper__go_projects: 'Go to projects…', account_change_email__title: 'Change account e-mail', account_change_email__current_email: 'Current account e-mail', account_change_email__email: 'E-mail', account_change_email__confirm_current_email: 'Confirm current e-mail', account_change_email__confirm_email_message: 'Enter the Code from e-mail to continue. If you haven\'t received an e-mail with the Code, check the Spam folder.', account_change_email__code: 'Code', account_change_email__code_error: 'Incorrect code. Ensure your e-mail is correct and try again.', account_change_email__new_email: 'New account e-mail', account_change_email__confirm_new_email: 'Confirm new e-mail', account_change_email__set_password: 'Set password', account_change_email__password: 'Password', account_change_email__finish: 'Finish', account_change_email__finish_after_message: 'Done!', account_change_email__ok_message1: 'The email address has been successfully updated!', account_change_email__ok_message2: 'Go to Settings…', account__change_auth_message_2: 'After creating a user, all data from the Telegram account will be transferred to the new account.', account__change_auth_btn: 'Create system account', account__change_auth_warning: 'WARNING!', account__change_auth_warning_message: 'Reverse data transfer is not possible.', account__chats: 'Chats', account__chats_active: 'Active', account__chats_unbound: 'Unbound', account__chats_free: 'Free', account__chats_total: 'Total', account__subscribe: 'Subscribe', account__subscribe_description: 'With a subscription, you can attach more active chats.', account__auth_change_method: 'Change authorization method', account__auth_change_method_description: 'In case of corporate use, it is recommended to log in with a username and password.', account__auth_change_password: 'Change account password', account__auth_change_password_description: 'Access to the email address used for system login is required.', account__auth_change_account: 'Change account e-mail', account__auth_change_account_description: 'Access to both the current and new email addresses used for system authentication is required.', account__company_data: 'Your company data', account__company_data_description: 'The description will be automatically added to your company list for new projects.', account__manual: 'Manual', account__manual_description: 'Go to our Telegram channel with video tutorials.', account__settings: 'App parametrs', account__settings_description: 'Fonts size, language and etc.', account__support: 'Support', account__support_description: 'Need help? Contact us!', account__3rd_party_software: '3rd party software', account__3rd_party_software_description: 'List of third-party software packages included in the software', account__terms_of_use: 'Terms of use', account__privacy: 'Privacy Policy', account__stop_using: 'Opt-Out from Application Usage', account__stop_using_description: 'Includes Withdrawal of Consent for Personal Data Processing.', account__stop_using_dialog_title: 'Refuse to Use the Application?', account__stop_using_dialog_message1: 'The action is irreversible - your data will become inaccessible!', account__stop_using_dialog_message2: 'This action also entails the withdrawal of Consent for Personal Data Processing.', account__stop_using_dialog_btn_ok: 'Confirm', account__change_password: 'Change password', account__change_auth_method: 'Change authorization method', account_company__title_card: 'My company', account_company__btn: 'Apply', forgot_password__password_recovery: 'Password recovery', settings__title: 'App parametrs', settings__software_title: 'Application', settings__bot_title: 'Messages in chats (bot)', settings__language: 'Language', settings__font_size: 'Font size', settings__fontsize_small: 'Small', settings__fontsize_medium: 'Medium (default)', settings__fontsize_large: 'Large', settings__timezone: 'Time zone', settings__timezone_search: 'Search', terms_of_use__title: 'Terms of use', privacy__title: 'Privacy Policy', consent__title: 'Consent to Personal Data Processing', subscribe__title: 'Subscribe', subscribe__current_balance: 'Current balance', subscribe__token_formula: '1 = 1 day of access to 1 chat', subscribe__token_formula_description: 'unbound and free chats are not counted', subscribe__info: 'With a subscription, you can attach more chats. Archived chats are not counted.', subscribe__about: 'about', subscribe__select_payment_1: 'You can pay for your subscription using ', subscribe__select_payment_2: 'Telegram stars', subscribe__select_option_1: 'Telegram stars', subscribe__select_option_2: 'Telegram stars', subscribe__select_option_3: 'Telegram stars', subscribe__select_option_user: 'Telegram stars', support__title: 'Support', support__ask_question: 'Ask Question', support__work_time_text: 'Support is available on weekdays', support__work_time_time: '10:00 - 19:00 (Moscow, GMT+3)', support__or: 'or contact us via email', error404: 'Oops. Nothing here…', agreements__title: 'Agreements', agreements__description: 'To use the application, you must agree to the terms:', agreements__checkbox_agreement_terms: 'I accept the', agreements__checkbox_agreement_terms_doc: 'Terms of Use', agreements__checkbox_agreement_consent: 'I', agreements__checkbox_agreement_consent_doc: 'consent to the processing of my personal data', agreements__checkbox_agreement_privacy: 'and accept the', agreements__checkbox_agreement_privacy_doc: 'Privacy Policy', agreements__btn_agree: 'Agree and continue', agreements__btn_decline: 'Decline', agreements__btn_decline_description: '(close app)' }
\ No newline at end of file
+export default { EN: 'EN', RU: 'RU', continue: 'Continue', back: 'Back', close: 'Close', cancel: 'Cancel', code: 'Code', month: 'month', months: 'months', slogan: 'Work together - it\'s magic!', login__email: 'E-mail', login__password: 'Password', login__forgot_password: 'Forgot Password?', login__sign_in: 'Log in', login__or_continue_as: 'or continue as', login__register: 'Create account', login__register_title: 'Register', login__incorrect_email: 'Please enter a valid email address', login__password_require: 'At least 8 characters', projects__title: 'Projects', projects__search: 'Search', projects__show_archive: 'Show archive', projects__hide_archive: 'Hide archive', projects__dialog_archive_title: 'Archive project?', projects__dialog_archive_message: 'Chat tracking will stop.', projects__dialog_archive_message2: 'Chat data during archiving will be lost!', projects__dialog_archive_ok: 'Archive', projects__dialog_restore_title: 'Restore project?', projects__dialog_restore_message: 'Chat tracking will resume.', projects__dialog_restore_message2: 'Archive period data won\'t be recovered!', projects__dialog_restore_ok: 'Restore', projects__lets_start: 'Create a Project', projects__lets_start_description: 'Projects isolate data: contacts, tasks, documents, and chats are visible only to members', header__to_projects: 'Projects', project__chats: 'Chats', project__users: 'Team', project__companies: 'Companies', project_create__title_card: 'New project', project_create__btn: 'Create', project_edit__title_card: 'Edit project', project_edit__btn: 'Apply', project_block__project_name: 'Name', project_block__project_description: 'Description', project_block__error_name: 'Field is required', chats__search: 'Search', chats__send_chat: 'Request for attach chat', chats__send_chat_description: 'Provide instructions to the chat admin', chats__attach_chat: 'Attach chat', chats__attach_chat_description: 'Requires chat administrator privileges', chats_disabled_FAB: 'To add chats, please use the Telegram app', chats__send_chat_title: 'To connect the chat to app tgCrew, add the bot to it using the provided link:', chats__dialog_unlink_title: 'Unlink chat?', chats__dialog_unlink_message: 'Chat tracking will be discontinued.', chats__dialog_unlink_message2: 'If necessary, the chat can be attached again.', chats__dialog_unlink_ok: 'Unlink', chats__onboard_msg1: 'Attach chats to the project', chats__onboard_msg2: 'Chat control is enabled from the moment of attachment', chat_card__title: 'Chat card', chat_card__go_chat: 'Go to chat', chat_card__members: 'Members', chat_page__user_blocked: 'Blocked', users__search: 'Search', users__show_blocked_users: 'Show Blocked', users__hide_blocked_users: 'Hide Blocked', users__show_left_users: 'Show Leavers (inactive)', users__hide_left_users: 'Hide Leavers (inactive)', users__dialog_block_title: 'Block Employee?', users__dialog_block_message: 'System access will be disabled.', users__dialog_block_message2: 'The employee will be removed from all chats (except those where they are the owner).', users__dialog_block_ok: 'Block', users__dialog_restore_title: 'Restore Employee?', users__dialog_restore_message: 'System access will be restored.', users__dialog_restore_message2: 'Add them to chats manually if required.', users__dialog_restore_ok: 'Restore', users__onboard_msg1: 'Project Contact List', users__onboard_msg2: 'After attaching chats, members are imported automatically. You’ll need to define who is who', user_edit__title_card: 'Edit employee', user_edit__btn: 'Apply', user_block__name: 'Name', user_block__company: 'Company', user_block__department: 'Department', user_block__role: 'Role', user_block__no_company: 'Not specified', user_block__user_blocked: 'BLOCKED', user_block__user_leave: 'Inactive', user_block__user_pending: 'Consent pending', companies__dialog_delete_title: 'Delete company?', companies__dialog_delete_message: 'This action cannot be undone!', companies__dialog_delete_message2: 'Company employees will be moved to \'No Company\'', companies__dialog_delete_ok: 'Delete', companies__mask: 'Cloaking', companies__my_company: 'My company', companies__onboard_msg1: 'Add Companies', companies__onboard_msg2: 'Recommended for projects involving 3+ companies', company_add__title_card: 'Add company', company_add__btn: 'Add', company_edit__title_card: 'Edit company', company_edit__btn: 'Apply', company_edit__my_company: 'My company', company_edit__my_company_hint: 'Form pre-filling is configured in Settings:', company_edit__my_company_href: 'Your Company\'s Data', company_block__name: 'Name', company_block__error_name: 'Field is required', company_block__description: 'Description', mask__title: 'Companies cloaking ', mask__help_title: 'Cloaking ', mask__help_message1: 'Cloaking conceals a company by making its personnel appear as if they belong to other companies, except those listed as "Visible"', mask__help_message2: 'Use the Toggle to enable or disable cloaking. Configure exceptions using the "+" button.', mask__info_block: 'Your company\'s employees will see all companies, regardless of the cloaking settings.', mask__table_header_company: 'Company', mask__table_header_visible: 'Visible', mask__table_visible_none: 'None', mask__table_visible_all: 'All', mask__btn_ok: 'Apply', account_helper__enter_email: 'Enter account e-mail', account_helper__email: 'E-mail', account_helper__confirm_email: 'Confirm e-mail', account_helper__confirm_email_message: 'Enter the Code from e-mail to continue. If you haven\'t received an e-mail with the Code, check the Spam folder.', account_helper__code: 'Code', account_helper__code_error: 'Incorrect code. Ensure your e-mail is correct and try again.', account_helper__set_password: 'Set password', account_helper__password: 'Password', account_helper__finish: 'Finish', account_helper__register_message1: 'Welcome!', account_helper__forgot_password_message1: 'Password set!', account_helper__change_password_message1: 'Password changed!', account_helper__change_method_message1: 'Login method changed!', account_helper__go_projects: 'Go to projects…', account_change_email__title: 'Change account e-mail', account_change_email__current_email: 'Current account e-mail', account_change_email__email: 'E-mail', account_change_email__confirm_current_email: 'Confirm current e-mail', account_change_email__confirm_email_message: 'Enter the Code from e-mail to continue. If you haven\'t received an e-mail with the Code, check the Spam folder.', account_change_email__code: 'Code', account_change_email__code_error: 'Incorrect code. Ensure your e-mail is correct and try again.', account_change_email__new_email: 'New account e-mail', account_change_email__confirm_new_email: 'Confirm new e-mail', account_change_email__set_password: 'Set password', account_change_email__password: 'Password', account_change_email__finish: 'Finish', account_change_email__finish_after_message: 'Done!', account_change_email__ok_message1: 'The email address has been successfully updated!', account_change_email__ok_message2: 'Go to Settings…', account__change_auth_message_2: 'After creating a user, all data from the Telegram account will be transferred to the new account.', account__change_auth_btn: 'Create account', account__change_auth_warning: 'WARNING!', account__change_auth_warning_message: 'Reverse data transfer is not possible.', account__chats: 'Chats', account__chats_active: 'Active', account__chats_unbound: 'Detached', account__chats_free: 'Free', account__chats_total: 'Total', account__subscribe: 'Subscription', account__subscribe_description: 'With a subscription, you can attach more active chats.', account__auth_change_method: 'Change authorization method', account__auth_change_method_description: 'In case of corporate use, it is recommended to log in with a username and password.', account__auth_change_password: 'Change account password', account__auth_change_password_description: 'Access to the email address used for system login is required.', account__auth_change_account: 'Change account e-mail', account__auth_change_account_description: 'Access to both the current and new email addresses used for system authentication is required.', account__company_data: 'Your Company\'s Data', account__company_data_description: 'The description will be automatically added to your company list for new projects.', account__manual: 'Guides', account__manual_description: 'Go to our Telegram channel with video tutorials.', account__settings: 'App Parametrs', account__settings_description: 'Text size, language, and more.', account__support: 'Support', account__support_description: 'Need help? Contact us!', account__3rd_party_software_description: 'List of third-party software packages included in the software', account__terms_of_use: 'Terms of use', account__privacy: 'Privacy Policy', account__stop_using: 'Opt-Out from Application Usage', account__stop_using_description: 'Includes Withdrawal of Consent for Personal Data Processing.', account__stop_using_dialog_title: 'Refuse to Use the Application?', account__stop_using_dialog_message1: 'The action is irreversible - your data will become inaccessible!', account__stop_using_dialog_message2: 'This action also entails the withdrawal of Consent for Personal Data Processing.', account__stop_using_dialog_btn_ok: 'Confirm', account__change_password: 'Change password', account__change_auth_method: 'Change authorization method', account_company__title_card: 'My company', account_company__btn: 'Apply', forgot_password__password_recovery: 'Password recovery', settings__title: 'App Parametrs', settings__software_title: 'Application', settings__bot_title: 'Messages in chats (bot)', settings__language: 'Language', settings__font_size: 'Font size', settings__fontsize_small: 'Small', settings__fontsize_medium: 'Medium (default)', settings__fontsize_large: 'Large', settings__timezone: 'Time zone', settings__timezone_search: 'Search', terms_of_use__title: 'Terms of use', privacy__title: 'Privacy Policy', consent__title: 'Consent to Personal Data Processing', subscribe__title: 'Subscription', subscribe__current_plan: 'Current plan', subscribe__plan_exp: 'exp.', subscribe__plan_active_chats: 'Rated (active) chats', subscribe__plans: 'Plans', subscribe__per_month: '/month', subscribe__chats_max: 'max.', subscribe__chats: 'chats', subscribe__free_tax: 'FREE', subscribe__plans_description: 'Unlimited everything: users, projects, tasks.', subscribe__1month: '1 month', subscribe__3months: '3 months', subscribe__1year: '1 year', subscribe__30days: '30 days', subscribe__91days: '91 days', subscribe__365days: '365 days', subscribe__plans_period_notes: 'When you change your plan, the cost of the unused period is recalculated.', subscribe__plans_period_notes_more_info: 'More info…', subscribe__plans_period_description2: 'To downgrade your plan, please contact ', subscribe__plans_period_description2_support: 'support', subscribe__pay: 'Subscribe for', support__title: 'Support', support__ask_question: 'Ask Question', support__work_time_text: 'Support is available on weekdays', support__work_time_time: '10:00 - 19:00 (Moscow, GMT+3)', support__or: 'or contact us via email', error404: 'Oops. Nothing here…', agreements__title: 'Agreements', agreements__description: 'To use the application, you must agree to the terms:', agreements__description_update: 'The documents have been significantly updated.', agreements__checkbox_agreement_terms: 'I accept the', agreements__checkbox_agreement_terms_doc: 'Terms of Use', agreements__checkbox_agreement_consent: 'I', agreements__checkbox_agreement_consent_doc: 'consent to the processing of my personal data', agreements__checkbox_agreement_privacy: 'and accept the', agreements__checkbox_agreement_privacy_doc: 'Privacy Policy', agreements__btn_agree: 'Agree and continue', agreements__btn_decline: 'Decline', agreements__btn_decline_description: '(close app)', only_telegram__continue: 'Continue', subscription_guide__title: 'Subscription Plan Terms' }
\ No newline at end of file
diff --git a/src/i18n/ru-RU/index.ts b/src/i18n/ru-RU/index.ts
index 5142f1d..d6acc2d 100644
--- a/src/i18n/ru-RU/index.ts
+++ b/src/i18n/ru-RU/index.ts
@@ -1 +1 @@
-export default { EN: 'EN', RU: 'RU', continue: 'Продолжить', back: 'Назад', close: 'Закрыть', cancel: 'Отмена', code: 'Код', month: 'мес.', months: 'мес.', slogan: 'Работайте вместе - это волшебство!', login__email: 'Электронная почта', login__password: 'Пароль', login__forgot_password: 'Забыли пароль?', login__sign_in: 'Войти', login__or_continue_as: 'или продолжить', login__register: 'Зарегистрироваться', login__register_title: 'Регистрация', login__incorrect_email: 'Адрес почты некорректный', login__password_require: 'Мин. 8 символов', projects__title: 'Проекты', projects__search: 'Поиск', projects__show_archive: 'Показать архив', projects__hide_archive: 'Скрыть архив', projects__dialog_archive_title: 'Отправить проект в архив?', projects__dialog_archive_message: 'Отслеживание чатов будет остановлено.', projects__dialog_archive_message2: 'Данные из чатов за период архивации будут утеряны!', projects__dialog_archive_ok: 'В архив', projects__dialog_restore_title: 'Восстановить проект из архива?', projects__dialog_restore_message: 'Отслеживание чатов будет восстановлено.', projects__dialog_restore_message2: 'При восстановлении данные из чатов за период архивации не будут добавлены!', projects__dialog_restore_ok: 'Восстановить', projects__lets_start: 'Создайте проект', projects__lets_start_description: 'Проекты помогают изолировать данные: контакты, задачи, документы и чаты доступны только участникам', header__to_projects: 'Проекты', project__chats: 'Чаты', project__users: 'Команда', project__companies: 'Компании', project_create__title_card: 'Новый проект', project_create__btn: 'Создать', project_edit__title_card: 'Редактировать проект', project_edit__btn: 'Сохранить', project_block__project_name: 'Название', project_block__project_description: 'Описание', project_block__error_name: 'Поле обязательно к заполнению', chats__search: 'Поиск', chats__send_chat: 'Запрос на добавление чата', chats__send_chat_description: 'Отправить инструкцию администратору чата', chats__attach_chat: 'Добавить чат', chats__attach_chat_description: 'Необходимы права администратора чата', chats_disabled_FAB: 'Добавление чатов возможно только в приложении Telegram', chats__send_chat_title: 'Для присоединения чата к ProjectsNode необходимо добавить в него бота с помощью ссылки:', chats__dialog_unlink_title: 'Открепить чат?', chats__dialog_unlink_message: 'Отслеживание чата будет прекращено.', chats__dialog_unlink_message2: 'При необходимости чат можно будет подключить снова.', chats__dialog_unlink_ok: 'Открепить', chats__onboard_msg1: 'Прикрепите чаты к проекту', chats__onboard_msg2: 'Контроль чатов осуществляется только с момента прикрепления', chat_card__title: 'Карточка чата', chat_card__go_chat: 'Перейти к чату', chat_card__members: 'Участники', chat_page__user_blocked: 'Заблокирован', users__search: 'Поиск', users__show_blocked_users: 'Показать заблокированных', users__hide_blocked_users: 'Скрыть заблокированных', users__show_left_users: 'Показать неактивных', users__hide_left_users: 'Скрыть неактивных', users__dialog_block_title: 'Заблокировать сотрудника?', users__dialog_block_message: 'Доступ к системе будет отключен.', users__dialog_block_message2: 'Сотрудник будет исключен из всех чатов (кроме тех, где он является владельцем).', users__dialog_block_ok: 'Заблокировать', users__dialog_restore_title: 'Восстановить сотрудника?', users__dialog_restore_message: 'Доступ к системе будет восстановлен.', users__dialog_restore_message2: 'При необходимости нужно добавить сотрудника в чаты вручную.', users__dialog_restore_ok: 'Восстановить', users__onboard_msg1: 'Адресная книга проекта', users__onboard_msg2: 'После прикрепления чатов их участники добавляются автоматически. Остается указать - кто есть кто. ', user_edit__title_card: 'Редактирование данных сотрудника', user_edit__btn: 'Сохранить', user_block__name: 'ФИО', user_block__company: 'Компания', user_block__department: 'Подразделение', user_block__role: 'Функционал (должность)', user_block__no_company: 'Не указано', user_block__user_blocked: 'ЗАБЛОКИРОВАН', user_block__user_leave: 'Неактивный', companies__dialog_delete_title: 'Удалить компанию?', companies__dialog_delete_message: 'Это действие нельзя отменить!', companies__dialog_delete_message2: 'Сотрудники компании будут помечены "Без компании".', companies__dialog_delete_ok: 'Удалить', companies__mask: 'Маскировка', companies__my_company: 'Моя компания', companies__onboard_msg1: 'Добавьте компании', companies__onboard_msg2: 'Рекомендуется если в проекте участвует 3 и более компаний.', company_add__title_card: 'Добавить компанию', company_add__btn: 'Создать', company_edit__title_card: 'Редактировать компанию', company_edit__btn: 'Сохранить', company_edit__my_company: 'Моя компания', company_edit__my_company_hint: 'Заполнение формы преднастраивается в Настройках:', company_edit__my_company_href: 'Данные вашей компании', company_block__name: 'Название', company_block__error_name: 'Поле обязательно к заполнению', company_block__description: 'Описание', mask__title: 'Маскировка компаний', mask__help_title: 'Маскировка', mask__help_message1: 'Маскировка позволяет скрывать компанию, представляя ее персонал как собственный для других компаний, кроме тех, кто есть в перечне исключений "Видно". ', mask__help_message2: 'Для включения и отключения маскировки используйте Переключатель. Настройка исключений осуществляется с помощью "+".', mask__info_block: 'Сотрудники вашей компании будут видеть все компании, независимо от настроек маскировки.', mask__table_header_company: 'Компания', mask__table_header_visible: 'Видно', mask__table_visible_none: 'Никому', mask__table_visible_all: 'Всем', mask__btn_ok: 'Сохранить', account_helper__enter_email: 'Введите электронную почту', account_helper__email: 'Электронная почта', account_helper__confirm_email: 'Подтверждение электронной почты', account_helper__confirm_email_message: 'Введите код из письма для продолжения . Если не получили письмо с кодом - проверьте папку Спам', account_helper__code: 'Код', account_helper__code_error: 'Был введен неверный код. Проверьте адрес электронной почты и повторите попытку.', account_helper__set_password: 'Установка пароля', account_helper__password: 'Пароль', account_helper__finish: 'Отправить', account_helper__register_message1: 'Добро пожаловать!', account_helper__forgot_password_message1: 'Пароль установлен!', account_helper__change_password_message1: 'Пароль изменен!', account_helper__change_method_message1: 'Способ входа в систему изменен!', account_helper__go_projects: 'Переходим к проектам…', account_change_email__title: 'Изменение адреса электронной почты учетной записи', account_change_email__current_email: 'Текущий адрес электронной почты ', account_change_email__email: 'Электронная почта', account_change_email__confirm_current_email: 'Подтверждение адреса текущей электронной почты', account_change_email__confirm_email_message: 'Введите код из письма для продолжения. Если не получили письмо с кодом - проверьте папку Спам', account_change_email__code: 'Код', account_change_email__code_error: 'Был введен неверный код. Проверьте адрес электронной почты и повторите попытку.', account_change_email__new_email: 'Новый адрес электронной почты ', account_change_email__confirm_new_email: 'Подтверждение адреса новой электронной почты', account_change_email__set_password: 'Установка пароля', account_change_email__password: 'Пароль', account_change_email__finish: 'Отправить', account_change_email__finish_after_message: 'Готово!', account_change_email__ok_message1: 'Адрес электронной почты успешно изменен!', account_change_email__ok_message2: 'Переходим в Настройки…', account__change_auth_message_2: 'После создания пользователя все данные с учетной записи Telegram будут перенесены на новую учетную запись.', account__change_auth_btn: 'Создать пользователя', account__change_auth_warning: 'ВНИМАНИЕ!', account__change_auth_warning_message: 'Обратный перенос данных не возможен.', account__chats: 'Чаты', account__chats_active: 'Активные', account__chats_unbound: 'Открепленные', account__chats_free: 'Бесплатные', account__chats_total: 'Всего', account__subscribe: 'Подписка', account__subscribe_description: 'С помощью подписки можно подключить дополнительные чаты.', account__auth_change_method: 'Сменить способ авторизации', account__auth_change_method_description: 'В случае корпоративного использования рекомендуется входить в систему, указав логин и пароль.', account__auth_change_password: 'Изменить пользовательский пароль', account__auth_change_password_description: 'Необходим доступ к электронной почте, используемой для входа в систему.', account__auth_change_account: 'Сменить электронную почту учетной записи', account__auth_change_account_description: 'Необходим доступ к текущей и новой электронной почте, используемым для входа в систему.', account__company_data: 'Данные вашей компании', account__company_data_description: 'Описание будет автоматически добавляться в перечень компаний для новых проектов. ', account__manual: 'Инструкции', account__manual_description: 'Перейдите в наш Telegram-канал с обучающими видеороликами.', account__settings: 'Параметры приложения', account__settings_description: 'Размер текста, язык и т.п.', account__support: 'Поддержка', account__support_description: 'Есть вопросы - напишите нам!', account__3rd_party_software: 'Сторонее ПО', account__3rd_party_software_description: 'Список сторонних программных пакетов, включённых в ПО', account__terms_of_use: 'Пользовательское соглашение', account__privacy: 'Политика конфидециальности', account__stop_using: 'Отказ от использования приложения', account__stop_using_description: 'Включает отзыв Согласия на обработку ПДн.', account__stop_using_dialog_title: 'Отказаться от использования приложения?', account__stop_using_dialog_message1: 'Действие необратимо - ваши данные станут недоступны!', account__stop_using_dialog_message2: 'Это также отзовет ваше Cогласие на обработку данных.', account__stop_using_dialog_btn_ok: 'Подтвердить', account__change_password: 'Изменить пароль', account__change_auth_method: 'Сменить способ авторизации', account_company__title_card: 'Моя компания', account_company__btn: 'Применить', forgot_password__password_recovery: 'Восстановление пароля', settings__title: 'Параметры приложения', settings__software_title: 'Приложение', settings__bot_title: 'Сообщения в чатах (бот)', settings__language: 'Язык', settings__font_size: 'Размер текста', settings__fontsize_small: 'Мелкий', settings__fontsize_medium: 'Средний (по умолчанию)', settings__fontsize_large: 'Большой', settings__timezone: 'Часовой пояс', settings__timezone_search: 'Поиск', terms_of_use__title: 'Пользовательское соглашение', privacy__title: 'Политика конфидециальности', consent__title: 'Согласие на обработку персональных данных', subscribe__title: 'Подписка', subscribe__current_balance: 'Текущий баланс', subscribe__token_formula: '1 = 1 день подключения к 1 чату', subscribe__token_formula_description: 'отвязанные и бесплатные чаты не учитываются', subscribe__info: 'С помощью подписки можно подключить к бесплатным групповым чатам дополнительные. Архивные чаты не учитываются. ', subscribe__about: 'около', subscribe__select_payment_1: 'Вы можете оплатить подписку с помощью', subscribe__select_payment_2: 'Telegram stars', subscribe__select_option_1: 'Telegram stars', subscribe__select_option_2: 'Telegram stars', subscribe__select_option_3: 'Telegram stars', subscribe__select_option_user: 'Telegram stars', support__title: 'Поддержка', support__ask_question: 'Задайте вопрос', support__work_time_text: 'Поддержка оказывается в рабочие дни ', support__work_time_time: '10:00 - 19:00 (Москва, GMT+3)', support__or: 'или напишите нам на электронную почту', error404: 'Тут ничего нет. Как вы сюда попали?', agreements__title: 'Соглашения', agreements__description: 'Для использования приложения необходимо согласиться с условиями:', agreements__checkbox_agreement_terms: 'Я принимаю', agreements__checkbox_agreement_terms_doc: 'Пользовательское соглашение', agreements__checkbox_agreement_consent: 'Я даю', agreements__checkbox_agreement_consent_doc: 'Согласие на обработку своих персональных данных', agreements__checkbox_agreement_privacy: 'и принимаю условия', agreements__checkbox_agreement_privacy_doc: 'Политики конфиденциальности', agreements__btn_agree: 'Подтвердить и продолжить', agreements__btn_decline: 'Отказаться', agreements__btn_decline_description: '(закрыть приложение)' }
\ No newline at end of file
+export default { EN: 'EN', RU: 'RU', continue: 'Продолжить', back: 'Назад', close: 'Закрыть', cancel: 'Отмена', code: 'Код', month: 'мес.', months: 'мес.', slogan: 'Работайте вместе - это волшебство!', login__email: 'Электронная почта', login__password: 'Пароль', login__forgot_password: 'Забыли пароль?', login__sign_in: 'Войти', login__or_continue_as: 'или продолжить', login__register: 'Зарегистрироваться', login__register_title: 'Регистрация', login__incorrect_email: 'Адрес почты некорректный', login__password_require: 'Мин. 8 символов', projects__title: 'Проекты', projects__search: 'Поиск', projects__show_archive: 'Показать архив', projects__hide_archive: 'Скрыть архив', projects__dialog_archive_title: 'Отправить проект в архив?', projects__dialog_archive_message: 'Отслеживание чатов будет остановлено.', projects__dialog_archive_message2: 'Данные из чатов за период архивации будут утеряны!', projects__dialog_archive_ok: 'В архив', projects__dialog_restore_title: 'Восстановить проект из архива?', projects__dialog_restore_message: 'Отслеживание чатов будет восстановлено.', projects__dialog_restore_message2: 'При восстановлении данные из чатов за период архивации не будут добавлены!', projects__dialog_restore_ok: 'Восстановить', projects__lets_start: 'Создайте проект', projects__lets_start_description: 'Проекты помогают изолировать данные: контакты, задачи, документы и чаты доступны только участникам', header__to_projects: 'Проекты', project__chats: 'Чаты', project__users: 'Команда', project__companies: 'Компании', project_create__title_card: 'Новый проект', project_create__btn: 'Создать', project_edit__title_card: 'Редактировать проект', project_edit__btn: 'Сохранить', project_block__project_name: 'Название', project_block__project_description: 'Описание', project_block__error_name: 'Поле обязательно к заполнению', chats__search: 'Поиск', chats__send_chat: 'Запрос на добавление чата', chats__send_chat_description: 'Отправить инструкцию администратору чата', chats__attach_chat: 'Добавить чат', chats__attach_chat_description: 'Необходимы права администратора чата', chats_disabled_FAB: 'Добавление чатов возможно только в приложении Telegram', chats__send_chat_title: 'Для присоединения чата к приложению tgCrew необходимо добавить в него бота с помощью ссылки:', chats__dialog_unlink_title: 'Открепить чат?', chats__dialog_unlink_message: 'Отслеживание чата будет прекращено.', chats__dialog_unlink_message2: 'При необходимости чат можно будет подключить снова.', chats__dialog_unlink_ok: 'Открепить', chats__onboard_msg1: 'Прикрепите чаты к проекту', chats__onboard_msg2: 'Контроль чатов осуществляется только с момента прикрепления', chat_card__title: 'Карточка чата', chat_card__go_chat: 'Перейти к чату', chat_card__members: 'Участники', chat_page__user_blocked: 'Заблокирован', users__search: 'Поиск', users__show_blocked_users: 'Показать заблокированных', users__hide_blocked_users: 'Скрыть заблокированных', users__show_left_users: 'Показать неактивных', users__hide_left_users: 'Скрыть неактивных', users__dialog_block_title: 'Заблокировать сотрудника?', users__dialog_block_message: 'Доступ к системе будет отключен.', users__dialog_block_message2: 'Сотрудник будет исключен из всех чатов (кроме тех, где он является владельцем).', users__dialog_block_ok: 'Заблокировать', users__dialog_restore_title: 'Восстановить сотрудника?', users__dialog_restore_message: 'Доступ к системе будет восстановлен.', users__dialog_restore_message2: 'При необходимости нужно добавить сотрудника в чаты вручную.', users__dialog_restore_ok: 'Восстановить', users__onboard_msg1: 'Адресная книга проекта', users__onboard_msg2: 'После прикрепления чатов их участники добавляются автоматически. Остается указать — кто есть кто. ', user_edit__title_card: 'Редактирование данных сотрудника', user_edit__btn: 'Сохранить', user_block__name: 'ФИО', user_block__company: 'Компания', user_block__department: 'Подразделение', user_block__role: 'Функционал (должность)', user_block__no_company: 'Не указано', user_block__user_blocked: 'ЗАБЛОКИРОВАН', user_block__user_leave: 'Неактивный', user_block__user_pending: 'Ожидание согласия', companies__dialog_delete_title: 'Удалить компанию?', companies__dialog_delete_message: 'Это действие нельзя отменить!', companies__dialog_delete_message2: 'Сотрудники компании будут помечены "Без компании".', companies__dialog_delete_ok: 'Удалить', companies__mask: 'Маскировка', companies__my_company: 'Моя компания', companies__onboard_msg1: 'Добавьте компании', companies__onboard_msg2: 'Рекомендуется, если в проекте участвует 3 и более компаний.', company_add__title_card: 'Добавить компанию', company_add__btn: 'Создать', company_edit__title_card: 'Редактировать компанию', company_edit__btn: 'Сохранить', company_edit__my_company: 'Моя компания', company_edit__my_company_hint: 'Заполнение формы преднастраивается в Настройках:', company_edit__my_company_href: 'Данные вашей компании', company_block__name: 'Название', company_block__error_name: 'Поле обязательно к заполнению', company_block__description: 'Описание', mask__title: 'Маскировка компаний', mask__help_title: 'Маскировка', mask__help_message1: 'Маскировка позволяет скрывать компанию, представляя ее персонал как собственный для других компаний, кроме тех, кто есть в перечне исключений "Видно". ', mask__help_message2: 'Для включения и отключения маскировки используйте Переключатель. Настройка исключений осуществляется с помощью "+".', mask__info_block: 'Сотрудники вашей компании будут видеть все компании, независимо от настроек маскировки.', mask__table_header_company: 'Компания', mask__table_header_visible: 'Видно', mask__table_visible_none: 'Никому', mask__table_visible_all: 'Всем', mask__btn_ok: 'Сохранить', account_helper__enter_email: 'Введите электронную почту', account_helper__email: 'Электронная почта', account_helper__confirm_email: 'Подтверждение электронной почты', account_helper__confirm_email_message: 'Введите код из письма для продолжения. Если не получили письмо с кодом - проверьте папку Спам', account_helper__code: 'Код', account_helper__code_error: 'Был введен неверный код. Проверьте адрес электронной почты и повторите попытку.', account_helper__set_password: 'Установка пароля', account_helper__password: 'Пароль', account_helper__finish: 'Отправить', account_helper__register_message1: 'Добро пожаловать!', account_helper__forgot_password_message1: 'Пароль установлен!', account_helper__change_password_message1: 'Пароль изменен!', account_helper__change_method_message1: 'Способ входа в систему изменен!', account_helper__go_projects: 'Переходим к проектам…', account_change_email__title: 'Изменение адреса электронной почты учетной записи', account_change_email__current_email: 'Текущий адрес электронной почты ', account_change_email__email: 'Электронная почта', account_change_email__confirm_current_email: 'Подтверждение адреса текущей электронной почты', account_change_email__confirm_email_message: 'Введите код из письма для продолжения. Если не получили письмо с кодом - проверьте папку Спам', account_change_email__code: 'Код', account_change_email__code_error: 'Был введен неверный код. Проверьте адрес электронной почты и повторите попытку.', account_change_email__new_email: 'Новый адрес электронной почты ', account_change_email__confirm_new_email: 'Подтверждение адреса новой электронной почты', account_change_email__set_password: 'Установка пароля', account_change_email__password: 'Пароль', account_change_email__finish: 'Отправить', account_change_email__finish_after_message: 'Готово!', account_change_email__ok_message1: 'Адрес электронной почты успешно изменен!', account_change_email__ok_message2: 'Переходим в Настройки…', account__change_auth_message_2: 'После создания пользователя все данные с учетной записи Telegram будут перенесены на новую учетную запись.', account__change_auth_btn: 'Создать пользователя', account__change_auth_warning: 'ВНИМАНИЕ!', account__change_auth_warning_message: 'Обратный перенос данных не возможен.', account__chats: 'Чаты', account__chats_active: 'Активные', account__chats_unbound: 'Открепленные', account__chats_free: 'Бесплатные', account__chats_total: 'Всего', account__subscribe: 'Подписка', account__subscribe_description: 'С помощью подписки можно подключить дополнительные чаты.', account__auth_change_method: 'Изменить способ авторизации', account__auth_change_method_description: 'В случае корпоративного использования рекомендуется входить в систему, указав логин и пароль.', account__auth_change_password: 'Изменить пользовательский пароль', account__auth_change_password_description: 'Необходим доступ к электронной почте, используемой для входа в систему.', account__auth_change_account: 'Изменить электронную почту учетной записи', account__auth_change_account_description: 'Необходим доступ к текущей и новой электронной почте, используемым для входа в систему.', account__company_data: 'Данные вашей компании', account__company_data_description: 'Описание будет автоматически добавляться в перечень компаний для новых проектов. ', account__manual: 'Инструкции', account__manual_description: 'Перейдите в наш Telegram-канал с обучающими видеороликами.', account__settings: 'Параметры приложения', account__settings_description: 'Размер текста, язык и т.п.', account__support: 'Поддержка', account__support_description: 'Есть вопросы - напишите нам!', account__3rd_party_software_description: 'Список сторонних программных пакетов, включённых в ПО', account__terms_of_use: 'Пользовательское соглашение', account__privacy: 'Политика конфиденциальности', account__stop_using: 'Отказ от использования приложения', account__stop_using_description: 'Включает отзыв Согласия на обработку ПДн.', account__stop_using_dialog_title: 'Отказаться от использования приложения?', account__stop_using_dialog_message1: 'Действие необратимо - ваши данные станут недоступны!', account__stop_using_dialog_message2: 'Это также отзовет ваше Cогласие на обработку данных.', account__stop_using_dialog_btn_ok: 'Подтвердить', account__change_password: 'Изменить пароль', account__change_auth_method: 'Изменить способ авторизации', account_company__title_card: 'Моя компания', account_company__btn: 'Применить', forgot_password__password_recovery: 'Восстановление пароля', settings__title: 'Параметры приложения', settings__software_title: 'Приложение', settings__bot_title: 'Сообщения в чатах (бот)', settings__language: 'Язык', settings__font_size: 'Размер текста', settings__fontsize_small: 'Мелкий', settings__fontsize_medium: 'Средний (по умолчанию)', settings__fontsize_large: 'Большой', settings__timezone: 'Часовой пояс', settings__timezone_search: 'Поиск', terms_of_use__title: 'Пользовательское соглашение', privacy__title: 'Политика конфиденциальности', consent__title: 'Согласие на обработку персональных данных', subscribe__title: 'Подписка', subscribe__current_plan: 'Текущий тариф', subscribe__plan_exp: 'до', subscribe__plan_active_chats: 'Тарифицируемые (активные) чаты', subscribe__plans: 'Тарифы', subscribe__per_month: '/в мес.', subscribe__chats_max: 'макс.', subscribe__chats: 'чатов', subscribe__free_tax: 'БЕСПЛАТНО', subscribe__plans_description: 'Все без ограничений: пользователи, проекты, задачи.', subscribe__1month: '1 месяц', subscribe__3months: '3 месяца', subscribe__1year: '1 год', subscribe__30days: '30 дней', subscribe__91days: '91 день', subscribe__365days: '365 дней', subscribe__plans_period_notes: 'При смене тарифа стоимость неиспользованного периода пересчитывается.', subscribe__plans_period_notes_more_info: 'Подробнее…', subscribe__plans_period_description2: 'Чтобы понизить тариф, обратитесь в', subscribe__plans_period_description2_support: 'поддержку', subscribe__pay: 'Подключить за', support__title: 'Поддержка', support__ask_question: 'Задайте вопрос', support__work_time_text: 'Поддержка оказывается в рабочие дни', support__work_time_time: '10:00 - 19:00 (Москва, GMT+3)', support__or: 'или напишите нам на электронную почту', error404: 'Тут ничего нет. Как вы сюда попали?', agreements__title: 'Соглашения', agreements__description: 'Для использования приложения необходимо согласиться с условиями:', agreements__description_update: 'Документы существенно обновлены.', agreements__checkbox_agreement_terms: 'Я принимаю', agreements__checkbox_agreement_terms_doc: 'Пользовательское соглашение', agreements__checkbox_agreement_consent: 'Я даю', agreements__checkbox_agreement_consent_doc: 'Согласие на обработку своих персональных данных', agreements__checkbox_agreement_privacy: 'и принимаю условия', agreements__checkbox_agreement_privacy_doc: 'Политики конфиденциальности', agreements__btn_agree: 'Подтвердить и продолжить', agreements__btn_decline: 'Отказаться', agreements__btn_decline_description: '(закрыть приложение)', only_telegram__continue: 'Продолжить', subscription_guide__title: 'Положение о Тарифных планах подписки' }
\ No newline at end of file
diff --git a/src/pages/AccountChangeEmailPage.vue b/src/pages/AccountChangeEmailPage.vue
index 7502e82..80ecc20 100644
--- a/src/pages/AccountChangeEmailPage.vue
+++ b/src/pages/AccountChangeEmailPage.vue
@@ -234,7 +234,6 @@
},
2: async () => {
await authStore.confirmCurrentEmailCode(code.value)
- console.log(code.value)
},
3: async () => {
await authStore.getCodeNewEmail(code.value, newLogin.value)
diff --git a/src/pages/AccountPage.vue b/src/pages/AccountPage.vue
index e4365e3..e273339 100644
--- a/src/pages/AccountPage.vue
+++ b/src/pages/AccountPage.vue
@@ -105,7 +105,8 @@
await router.push({ name: 'login' })
}
- function onConfirmStopUsing () {
+ async function onConfirmStopUsing () {
+ await authStore.termsRevoked()
tg.close()
}
diff --git a/src/pages/account/AgreementsPage.vue b/src/pages/AgreementsPage.vue
similarity index 65%
rename from src/pages/account/AgreementsPage.vue
rename to src/pages/AgreementsPage.vue
index 797b30e..65b2285 100644
--- a/src/pages/account/AgreementsPage.vue
+++ b/src/pages/AgreementsPage.vue
@@ -6,37 +6,35 @@
- {{ $t('agreements__description') }}
+
{{ $t('agreements__description_update') }}
+
{{ $t('agreements__description') }}
-
+
{{ $t('agreements__checkbox_agreement_terms') + ' ' }}
{{ $t('agreements__checkbox_agreement_terms_doc') }}
-
+
{{ $t('agreements__checkbox_agreement_consent') + ' ' }}
{{ $t('agreements__checkbox_agreement_consent_doc') }}
{{ ' ' + $t('agreements__checkbox_agreement_privacy') + ' ' }}
{{ $t('agreements__checkbox_agreement_privacy_doc') }}
@@ -78,7 +76,7 @@
diff --git a/src/pages/CompanyEditPage.vue b/src/pages/CompanyEditPage.vue
index 081a58f..65c3c02 100644
--- a/src/pages/CompanyEditPage.vue
+++ b/src/pages/CompanyEditPage.vue
@@ -30,7 +30,7 @@
import { useRouter, useRoute } from 'vue-router'
import companyBlock from 'components/companyBlock.vue'
import { useCompaniesStore } from 'stores/companies'
- import { parseIntString } from 'helpers/helpers'
+ import { parseIntString } from 'src/utils/helpers'
import type { CompanyParams } from 'types/Company'
const router = useRouter()
diff --git a/src/pages/LoginPage.vue b/src/pages/LoginPage.vue
index 056fd83..117e4d7 100644
--- a/src/pages/LoginPage.vue
+++ b/src/pages/LoginPage.vue
@@ -212,7 +212,7 @@
async function createAccount() {
sessionStorage.setItem('pendingLogin', login.value)
- await router.push({ name: 'create_account' })
+ await router.push({ name: 'agreements', query: { method: 'email', type: 'register' }})
}
const isTelegramApp = computed(() => {
@@ -221,10 +221,12 @@
})
async function handleTelegramLogin () {
- // @ts-expect-ignore
- const initData = window.Telegram.WebApp.initData
- await authStore.loginWithTelegram(initData)
- await router.push({ name: 'projects' })
+ try {
+ await authStore.loginWithTelegram(tg.initData)
+ await router.push({ name: 'projects' })
+ } catch {
+ await router.push({ name: 'agreements', query: { method: 'telegram', type: 'register' }})
+ }
}
onUnmounted(() => {
diff --git a/src/pages/TelegramOnlyPage.vue b/src/pages/TelegramOnlyPage.vue
new file mode 100644
index 0000000..96edba0
--- /dev/null
+++ b/src/pages/TelegramOnlyPage.vue
@@ -0,0 +1,38 @@
+
+
+
+
+
+
+ {{$t('only_telegram__continue')}}
+
+
+
+
+ Telegram
+
+
+
+
+
+
+
diff --git a/src/pages/UserEditPage.vue b/src/pages/UserEditPage.vue
index a37439b..c1f4d8c 100644
--- a/src/pages/UserEditPage.vue
+++ b/src/pages/UserEditPage.vue
@@ -13,8 +13,8 @@
import { useRouter, useRoute } from 'vue-router'
import userBlock from 'components/userBlock.vue'
import { useUsersStore } from 'stores/users'
- import { parseIntString } from 'helpers/helpers'
- import type { User } from 'types/Users'
+ import { parseIntString } from 'src/utils/helpers'
+ import type { User } from 'types/User'
const router = useRouter()
const route = useRoute()
diff --git a/src/pages/account/ChangePlanRules.vue b/src/pages/account/ChangePlanRules.vue
new file mode 100644
index 0000000..17666ed
--- /dev/null
+++ b/src/pages/account/ChangePlanRules.vue
@@ -0,0 +1,10 @@
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/pages/account/ConsentPage.vue b/src/pages/account/ConsentPage.vue
index e555124..4051636 100644
--- a/src/pages/account/ConsentPage.vue
+++ b/src/pages/account/ConsentPage.vue
@@ -1,5 +1,5 @@
-
+
diff --git a/src/pages/account/TermsPage.vue b/src/pages/account/TermsPage.vue
index a2d0295..93215c3 100644
--- a/src/pages/account/TermsPage.vue
+++ b/src/pages/account/TermsPage.vue
@@ -1,5 +1,5 @@
-
+