neetjn / core-routing Goto Github PK
View Code? Open in Web Editor NEWFramework agnostic interface for client sided routing using the HTML5 history api.
License: MIT License
Framework agnostic interface for client sided routing using the HTML5 history api.
License: MIT License
Is your feature request related to a problem? Please describe.
TBD
Describe the solution you'd like
In addition to the provided router client, I would like to provide an optional event emitter in the form of the observer/subscriber pattern. See Events and riot-observable for possible implementation specifications.
Describe alternatives you've considered
The client structure makes sense, and helps ensure a clean implementation for 3rd party applications. However, for more dynamic applications I'd like to provide a more flexible api.
Additional context
TBD
core-routing/__test__/router.test.js
Lines 4 to 9 in e1fec08
TODO
comment in e1fec08. It's been assigned to @neetjn because they committed the code.Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
Describe the solution you'd like
A clear and concise description of what you want to happen.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.
Describe the bug
The matching logic for the router is not matching the path "/".
Ref: https://github.com/neetjn/core-routing/blob/master/src/router.ts#L62
In example: https://github.com/neetjn/riot-routing-prototype/blob/master/src/components/router.riot#L38
To Reproduce
Steps to reproduce the behavior:
onStart
or onNavigate
-- try matching the current or incoming route path with "/".Expected behavior
The path "/" should properly be matched.
With the riot-routing projects in the work as a replacement for riot-view-routing, I wanted to design a framework agnostic interface for client sided routing.
With the riot-routing projects in the work as a replacement for riot-view-routing, I wanted to design a framework agnostic interface for client sided routing.
TBD
TBD
core-routing/__test__/router.test.js
Lines 5 to 10 in e1fec08
TODO
comment in e1fec08. It's been assigned to @neetjn because they committed the code.With the riot-routing projects in the work as a replacement for riot-view-routing, I wanted to design a framework agnostic interface for client sided routing.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.