Browse Source

wip: add more svg elements, update readme

Jonathan Kelley 3 năm trước cách đây
mục cha
commit
ad4a0eb
3 tập tin đã thay đổi với 12 bổ sung6 xóa
  1. 3 3
      README.md
  2. 7 0
      packages/html/src/elements.rs
  3. 2 3
      packages/router/Cargo.toml

+ 3 - 3
README.md

@@ -81,9 +81,9 @@ If you know React, then you already know Dioxus.
 
 ## Examples:
 
-| File Navigator (Desktop)                                                                                                                | WiFi scanner (Desktop)                                                                                                                   | TodoMVC (All platforms)                                                                                        | Tailwind (Liveview)                                                                                                                     |
-| --------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------- |
-| [![asd](https://github.com/DioxusLabs/file-explorer-example/raw/master/image.png)](https://github.com/DioxusLabs/file-explorer-example) | [![Wifi Scanner Demo](https://github.com/DioxusLabs/wifi-scanner/raw/master/demo_small.png)](https://github.com/DioxusLabs/wifi-scanner) | [![asd](https://github.com/DioxusLabs/todomvc/raw/master/example.png)](https://github.com/dioxusLabs/todomvc/) | [![asd](https://github.com/DioxusLabs/file-explorer-example/raw/master/image.png)](https://github.com/DioxusLabs/file-explorer-example) |
+| File Navigator (Desktop)                                                                                                                | WiFi scanner (Desktop)                                                                                                                   | TodoMVC (All platforms)                                                                                                    | Tailwind (Liveview)                                                                                                                           |
+| --------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- |
+| [![asd](https://github.com/DioxusLabs/file-explorer-example/raw/master/image.png)](https://github.com/DioxusLabs/file-explorer-example) | [![Wifi Scanner Demo](https://github.com/DioxusLabs/wifi-scanner/raw/master/demo_small.png)](https://github.com/DioxusLabs/wifi-scanner) | [![TodoMVC example](https://github.com/DioxusLabs/todomvc/raw/master/example.png)](https://github.com/dioxusLabs/todomvc/) | [![Ecommerce Example](https://github.com/DioxusLabs/ecommerce-example/blob/master/demo.png)](https://github.com/DioxusLabs/ecommerce-example) |
 
 
 See the awesome-dioxus page for a curated list of content in the Dioxus Ecosystem.

+ 7 - 0
packages/html/src/elements.rs

@@ -1165,4 +1165,11 @@ builder_constructors! {
 
     };
 
+    /// Build a
+    /// [`<g>`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/g)
+    /// element.
+    g <> "http://www.w3.org/2000/svg" {
+
+    };
+
 }

+ 2 - 3
packages/router/Cargo.toml

@@ -15,9 +15,8 @@ dioxus-core = { path = "../core", version = "^0.1.3", default-features = false }
 dioxus-html = { path = "../html", version = "^0.1.0", default-features = false }
 dioxus-core-macro = { path = "../core-macro", version = "^0.1.2" }
 
-serde = "1.0.130"
+serde = "1"
 url = "2.2.2"
-url_serde = "0.2.0"
 serde_urlencoded = "0.7"
 
 web-sys = { version = "0.3", features = [
@@ -33,7 +32,7 @@ web-sys = { version = "0.3", features = [
 ], optional = true }
 wasm-bindgen = { version = "0.2", optional = true }
 js-sys = { version = "0.3", optional = true }
-gloo = { version = "0.4", optional = true }
+gloo = { version = "0.5", optional = true }
 
 
 [features]