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 отключена" : { "2FA отключена" : {
"comment" : "Заголовок уведомления об отключении 2FA" "comment" : "Заголовок уведомления об отключении 2FA"
},
"After Register View" : {
},
"Close" : {
}, },
"Companion ID" : { "Companion ID" : {
"comment" : "Search placeholder companion title" "comment" : "Search placeholder companion title"
@ -188,9 +182,6 @@
}, },
"Qr" : { "Qr" : {
},
"Welcome" : {
}, },
"Yobble" : { "Yobble" : {
"localizations" : { "localizations" : {
@ -248,6 +239,9 @@
} }
} }
} }
},
"Безопасность аккаунта" : {
}, },
"Блокировка контакта \"%1$@\" появится позже." : { "Блокировка контакта \"%1$@\" появится позже." : {
"comment" : "Contacts block placeholder message" "comment" : "Contacts block placeholder message"
@ -464,6 +458,9 @@
}, },
"Десктоп" : { "Десктоп" : {
"comment" : "Тип сессии — десктоп" "comment" : "Тип сессии — десктоп"
},
"Для начала, мы рекомендуем настроить параметры безопасности вашего аккаунта." : {
}, },
"Добавить друзей" : { "Добавить друзей" : {
"comment" : "Add friends", "comment" : "Add friends",
@ -484,6 +481,9 @@
}, },
"Добавьте новый аккаунт в приложении аутентификации и введите следующий ключ:" : { "Добавьте новый аккаунт в приложении аутентификации и введите следующий ключ:" : {
"comment" : "Инструкция по добавлению ключа 2FA" "comment" : "Инструкция по добавлению ключа 2FA"
},
"Добро пожаловать в Yobble!" : {
}, },
"Другие устройства (%d)" : { "Другие устройства (%d)" : {
"comment" : "Заголовок секции других устройств с количеством" "comment" : "Заголовок секции других устройств с количеством"
@ -1072,6 +1072,9 @@
} }
} }
} }
},
"Начальная настройка" : {
}, },
"Не удалось выполнить поиск." : { "Не удалось выполнить поиск." : {
"comment" : "Search error fallback\nSearch service decoding error" "comment" : "Search error fallback\nSearch service decoding error"
@ -2019,6 +2022,9 @@
}, },
"Проверьте цифры и попробуйте снова." : { "Проверьте цифры и попробуйте снова." : {
"comment" : "Описание ошибки неверного кода 2FA" "comment" : "Описание ошибки неверного кода 2FA"
},
"Продолжить" : {
}, },
"Произошла неизвестная ошибка." : { "Произошла неизвестная ошибка." : {
"comment" : "Search unknown error" "comment" : "Search unknown error"
@ -2035,6 +2041,9 @@
} }
} }
} }
},
"Пропустить" : {
}, },
"Просмотр \"%1$@\" появится позже." : { "Просмотр \"%1$@\" появится позже." : {
"comment" : "Contacts placeholder message" "comment" : "Contacts placeholder message"

View File

@ -15,28 +15,28 @@ struct AfterRegisterView: View {
var body: some View { var body: some View {
NavigationView { NavigationView {
VStack { Form {
Text("After Register View") Section(header: Text(NSLocalizedString("Добро пожаловать в Yobble!", comment: ""))) {
Text(NSLocalizedString("Для начала, мы рекомендуем настроить параметры безопасности вашего аккаунта.", comment: ""))
Section(header: Text(NSLocalizedString("Вход и защита аккаунта (заглушка)", comment: "Раздел настроек безопасности для аутентификации"))) {
NavigationLink(isActive: $isTwoFactorActive) {
TwoFactorAuthView()
} label: {
Label(NSLocalizedString("Двухфакторная аутентификация", comment: "Переход к настройкам двухфакторной аутентификации"), systemImage: "lock.shield")
} }
NavigationLink(isActive: $isEmailSettingsActive) { Section(header: Text(NSLocalizedString("Безопасность аккаунта", comment: ""))) {
EmailSecuritySettingsView() NavigationLink(destination: TwoFactorAuthView()) {
} label: { Label(NSLocalizedString("Двухфакторная аутентификация", comment: ""), systemImage: "lock.shield")
Label(NSLocalizedString("Настройки email", comment: "Переход к настройкам безопасности email"), systemImage: "envelope")
} }
NavigationLink(isActive: $isAppLockActive) { NavigationLink(destination: EmailSecuritySettingsView()) {
AppLockSettingsView() Label(NSLocalizedString("Настройки email", comment: ""), systemImage: "envelope")
} 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()) { NavigationLink(destination: EditProfileView()) {
Label(NSLocalizedString("Редактировать профиль", comment: ""), systemImage: "person.crop.circle") Label(NSLocalizedString("Редактировать профиль", comment: ""), systemImage: "person.crop.circle")
} }
@ -46,12 +46,17 @@ struct AfterRegisterView: View {
} }
} }
Section {
Button(action: { isPresented = false }) {
Text(NSLocalizedString("Продолжить", comment: ""))
.frame(maxWidth: .infinity, alignment: .center)
} }
.navigationTitle("Welcome") }
}
.navigationTitle(NSLocalizedString("Начальная настройка", comment: ""))
.toolbar { .toolbar {
ToolbarItem(placement: .navigationBarLeading) { ToolbarItem(placement: .navigationBarTrailing) {
Button("Close") { Button(NSLocalizedString("Пропустить", comment: "")) {
isPresented = false isPresented = false
} }
} }