-
-
Notifications
You must be signed in to change notification settings - Fork 7
Rewrite ReactPy-Router #30
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
Changes from 1 commit
Commits
Show all changes
62 commits
Select commit
Hold shift + click to select a range
69598ef
Bump workflows
Archmonger c86f37b
use_query -> use_search_params
Archmonger ec1b633
use_params docstring
Archmonger 332ca75
better error for route state
Archmonger 189b484
simple.router -> browser_router
Archmonger 6557000
Allow multi-component routes
Archmonger 9e72ca0
Fix potential key identity bug of router component children
Archmonger 7a242e1
Add slug conversion type
Archmonger e92842f
SimpleResolver -> Resolver, CONVERSION_TYPES -> CONVERTERS, file refa…
Archmonger f46d9d1
allow customizable match_any_identifier
Archmonger b8efe54
attempt to fix workflows
Archmonger bee18a5
server-side link component
Archmonger de53beb
fix a handful of test errors
Archmonger f77f052
change js output directory
Archmonger 518d226
fix py3.9 type hints
Archmonger e96a512
Change star pattern to `{NAME:any}`
Archmonger 03b8f2c
Fix router in local environment
Archmonger 37760bb
Fix link component
Archmonger ee616d0
Fix route parameters
Archmonger 169e2dc
remove black from workflow
Archmonger 5ffc34f
Format with ruff + prettier
Archmonger 8b057b2
Fix github actions
Archmonger db9e074
Fix use_search_params
Archmonger 7947e91
Clean up use-params example
Archmonger d9a943a
Remove select from top level router
Archmonger 94e9de5
docs tweaks
Archmonger afb97c8
js tweaks
Archmonger 78c7c49
Refactor some more docs
Archmonger 1b8031b
Better mkdocstrings
Archmonger f52aaa3
Remove core.py
Archmonger bad417f
cleaner example for use params
Archmonger 155079b
ignore link click type
Archmonger c7d19f6
Move event loop policy to dedicated fixture
Archmonger d7184b1
Fix resolver tests
Archmonger 6857f7a
fix type errors
Archmonger fa0f307
use link class instead of ID
Archmonger 1723f8d
prefix uuid with a string
Archmonger b67101a
add test for link search params
Archmonger c38ac3b
Remove coverage from some unneeded places
Archmonger f57b63b
Fix browser history
Archmonger 88d1f46
use server side prevent default
Archmonger a78a5b1
Server side handling of relative URLs
Archmonger 97a715c
Add test for class name
Archmonger 4633ab2
fix last coverage hit
Archmonger 70a7ea0
self review
Archmonger 98ac776
Add click delay (attempt to fix flakey tests)
Archmonger 9fc92ce
Add changelog
Archmonger 0e87d27
Increase delay
Archmonger 0469615
Remove unneeded homepage stuff
Archmonger 1d33c65
Use ReactJS event naming conventions
Archmonger 25e440f
Self review: Use JS component as background listener for link clicks
Archmonger 8e9b6a8
use attributes dict for all link parameters
Archmonger 05e7012
Allow reconnections to re-obtain the current URL
Archmonger afa8c83
Add new changelog item
Archmonger 972c275
Revert to dumb script for links
Archmonger ff65483
no cov on exception
Archmonger 7e10dd4
fix test
Archmonger 78b5a95
Fix spelling
Archmonger 2d88133
Update src/reactpy_router/resolvers.py
Archmonger b1192c5
use unpacking instead of list
Archmonger 9d18fc9
safer query string parsing
Archmonger df4c088
Remove unused import
Archmonger 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
Revert to dumb script for links
- Loading branch information
commit 972c275afd93eecdb0bac4f6587ae7f6c026c3df
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
document.querySelector(".UUID").addEventListener( | ||
"click", | ||
(event) => { | ||
let to = event.target.getAttribute("href"); | ||
window.history.pushState({}, to, new URL(to, window.location)); | ||
}, | ||
{ once: true }, | ||
); |
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.