From 3c394446d2c7bb984f0cc5983685cbf56ade692c Mon Sep 17 00:00:00 2001 From: cheykrym Date: Fri, 24 Oct 2025 21:23:53 +0300 Subject: [PATCH] add afterregister --- yobble/Resources/Localizable.xcstrings | 27 ++++++++----- yobble/Views/Tab/AfterRegisterView.swift | 49 +++++++++++++----------- 2 files changed, 45 insertions(+), 31 deletions(-) diff --git a/yobble/Resources/Localizable.xcstrings b/yobble/Resources/Localizable.xcstrings index 0cec066..9d81068 100644 --- a/yobble/Resources/Localizable.xcstrings +++ b/yobble/Resources/Localizable.xcstrings @@ -66,12 +66,6 @@ }, "2FA отключена" : { "comment" : "Заголовок уведомления об отключении 2FA" - }, - "After Register View" : { - - }, - "Close" : { - }, "Companion ID" : { "comment" : "Search placeholder companion title" @@ -188,9 +182,6 @@ }, "Qr" : { - }, - "Welcome" : { - }, "Yobble" : { "localizations" : { @@ -248,6 +239,9 @@ } } } + }, + "Безопасность аккаунта" : { + }, "Блокировка контакта \"%1$@\" появится позже." : { "comment" : "Contacts block placeholder message" @@ -464,6 +458,9 @@ }, "Десктоп" : { "comment" : "Тип сессии — десктоп" + }, + "Для начала, мы рекомендуем настроить параметры безопасности вашего аккаунта." : { + }, "Добавить друзей" : { "comment" : "Add friends", @@ -484,6 +481,9 @@ }, "Добавьте новый аккаунт в приложении аутентификации и введите следующий ключ:" : { "comment" : "Инструкция по добавлению ключа 2FA" + }, + "Добро пожаловать в Yobble!" : { + }, "Другие устройства (%d)" : { "comment" : "Заголовок секции других устройств с количеством" @@ -1072,6 +1072,9 @@ } } } + }, + "Начальная настройка" : { + }, "Не удалось выполнить поиск." : { "comment" : "Search error fallback\nSearch service decoding error" @@ -2019,6 +2022,9 @@ }, "Проверьте цифры и попробуйте снова." : { "comment" : "Описание ошибки неверного кода 2FA" + }, + "Продолжить" : { + }, "Произошла неизвестная ошибка." : { "comment" : "Search unknown error" @@ -2035,6 +2041,9 @@ } } } + }, + "Пропустить" : { + }, "Просмотр \"%1$@\" появится позже." : { "comment" : "Contacts placeholder message" diff --git a/yobble/Views/Tab/AfterRegisterView.swift b/yobble/Views/Tab/AfterRegisterView.swift index 8c043c2..655098f 100644 --- a/yobble/Views/Tab/AfterRegisterView.swift +++ b/yobble/Views/Tab/AfterRegisterView.swift @@ -15,28 +15,28 @@ struct AfterRegisterView: View { var body: some View { NavigationView { - VStack { - Text("After Register View") - - Section(header: Text(NSLocalizedString("Вход и защита аккаунта (заглушка)", comment: "Раздел настроек безопасности для аутентификации"))) { - NavigationLink(isActive: $isTwoFactorActive) { - TwoFactorAuthView() - } label: { - Label(NSLocalizedString("Двухфакторная аутентификация", comment: "Переход к настройкам двухфакторной аутентификации"), systemImage: "lock.shield") + Form { + Section(header: Text(NSLocalizedString("Добро пожаловать в Yobble!", comment: ""))) { + Text(NSLocalizedString("Для начала, мы рекомендуем настроить параметры безопасности вашего аккаунта.", comment: "")) + } + + Section(header: Text(NSLocalizedString("Безопасность аккаунта", comment: ""))) { + NavigationLink(destination: TwoFactorAuthView()) { + Label(NSLocalizedString("Двухфакторная аутентификация", comment: ""), systemImage: "lock.shield") } - NavigationLink(isActive: $isEmailSettingsActive) { - EmailSecuritySettingsView() - } label: { - Label(NSLocalizedString("Настройки email", comment: "Переход к настройкам безопасности email"), systemImage: "envelope") + NavigationLink(destination: EmailSecuritySettingsView()) { + Label(NSLocalizedString("Настройки email", comment: ""), systemImage: "envelope") } - - NavigationLink(isActive: $isAppLockActive) { - AppLockSettingsView() - } label: { - Label(NSLocalizedString("Пароль на приложение", comment: "Переход к настройкам пароля на приложение"), systemImage: "lock.square") + } + + Section(header: Text(NSLocalizedString("Приложение", comment: ""))) { + NavigationLink(destination: AppLockSettingsView()) { + Label(NSLocalizedString("Пароль на приложение", comment: ""), systemImage: "lock.square") } - + } + + Section(header: Text(NSLocalizedString("Профиль", comment: ""))) { NavigationLink(destination: EditProfileView()) { Label(NSLocalizedString("Редактировать профиль", comment: ""), systemImage: "person.crop.circle") } @@ -45,13 +45,18 @@ struct AfterRegisterView: View { Label(NSLocalizedString("Конфиденциальность", comment: ""), systemImage: "lock.fill") } } - + Section { + Button(action: { isPresented = false }) { + Text(NSLocalizedString("Продолжить", comment: "")) + .frame(maxWidth: .infinity, alignment: .center) + } + } } - .navigationTitle("Welcome") + .navigationTitle(NSLocalizedString("Начальная настройка", comment: "")) .toolbar { - ToolbarItem(placement: .navigationBarLeading) { - Button("Close") { + ToolbarItem(placement: .navigationBarTrailing) { + Button(NSLocalizedString("Пропустить", comment: "")) { isPresented = false } }