fix TUI and tests building

This commit is contained in:
Evan Almloff 2023-03-13 18:09:20 -05:00
parent daac9f540f
commit b255800511
6 changed files with 7 additions and 23 deletions

View File

@ -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() {

View File

@ -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())

View File

@ -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};

View File

@ -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;

View File

@ -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;

View File

@ -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;