Fix the router and stub out a number of crates to get compiling
This commit is contained in:
226 files changed
+1057
-1482
No files matched your search
@@ -125,7 +125,7 @@ impl EditQueue {
|
||||
// }
|
||||
|
||||
// pub fn add_template(
|
||||
// template: &Template<'static>,
|
||||
// template: &Template,
|
||||
// channel: &mut Channel,
|
||||
// templates: &mut FxHashMap<String, u16>,
|
||||
// max_template_count: &AtomicU16,
|
||||
|
||||
@@ -6,7 +6,7 @@ use tao::{event::Event, event_loop::EventLoopWindowTarget};
|
||||
use wry::RequestAsyncResponder;
|
||||
|
||||
// /// Get an imperative handle to the current window
|
||||
// pub fn use_window(cx: &ScopeState) -> &DesktopContext {
|
||||
// pub fn use_window() -> &DesktopContext {
|
||||
// cx.use_hook(|| cx.consume_context::<DesktopContext>())
|
||||
// .as_ref()
|
||||
// .unwrap()
|
||||
@@ -14,7 +14,7 @@ use wry::RequestAsyncResponder;
|
||||
|
||||
// /// Get a closure that executes any JavaScript in the WebView context.
|
||||
// pub fn use_wry_event_handler(
|
||||
// cx: &ScopeState,
|
||||
// ,
|
||||
// handler: impl FnMut(&Event<UserWindowEvent>, &EventLoopWindowTarget<UserWindowEvent>) + 'static,
|
||||
// ) -> &WryEventHandler {
|
||||
// cx.use_hook(move || {
|
||||
@@ -34,7 +34,7 @@ use wry::RequestAsyncResponder;
|
||||
// /// The callback takes a path as requested by the web view, and it should return `Some(response)`
|
||||
// /// if you want to load the asset, and `None` if you want to fallback on the default behavior.
|
||||
// pub fn use_asset_handler(
|
||||
// cx: &ScopeState,
|
||||
// ,
|
||||
// name: &str,
|
||||
// handler: impl Fn(AssetRequest, RequestAsyncResponder) + 'static,
|
||||
// ) {
|
||||
@@ -59,7 +59,7 @@ use wry::RequestAsyncResponder;
|
||||
|
||||
// /// Get a closure that executes any JavaScript in the WebView context.
|
||||
// pub fn use_global_shortcut(
|
||||
// cx: &ScopeState,
|
||||
// ,
|
||||
// accelerator: impl IntoAccelerator,
|
||||
// handler: impl FnMut() + 'static,
|
||||
// ) -> &Result<ShortcutHandle, ShortcutRegistryError> {
|
||||
|
||||
@@ -17,7 +17,7 @@ use tao::event::{Event, StartCause, WindowEvent};
|
||||
/// dioxus_desktop::launch(app);
|
||||
/// }
|
||||
///
|
||||
/// fn app(cx: Scope) -> Element {
|
||||
/// fn app() -> Element {
|
||||
/// cx.render(rsx!{
|
||||
/// h1 {"hello world!"}
|
||||
/// })
|
||||
@@ -41,7 +41,7 @@ pub fn launch(root: Component) {
|
||||
/// dioxus_desktop::launch_cfg(app, Config::default().with_window(WindowBuilder::new().with_title("My App")));
|
||||
/// }
|
||||
///
|
||||
/// fn app(cx: Scope) -> Element {
|
||||
/// fn app() -> Element {
|
||||
/// cx.render(rsx!{
|
||||
/// h1 {"hello world!"}
|
||||
/// })
|
||||
|
||||
@@ -34,7 +34,7 @@ fn main() {
|
||||
dioxus_desktop::launch(app);
|
||||
}
|
||||
|
||||
fn app(cx: Scope) -> Element {
|
||||
fn app() -> Element {
|
||||
cx.render(rsx!{
|
||||
div {
|
||||
"hello world!"
|
||||
|
||||
Reference in new issue
Block a user