login: Move to its own module
This commit is contained in:
parent
0e5886bedf
commit
c1a97472b4
7 changed files with 9 additions and 7 deletions
|
@ -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>
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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>>,
|
|
@ -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,
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue