Commit Graph

13 Commits

Author SHA1 Message Date
phof b2abb499f8 Fixes #4882 (#4893) 2019-01-30 14:01:39 +00:00
Xingkai Wang fe57a5a929 fix: $nuxt is used instead of globalName (#4743) 2019-01-21 16:53:07 +03:30
Pim 605b76073b chore: lint vue-app templates (#4689) 2019-01-06 11:26:59 +03:30
Clark Du 0c15b29f7a fix: wrong type checking for loading.duration
[release]
2019-01-03 13:33:29 +00:00
Clark Du e77c2db93e fix: use triple equals in loading.throttle [release] 2019-01-03 13:31:00 +00:00
Clark Du 2d7480457d fix: loading.throttle can not be 0 2019-01-03 13:24:56 +00:00
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
Dmitry Molotkov 8dc15d07b7 fix: allow keepAliveProps for nuxt component (#4610)
[skip ci]
2018-12-23 11:13:36 +03:30
Andrey Shertsinger b1b9e0bcbc feat(vue-app): support named views (#4410)
* support named views for extendRoutes config

* fix lint errors

* fix lint errors 2

* some refactoring

* var rename

* fixture & unit tests

* fix: style

* nuxt-child named view example and test

* nuxt element with named view in layout

* lint
2018-12-20 16:50:22 +01:00
ousiri 431cc15617 fix: keepAliveProps broken in <nuxt-child> (#4521) 2018-12-11 11:11:15 +01:00
Clark Du 52a92fbc48 refactor: use PascalCase for components names (#4396) 2018-11-24 22:19:19 +03:30
Alexander Lichter ecdc7bcc25 fix(progress-bar): allow 0 for values and remove duplicate defaults (#4397) 2018-11-24 22:00:28 +03:30
Pooya Parsa 39b558f59c
refactor core into sub-packages (#4202) 2018-10-31 00:12:53 +03:30