Feat: major overhaul to diffing, using a "diffing machine" now
This commit is contained in:
1 parent
4c291a0efd
commit
4dfdf91236
10 files changed
+822
-780
No files matched your search
@@ -45,6 +45,10 @@ path = "common.rs"
|
||||
path = "example_app.rs"
|
||||
name = "example_app"
|
||||
|
||||
[[example]]
|
||||
path = "website.rs"
|
||||
name = "website"
|
||||
|
||||
# [[example]]
|
||||
# path = "hello_web.rs"
|
||||
# name = "hello_web"
|
||||
|
||||
@@ -0,0 +1,45 @@
|
||||
//! DioxusLabs Webiste
|
||||
//! ------------------
|
||||
//!
|
||||
//! This is the example powering the DioxusLabs website :)
|
||||
//! It's always good to dogfood your code, right?
|
||||
|
||||
use dioxus::prelude::*;
|
||||
|
||||
fn main() {}
|
||||
|
||||
mod state {
|
||||
pub struct AppState {
|
||||
cur_page: Route,
|
||||
}
|
||||
|
||||
pub enum Route {
|
||||
Homepage,
|
||||
Docs,
|
||||
}
|
||||
}
|
||||
|
||||
static APP: FC<()> = |ctx, props| {
|
||||
ctx.view(html! {
|
||||
<div>
|
||||
|
||||
<div>
|
||||
})
|
||||
};
|
||||
|
||||
/// Draw the navbar on top of the screen
|
||||
static Navbar: FC<state::Route> = |ctx, props| {
|
||||
ctx.view(html! {
|
||||
<div>
|
||||
|
||||
<div>
|
||||
})
|
||||
};
|
||||
|
||||
static Homepage: FC<()> = |ctx, props| {
|
||||
ctx.view(html! {
|
||||
<div>
|
||||
|
||||
<div>
|
||||
})
|
||||
};
|
||||
Reference in new issue
Block a user