fix TUI and tests building
This commit is contained in:
parent
daac9f540f
commit
b255800511
|
@ -1,7 +1,7 @@
|
|||
use dioxus::core::RenderReturn;
|
||||
use dioxus::prelude::*;
|
||||
use dioxus_tui::query::Query;
|
||||
use dioxus_tui::DioxusElementToNodeId;
|
||||
use dioxus_tui::Query;
|
||||
use dioxus_tui::Size;
|
||||
|
||||
fn main() {
|
||||
|
|
|
@ -12,8 +12,8 @@ use dioxus_html::EventData;
|
|||
use dioxus_native_core::dioxus::{DioxusState, NodeImmutableDioxusExt};
|
||||
use dioxus_native_core::prelude::*;
|
||||
|
||||
pub use rink::Config;
|
||||
use rink::{query::Query, render, Renderer, TuiContext};
|
||||
pub use rink::{query::Query, Config, Size, TuiContext, RenderingMode};
|
||||
use rink::{render, Renderer};
|
||||
|
||||
pub fn launch(app: Component<()>) {
|
||||
launch_cfg(app, Config::default())
|
||||
|
|
|
@ -30,6 +30,8 @@ pub mod exports {
|
|||
|
||||
/// A prelude of commonly used items
|
||||
pub mod prelude {
|
||||
#[cfg(feature = "dioxus")]
|
||||
pub use crate::dioxus::*;
|
||||
pub use crate::node::{ElementNode, FromAnyValue, NodeType, OwnedAttributeView, TextNode};
|
||||
pub use crate::node_ref::{AttributeMaskBuilder, NodeMaskBuilder, NodeView};
|
||||
pub use crate::passes::{run_pass, PassDirection, RunPassView, TypeErasedState};
|
||||
|
|
|
@ -1,11 +1,5 @@
|
|||
use dioxus::prelude::*;
|
||||
use dioxus_native_core::prelude::*;
|
||||
use dioxus_native_core::{
|
||||
dioxus::DioxusState,
|
||||
node_ref::{NodeMaskBuilder, NodeView},
|
||||
real_dom::RealDom,
|
||||
Dependancy, SendAnyMap, State,
|
||||
};
|
||||
use dioxus_native_core_macro::partial_derive_state;
|
||||
use shipyard::Component;
|
||||
|
||||
|
|
|
@ -1,12 +1,6 @@
|
|||
use dioxus::prelude::Props;
|
||||
use dioxus_core::*;
|
||||
use dioxus_native_core::{
|
||||
dioxus::DioxusState,
|
||||
node_ref::{AttributeMaskBuilder, NodeMaskBuilder, NodeView},
|
||||
prelude::*,
|
||||
real_dom::RealDom,
|
||||
Dependancy, SendAnyMap, State,
|
||||
};
|
||||
use dioxus_native_core::prelude::*;
|
||||
use dioxus_native_core_macro::partial_derive_state;
|
||||
use shipyard::Component;
|
||||
use std::cell::Cell;
|
||||
|
|
|
@ -1,11 +1,5 @@
|
|||
use dioxus::prelude::*;
|
||||
use dioxus_native_core::{
|
||||
dioxus::DioxusState,
|
||||
node_ref::{AttributeMaskBuilder, NodeMaskBuilder, NodeView},
|
||||
prelude::*,
|
||||
real_dom::RealDom,
|
||||
Dependancy, SendAnyMap, State,
|
||||
};
|
||||
use dioxus_native_core::prelude::*;
|
||||
use dioxus_native_core_macro::partial_derive_state;
|
||||
use shipyard::Component;
|
||||
use tokio::time::sleep;
|
||||
|
|
Loading…
Reference in New Issue