feat(gui): TOTP tab with QR code modal + revoke (feature-gated)

This commit is contained in:
michael
2026-04-27 12:10:54 -07:00
parent 85c8f29b68
commit 8060364973
3 changed files with 197 additions and 0 deletions

View File

@@ -10,6 +10,8 @@ mod keys_page;
mod policy_form;
mod policy_page;
mod recovery_page;
#[cfg(feature = "totp")]
mod totp_page;
const APP_ID: &str = "io.dangerousthings.AuthForge";
@@ -68,6 +70,12 @@ fn main() -> glib::ExitCode {
let recovery = recovery_page::RecoveryPage::new(ctx.clone());
stack.add_titled(&recovery.root, Some("recovery"), "Recovery");
#[cfg(feature = "totp")]
{
let totp = totp_page::TotpPage::new(ctx.clone());
stack.add_titled(&totp.root, Some("totp"), "TOTP");
}
// ToolbarView is libadwaita v1_4-gated; the project sticks with the
// simpler Box layout for portability (see commit c6a5e94).
let layout = gtk::Box::new(gtk::Orientation::Vertical, 0);