mirror of
https://github.com/yewstack/yew.git
synced 2025-12-08 21:26:25 +00:00
* rewrite router * add support for 404 routes * support base urls * parse query params * don't use js snippets lol * cleanup code, update example * bruh fmt * test router * add more tests * wasm_test feature, CI * Add rustdocs * update docs on website * use enum for routes, add derive macro for it * fix 404 handling * fix tests * formatting * update docs, little cleanup * fix example * misc fixes * add routable macro tests * document routable macro, rustfmt * fix test, add makefile * Replace the children based API with callback based one * update example * update docs * update Cargo.toml * clippy & fmt * cleanup code * apply review * more fixes from review * fix warnings * replace function component with struct component, update docs * formatting * use `href` getter instead of reading attribute * apply review * use serde to parse query parameters * use js_sys::Array for search_params + formatting * fix doc test * Apply suggestions from code review Co-authored-by: Simon <simon@siku2.io> * Update docs/concepts/router.md apply suggestion Co-authored-by: Simon <simon@siku2.io> * apply review (part 2) * use serde for parsing query * a more modular implementation * docs for query parameters * fix doc * Apply suggestions from code review Co-authored-by: Simon <simon@siku2.io> * fixes (from review) * formatting * use new functions * not_found returns `Option<Self>`, to_route -> to_path * Apply suggestions from code review Co-authored-by: Simon <simon@siku2.io> * remove PartialEq + Clone bound * docs * fix example Co-authored-by: Simon <simon@siku2.io>