Commit Graph

30 Commits

Author SHA1 Message Date
Xin Du (Clark) d85d2fb612
Revert "feat: function watchQuery (#6245)" (#6296)
This reverts commit 3c61830a0d.
2019-08-25 10:53:23 +01:00
Xin Du (Clark) 3c61830a0d
feat: function watchQuery (#6245) 2019-08-25 10:12:59 +01:00
Xin Du (Clark) c6a9b37821 feat(vue-app): support functional `watchQuery` (#6222) 2019-08-19 00:05:16 +04:30
Pooya Parsa 0c3b9c5d12
fix(vue-app): reduce consola direct access (#5864) 2019-06-04 19:18:45 +04:30
Alexander Lichter 2e41bb47b5 refactor(vue-app): simplify mount error log (#5826)
* separately log mount error in dev mode
* simplify mount exception

Co-authored-by: Xin Du (Clark) <clark.duxin@gmail.com>
2019-05-30 14:28:37 +01:00
Elevista 3142ce15d8 fix(vue-app): fixPrepatch in-out transition fix (#5797) (#5824) 2019-05-30 09:04:37 +02:00
Pooya Parsa 09620d58a9 feat: improve browser logs (#5810) 2019-05-27 09:32:53 +01:00
Xin Du (Clark) 21aaef3b48 feat(vue-renderer): support `render.ssrLog` for controlling SSR logs (#5784) 2019-05-23 14:19:16 +04:30
Xin Du (Clark) a764e1f90d refactor(vue-app): add group for ssr logs (#5770) 2019-05-21 11:19:16 +02:00
Jun 7084b3a126 fix(vue-app): reuse page component with `watchQuery` (#5757) 2019-05-19 23:27:20 +04:30
Alexander Lichter d08ce2f628 refactor: small readability improvements (#5748) 2019-05-16 14:38:44 +04:30
Sébastien Chopin 4b11dcc9ad feat(vue-renderer/vue-app): report SSR console logs to the browser with consola (#5673) 2019-05-09 11:36:17 +04:30
noe132 2d73e8aeba fix(vue-app): prevent mounting page twice on redirect (#5361) 2019-03-29 18:36:35 +04:30
Alexander Lichter 37006f6267 fix(vua-app): clone mount error to prevent mutating read-only error object (#5214) 2019-03-13 01:37:38 +03:30
Xin Du (Clark) 1ea86617ca
fix: keep-alive component data should not be updated (#5188) 2019-03-08 16:43:27 +00:00
Yutaka Sasaki 41028a407b fix(vue-app): avoid css chunk error (#5173) 2019-03-07 16:43:09 +03:30
Pooya Parsa 2015140d12 feat(vue-app): universal fetch (#5028)
* pkg(nuxt-start): add node-fetch, unfetch

* pkg(vue-app): add node-fetch, unfetch

* add yarn.lock

* feat(config): _app.fetch options

* feat(builder): add fetch to templateVars

* feat(vue-app): polyfill global with fetch

* feat(fixtures/basic): /api/test

* add fetch example to fixtures

* remove unfetch from nuxt-start

* update template snapshot

* revert extra new line in server.js

* single line if
2019-02-14 16:56:58 +01:00
Cristian Pallarés dbf70999e4 fix(vue-app): fix `getNuxtChildComponents` method (#4969) 2019-02-07 10:14:38 +00:00
Xingkai Wang fe57a5a929 fix: $nuxt is used instead of globalName (#4743) 2019-01-21 16:53:07 +03:30
Sébastien Chopin 3ebd6b707e hotfix(layout): Hot fix for layout middleware 2019-01-10 19:57:32 +01:00
Sébastien Chopin 521ac20e29 fix(layout-middleware): Fix issue #4724 2019-01-10 18:59:56 +01:00
Pim 605b76073b chore: lint vue-app templates (#4689) 2019-01-06 11:26:59 +03:30
Sébastien Chopin f319033928
feat(nuxt-link): Smart prefetching and $nuxt.isOffline (#4574)
* feat(nuxt-link): Improve <n-link> and add automatic prefetch

* Update packages/vue-app/template/components/nuxt-link.js

Co-Authored-By: Atinux <seb@orion.sh>

* add missing space

* feat(nuxt-link): Split in two components for smaller bundle

* fix(vue-app): Use requestIdleCallback

* chore(vue-app): Improve nuxt prefetch strategy for nuxt links

* chore(vue-app): Add .isOnline and handle it for prefetch

* chore(vue-app): Add .isOffline and use it

* chore(vue-app): Add .isOffline

* chore(server): Check is options.modern is given in dev mode

* chore(vue-app): Add intersection-observer polyfill if router.prefetchLinks is 'polyfill'

* chore(vue-app): Remove polyfill

* chore(vue-app): Use only process.client

* chore(vue-app): Add TS typings for .isOnline and isOffline

* chore(vue-app): Update typings by @kevinmarrec

* chore(vue-app): Reorder names

* examples(nuxt-prefetch): Add Nuxt prefetching example

* chore(vue-app): Add router.linkPrefetchedClass

* lint(vue-app): Fix lint

* chore(vue-app): Use intersectionRatio, recommend by @maoberlehner

* fix(lint): Fix linting issues

* lint(vue-app): Fix again (lol)

* types(vue-app): Update TS typings

* chore(vue-app): Update Vetur tags description

* fix(vue-app): Use prefetchClass

* chore(vue-app): Disable linkPrefetchedClass by default
2018-12-28 17:27:03 +01:00
Sébastien Chopin 498c4f11d3 feat: better stack traces for SSR error, show error with correct URL and use eventsource-polyfill (#4600)
[release]
2018-12-23 12:10:36 +03:30
Sébastien Chopin 96892c5341 fix(vue-app): Fix default error handler in production 2018-12-19 19:39:38 +01:00
Sébastien Chopin 7812d8d87d Merge branch 'missing-chunk-reload' of https://github.com/aldarund/nuxt.js into aldarund-missing-chunk-reload
Conflicts:
	packages/vue-app/template/client.js
2018-12-19 18:48:38 +01:00
Sébastien Chopin 6c4280f87f fix(vue-app): Call Vue.config.errorHandler instead of simply logging the error 2018-12-19 18:12:39 +01:00
Dmitry Molotkov 6ed3ecacc7 hotfix(vue-app): ReferenceError error passed with routeChanged (#4444) 2018-11-28 17:30:40 +01:00
Dmitry Molotkov 9fbd581557 fix: handle errors that are not error instances (#4321) 2018-11-14 22:47:44 +03:30
Pooya Parsa 39b558f59c
refactor core into sub-packages (#4202) 2018-10-31 00:12:53 +03:30