-
-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into jk/global-window-fun
- Loading branch information
Showing
200 changed files
with
6,088 additions
and
2,381 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,7 @@ | |
/dist | ||
Cargo.lock | ||
.DS_Store | ||
/examples/assets/test_video.mp4 | ||
|
||
.vscode/* | ||
!.vscode/settings.json | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
use dioxus::prelude::*; | ||
use dioxus_desktop::wry::http::Response; | ||
use dioxus_desktop::{use_asset_handler, AssetRequest}; | ||
use std::path::Path; | ||
|
||
fn main() { | ||
dioxus_desktop::launch(app); | ||
} | ||
|
||
fn app(cx: Scope) -> Element { | ||
use_asset_handler(cx, |request: &AssetRequest| { | ||
let path = request.path().to_path_buf(); | ||
async move { | ||
if path != Path::new("logo.png") { | ||
return None; | ||
} | ||
let image_data: &[u8] = include_bytes!("./assets/logo.png"); | ||
Some(Response::new(image_data.into())) | ||
} | ||
}); | ||
|
||
cx.render(rsx! { | ||
div { | ||
img { | ||
src: "logo.png" | ||
} | ||
} | ||
}) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,20 @@ | ||
use openidconnect::{core::CoreErrorResponseType, url, RequestTokenError, StandardErrorResponse}; | ||
use thiserror::Error; | ||
|
||
#[derive(Error, Debug)] | ||
pub enum Error { | ||
#[error("Discovery error: {0}")] | ||
OpenIdConnect( | ||
#[from] openidconnect::DiscoveryError<openidconnect::reqwest::Error<reqwest::Error>>, | ||
), | ||
#[error("Parsing error: {0}")] | ||
Parse(#[from] url::ParseError), | ||
#[error("Request token error: {0}")] | ||
RequestToken( | ||
#[from] | ||
RequestTokenError< | ||
openidconnect::reqwest::Error<reqwest::Error>, | ||
StandardErrorResponse<CoreErrorResponseType>, | ||
>, | ||
), | ||
} | ||
use openidconnect::{core::CoreErrorResponseType, url, RequestTokenError, StandardErrorResponse}; | ||
use thiserror::Error; | ||
|
||
#[derive(Error, Debug)] | ||
pub enum Error { | ||
#[error("Discovery error: {0}")] | ||
OpenIdConnect( | ||
#[from] openidconnect::DiscoveryError<openidconnect::reqwest::Error<reqwest::Error>>, | ||
), | ||
#[error("Parsing error: {0}")] | ||
Parse(#[from] url::ParseError), | ||
#[error("Request token error: {0}")] | ||
RequestToken( | ||
#[from] | ||
RequestTokenError< | ||
openidconnect::reqwest::Error<reqwest::Error>, | ||
StandardErrorResponse<CoreErrorResponseType>, | ||
>, | ||
), | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.