Commit graph

154 commits

Author SHA1 Message Date
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
d2d5019d0f 0.2.13 2019-01-26 16:20:19 +02:00
Tommi Reiman
7ec5c79cad Release 0.2.12 2019-01-18 08:56:23 +02:00
Tommi Reiman
d203832667 0.2.11 2019-01-17 19:43:45 +02:00
Tommi Reiman
408b30eaba Release 0.2.10 2018-12-30 17:48:27 +02:00
Tommi Reiman
0e73b883ed 0.2.9 2018-11-21 16:03:09 +02:00
Tommi Reiman
883a65acca Document the router options 2018-11-19 21:04:38 +02:00
Tommi Reiman
dd6b07aa0f Release 0.2.8 2018-11-18 22:31:13 +02:00
Tommi Reiman
a205d14afc Update to 0.2.7 with new spec-tools 2018-11-11 22:03:16 +02:00
Tommi Reiman
69592c0f68 Bump up top 0.2.6 2018-11-09 15:41:13 +02:00
Tommi Reiman
fdbab455bd 0.2.5 2018-10-30 20:25:14 +02:00
Tommi Reiman
69aeb9adcc Release 0.2.4 2018-10-21 20:37:35 +03:00
Tommi Reiman
f5ee149929 Release 0.2.3 2018-09-24 20:51:43 +03:00
Tommi Reiman
d81f20ae79 0.2.2 2018-09-09 22:29:00 +03:00
Juho Teperi
98707902ea Add :scm tags for clojars commit link 2018-09-04 19:21:07 +03:00
Tommi Reiman
fa90d12eb8 0.2.1 with updated deps 2018-09-04 18:15:23 +03:00
Tommi Reiman
ac86d550b5 0.2.0 2018-09-03 19:44:59 +03:00
Tommi Reiman
2c51f051de 0.2.0-alpha1 2018-09-02 17:52:19 +03: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
Tommi Reiman
bb4f861f00 0.2.0-SNAPSHOT 2018-07-28 12:07:16 +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
264981fd3d Start version 0.1.4 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
Juho Teperi
3611a1bafe Fix frontend routing tests, add controller ns 2018-07-12 12:46:45 +03:00
Juho Teperi
417f35a318 Create example 2018-07-12 12:46:41 +03:00
Juho Teperi
468a0947d2 Frontend routing implementation 2018-07-12 11:02:35 +03:00