add remaining passes
This commit is contained in:
1 parent
ec31014966
commit
a74a3b1925
1 file changed
+6
@@ -1,3 +1,4 @@
|
|||||||
|
use crate::focus::Focus;
|
||||||
use anyhow::Result;
|
use anyhow::Result;
|
||||||
use crossterm::{
|
use crossterm::{
|
||||||
cursor::{MoveTo, RestorePosition, SavePosition, Show},
|
cursor::{MoveTo, RestorePosition, SavePosition, Show},
|
||||||
@@ -15,6 +16,7 @@ use futures::{
|
|||||||
};
|
};
|
||||||
use futures_channel::mpsc::unbounded;
|
use futures_channel::mpsc::unbounded;
|
||||||
use layout::TaffyLayout;
|
use layout::TaffyLayout;
|
||||||
|
use prevent_default::PreventDefault;
|
||||||
use query::Query;
|
use query::Query;
|
||||||
use std::rc::Rc;
|
use std::rc::Rc;
|
||||||
use std::{
|
use std::{
|
||||||
@@ -22,6 +24,7 @@ use std::{
|
|||||||
sync::{Arc, Mutex},
|
sync::{Arc, Mutex},
|
||||||
};
|
};
|
||||||
use std::{io, time::Duration};
|
use std::{io, time::Duration};
|
||||||
|
use style_attributes::StyleModifier;
|
||||||
use taffy::Taffy;
|
use taffy::Taffy;
|
||||||
pub use taffy::{geometry::Point, prelude::*};
|
pub use taffy::{geometry::Point, prelude::*};
|
||||||
use tui::{backend::CrosstermBackend, layout::Rect, Terminal};
|
use tui::{backend::CrosstermBackend, layout::Rect, Terminal};
|
||||||
@@ -104,6 +107,9 @@ pub fn launch_cfg_with_props<Props: 'static>(app: Component<Props>, props: Props
|
|||||||
let cx = dom.base_scope();
|
let cx = dom.base_scope();
|
||||||
let rdom = Rc::new(RefCell::new(RealDom::new(Box::new([
|
let rdom = Rc::new(RefCell::new(RealDom::new(Box::new([
|
||||||
TaffyLayout::to_type_erased(),
|
TaffyLayout::to_type_erased(),
|
||||||
|
Focus::to_type_erased(),
|
||||||
|
StyleModifier::to_type_erased(),
|
||||||
|
PreventDefault::to_type_erased(),
|
||||||
]))));
|
]))));
|
||||||
let taffy = Arc::new(Mutex::new(Taffy::new()));
|
let taffy = Arc::new(Mutex::new(Taffy::new()));
|
||||||
cx.provide_context(state);
|
cx.provide_context(state);
|
||||||
|
|||||||
Reference in new issue
Block a user