-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Rewrite router #1791
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Rewrite router #1791
Changes from 29 commits
Commits
Show all changes
58 commits
Select commit
Hold shift + click to select a range
d217984
rewrite router
ranile 7f6ba75
add support for 404 routes
ranile 76e03fa
support base urls
ranile 1e02c88
parse query params
ranile 6634df1
don't use js snippets lol
ranile 2b29da7
cleanup code, update example
ranile d345db8
bruh fmt
ranile 5bcd098
test router
ranile 92ef77c
add more tests
ranile 2321034
wasm_test feature, CI
ranile 50ff11d
Add rustdocs
ranile e8558e6
update docs on website
ranile 5c53948
use enum for routes, add derive macro for it
ranile c0d0d14
fix 404 handling
ranile 76915bd
fix tests
ranile 3be5ffb
formatting
ranile bf8d00c
update docs, little cleanup
ranile c9cf845
fix example
ranile 8a461bc
misc fixes
ranile de05800
add routable macro tests
ranile 44c67d2
document routable macro, rustfmt
ranile de203c8
fix test, add makefile
ranile d5a6723
Merge branch 'master' into router-rewrite
ranile ff2d77c
Replace the children based API with callback based one
ranile 40d1ea7
update example
ranile fee88cc
update docs
ranile a7d9fb2
Merge branch 'master' into router-rewrite
ranile 279a5a6
update Cargo.toml
ranile 61da239
clippy & fmt
ranile 7e1cb02
Merge branch 'master' into router-rewrite
ranile 36d2618
cleanup code
ranile 3c52993
apply review
ranile 8dd8a7f
more fixes from review
ranile bd0589f
fix warnings
ranile 4697591
replace function component with struct component, update docs
ranile eaf09b1
formatting
ranile 9bad46a
use `href` getter instead of reading attribute
ranile e0e6f7a
apply review
ranile 36d9beb
use serde to parse query parameters
ranile d25c077
use js_sys::Array for search_params + formatting
ranile 3051f67
fix doc test
ranile 6578e01
Apply suggestions from code review
ranile 5b863b7
Update docs/concepts/router.md
ranile ee3a188
apply review (part 2)
ranile cb1cdf8
Merge branch 'router-rewrite' of https://github.com/hamza1311/yew int…
ranile 35ef2cd
use serde for parsing query
ranile 064d0c8
a more modular implementation
ranile 9d153d8
docs for query parameters
ranile ea5646d
fix doc
ranile eeb6b66
Apply suggestions from code review
ranile e8692bd
fixes (from review)
ranile 81eec38
formatting
ranile 6342316
use new functions
ranile 586ca64
not_found returns `Option<Self>`, to_route -> to_path
ranile df7dff5
Apply suggestions from code review
ranile af91378
remove PartialEq + Clone bound
ranile 031ab20
docs
ranile d664037
fix example
ranile File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.