-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'RustForWeb:main' into update/leptos-0.7-compose-refs
- Loading branch information
Showing
999 changed files
with
23,630 additions
and
8,699 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,21 @@ | ||
[package] | ||
name = "radix-dioxus-book-icons" | ||
description = "Book examples for Radix Icons Dioxus." | ||
publish = false | ||
|
||
authors.workspace = true | ||
edition.workspace = true | ||
license.workspace = true | ||
repository.workspace = true | ||
version.workspace = true | ||
|
||
[dependencies] | ||
console_error_panic_hook.workspace = true | ||
console_log.workspace = true | ||
log.workspace = true | ||
radix-dioxus-icons = { path = "../../../packages/icons/dioxus", optional = true } | ||
dioxus = { workspace = true, features = ["web"] } | ||
|
||
[features] | ||
default = [] | ||
icons = ["dep:radix-dioxus-icons"] |
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,7 @@ | ||
[[hooks]] | ||
stage = "pre_build" | ||
command = "sh" | ||
command_arguments = [ | ||
"-c", | ||
"npx tailwindcss -i style/tailwind.css -o style/tailwind.output.css", | ||
] |
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,14 @@ | ||
<!doctype html> | ||
<html> | ||
<head> | ||
<title>Radix Icons Dioxus</title> | ||
|
||
<link data-trunk rel="css" href="/style/tailwind.output.css" /> | ||
|
||
<script data-trunk type="application/javascript" src="/main.js"></script> | ||
</head> | ||
<body | ||
id="main" | ||
class="from-purple9 to-indigo9 h-full bg-[linear-gradient(330deg,var(--tw-gradient-stops))] py-[100px]" | ||
></body> | ||
</html> |
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,13 @@ | ||
document.addEventListener('DOMContentLoaded', () => { | ||
const resizeObserver = new ResizeObserver(() => { | ||
if (window.top) { | ||
window.top.postMessage({ | ||
mdbookTrunk: { | ||
width: document.body.scrollWidth, | ||
height: document.body.scrollHeight | ||
} | ||
}); | ||
} | ||
}); | ||
resizeObserver.observe(document.body); | ||
}); |
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,20 @@ | ||
use dioxus::prelude::*; | ||
|
||
#[component] | ||
pub fn App() -> Element { | ||
#[allow(unused_mut)] | ||
let mut children: Vec<Result<VNode, RenderError>> = vec![]; | ||
|
||
#[cfg(feature = "icons")] | ||
{ | ||
use crate::icons::Icons; | ||
|
||
children.push(rsx! { | ||
Icons {} | ||
}); | ||
} | ||
|
||
rsx! { | ||
div { class: "w-full h-full flex justify-center items-center", {children.iter()} } | ||
} | ||
} |
Oops, something went wrong.