Commit Graph

40 Commits

Author SHA1 Message Date
Sébastien Chopin 6db325c321
feat(vue-app): new fetch syntax (#6880) 2020-02-04 19:36:22 +01:00
wppd e271aa0a0a
chore(vue-app): pass error as param to nuxt-loading fail method (#6939) 2020-02-03 16:41:37 +01:00
Xin Du (Clark) e8aca9eb11 chore: update @nuxtjs/eslint-config to v2 and fix lint errors (#6732) 2019-11-26 23:42:39 +01:00
Sébastien Chopin 9f921fe136 fix(vue-app): add `prefetched` class to `<nuxt-link>` after chunk loaded (#6623) 2019-10-28 15:32:24 +01:00
Louis-Marie Michelin 7b3155347c feat(vue-app): add `prefetch` prop to `<nuxt-link>` (#6292) 2019-09-18 17:06:46 +02:00
Pim 3b9eddc223 fix(vue-app): clear idle callback (#6430) 2019-09-18 10:54:17 +02:00
Pim 8f0f16b076 chore: lint vue-app templates (#6390) 2019-09-10 11:51:14 +02:00
Pim 174c13d56c feat(vue-app): support configurable features (#6287) 2019-09-05 17:15:27 +02:00
Pim 93a0924754 fix(vue-app): prevent looping on error during render of error page (#6217) 2019-09-01 16:58:56 +02:00
Pim 662a409056 fix(vue-app): only overwrite leave listener when none provided or without done arg (#6264) 2019-08-21 16:06:52 +04:30
Sébastien Chopin fda1b1b54b fix(vue-app): enforce default css when used with frameworks (#6255) 2019-08-20 20:45:36 +04:30
Sébastien Chopin 9cc3e34673 feat(vue-app): use EventSource instead of WebSocket for build indicator (#6186) 2019-08-05 20:15:33 +04:30
bluelovers 9524bcae5e feat(vue-app): add <client-only> alias for <no-ssr> (#5941) 2019-07-04 16:47:45 +01:00
Sébastien Chopin 329f0f5f36 fix(vue-app): fix font-size and make width bigger (#5920) 2019-06-14 22:05:21 +04:30
Pim 2a2bf9b93d fix(vue-app): always finish `transition.leave` asynchronously (#5891) 2019-06-14 21:58:03 +04:30
Rafał Chłodnicki 0e2965319d fix(vue-app): fix position of the build indicator when page scrolled (#5890) 2019-06-07 01:54:33 +04:30
Pooya Parsa cb1b980d8a
feat(vue-app): allow customizing loading indicator (#5844) 2019-06-06 12:39:28 +04:30
Rafał Chłodnicki ab72355669 fix(vue-app): fix exception on property access of undefined object (#5867) 2019-06-05 00:18:56 +04:30
Sébastien Chopin 0d5b49dcbc fix(vue-app): update build indicator style (#5834) 2019-05-30 15:57:41 +04:30
Pooya Parsa f39fe2279e
refactor: improve build indicator (#5832)
[release]
2019-05-30 14:33:57 +04:30
Pooya Parsa a759196865 feat(vue-app): build indicator (#5820)
* feat: inline HMR progress indicator

* support router base

* fix nuxt err

* fix space

* fix indentation

* return in case of ws message parsing error

* close ws on beforeDestroy

* ui: Update loading indicator UI

* builder: Add build.indicator option

* ui: Use only logo and %

* hotfix: Alphabetical order

* hotfix: Add fixed with and add back v-if

* minor style change

* rename component to build-indicator

* feat: animated progress

* assign name to component

* update test

* naming consistency

* render into app to prevent dom wrapping

* extra new line

* better App.js formatting

* update snapshot

* clear interval
2019-05-29 16:44:15 +02:00
Jun 7084b3a126 fix(vue-app): reuse page component with `watchQuery` (#5757) 2019-05-19 23:27:20 +04:30
Xin Du (Clark) 30419e73f2
fix(vue-app): remove trailing slash in vue-router non-strict mode (#5746) 2019-05-17 10:39:52 +01:00
Rafał Chłodnicki 5d5a32b556 fix(vue-app): don't attach catch handler to already loaded component (fixes #5751) (#5752) 2019-05-17 00:01:12 +04:30
Rafał Chłodnicki 8588ca9a7e fix(vue-app): Followup for fix for handle prefetch error (#5687) (#5690) 2019-05-10 10:56:28 +01:00
Rafał Chłodnicki be18b31525 fix(vue-app): properly catch component loading error (#5687) (#5688) 2019-05-10 13:20:50 +04:30
Hyunje Jun 2a66d1952e fix(vue-app): consider `watchQuery` option in `routerViewKey` (#5516) 2019-05-09 16:23:59 +04:30
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