Nuxt/test/unit
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
..
async-config.size-limit.test.js feat(nuxt-link): Smart prefetching and $nuxt.isOffline (#4574) 2018-12-28 17:27:03 +01:00
async-config.test.js test: improve tests (#4237) 2018-11-08 13:11:24 +03:30
basic.config.defaults.test.js fix(webpack): allow changing devtool with extend (#4515) 2018-12-11 01:04:41 +03:30
basic.dev.test.js feat(ts): add TSX support (#4613) 2018-12-23 02:12:20 +03:30
basic.fail.generate.test.js fix: prevent removing project by mistake due to build or generate paths (#3869) 2018-09-14 11:36:44 +04:30
basic.generate.test.js fix(server, vue-app): allow unicode page names (#4402) 2018-11-25 18:22:37 +03:30
basic.plugins.test.js refactor core into sub-packages (#4202) 2018-10-31 00:12:53 +03:30
basic.ssr.csp.test.js fix: csp SHA hashes accumulate when using custom script-src rules (#4519) 2018-12-12 09:59:28 +03:30
basic.ssr.test.js feat: add store module HMR (#4582) 2018-12-19 16:22:00 +01:00
children.test.js test: improve tests (#4237) 2018-11-08 13:11:24 +03:30
cli.test.js feat: better stack traces for SSR error, show error with correct URL and use eventsource-polyfill (#4600) 2018-12-23 12:10:36 +03:30
components.test.js feat: nuxt-loading enhancenments (#3891) 2018-10-29 19:18:40 +03:30
custom-app-template.test.js test: improve tests (#4237) 2018-11-08 13:11:24 +03:30
custom-dirs.test.js test: improve tests (#4237) 2018-11-08 13:11:24 +03:30
dist-options.test.js test: improve tests (#4237) 2018-11-08 13:11:24 +03:30
dynamic-routes.test.js fix(core): stable route sorting (#4331) 2018-11-14 16:50:06 +00:00
error.test.js test: improve tests (#4237) 2018-11-08 13:11:24 +03:30
express.test.js test: improve tests (#4237) 2018-11-08 13:11:24 +03:30
extract-css.test.js fix: duplicate style in extractCSS (#4546) 2018-12-13 22:07:47 +03:30
fallback.generate.test.js fix: improvements for build and dev stability (#4470) 2018-12-09 14:12:22 +03:30
fallback.test.js feat(server): fallback option (#4323) 2018-11-14 23:02:07 +03:30
generator.test.js feat: add tests to check for changed files (#3893) 2018-09-18 16:26:41 +02:00
https.test.js test: improve tests (#4237) 2018-11-08 13:11:24 +03:30
meta-attrs.test.js feat(vue-app, vue-renderer): support meta headAttrs (#4536) 2018-12-14 17:36:26 +03:30
modern.client.test.js fest: add build.corssorgin (#4472) 2018-12-05 19:51:58 +03:30
modern.server.test.js fest: add build.corssorgin (#4472) 2018-12-05 19:51:58 +03:30
modern.spa.test.js fest: add build.corssorgin (#4472) 2018-12-05 19:51:58 +03:30
module.test.js fix(builder): add lodash inside templates (#4368) 2018-11-20 09:21:17 +00:00
named-views.test.js feat(vue-app): support named views (#4410) 2018-12-20 16:50:22 +01:00
nuxt.test.js feat: improve SSR bundle (#4439) 2018-12-01 13:43:28 +03:30
renderer.test.js feat: check modern build file in modern mode (#4467) 2018-12-04 15:41:18 +03:30
route-name-splitter.test.js feat(router): custom route name splitter (#4598) 2018-12-20 13:42:42 +01:00
server.listen.test.js fix: offer a new port and listen if already used, use consola on server error (#4428) 2018-11-30 16:32:15 +01:00
sockets.test.js test: improve tests (#4237) 2018-11-08 13:11:24 +03:30
spa.test.js fix(server, vue-app): allow unicode page names (#4402) 2018-11-25 18:22:37 +03:30
ssr.test.js refactor: use PascalCase for components names (#4396) 2018-11-24 22:19:19 +03:30
typescript-custom.test.js fix(ts): switch from babel preset to ts-loader (#4563) 2018-12-17 15:21:53 +00:00
typescript.test.js feat(ts): add TSX support (#4613) 2018-12-23 02:12:20 +03:30
utils.test.js refactor: @nuxt/utils (#4609) 2018-12-23 00:35:13 +03:30
with-config.test.js feat: mode for plugins (#4592) 2018-12-20 12:58:10 +03:30
wp.config.test.js feat: improve SSR bundle (#4439) 2018-12-01 13:43:28 +03:30