Merge branch 'master' into intigrate-collect-assets
This commit is contained in:
31 files changed
+90
-4
No files matched your search
@@ -35,7 +35,7 @@ impl Display for BlogQuerySegments {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// The query segment is anything that implements https://docs.rs/dioxus-router/latest/dioxus_router/routable/trait.FromQuery.html. You can implement that trait for a struct if you want to parse multiple query parameters.
|
/// The query segment is anything that implements <https://docs.rs/dioxus-router/latest/dioxus_router/routable/trait.FromQuery.html>. You can implement that trait for a struct if you want to parse multiple query parameters.
|
||||||
impl FromQuery for BlogQuerySegments {
|
impl FromQuery for BlogQuerySegments {
|
||||||
fn from_query(query: &str) -> Self {
|
fn from_query(query: &str) -> Self {
|
||||||
let mut name = None;
|
let mut name = None;
|
||||||
|
|||||||
@@ -1,3 +1,7 @@
|
|||||||
|
#![doc = include_str!("../README.md")]
|
||||||
|
#![doc(html_logo_url = "https://avatars.githubusercontent.com/u/79236386")]
|
||||||
|
#![doc(html_favicon_url = "https://avatars.githubusercontent.com/u/79236386")]
|
||||||
|
|
||||||
use std::fmt::{Display, Write};
|
use std::fmt::{Display, Write};
|
||||||
|
|
||||||
use crate::writer::*;
|
use crate::writer::*;
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
[![Discord chat][discord-badge]][discord-url]
|
[![Discord chat][discord-badge]][discord-url]
|
||||||
|
|
||||||
[crates-badge]: https://img.shields.io/crates/v/dioxus-autofmt.svg
|
[crates-badge]: https://img.shields.io/crates/v/dioxus-autofmt.svg
|
||||||
[crates-url]: https://crates.io/crates/dioxus-autofmt
|
[crates-url]: https://crates.io/crates/dioxus-check
|
||||||
[mit-badge]: https://img.shields.io/badge/license-MIT-blue.svg
|
[mit-badge]: https://img.shields.io/badge/license-MIT-blue.svg
|
||||||
[mit-url]: https://github.com/dioxuslabs/dioxus/blob/master/LICENSE
|
[mit-url]: https://github.com/dioxuslabs/dioxus/blob/master/LICENSE
|
||||||
[actions-badge]: https://github.com/dioxuslabs/dioxus/actions/workflows/main.yml/badge.svg
|
[actions-badge]: https://github.com/dioxuslabs/dioxus/actions/workflows/main.yml/badge.svg
|
||||||
@@ -16,7 +16,7 @@
|
|||||||
|
|
||||||
[Website](https://dioxuslabs.com) |
|
[Website](https://dioxuslabs.com) |
|
||||||
[Guides](https://dioxuslabs.com/learn/0.4/) |
|
[Guides](https://dioxuslabs.com/learn/0.4/) |
|
||||||
[API Docs](https://docs.rs/dioxus-autofmt/latest/dioxus_autofmt) |
|
[API Docs](https://docs.rs/dioxus-check) |
|
||||||
[Chat](https://discord.gg/XgGxMSkvUM)
|
[Chat](https://discord.gg/XgGxMSkvUM)
|
||||||
|
|
||||||
## Overview
|
## Overview
|
||||||
|
|||||||
@@ -1,3 +1,7 @@
|
|||||||
|
#![doc = include_str!("../README.md")]
|
||||||
|
#![doc(html_logo_url = "https://avatars.githubusercontent.com/u/79236386")]
|
||||||
|
#![doc(html_favicon_url = "https://avatars.githubusercontent.com/u/79236386")]
|
||||||
|
|
||||||
mod check;
|
mod check;
|
||||||
mod issues;
|
mod issues;
|
||||||
mod metadata;
|
mod metadata;
|
||||||
|
|||||||
@@ -467,6 +467,7 @@ pub fn gen_page(config: &CrateConfig, serve: bool, skip_assets: bool) -> String
|
|||||||
String::from(include_str!("./assets/index.html"))
|
String::from(include_str!("./assets/index.html"))
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
let resources = config.dioxus_config.web.resource.clone();
|
let resources = config.dioxus_config.web.resource.clone();
|
||||||
|
|
||||||
let mut style_list = resources.style.unwrap_or_default();
|
let mut style_list = resources.style.unwrap_or_default();
|
||||||
@@ -719,6 +720,7 @@ fn build_assets(config: &CrateConfig) -> Result<Vec<PathBuf>> {
|
|||||||
|
|
||||||
Ok(result)
|
Ok(result)
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Process any assets collected from the binary
|
/// Process any assets collected from the binary
|
||||||
fn process_assets(config: &CrateConfig) -> anyhow::Result<()> {
|
fn process_assets(config: &CrateConfig) -> anyhow::Result<()> {
|
||||||
let manifest = config.asset_manifest();
|
let manifest = config.asset_manifest();
|
||||||
|
|||||||
@@ -1,3 +1,7 @@
|
|||||||
|
#![doc = include_str!("../README.md")]
|
||||||
|
#![doc(html_logo_url = "https://avatars.githubusercontent.com/u/79236386")]
|
||||||
|
#![doc(html_favicon_url = "https://avatars.githubusercontent.com/u/79236386")]
|
||||||
|
|
||||||
pub const DIOXUS_CLI_VERSION: &str = "0.4.1";
|
pub const DIOXUS_CLI_VERSION: &str = "0.4.1";
|
||||||
|
|
||||||
pub mod builder;
|
pub mod builder;
|
||||||
|
|||||||
@@ -1,3 +1,7 @@
|
|||||||
|
#![doc = include_str!("../README.md")]
|
||||||
|
#![doc(html_logo_url = "https://avatars.githubusercontent.com/u/79236386")]
|
||||||
|
#![doc(html_favicon_url = "https://avatars.githubusercontent.com/u/79236386")]
|
||||||
|
|
||||||
use proc_macro::TokenStream;
|
use proc_macro::TokenStream;
|
||||||
use quote::ToTokens;
|
use quote::ToTokens;
|
||||||
use rsx::RenderCallBody;
|
use rsx::RenderCallBody;
|
||||||
|
|||||||
@@ -1,4 +1,6 @@
|
|||||||
#![doc = include_str!("../README.md")]
|
#![doc = include_str!("../README.md")]
|
||||||
|
#![doc(html_logo_url = "https://avatars.githubusercontent.com/u/79236386")]
|
||||||
|
#![doc(html_favicon_url = "https://avatars.githubusercontent.com/u/79236386")]
|
||||||
#![warn(missing_docs)]
|
#![warn(missing_docs)]
|
||||||
|
|
||||||
mod any_props;
|
mod any_props;
|
||||||
|
|||||||
@@ -1,3 +1,7 @@
|
|||||||
|
#![doc = include_str!("../README.md")]
|
||||||
|
#![doc(html_logo_url = "https://avatars.githubusercontent.com/u/79236386")]
|
||||||
|
#![doc(html_favicon_url = "https://avatars.githubusercontent.com/u/79236386")]
|
||||||
|
|
||||||
mod element;
|
mod element;
|
||||||
|
|
||||||
use std::{
|
use std::{
|
||||||
|
|||||||
@@ -1,3 +1,7 @@
|
|||||||
|
#![doc = include_str!("../README.md")]
|
||||||
|
#![doc(html_logo_url = "https://avatars.githubusercontent.com/u/79236386")]
|
||||||
|
#![doc(html_favicon_url = "https://avatars.githubusercontent.com/u/79236386")]
|
||||||
|
|
||||||
pub use dioxus_core as core;
|
pub use dioxus_core as core;
|
||||||
|
|
||||||
#[cfg(feature = "hooks")]
|
#[cfg(feature = "hooks")]
|
||||||
|
|||||||
@@ -1,4 +1,6 @@
|
|||||||
#![doc = include_str!("../README.md")]
|
#![doc = include_str!("../README.md")]
|
||||||
|
#![doc(html_logo_url = "https://avatars.githubusercontent.com/u/79236386")]
|
||||||
|
#![doc(html_favicon_url = "https://avatars.githubusercontent.com/u/79236386")]
|
||||||
|
|
||||||
pub mod prelude {
|
pub mod prelude {
|
||||||
pub use crate::*;
|
pub use crate::*;
|
||||||
|
|||||||
@@ -31,4 +31,4 @@ let store = Store::default();
|
|||||||
|
|
||||||
## How it works
|
## How it works
|
||||||
|
|
||||||
Internally
|
Internally
|
||||||
@@ -1,3 +1,6 @@
|
|||||||
|
#![doc = include_str!("../README.md")]
|
||||||
|
#![doc(html_logo_url = "https://avatars.githubusercontent.com/u/79236386")]
|
||||||
|
#![doc(html_favicon_url = "https://avatars.githubusercontent.com/u/79236386")]
|
||||||
#![cfg_attr(feature = "nightly-features", feature(debug_refcell))]
|
#![cfg_attr(feature = "nightly-features", feature(debug_refcell))]
|
||||||
|
|
||||||
#[macro_export]
|
#[macro_export]
|
||||||
|
|||||||
@@ -1107,6 +1107,7 @@ builder_constructors! {
|
|||||||
formnovalidate: Bool DEFAULT,
|
formnovalidate: Bool DEFAULT,
|
||||||
formtarget: Target DEFAULT,
|
formtarget: Target DEFAULT,
|
||||||
height: isize DEFAULT,
|
height: isize DEFAULT,
|
||||||
|
initial_checked: Bool DEFAULT,
|
||||||
list: Id DEFAULT,
|
list: Id DEFAULT,
|
||||||
max: String DEFAULT,
|
max: String DEFAULT,
|
||||||
maxlength: usize DEFAULT,
|
maxlength: usize DEFAULT,
|
||||||
|
|||||||
@@ -1,3 +1,6 @@
|
|||||||
|
#![doc = include_str!("../README.md")]
|
||||||
|
#![doc(html_logo_url = "https://avatars.githubusercontent.com/u/79236386")]
|
||||||
|
#![doc(html_favicon_url = "https://avatars.githubusercontent.com/u/79236386")]
|
||||||
#![allow(non_snake_case)]
|
#![allow(non_snake_case)]
|
||||||
|
|
||||||
//! # Dioxus Namespace for HTML
|
//! # Dioxus Namespace for HTML
|
||||||
|
|||||||
@@ -51,6 +51,9 @@ export function setAttributeInner(node, field, value, ns) {
|
|||||||
case "checked":
|
case "checked":
|
||||||
node.checked = truthy(value);
|
node.checked = truthy(value);
|
||||||
break;
|
break;
|
||||||
|
case "initial_checked":
|
||||||
|
node.defaultChecked = truthy(value);
|
||||||
|
break;
|
||||||
case "selected":
|
case "selected":
|
||||||
node.selected = truthy(value);
|
node.selected = truthy(value);
|
||||||
break;
|
break;
|
||||||
|
|||||||
@@ -1,3 +1,7 @@
|
|||||||
|
#![doc = include_str!("../README.md")]
|
||||||
|
#![doc(html_logo_url = "https://avatars.githubusercontent.com/u/79236386")]
|
||||||
|
#![doc(html_favicon_url = "https://avatars.githubusercontent.com/u/79236386")]
|
||||||
|
|
||||||
pub static INTERPRETER_JS: &str = include_str!("./interpreter.js");
|
pub static INTERPRETER_JS: &str = include_str!("./interpreter.js");
|
||||||
pub static COMMON_JS: &str = include_str!("./common.js");
|
pub static COMMON_JS: &str = include_str!("./common.js");
|
||||||
|
|
||||||
|
|||||||
@@ -80,6 +80,9 @@ mod js {
|
|||||||
case "checked":
|
case "checked":
|
||||||
node.checked = truthy(value);
|
node.checked = truthy(value);
|
||||||
break;
|
break;
|
||||||
|
case "initial_checked":
|
||||||
|
node.defaultChecked = truthy(value);
|
||||||
|
break;
|
||||||
case "selected":
|
case "selected":
|
||||||
node.selected = truthy(value);
|
node.selected = truthy(value);
|
||||||
break;
|
break;
|
||||||
|
|||||||
@@ -1,3 +1,7 @@
|
|||||||
|
#![doc = include_str!("../README.md")]
|
||||||
|
#![doc(html_logo_url = "https://avatars.githubusercontent.com/u/79236386")]
|
||||||
|
#![doc(html_favicon_url = "https://avatars.githubusercontent.com/u/79236386")]
|
||||||
|
|
||||||
pub mod adapters {
|
pub mod adapters {
|
||||||
#[cfg(feature = "warp")]
|
#[cfg(feature = "warp")]
|
||||||
pub mod warp_adapter;
|
pub mod warp_adapter;
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
#![doc = include_str!("../README.md")]
|
#![doc = include_str!("../README.md")]
|
||||||
|
#![doc(html_logo_url = "https://avatars.githubusercontent.com/u/79236386")]
|
||||||
|
#![doc(html_favicon_url = "https://avatars.githubusercontent.com/u/79236386")]
|
||||||
|
|
||||||
pub use dioxus_desktop::*;
|
pub use dioxus_desktop::*;
|
||||||
@@ -1,3 +1,7 @@
|
|||||||
|
#![doc = include_str!("../README.md")]
|
||||||
|
#![doc(html_logo_url = "https://avatars.githubusercontent.com/u/79236386")]
|
||||||
|
#![doc(html_favicon_url = "https://avatars.githubusercontent.com/u/79236386")]
|
||||||
|
|
||||||
extern crate proc_macro;
|
extern crate proc_macro;
|
||||||
|
|
||||||
use std::collections::HashSet;
|
use std::collections::HashSet;
|
||||||
|
|||||||
@@ -1,4 +1,6 @@
|
|||||||
#![doc = include_str!("../README.md")]
|
#![doc = include_str!("../README.md")]
|
||||||
|
#![doc(html_logo_url = "https://avatars.githubusercontent.com/u/79236386")]
|
||||||
|
#![doc(html_favicon_url = "https://avatars.githubusercontent.com/u/79236386")]
|
||||||
#![warn(missing_docs)]
|
#![warn(missing_docs)]
|
||||||
|
|
||||||
use std::any::Any;
|
use std::any::Any;
|
||||||
|
|||||||
@@ -1,3 +1,7 @@
|
|||||||
|
#![doc = include_str!("../README.md")]
|
||||||
|
#![doc(html_logo_url = "https://avatars.githubusercontent.com/u/79236386")]
|
||||||
|
#![doc(html_favicon_url = "https://avatars.githubusercontent.com/u/79236386")]
|
||||||
|
|
||||||
use crate::focus::Focus;
|
use crate::focus::Focus;
|
||||||
use anyhow::Result;
|
use anyhow::Result;
|
||||||
use crossterm::{
|
use crossterm::{
|
||||||
|
|||||||
@@ -1,3 +1,7 @@
|
|||||||
|
#![doc = include_str!("../README.md")]
|
||||||
|
#![doc(html_logo_url = "https://avatars.githubusercontent.com/u/79236386")]
|
||||||
|
#![doc(html_favicon_url = "https://avatars.githubusercontent.com/u/79236386")]
|
||||||
|
|
||||||
extern crate proc_macro;
|
extern crate proc_macro;
|
||||||
|
|
||||||
use layout::Layout;
|
use layout::Layout;
|
||||||
|
|||||||
@@ -1,4 +1,6 @@
|
|||||||
#![doc = include_str!("../README.md")]
|
#![doc = include_str!("../README.md")]
|
||||||
|
#![doc(html_logo_url = "https://avatars.githubusercontent.com/u/79236386")]
|
||||||
|
#![doc(html_favicon_url = "https://avatars.githubusercontent.com/u/79236386")]
|
||||||
// cannot use forbid, because props derive macro generates #[allow(missing_docs)]
|
// cannot use forbid, because props derive macro generates #[allow(missing_docs)]
|
||||||
#![deny(missing_docs)]
|
#![deny(missing_docs)]
|
||||||
#![allow(non_snake_case)]
|
#![allow(non_snake_case)]
|
||||||
|
|||||||
@@ -1,3 +1,7 @@
|
|||||||
|
#![doc = include_str!("../README.md")]
|
||||||
|
#![doc(html_logo_url = "https://avatars.githubusercontent.com/u/79236386")]
|
||||||
|
#![doc(html_favicon_url = "https://avatars.githubusercontent.com/u/79236386")]
|
||||||
|
|
||||||
use convert_case::{Case, Casing};
|
use convert_case::{Case, Casing};
|
||||||
use dioxus_rsx::{
|
use dioxus_rsx::{
|
||||||
BodyNode, CallBody, Component, Element, ElementAttr, ElementAttrNamed, ElementName, IfmtInput,
|
BodyNode, CallBody, Component, Element, ElementAttr, ElementAttrNamed, ElementName, IfmtInput,
|
||||||
|
|||||||
@@ -1,3 +1,6 @@
|
|||||||
|
#![doc(html_logo_url = "https://avatars.githubusercontent.com/u/79236386")]
|
||||||
|
#![doc(html_favicon_url = "https://avatars.githubusercontent.com/u/79236386")]
|
||||||
|
|
||||||
//! Parse the root tokens in the rsx!{} macro
|
//! Parse the root tokens in the rsx!{} macro
|
||||||
//! =========================================
|
//! =========================================
|
||||||
//!
|
//!
|
||||||
|
|||||||
@@ -1,3 +1,7 @@
|
|||||||
|
// TODO: Create README, uncomment this: #![doc = include_str!("../README.md")]
|
||||||
|
#![doc(html_logo_url = "https://avatars.githubusercontent.com/u/79236386")]
|
||||||
|
#![doc(html_favicon_url = "https://avatars.githubusercontent.com/u/79236386")]
|
||||||
|
|
||||||
use convert_case::{Case, Converter};
|
use convert_case::{Case, Converter};
|
||||||
use proc_macro::TokenStream;
|
use proc_macro::TokenStream;
|
||||||
use proc_macro2::Literal;
|
use proc_macro2::Literal;
|
||||||
|
|||||||
@@ -1,4 +1,6 @@
|
|||||||
#![doc = include_str!("../README.md")]
|
#![doc = include_str!("../README.md")]
|
||||||
|
#![doc(html_logo_url = "https://avatars.githubusercontent.com/u/79236386")]
|
||||||
|
#![doc(html_favicon_url = "https://avatars.githubusercontent.com/u/79236386")]
|
||||||
#![warn(missing_docs)]
|
#![warn(missing_docs)]
|
||||||
|
|
||||||
mod rt;
|
mod rt;
|
||||||
|
|||||||
@@ -1,4 +1,6 @@
|
|||||||
#![doc = include_str!("../README.md")]
|
#![doc = include_str!("../README.md")]
|
||||||
|
#![doc(html_logo_url = "https://avatars.githubusercontent.com/u/79236386")]
|
||||||
|
#![doc(html_favicon_url = "https://avatars.githubusercontent.com/u/79236386")]
|
||||||
|
|
||||||
mod cache;
|
mod cache;
|
||||||
pub mod config;
|
pub mod config;
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
#![doc(html_logo_url = "https://avatars.githubusercontent.com/u/79236386")]
|
||||||
|
#![doc(html_favicon_url = "https://avatars.githubusercontent.com/u/79236386")]
|
||||||
#![deny(missing_docs)]
|
#![deny(missing_docs)]
|
||||||
|
|
||||||
//! Dioxus WebSys
|
//! Dioxus WebSys
|
||||||
|
|||||||
Reference in new issue
Block a user