forked from trinitrix/core
Fix(squas): Hi!
This commit is contained in:
parent
e36fadbb72
commit
c814426905
|
@ -1,3 +1,5 @@
|
|||
use std::fs;
|
||||
|
||||
use anyhow::{Error, Result};
|
||||
use cli_log::{error, info, warn};
|
||||
use matrix_sdk::{
|
||||
|
@ -6,7 +8,6 @@ use matrix_sdk::{
|
|||
Client, Session,
|
||||
};
|
||||
use serde::{Deserialize, Serialize};
|
||||
use std::fs;
|
||||
|
||||
#[derive(Debug, Clone, Serialize, Deserialize)]
|
||||
pub struct Account {
|
||||
|
|
|
@ -1,8 +1,3 @@
|
|||
use crate::app::{
|
||||
status::{State, Status},
|
||||
App,
|
||||
};
|
||||
use crate::ui;
|
||||
use anyhow::{Error, Result};
|
||||
use cli_log::{error, info, warn};
|
||||
use matrix_sdk::{
|
||||
|
@ -14,10 +9,20 @@ use matrix_sdk::{
|
|||
},
|
||||
Client, LoopCtrl,
|
||||
};
|
||||
use tokio::sync::{broadcast, mpsc};
|
||||
use tokio::time::Duration;
|
||||
use tokio::{
|
||||
sync::{broadcast, mpsc},
|
||||
time::Duration,
|
||||
};
|
||||
use tokio_util::sync::CancellationToken;
|
||||
|
||||
use crate::{
|
||||
app::{
|
||||
status::{State, Status},
|
||||
App,
|
||||
},
|
||||
ui,
|
||||
};
|
||||
|
||||
#[derive(Debug)]
|
||||
pub enum EventStatus {
|
||||
Ok,
|
||||
|
|
|
@ -1,11 +1,9 @@
|
|||
pub mod event;
|
||||
pub mod status;
|
||||
|
||||
use crate::accounts;
|
||||
use crate::ui;
|
||||
use std::path::Path;
|
||||
|
||||
use accounts::Account;
|
||||
use accounts::AccountsManager;
|
||||
use accounts::{Account, AccountsManager};
|
||||
use anyhow::{Error, Result};
|
||||
use cli_log::{error, info, warn};
|
||||
use matrix_sdk::{
|
||||
|
@ -19,13 +17,14 @@ use matrix_sdk::{
|
|||
Client,
|
||||
};
|
||||
use status::{State, Status};
|
||||
use std::path::Path;
|
||||
use tokio::{
|
||||
sync::{broadcast, mpsc},
|
||||
time::{sleep, Duration},
|
||||
};
|
||||
use tokio_util::sync::CancellationToken;
|
||||
|
||||
use crate::{accounts, ui};
|
||||
|
||||
pub struct App<'a> {
|
||||
ui: ui::UI<'a>,
|
||||
accounts_manager: accounts::AccountsManager,
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
use std::any::Any;
|
||||
|
||||
use anyhow::{Error, Result};
|
||||
use cli_log::{error, info, warn};
|
||||
use indexmap::IndexMap;
|
||||
|
@ -9,7 +11,6 @@ use matrix_sdk::{
|
|||
},
|
||||
Client,
|
||||
};
|
||||
use std::any::Any;
|
||||
|
||||
pub enum State {
|
||||
None,
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
use crate::app::status::Status;
|
||||
use std::{cmp, io, io::Stdout};
|
||||
|
||||
use anyhow::{Error, Result};
|
||||
use cli_log::{error, info, warn};
|
||||
|
@ -12,21 +12,18 @@ use matrix_sdk::{
|
|||
room::MessagesOptions,
|
||||
ruma::events::{AnyMessageLikeEvent, AnyTimelineEvent},
|
||||
};
|
||||
use std::cmp;
|
||||
use std::io;
|
||||
use std::io::Stdout;
|
||||
use tui::layout::{Alignment, Corner};
|
||||
use tui::style::{Color, Modifier, Style};
|
||||
use tui::text::{Span, Spans, Text};
|
||||
use tui::widgets::{List, ListItem, ListState, Paragraph, Wrap};
|
||||
use tui::{
|
||||
backend::CrosstermBackend,
|
||||
layout::{Constraint, Direction, Layout},
|
||||
widgets::{Block, Borders, Widget},
|
||||
layout::{Alignment, Constraint, Corner, Direction, Layout},
|
||||
style::{Color, Modifier, Style},
|
||||
text::{Span, Spans, Text},
|
||||
widgets::{Block, Borders, List, ListItem, ListState, Paragraph, Widget, Wrap},
|
||||
Frame, Terminal,
|
||||
};
|
||||
use tui_textarea::{Input, Key, TextArea};
|
||||
|
||||
use crate::app::status::Status;
|
||||
|
||||
#[derive(Clone, Copy)]
|
||||
pub enum SetupInputPosition {
|
||||
Homeserver,
|
||||
|
|
Loading…
Reference in New Issue