Commit Graph

67 Commits

Author SHA1 Message Date
Rafał Chłodnicki db0e1554ba
fix(vue-app): skip page render early on error or navigation (#20719) 2023-05-23 00:10:38 +01:00
Xin Du (Clark) a3b2fd86ad
fix(vue-app): re-register components construtor in HMR (#9539)
* fix(vue-app): re-register components construtor in HMR

* simpilify checking
2021-07-12 12:21:04 +02:00
Thomas Beduneau 04d33829f9
fix(vue-app): use `app.context.route` for resolving components (#9050) 2021-04-01 12:00:51 +02:00
Daniel Roe ca020cf9cb
refactor: move internal app runtime config to `_app` namespace (#9075) 2021-03-30 18:38:51 +02:00
Daniel Roe c8a4b91ad4
fix: ignore trailing slash in static payloads manifest (#8794) 2021-02-09 16:58:49 +01:00
pooya parsa febd7ee43c
fix(vue-app): static payload fetching bugfixes (#8701) 2021-01-27 11:26:34 +01:00
Daniel Roe 9681a8937d
feat(config, vue-app, vue-renderer): support dynamic `base` and `publicPath` (#8520)
Co-authored-by: pooya parsa <pyapar@gmail.com>
2020-12-22 18:15:59 +01:00
Pim 2c6610cfb8
fix(vue-app): triggerScroll when transitions is disabled (#8225) 2020-11-06 09:38:08 +01:00
Dmitriy 757d5d46da
fix(vue-app): missing layout in error page with `splittedChunks.layout` (#8016) 2020-09-09 12:32:10 +02:00
Sébastien Chopin 6ab65fbf4f
fix(vue-app): handle fallback on generated page (#7718)
* fix(vue-app): handle fallback on generated page

* chore: improvements and small refactor

* fix: lint

Co-authored-by: pooya parsa <pyapar@gmail.com>

* chore: add force-build option to nuxt generate

Co-authored-by: pooya parsa <pyapar@gmail.com>

[release]
2020-07-16 19:32:09 +02:00
Sébastien Chopin f81c588bf6
fix(vue-app): don't fetch payload for store mutation for preview and spa fallback (#7723) 2020-07-16 17:10:06 +02:00
Sébastien Chopin 191f66a19b
fix(vue-app): handle layout on client error (#7654)
[release]
2020-07-02 18:22:12 +02:00
Sébastien Chopin 2f07f66fb8
fix(vue-app): don't fetch payload on first spa fallback render (#7657) 2020-07-02 18:19:32 +02:00
Sébastien Chopin 6332aaa3a2 fix: check correct layout when navigating from error
Resolves #7567
2020-06-23 19:54:47 +02:00
pooya parsa 11a87d858d
fix(vue-app): always import `resolveRouteComponents` (#7591)
[release]
2020-06-23 17:48:09 +02:00
Jonas Galvez 0acfc78932
fix(vue-app): prevent double layout execution (#5703) (#7442) 2020-06-09 18:39:51 +02:00
Pooya Parsa 1e53e38f8d
refactor: inline staticAssetsBase in state chunk for full-static (#7401)
* refactor(vue-app): use NUXT.serverRendered instead of NUXT.spa

* refactor: inline staticAssetsBase into state.js chunk

* revert: unwanted change

[release]
2020-05-20 19:31:31 +02:00
Pooya Parsa 0337932115
feat: runtime config and built-in dotenv support (#7312)
Co-authored-by: Sébastien Chopin <seb@nuxtjs.com>
Co-authored-by: Alexander Lichter <manniL@gmx.net>
2020-05-18 10:21:15 +02:00
Sébastien Chopin f4f6b1912b fix(vue-app): catch error on full static for store mutations
[release]
2020-05-17 00:04:17 +02:00
Pooya Parsa 42406d6075
feat: store and replay vuex mutations for static target (#7350)
* feat: store and replay vuex mutations for static target

* test: add full-static fixture

* perf: clean store subscription before render

* fix: record mutations after nuxtServerInit and middleware
2020-05-12 13:05:24 +02:00
Sébastien Chopin 917adc0618
feat: options.target and full-static export (#6159)
* feat: add options.target

* fix(lint): lint

* fix(test): update snapshots

* fix(builder): default value for target

* fix(test): fix test

* fix(test): test fixing

* fix: use this.options.target

* fix: final test

* Update packages/vue-renderer/src/renderer.js

Co-Authored-By: Alexander Lichter <manniL@gmx.net>

* feat: Add target option and update banner

* fix(lint): fix

* feat: Add warning when using serverMiddleware in static target

* chore(utils): add TARGETS and MODES as constants

* hotfix: lint

* chore(module): add filename as alias of fileName

* feat: introducing nuxt export and router/routes.json

* hotfix: Fix the linting lord

* chore(core): add comment for filename vs fileName

* fix: use targets constant

* chore: remove warning

* fix: unit testing

* wip: refactor and use TARGETS

* fix: lint

* feat: add target as alias for first arg value

* fix: generate only for SPA

* chore: explain to use nuxt static X

* fix: render SPA fallback on redirect for static target

* fix: lint issue

* fix: only target is useful for now

* wip

* wip: nuxt static export is looking good

* Update packages/generator/src/generator.js

Co-Authored-By: Devon Rueckner <indirectlylit@users.noreply.github.com>

* Update packages/cli/src/options/common.js

Co-Authored-By: Alexander Lichter <manniL@gmx.net>

* feat: add options.target

* fix(lint): lint

* fix(test): update snapshots

* fix(builder): default value for target

* fix(test): fix test

* fix(test): test fixing

* fix: use this.options.target

* fix: final test

* Update packages/vue-renderer/src/renderer.js

Co-Authored-By: Alexander Lichter <manniL@gmx.net>

* feat: Add target option and update banner

* fix(lint): fix

* feat: Add warning when using serverMiddleware in static target

* chore(utils): add TARGETS and MODES as constants

* hotfix: lint

* chore(module): add filename as alias of fileName

* feat: introducing nuxt export and router/routes.json

* hotfix: Fix the linting lord

* chore(core): add comment for filename vs fileName

* fix: use targets constant

* chore: remove warning

* fix: unit testing

* wip: refactor and use TARGETS

* fix: lint

* feat: add target as alias for first arg value

* chore: explain to use nuxt static X

* fix: render SPA fallback on redirect for static target

* fix: lint issue

* fix: only target is useful for now

* wip

* wip: nuxt static export is looking good

* Update packages/generator/src/generator.js

Co-Authored-By: Devon Rueckner <indirectlylit@users.noreply.github.com>

* Update packages/cli/src/options/common.js

Co-Authored-By: Alexander Lichter <manniL@gmx.net>

* fix: duplicate imports

* chore: don't server render if an error happens on static target

* test: update unit and add export

* lint: fix

* lint: fix

* fix: e2e test

* fix: fallback only for static target

* fix: dev test

* feat: add generate.crawler

* fix: full static is when generate.static is given

* chore: improvements

* fix: Add isFullStatic in nuxt/config.json

* feat: handle fetch for full static

* feat: router.prefetchPayloads for full static

* chore: use fetch in async-data example

* fix: add target only if given

* fix: use created to have access to props in fetchOnServer

* chore: add console.error in dev for easy debugging

* feat: payload smart pre-fetching

* fix: remove alias for target

* fix: increment payloadFetchIndex is static set to false

* chore: lint

* chore: add serve command

* chore: rename universal to server-side

* fix: handle payloadPath on SPA fallback

* fix: lint

* chore lint again

* feat: handle spa fallback

* feat: support string for exclude

* fix: fallback only if no extension or html

* chore: use JSON.stringify() for static target

* chore: lint again, dammit

* chore: fix tests and remove too early return

* fix: early return only for server target

* fix: update tests

* fix: unit tests

* chore: add ssr option

* chore: add logic for ssr option

* fix: #6682

* chore(dx): add next command to run

* fix: lint

* fix: tests

* chore: keep old behaviour for nuxt build in spa

* fix: test again, oh boy

* fix: alright this is good now

* chore: add comment for spa fallback

* chore: move routes.json to dot nuxt dir

* chore: simplify check for promise

* chore: unique lock id

* chore: refactor isFullStatic

* fix: dont set default in build context

* chore: add test for serve

* chore: update tests

* hotfix: lint tests

* chore(dx): improve message for bundling

* feat: js payload extraction with jsonp

* fix: keep serialized session script for legacy generate

* fix: call to setPagePayload from fetchPayload

* use devalue for payload chunks

* feat: add initial load state chunk

* feat: preload payload and state scripts

* fix(vue-app): don't re-render the app if trailing slash on SSG

* hotfix: remove console.log

* chore(dx): add deploy infos for nuxt export

Co-authored-by: Pooya Parsa <pyapar@gmail.com>

* chore: handle fetching payload.js for nuxt state

* chore(dx): error when using nuxt generate and static

* chore: remove static option for clarity

* chore: remove serverless target

* hotfix: lint

* hotfix: unit tests

* chore: update legacy js resource

* chore: remove query params from url in static target

* fix: use globalName and urlJoin

* chore: typo

* feat: previewMode 👀

* chore: rename to enablePreview

* fix: wait next tick to avoid error on spa

* chore: try 1 sec

* hotfix: test only for linux, wtf azure

* refactor: static assets

- generalize logic for modules need emit export static assets
- allow customization for version, dir and base
- serialization logic is only in ssr now

* feat: smart state chunk creates

* fix(client): ignore payload load error

* perf: avoide payload loading for spa initial

* perf: avoid loading failed chunks again

* chore(cli): add simple compression for nuxt serve

* test: update snapshots

* fix version snapshot

* fix(generator): set staticAssetsBase on context only for full static

* fix tests

* fix: honor shouldHashCspScriptSrc

* chore(dx): add log for client-side fallback creation

Co-authored-by: Xin Du (Clark) <clark.duxin@gmail.com>
Co-authored-by: Alexander Lichter <manniL@gmx.net>
Co-authored-by: Pooya Parsa <pooya@pi0.ir>
Co-authored-by: Devon Rueckner <indirectlylit@users.noreply.github.com>
Co-authored-by: Pooya Parsa <pyapar@gmail.com>
2020-05-07 21:08:01 +02:00
Nicolas PENNEC a2495a6873
chore: fix typos (#7219) 2020-04-14 11:26:40 +02:00
Jason Poindexter 1f5d489850
fix(vue-app): middleware not executing on double browser back navigation (#6775)
fixes #6716.
2020-03-13 22:26:35 +01:00
Xin Du (Clark) a7052b637b
feat(vue-app): trigger watchParam when param is changed in same route (#6244) 2020-03-13 21:28:42 +01:00
pooya parsa f1e2362456 chore: remove new fetch warning 2020-03-12 15:40:03 +01:00
Matteo Rigon 539c865533
fix(vue-app): use child transition name when navigating to parent (#6946) 2020-02-11 15:06:37 +01:00
Sébastien Chopin 6db325c321
feat(vue-app): new fetch syntax (#6880) 2020-02-04 19:36:22 +01:00
Sébastien Chopin c9beac3c7b fix(vue-app): resolve leave transition on child routes (#6803) 2020-01-10 21:45:13 +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
Xin Du (Clark) afb38fe492
fix(vue-app): layout in error.vue not work for Vue.extend component (#6650) 2019-11-05 17:53:39 +00:00
Pim b031fac121 fix: collapsed ssr log (#6590) 2019-10-18 10:36:49 +01:00
Xin Du (Clark) 0834903152 fix(vue-app, webpack): remove consola from client (#6504) 2019-10-08 11:06:29 +02:00
Louis-Marie Michelin 7b3155347c feat(vue-app): add `prefetch` prop to `<nuxt-link>` (#6292) 2019-09-18 17:06:46 +02:00
Pim ec6ef6e425 fix(vue-app): fix asyncData hydration when features.transition: false (#6433) 2019-09-18 15:51:22 +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
Xin Du (Clark) e9c4bcfee2
feat(vue-app): function watchQuery (#6297) 2019-08-31 19:23:11 +01:00
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