Rich Harris
b089ca42ff
Merge pull request #608 from cudr/preload_return_fix
...
Don't crash if preload return empty
2019-04-27 11:15:14 -04:00
Rich Harris
96a068245b
Merge pull request #620 from cudr/error_page_hooks
...
Error page lifecycle
2019-04-27 11:06:28 -04:00
Akihiko Odaki
0fd332135e
Allow to have middleware for the path same with a HTML page
...
The feature was introduced with 9e2d0a7fbc ,
but regressed with commit 8dc52a04e4 .
2019-04-13 19:42:19 +09:00
cudr
9bb8bfa884
receive preloaded root_data
2019-04-08 20:07:42 +03:00
cudr
9e60a71cf5
clean up
2019-04-06 02:50:00 +03:00
cudr
3a9d457389
execute error page hooks
2019-04-06 02:32:11 +03:00
cudr
6bf3dd04dd
fix empty preload
2019-03-13 15:18:23 +03:00
Rich Harris
e0de230e13
Slot-based routing ( #573 )
2019-02-21 16:34:07 -05:00
Rich Harris
9d2ce6d852
Merge pull request #563 from nolanlawson/patch-2
...
Remove unnecessary index.html file serve
2019-02-17 09:46:55 -04:00
Nolan Lawson
1f1211b7b4
Remove unnecessary index.html file serve
...
As far as I can tell, `/index.html` should no longer exist (outside of `sapper export`, which doesn't apply here). After #525 was merged, we're now using `/service-worker-index.html`, but that's handled by `get_page_handler.ts`, not here. So this code is doing nothing.
2019-02-14 19:14:14 -08:00
Thomas Ghysels
acafeac1cc
Fix #561
2019-02-13 17:59:32 +01:00
Rich Harris
84a0ae562f
support .svelte or .html extensions
2019-02-08 11:34:33 -05:00
Rich Harris
ca034d0857
Support Svelte 3
...
fixes #546 , #551 , #552 , #554
2019-02-03 14:29:47 -05:00
Rich Harris
5573258a10
update tests
2018-09-30 11:32:58 -04:00
Rich Harris
39b1fa89ce
wip
2018-01-21 11:03:23 -05:00
Rich Harris
b3027c5816
port runtime to typescript, move runtime/app.js to runtime.js
2017-12-25 17:14:39 -05:00
Rich Harris
3c4ebcda30
cancel navigation if overtaken by a second navigation - fixes #48
2017-12-24 20:37:00 -05:00
Rich Harris
c8366dec74
handle deep links
2017-12-24 07:53:39 -05:00
Rich Harris
db1c1f332a
Add goto function ( #46 )
...
* WIP
* programmatic navigation
* get tests working
* wait longer
2017-12-23 13:15:40 -05:00
Rich Harris
8b50ff34b8
named exports, for tree-shakeability when we add new stuff
2017-12-17 15:01:26 -05:00
Rich Harris
e4936375db
support HMR
2017-12-16 20:10:49 -05:00
Rich Harris
dccd3cdeb0
prevent default when navigating to current location
2017-12-16 10:59:46 -05:00
Rich Harris
b3b5d9f352
handle hashchange correctly
2017-12-16 08:53:42 -05:00
Rich Harris
10ddaeb7a3
dont navigate on hashchange
2017-12-16 08:16:09 -05:00
Rich Harris
7e65c481d8
doh
2017-12-15 18:34:38 -05:00
Rich Harris
67fe570f6d
dont try to prevent event where none exists
2017-12-15 18:26:55 -05:00
Rich Harris
0eb96bf01f
oops, remove logging
2017-12-15 16:47:29 -05:00
Rich Harris
4c61ed5fdd
better link click handling, track scroll position
2017-12-15 16:46:11 -05:00
Rich Harris
e46aceb2fe
implement prefetching anchors with rel=prefetch
2017-12-14 08:21:32 -05:00
Rich Harris
a87cac2481
refactor some stuff
2017-12-14 07:53:17 -05:00
Rich Harris
bffffe0035
detach SSRd <head> contents
2017-12-13 20:24:58 -05:00
Rich Harris
e1ed1896e6
easier templates
2017-12-13 14:14:06 -05:00
Rich Harris
941867f0a4
add client-side preloading logic, move router into runtime module
2017-12-13 13:29:38 -05:00