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
Drew Pirrone-Brusse
e1b0e0425a
Switch from an absolute ::dioxus to the relative dioxus_core ( #2465 )
2024-05-31 06:12:32 -05:00
Evan Almloff
b3cd4fac10
set up example scaping for docs.rs ( #2450 )
2024-05-28 13:05:55 -07:00
Evan Almloff
47c87568e1
Fix event handler memory leak ( #2298 )
...
* fix event handler memory leak and double drops
* Prevent double dropping generational boxes
* recycle instead of dropping
2024-04-26 00:47:22 -04: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
39cef8fe42
fix out of order fields in route definitions ( #2356 )
2024-04-25 13:36:04 -04:00
Evan Almloff
5ce91e1bfc
Fix flakey windows tests ( #2332 )
2024-04-17 15:08:38 -07:00
Evan Almloff
9f280a8d84
Fix child fields with the web history ( #2172 )
...
Co-authored-by: Jonathan Kelley <jkelleyrtp@gmail.com>
2024-03-29 18:23:28 -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
Jonathan Kelley
ad7a350d2e
fix hotreloading issues in the CLI
2024-03-12 13:39:42 -07:00
Konstantin Kostiuk
a4de322821
fix typo varient -> variant ( #2056 )
2024-03-11 17:03:34 -05:00
tigerros
e217a957dc
fix
2024-02-24 14:36:02 +01:00
tigerros
24e8ac2ad3
fix warning
2024-02-24 13:30:50 +01:00
Jonathan Kelley
4f8868d43d
Merge pull request #1791 from ealmloff/breaking
...
Remove scope, use_state, use_ref, bump allocator and make everything 'static
2024-02-05 14:19:47 -08:00
Andrew Voynov
8beb3c7893
chore(docs): fixed typo in router-macro
2024-02-04 22:39:04 +03:00
Jonathan Kelley
eff1dd6c90
Merge branch 'master' into breaking
2024-01-30 16:20:19 -08:00
ealmloff
1e013a7f24
fix the layout docs as well
2024-01-30 12:12:48 -06:00
ealmloff
87eb9744e0
fix a tiny typo in the Routable macro docs: the route attribute only takes 2 parameters, not three
2024-01-30 12:04:31 -06:00
Jonathan Kelley
85c7c22619
Make router work on web
2024-01-19 16:36:40 -08:00
Evan Almloff
dab87c0144
try not double boxing
2024-01-17 15:07:45 -06:00
Jonathan Kelley
fb4f97406c
Fix router codegen
2024-01-16 15:48:37 -08:00
Evan Almloff
e65c5f0eb3
depreciate the render macro
2024-01-16 13:18:46 -06:00
Evan Almloff
d2cdcc602b
impl ComponentFunction for Routes
2024-01-16 09:40:17 -06:00
Jonathan Kelley
74aa55f85f
Bring back mroe hooks, remove old hooks, cleanup a number of examples
2024-01-15 17:04:39 -08:00
Jonathan Kelley
fae0b08e61
Fix the router and stub out a number of crates to get compiling
2024-01-13 20:51:37 -08:00
Jonathan Kelley
8f70509bc3
Merge pull request #1680 from ealmloff/derive-query-parsing
...
Automatically derive standard query parsing in the router macro
2024-01-05 12:16:37 -08:00
Exotik850
fc31876a57
Wasm target check before build ( #1689 )
...
* Add `rustup show` check for wasm32 target
* better place for check
* fmt
* clippy fmt
2023-12-07 12:35:16 -06:00
Evan Almloff
8a44fe8d03
derive query parsing in the router macro
2023-12-01 15:31:45 -06:00
Leonard
2d1234c3d1
Include README and Dioxus logo in package docs ( #1536 )
...
* Include README in docs.rs and add Dioxus logo
* Update README.md
2023-10-10 10:52:48 -05:00
Jonathan Kelley
cb39122247
Merge pull request #1298 from ealmloff/fix-spread-routes
...
Fix parsing spread routes
2023-09-16 11:56:54 -07:00
Leonard
ae5dca8f43
Routable
improvements (#1461 )
...
* Fix `SegmentType::CatchAll` `Display`
* Rename `display_route_segements` to `display_route_segments` and add dots to docs
* Fix `Routeable::static_routes` and add more route retrieval methods
* Fix Clippy and extract duplication to function
* Return route strings instead of instances
* Remove some methods
* Clippy
2023-09-13 11:55:26 -05:00
ealmloff
c8127e164b
Url decode routes ( #1407 )
...
* fix a few new clippy lints
* url decode routes
* fix catch all segments
* fix clippy
2023-09-06 12:56:43 -05:00
Evan Almloff
61a3b05616
fix parsing spread routes
2023-08-04 12:06:17 -07:00
ealmloff
61ce3dd6b7
Reject all external routes when parsing a route ( #1272 )
...
* reject all external routes when parsing a route
* fix children routers
2023-08-01 12:29:35 -05:00
Jonathan Kelley
39e89c1fac
Bump crate versions, fix any publish errors
2023-07-31 18:49:54 -07:00
ealmloff
cfd62e274e
Make deprecated use router ( #1260 )
...
* make router props expansion better
* fix router data fields
* make a deprecated use_router hook
2023-07-27 10:32:23 -07:00
Evan Almloff
5f0dd3af3e
it almost lives?
2023-07-25 18:14:48 -07:00
Miles Murgaw
6210c6fefe
Convert use_eval to use send/recv system ( #1080 )
...
* progress: reworked
don't run this, it'll kill your web browser
* feat: use_eval but with comms
* revision: async recv & recv_sync
* revision: use_eval
* revision: standard eval interface
* revision: use serde_json::Value instead of JsValue
* revision: docs
* revision: error message
* create: desktop eval (wip)
* fix: desktop eval
* revision: wrap use_eval in Rc<RefCell<_>>
* fix: fmt, clippy
* fix: desktop tests
* revision: change to channel system
- fixes clippy errors
- fixes playwright tests
* fix: tests
* fix: eval example
* fix: fmt
* fix: tests, desktop stuff
* fix: tests
* feat: drop handler
* fix: tests
* fix: rustfmt
* revision: web promise/callback system
* fix: recv error
* revision: IntoFuture, functionation
* fix: ci
* revision: playwright web
* remove: unescessary code
* remove dioxus-html from public examples
* prototype-patch
* fix web eval
* fix: rustfmt
* fix: CI
* make use_eval more efficient
* implement eval for liveview as well
* fix playwright tests
* fix clippy
* more clippy fixes
* fix clippy
* fix stack overflow
* fix desktop mock
* fix clippy
---------
Co-authored-by: Evan Almloff <evanalmloff@gmail.com>
2023-07-21 17:36:25 -05:00
Jonathan Kelley
f0289068a2
Merge pull request #1219 from Demonthos/improve-build-times
...
Halve Build Times
2023-07-20 10:50:15 -07:00
Andrea Frigido
dccad58f1d
Update license field following SPDX 2.1 license expression standard
2023-07-20 18:00:07 +01:00
Evan Almloff
beb56b93a0
more clippy fixes
2023-07-20 09:06:12 -07:00
Jonathan Kelley
9d942f1162
make msrv 1.66
2023-07-19 17:20:48 -07:00
Evan Almloff
3d8d8a1b6f
half-build-times
2023-07-19 10:19:23 -07:00
Evan Almloff
61e9fd9973
use :.. instead of :...
2023-07-18 16:34:27 -07:00
Evan Almloff
7453486448
fix formatting
2023-07-17 15:12:57 -07:00
Evan Almloff
97115f6537
fix nested nest segments
2023-07-14 12:32:46 -07:00
Evan Almloff
07ea421bf4
ignore hash in routes for now
2023-07-14 11:53:44 -07:00
Evan Almloff
d19a33d59c
fix reversed nests
2023-07-14 11:40:38 -07:00