Commit graph

391 commits

Author SHA1 Message Date
Evan Almloff
d795995e20
Create closure type; allow async event handlers in props; allow short hand event handlers (#2437)
* create closure type; allow async event handlers in props; allow shorthand event handlers

* test forwarding event handlers with the shorthand syntax

* fix clippy

* fix imports in spawn async doctest
2024-06-10 18:47:07 -07:00
Evan Almloff
a35436ee4f
Change ToRouteSegments to borrow self (#2283)
* Change display route segments to borrow the type

* fix formatting
2024-06-07 12:40:50 -07:00
Evan Almloff
0127501dbf
Improve inline docs (#2460)
Improve inline docs

* improve incorrect event handler return error message

* Improve event handler docs

* document the eval functions

* document spawn and common spawn errors

* fix event handler docs

* add notes about how you use attributes and elements in rsx

* add doc aliases for attributes and events we rename

* add some more aliases for common search terms

* don't doc ignore any public examples in core

* don't ignore public doc examples in ssr

* don't ignore examples in the dioxus package readme

* add a warning when you launch without a renderer enabled

* fix some outdated element docs

* add a bunch of examples to resource

* add notes about desktop events

* add more docs for use_resource

* add on_unimplemented hint to Dependency

* fix some unresolved links

* add examples to each of the router traits

* add not implemented errors for router traits

* add an example to the routable trait

* expand rsx macro docs

* improve memo docs

* update the dioxus readme

* mention dioxus crate features in the docs

* fix a bunch of doc tests

* fix html doc tests

* fix router doc tests

* fix dioxus signals doc tests

* fix dioxus ssr doc tests

* fix use_future example in the hooks cheat sheet

* add a javascript alias for eval

* fix hook explanation values

* remove unused embed-doc-image dependency
2024-06-06 18:15:17 -07:00
Evan Almloff
b6cdcb4e7f
fix routers without an index route (#2477) 2024-06-06 17:03:59 -07:00
Evan Almloff
b3cd4fac10
set up example scaping for docs.rs (#2450) 2024-05-28 13:05:55 -07:00
Evan Almloff
245003a5d4
Create a Static Site Generation platform; Deduplicate hot reloading code (#2226)
* create static site generation helpers in the router crate

* work on integrating static site generation into fullstack

* move ssg into a separate crate

* integrate ssg with the launch builder

* simplify ssg example

* fix static_routes for child routes

* move CLI hot reloading websocket code into dioxus-hot-reload

* fix some unused imports

* use the same hot reloading websocket code for fullstack

* fix fullstack hot reloading

* move cli hot reloading logic into the hot reload crate

* ssg example working with dx serve

* add more examples

* fix clippy

* fix formatting

* fix hot reload doctest imports

* fix axum imports

* don't run server doc tests

* Fix hot reload websocket doc examples
2024-05-22 07:24:15 -05:00
Drew Pirrone-Brusse
010dcf9533
Improve the base_path story (#2381)
* Improve the base_path story

* allow base path routes without trailing slash

* remove note about trailing /

* fix clippy empty docs

---------

Co-authored-by: Evan Almloff <evanalmloff@gmail.com>
2024-05-03 13:38:07 -05:00
Evan Almloff
08da9a1253
Implement hash fragments in the router (#2320)
* implement hash fragments in the router

* clean up query and search example

---------

Co-authored-by: Jonathan Kelley <jkelleyrtp@gmail.com>
2024-04-25 14:30:25 -04:00
Evan Almloff
5ce91e1bfc
Fix flakey windows tests (#2332) 2024-04-17 15:08:38 -07:00
Evan Almloff
e8491d5cf4
Require every field in router variants to be present in the route in the web history (#2159)
* require every field to be present in the URL in the web history

* remove desktop only extra field from the simple routes example
2024-03-27 18:12:35 -07:00
Miles Murgaw
3cbe6ff96e
Fix Outdated README.md (#2147)
* fix: outdated readme

* Fix missing readme

---------

Co-authored-by: Jonathan Kelley <jkelleyrtp@gmail.com>
2024-03-26 19:17:02 -07:00
Evan Almloff
dadbab5d72
make some enums non-exhaustive (#2140) 2024-03-26 19:14:48 -07:00
Evan Almloff
460a685fa3
Warn if cli-config is not available at compile time (#2135)
* warn if a package relies on the CLI config, but it is not built with the CLI

* fix default features

---------

Co-authored-by: Jonathan Kelley <jkelleyrtp@gmail.com>
2024-03-26 19:10:26 -07:00
Evan Almloff
58f7efafea
Make EventHandler copy (#2112)
* implement Copy for EventHandler
* implement from closure for event handler and remove special on prefix
* fix props implementation of EventHandler
2024-03-19 19:48:53 -07:00
Jonathan Kelley
f266213618
Bump to 0.5.0-alpha.2 2024-03-18 02:02:31 -07:00
Evan Almloff
4bc2f4a713 add more docs around lifetime downcasting 2024-03-08 10:46:34 -06:00
Evan Almloff
60a84956d1 restore lifetime checking for signals 2024-03-08 10:32:57 -06:00
Jonathan Kelley
38a2c04e38
Merge pull request #1983 from marc2332/fix/update-dioxus-router-docs
fix: Update `dioxus-router` docs
2024-03-04 14:21:52 -08:00
Evan Almloff
55f308363d expose non-blocking functions to read and write to the fullstack request 2024-02-29 10:39:02 -06:00
marc2332
d3b9b764e0
fix: Update dioxus-router docs 2024-02-26 21:46:00 +01:00
Jonathan Kelley
ebdb98bff2
Make clippy happy, pass tests 2024-02-18 21:08:48 -08:00
Evan Almloff
14b4af4bbc fix cargo check all features except the router 2024-02-16 16:22:13 -06:00
Evan Almloff
6879507652 fix a few warnings when checking with all features 2024-02-16 09:09:35 -06:00
Jonathan Kelley
64a321eacc
Get more axum stuff upgraded to 0.7 2024-02-15 18:59:57 -08:00
Jonathan Kelley
214a907adc
Upgrade to axum 0.7, drop 3rd party adapters 2024-02-15 18:05:30 -08:00
Jonathan Kelley
60b78668ac
Merge branch 'master' into jk/examples-overhaul 2024-02-14 12:33:27 -08:00
Jonathan Kelley
bdbae8ccb0
Update examples, add css 2024-02-14 12:33:07 -08:00
Evan Almloff
b4d17abfc1 document all features 2024-02-09 12:15:59 -06:00
Evan Almloff
f8003fd9ea Fix the history button props 2024-02-05 17:51:31 -06:00
Evan Almloff
e767e49d5e switch to server instead of ssr everywhere 2024-02-02 19:32:18 -06:00
Jonathan Kelley
6818bbe10a
Make use_future take an impl FnMut + 'static, don't include router prelude when we don't need to 2024-01-31 16:33:53 -08:00
Jonathan Kelley
8f07d881a6
Switch todo!() to unreachable!/unimplemented! where it matters 2024-01-31 16:26:20 -08:00
Evan Almloff
33e90da314 fix router release builds 2024-01-31 16:58:55 -06:00
Evan Almloff
8f68585c1f fix the default server fullstack history 2024-01-31 16:04:44 -06:00
Evan Almloff
2034591ab3 fix the incremental feature on the router 2024-01-31 15:40:39 -06:00
Jonathan Kelley
72a40e41e6
Dont write empty strings in link 2024-01-31 13:15:33 -08:00
Jonathan Kelley
09e14f1936
Implement some clippy fixes 2024-01-30 18:17:45 -08:00
Jonathan Kelley
a72c035de4
Fix cargo check on examples 2024-01-30 17:59:57 -08:00
Jonathan Kelley
0bd9692e45
Fix cargo test and a number of little cleanup bugs 2024-01-30 17:33:14 -08:00
Jonathan Kelley
7b0dcb3206
Add flush_sync and pre_render methods to core 2024-01-28 01:30:33 -08:00
Jonathan Kelley
c0522bc152
cargo check all 2024-01-23 16:58:29 -08:00
Evan Almloff
94c0c2e5b9 remove some old manual implementations of helpers 2024-01-23 11:29:13 -06:00
Evan Almloff
636aeb4b90 integrate liveview with the launch builder 2024-01-22 11:56:34 -06:00
Jonathan Kelley
85c7c22619
Make router work on web 2024-01-19 16:36:40 -08:00
Jonathan Kelley
337c04557b
get cargo check --all --examples --tests working! 2024-01-19 15:01:01 -08:00
Jonathan Kelley
83bce6ce97
Make cargo check --all --examples work! 2024-01-19 14:19:49 -08:00
Evan Almloff
08475af221 fix some unused items 2024-01-19 15:38:51 -06:00
Jonathan Kelley
6ed3aafb2f
Get cargo check --all working 2024-01-18 19:27:55 -08:00
Jonathan Kelley
84e82fc3e2
Make router configed-by-platform 2024-01-18 12:41:19 -08:00
Evan Almloff
a0f1b1fc3e make the router and navigator Copy 2024-01-18 12:02:38 -06:00