clean up prelude (#4416)
* clear away prelude on dioxus * clippy * wip - drop prelude from dioxus-html * docs clippy * wip * more fixe * delete all preludes * doc... * better export * merge some imports * fewer global imports * global incremental renderer * fix cargo doc
This commit is contained in:
1 parent
54d465a7b5
commit
4f1d039bad
140 files changed
+374
-477
No files matched your search
@@ -1,4 +1,4 @@
|
||||
use dioxus_core::prelude::queue_effect;
|
||||
use dioxus_core::queue_effect;
|
||||
use dioxus_core::ScopeId;
|
||||
use dioxus_document::{
|
||||
Document, Eval, EvalError, Evaluator, LinkProps, MetaProps, ScriptProps, StyleProps,
|
||||
|
||||
@@ -2,11 +2,8 @@ use super::{Synthetic, WebEventExt};
|
||||
use dioxus_html::{
|
||||
geometry::{ClientPoint, ElementPoint, PagePoint, ScreenPoint},
|
||||
input_data::{decode_mouse_button_set, MouseButton},
|
||||
prelude::{
|
||||
InteractionElementOffset, InteractionLocation, Modifiers, ModifiersInteraction,
|
||||
PointerInteraction,
|
||||
},
|
||||
HasDragData, HasFileData, HasMouseData,
|
||||
HasDragData, HasFileData, HasMouseData, InteractionElementOffset, InteractionLocation,
|
||||
Modifiers, ModifiersInteraction, PointerInteraction,
|
||||
};
|
||||
use web_sys::DragEvent;
|
||||
|
||||
|
||||
@@ -1,9 +1,8 @@
|
||||
use std::str::FromStr;
|
||||
|
||||
use dioxus_html::{
|
||||
input_data::decode_key_location,
|
||||
prelude::{Code, Key, Location, Modifiers, ModifiersInteraction},
|
||||
HasKeyboardData,
|
||||
input_data::decode_key_location, Code, HasKeyboardData, Key, Location, Modifiers,
|
||||
ModifiersInteraction,
|
||||
};
|
||||
use web_sys::KeyboardEvent;
|
||||
|
||||
|
||||
@@ -1,11 +1,8 @@
|
||||
use dioxus_html::{
|
||||
geometry::{ClientPoint, ElementPoint, PagePoint, ScreenPoint},
|
||||
input_data::{decode_mouse_button_set, MouseButton},
|
||||
prelude::{
|
||||
InteractionElementOffset, InteractionLocation, Modifiers, ModifiersInteraction,
|
||||
PointerInteraction,
|
||||
},
|
||||
HasMouseData,
|
||||
HasMouseData, InteractionElementOffset, InteractionLocation, Modifiers, ModifiersInteraction,
|
||||
PointerInteraction,
|
||||
};
|
||||
use web_sys::MouseEvent;
|
||||
|
||||
|
||||
@@ -1,11 +1,8 @@
|
||||
use dioxus_html::{
|
||||
geometry::{ClientPoint, ElementPoint, PagePoint, ScreenPoint},
|
||||
input_data::{decode_mouse_button_set, MouseButton},
|
||||
prelude::{
|
||||
InteractionElementOffset, InteractionLocation, Modifiers, ModifiersInteraction,
|
||||
PointerInteraction,
|
||||
},
|
||||
HasPointerData,
|
||||
HasPointerData, InteractionElementOffset, InteractionLocation, Modifiers, ModifiersInteraction,
|
||||
PointerInteraction,
|
||||
};
|
||||
use web_sys::PointerEvent;
|
||||
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
use dioxus_html::{
|
||||
geometry::{ClientPoint, PagePoint, ScreenPoint},
|
||||
prelude::{InteractionLocation, Modifiers, ModifiersInteraction},
|
||||
HasTouchPointData, TouchPoint,
|
||||
HasTouchPointData, InteractionLocation, Modifiers, ModifiersInteraction, TouchPoint,
|
||||
};
|
||||
use web_sys::{Touch, TouchEvent};
|
||||
|
||||
|
||||
@@ -1,11 +1,8 @@
|
||||
use dioxus_html::{
|
||||
geometry::{ClientPoint, ElementPoint, PagePoint, ScreenPoint},
|
||||
input_data::{decode_mouse_button_set, MouseButton},
|
||||
prelude::{
|
||||
InteractionElementOffset, InteractionLocation, Modifiers, ModifiersInteraction,
|
||||
PointerInteraction,
|
||||
},
|
||||
HasMouseData, HasWheelData,
|
||||
HasMouseData, HasWheelData, InteractionElementOffset, InteractionLocation, Modifiers,
|
||||
ModifiersInteraction, PointerInteraction,
|
||||
};
|
||||
use web_sys::WheelEvent;
|
||||
|
||||
|
||||
@@ -4,9 +4,10 @@
|
||||
//! 3. Register a callback for dx_hydrate(id, data) that takes some new data, reruns the suspense boundary with that new data and then rehydrates the node
|
||||
|
||||
use crate::dom::WebsysDom;
|
||||
use dioxus_core::prelude::*;
|
||||
use dioxus_core::AttributeValue;
|
||||
use dioxus_core::{DynamicNode, ElementId};
|
||||
use dioxus_core::{
|
||||
AttributeValue, DynamicNode, ElementId, ScopeId, ScopeState, SuspenseBoundaryProps,
|
||||
SuspenseContext, TemplateNode, VNode, VirtualDom,
|
||||
};
|
||||
use dioxus_fullstack_protocol::HydrationContext;
|
||||
use futures_channel::mpsc::UnboundedReceiver;
|
||||
use std::fmt::Write;
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
//! This module contains the `launch` function, which is the main entry point for dioxus web
|
||||
|
||||
pub use crate::Config;
|
||||
use dioxus_core::prelude::*;
|
||||
use dioxus_core::{Element, VirtualDom};
|
||||
use std::any::Any;
|
||||
|
||||
/// Launch the web application with the given root component, context and config
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
use crate::dom::WebsysDom;
|
||||
use dioxus_core::prelude::*;
|
||||
use dioxus_core::WriteMutations;
|
||||
use dioxus_core::{AttributeValue, ElementId};
|
||||
use dioxus_core::{
|
||||
AttributeValue, ElementId, Template, TemplateAttribute, TemplateNode, WriteMutations,
|
||||
};
|
||||
use dioxus_core_types::event_bubbles;
|
||||
use dioxus_interpreter_js::minimal_bindings;
|
||||
use wasm_bindgen::JsCast;
|
||||
|
||||
Reference in new issue
Block a user