Evan Almloff
e4b8fbfafe
Intigrate macro with router hooks and components
2023-05-22 16:42:32 -05:00
Adrian Wannenmacher
2f3bb4d6d5
make clippy happy
2023-04-12 19:48:27 +02:00
Adrian Wannenmacher
18c7f9c056
reimplement link click event handler prop
2023-04-11 20:38:39 +02:00
Adrian Wannenmacher
f1cbfe0874
change router to use option again
2022-12-23 18:55:03 +01:00
Adrian Wannenmacher
4677a00adc
apply clippy suggestions
2022-12-13 16:19:40 +01:00
Adrian Wannenmacher
8d52a6d208
document components
2022-12-13 12:18:54 +01:00
Adrian Wannenmacher
ef76453422
fix release build
2022-12-09 01:42:30 +01:00
Adrian Wannenmacher
ea43192267
add link component
2022-12-08 22:56:57 +01:00
Adrian Wannenmacher
998f9b9ec9
clean out router
2022-12-06 10:11:22 +01:00
Reinis Mazeiks
d734dc5b46
Remove argument from use_hook closure ( #496 )
...
Also; update docs for said function
2022-07-11 15:50:56 -04:00
Jon Kelley
d9546d9504
Renderers are now packages, not features. ( #387 )
...
* feat: use synchronous router design
* feat: function to get router out of dom
* chore: restructure workspace to use renderers as packages, not features
2022-07-09 15:15:20 -04:00
Evan Almloff
fbf8e13b8d
clean up imports
2022-06-25 08:27:10 -05:00
Jonathan Kelley
dc028df0dd
clippy: make it happier
2022-03-20 21:50:43 -04:00
Maccesch
9a23ee4612
active_class prop for Router
2022-03-13 16:35:28 +00:00
Maccesch
1a2624952a
fixed cargo fmt
2022-03-09 23:06:14 +00:00
Maccesch
82fc9739bb
updated to new way of checking path of route
2022-03-09 03:25:40 +00:00
Maccesch
ef82ffd217
added active class to router link
2022-03-06 23:17:24 +00:00
Jonathan Kelley
c7627f0b93
fix: tests pass
2022-03-04 13:16:37 -05:00
Jonathan Kelley
cc83900334
feat: router crate is polished up
2022-03-04 13:16:37 -05:00
Jonathan Kelley
f2979cb12a
feat: apply local router changes
2022-03-04 13:16:37 -05:00
Jonathan Kelley
8ca505b65b
feat: better link
2022-02-14 09:30:08 -05:00
Jonathan Kelley
3edf3e367f
wip: debugging
2022-01-30 14:08:03 -05:00
Dave Rolsky
72c6bb3d0b
Make log message in Link component trace level, not debug
...
All the other routing-related messages are at the trace level. Leaving this at
debug was an oversight on my part.
2022-01-28 15:31:43 -06:00
Dave Rolsky
9e4ec43b1e
Fix various typos and grammar nits
...
I also removed all trailing whitespace from lines since I have Emacs
configured to highlight this.
2022-01-21 21:43:43 -06:00
Dave Rolsky
64080588d0
Add a warning when Link it called outside of a Router context
2022-01-17 15:52:01 -06:00
Dave Rolsky
e22ba5b1e5
Add title prop to Link
...
Every element can have a title, but it's particularly useful on links, so I
think making it an explicit option is worthwhile.
2022-01-13 12:21:06 -06:00
Jonathan Kelley
d2372717bd
feat: flatten props attrs
2022-01-10 02:57:03 -05:00
Alexandre Kirszenberg
b6903bf558
Enable clippy
2022-01-08 16:35:26 +01:00
Jonathan Kelley
bd341f5571
fix: tests
2022-01-05 17:30:12 -05:00
Jonathan Kelley
427b126bc1
feat: add prevent default attribute and upgrade router
2022-01-05 16:34:24 -05:00
Jonathan Kelley
cb2782b4bb
wip: memoize dom in the prescence of identical components
2022-01-05 00:27:22 -05:00