Commit graph

53 commits

Author SHA1 Message Date
Toni Vanhala
c42f76af92 Publish intermediate paths by default #175
Change current default of Ring routers and frontend to publish both leaf paths and intermediate paths as endpoints.
`:name` in route data is required for intermediate frontend routes, and `:handler` for Ring routes.
2019-12-04 16:40:37 +02:00
Pauli Jaakkola
0adb820bba Collect multi-valued query params into vector. 2019-11-15 12:53:32 +02:00
Juho Teperi
10c9097c40
Merge pull request #301 from uosl/fix/composedpath
Use aget for composedPath to avoid casting JS array to seq
2019-09-20 10:43:35 +03:00
Juho Teperi
f0fef3e525
Merge branch 'master' into html5-hist-fragments 2019-09-20 10:36:08 +03:00
Juho Teperi
802c9b04c4
Merge branch 'master' into ignore-anchor-click-fn 2019-08-21 13:43:01 +03:00
uosl
c8209a69db Use aget composedPath to avoid casting JS array to seq 2019-07-11 09:04:06 +01:00
Dieter Komendera
35597aadf6 Pass uri fragments to history pushState 2019-07-08 08:48:15 +02:00
Marcus Spiegel
8dcebcf49f Fix typos 2019-05-22 19:17:10 +02:00
Juho Teperi
51c5aad492 Refactor ignore-anchor-click check to predicate function 2019-04-29 10:18:41 +03:00
Juho Teperi
5ffb9fc59f Add ignore-anchor-click function 2019-04-29 10:15:49 +03:00
Alex King
b50b44cced Invert link 'target' check 2019-04-29 10:15:49 +03:00
Alex King
a25f336d80 Ignore anchors with '_self' not 'self' 2019-04-29 10:15:49 +03:00
Antti Leppänen
c9076e57ad Use getBrowserEvent method instead of _event property 2019-04-12 07:12:46 +03:00
Antti Leppänen
733958404e Use doc-string. 2019-04-10 12:14:21 +03:00
Antti Leppänen
b258e0abba Support html5 links inside Shadow DOM 2019-04-10 09:03:48 +03:00
Juho Teperi
057fae9e46
Update easy.cljs 2019-03-15 16:49:57 +02:00
Juho Teperi
1e5fe74c29 Fix indent 2019-02-08 14:47:05 +02:00
Juho Teperi
cbff7d10bf Fix HTML5 history in IE11 (and hopefully others)
closest method is not available in IE, but we only need to find ancestor
by tag name which is easy and relatively fast anyway.
2019-02-08 14:44:28 +02:00
Juho Teperi
6123230f98 Simplify contentEditable check for frontend routing 2019-02-08 13:57:03 +02:00
Juho Teperi
f5eb1d17f5
Merge pull request #212 from nextjournal/fix-html5-history-contenteditable
Fix handling links inside contenteditable
2019-02-08 13:49:55 +02:00
Philipp Markovics
88a13ba2f8 Don’t follow links when they are contenteditable 2019-02-08 12:39:07 +01:00
Juho Teperi
648c92bef8 Only display controller :params deprecating warning once 2019-02-08 10:39:40 +02:00
Juho Teperi
9e30836839 Update controller docs 2019-02-08 10:22:29 +02:00
Juho Teperi
36109f142c Replace controller :params with :identity and :parameters 2019-02-08 10:22:29 +02:00
Juho Teperi
c314707afb Add utils to create common controller :params functions 2019-02-08 10:21:19 +02:00
Juho Teperi
9d6b0071fc Call :stop for controllers in reverse order 2019-02-08 10:21:19 +02:00
Tommi Reiman
883a65acca Document the router options 2018-11-19 21:04:38 +02:00
Tommi Reiman
e4eae4f3b2 cleanup 2018-08-31 15:17:51 +03:00
Juho Teperi
d7c025d912 Fix FragmentHistory -stop method 2018-08-27 14:23:11 +03:00
Juho Teperi
b99e25ef4f Clean frontend routing docstrings 2018-08-27 14:23:11 +03:00
Juho Teperi
2900e96337
Merge pull request #125 from metosin/frontend-fragment
Frontend fixes
2018-08-23 10:12:46 +03:00
Juho Teperi
82ad1fa6cc Clean duplicate require 2018-08-23 09:58:57 +03:00
Juho Teperi
e42c309144 Read query string in HTML5 router 2018-08-23 09:58:57 +03:00
Juho Teperi
0bd1b94274 Store uncoerced query-params in frontend match
This matches path-params and fragment.
2018-08-23 09:58:55 +03:00
Tommi Reiman
5c835c5ad2 reitit.frontend/router 2018-08-22 18:56:31 +03:00
Juho Teperi
ba10470fbb
Merge pull request #118 from metosin/frontend-routing-3
Frontend routing 3
2018-07-24 14:02:53 +03:00
Juho Teperi
08156f6a6d Replace Closure Html5History
- Create History protocol and two implementations: FragmentHistory and
Html5History
- API follows now Html5 history, i.e. push-state and replace-state
- path-prefix is removed
2018-07-24 13:58:22 +03:00
Tommi Reiman
5ded652147 coercion/coerce! can be used now 2018-07-17 12:41:29 +03:00
Tommi Reiman
4bbc1564ae cleanup imports 2018-07-17 12:41:19 +03:00
Juho Teperi
d0f42459ee Add easy-simple wrapper over frontend router 2018-07-13 14:25:36 +03:00
Juho Teperi
2152bf0345 Use setToken in a click handler and add set-token function 2018-07-12 22:52:43 +03:00
Juho Teperi
6b8ebdebe6 Fix creating urls with query string when not using fragment 2018-07-12 22:52:41 +03:00
Juho Teperi
82f8aaa8cf Add frontend-controllers example 2018-07-12 12:49:14 +03:00
Juho Teperi
8971c8fd2b Add tests for missing route and params warnings 2018-07-12 12:49:14 +03:00
Juho Teperi
ae109e5350 Log warnings about missing route or params 2018-07-12 12:49:14 +03:00
Juho Teperi
245902bd4d Use query-string fn in core 2018-07-12 12:49:14 +03:00
Juho Teperi
7f1b2ce417 Check if js/location exists 2018-07-12 12:49:10 +03:00
Juho Teperi
61a9871ebb Fix empty fragment url 2018-07-12 12:48:24 +03:00
Juho Teperi
50faacab25 Fix tests 2018-07-12 12:48:20 +03:00
Juho Teperi
6553795cb5 Add some frontend history tests 2018-07-12 12:46:45 +03:00