login: Move to its own module

This commit is contained in:
Kévin Commaille 2022-03-26 18:32:57 +01:00
parent 0e5886bedf
commit c1a97472b4
No known key found for this signature in database
GPG key ID: DD507DAE96E8245C
7 changed files with 9 additions and 7 deletions

View file

@ -73,9 +73,9 @@
<file compressed="true" preprocess="xml-stripblanks" alias="event-source-dialog.ui">ui/event-source-dialog.ui</file>
<file compressed="true" preprocess="xml-stripblanks" alias="greeter.ui">ui/greeter.ui</file>
<file compressed="true" preprocess="xml-stripblanks" alias="identity-verification-widget.ui">ui/identity-verification-widget.ui</file>
<file compressed="true" preprocess="xml-stripblanks" alias="idp-button.ui">ui/idp-button.ui</file>
<file compressed="true" preprocess="xml-stripblanks" alias="in-app-notification.ui">ui/in-app-notification.ui</file>
<file compressed="true" preprocess="xml-stripblanks" alias="login-advanced-dialog.ui">ui/login-advanced-dialog.ui</file>
<file compressed="true" preprocess="xml-stripblanks" alias="login-idp-button.ui">ui/login-idp-button.ui</file>
<file compressed="true" preprocess="xml-stripblanks" alias="login.ui">ui/login.ui</file>
<file compressed="true" preprocess="xml-stripblanks" alias="media-viewer.ui">ui/media-viewer.ui</file>
<file compressed="true" preprocess="xml-stripblanks" alias="member-menu.ui">ui/member-menu.ui</file>

View file

@ -44,7 +44,7 @@ data/resources/ui/qr-code-scanner.ui
src/application.rs
src/components/editable_avatar.rs
src/error_page.rs
src/login.rs
src/login/mod.rs
src/secret.rs
src/session/account_settings/devices_page/device_list.rs
src/session/account_settings/devices_page/device_row.rs

View file

@ -73,7 +73,7 @@ mod imp {
use super::*;
#[derive(Debug, Default, CompositeTemplate)]
#[template(resource = "/org/gnome/FractalNext/idp-button.ui")]
#[template(resource = "/org/gnome/FractalNext/login-idp-button.ui")]
pub struct IdpButton {
pub brand: Cell<IdpBrand>,
pub id: RefCell<Option<String>>,

View file

@ -20,10 +20,14 @@ use matrix_sdk::{
use tokio::task::JoinHandle;
use url::{ParseError, Url};
mod idp_button;
mod login_advanced_dialog;
use idp_button::IdpButton;
use login_advanced_dialog::LoginAdvancedDialog;
use crate::{
components::{SpinnerButton, Toast},
idp_button::IdpButton,
login_advanced_dialog::LoginAdvancedDialog,
spawn, spawn_tokio,
user_facing_error::UserFacingError,
Session,

View file

@ -11,9 +11,7 @@ mod components;
mod contrib;
mod error_page;
mod greeter;
mod idp_button;
mod login;
mod login_advanced_dialog;
mod secret;
mod session;
mod user_facing_error;