Move euph room ui to new euph module
This commit is contained in:
parent
f7e379fe3a
commit
fa91515a61
4 changed files with 17 additions and 17 deletions
|
|
@ -1,6 +1,6 @@
|
||||||
mod chat;
|
mod chat;
|
||||||
|
mod euph;
|
||||||
mod input;
|
mod input;
|
||||||
mod room;
|
|
||||||
mod rooms;
|
mod rooms;
|
||||||
mod util;
|
mod util;
|
||||||
mod widgets;
|
mod widgets;
|
||||||
|
|
|
||||||
1
src/ui/euph.rs
Normal file
1
src/ui/euph.rs
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
pub mod room;
|
||||||
|
|
@ -12,23 +12,22 @@ use toss::terminal::Terminal;
|
||||||
use crate::euph::api::{SessionType, SessionView, Snowflake};
|
use crate::euph::api::{SessionType, SessionView, Snowflake};
|
||||||
use crate::euph::{self, Joined, Status};
|
use crate::euph::{self, Joined, Status};
|
||||||
use crate::store::MsgStore;
|
use crate::store::MsgStore;
|
||||||
|
use crate::ui::chat::{ChatState, Reaction};
|
||||||
|
use crate::ui::input::{key, KeyBindingsList, KeyEvent};
|
||||||
|
use crate::ui::widgets::background::Background;
|
||||||
|
use crate::ui::widgets::border::Border;
|
||||||
|
use crate::ui::widgets::editor::EditorState;
|
||||||
|
use crate::ui::widgets::empty::Empty;
|
||||||
|
use crate::ui::widgets::float::Float;
|
||||||
|
use crate::ui::widgets::join::{HJoin, Segment, VJoin};
|
||||||
|
use crate::ui::widgets::layer::Layer;
|
||||||
|
use crate::ui::widgets::list::{List, ListState};
|
||||||
|
use crate::ui::widgets::padding::Padding;
|
||||||
|
use crate::ui::widgets::text::Text;
|
||||||
|
use crate::ui::widgets::BoxedWidget;
|
||||||
|
use crate::ui::{util, UiEvent};
|
||||||
use crate::vault::EuphVault;
|
use crate::vault::EuphVault;
|
||||||
|
|
||||||
use super::chat::{ChatState, Reaction};
|
|
||||||
use super::input::{key, KeyBindingsList, KeyEvent};
|
|
||||||
use super::widgets::background::Background;
|
|
||||||
use super::widgets::border::Border;
|
|
||||||
use super::widgets::editor::EditorState;
|
|
||||||
use super::widgets::empty::Empty;
|
|
||||||
use super::widgets::float::Float;
|
|
||||||
use super::widgets::join::{HJoin, Segment, VJoin};
|
|
||||||
use super::widgets::layer::Layer;
|
|
||||||
use super::widgets::list::{List, ListState};
|
|
||||||
use super::widgets::padding::Padding;
|
|
||||||
use super::widgets::text::Text;
|
|
||||||
use super::widgets::BoxedWidget;
|
|
||||||
use super::{util, UiEvent};
|
|
||||||
|
|
||||||
enum State {
|
enum State {
|
||||||
Normal,
|
Normal,
|
||||||
ChooseNick(EditorState),
|
ChooseNick(EditorState),
|
||||||
|
|
@ -13,8 +13,8 @@ use crate::euph::api::SessionType;
|
||||||
use crate::euph::{Joined, Status};
|
use crate::euph::{Joined, Status};
|
||||||
use crate::vault::Vault;
|
use crate::vault::Vault;
|
||||||
|
|
||||||
|
use super::euph::room::EuphRoom;
|
||||||
use super::input::{key, KeyBindingsList, KeyEvent};
|
use super::input::{key, KeyBindingsList, KeyEvent};
|
||||||
use super::room::EuphRoom;
|
|
||||||
use super::widgets::background::Background;
|
use super::widgets::background::Background;
|
||||||
use super::widgets::border::Border;
|
use super::widgets::border::Border;
|
||||||
use super::widgets::editor::EditorState;
|
use super::widgets::editor::EditorState;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue