add afterregister

This commit is contained in:
cheykrym 2025-10-24 21:23:53 +03:00
parent 9f2a938b1e
commit 3c394446d2
2 changed files with 45 additions and 31 deletions

View File

@ -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"

View File

@ -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
}
}