Commit Graph

239 Commits

Author SHA1 Message Date
Thomas Beduneau 04d33829f9
fix(vue-app): use `app.context.route` for resolving components (#9050) 2021-04-01 12:00:51 +02:00
vcordes79 c04a793b4a
fix(vue-app): fallback to global nuxt instance of `$root` is not available (#9008) 2021-03-31 19:52:32 +02:00
Daniel Roe ca020cf9cb
refactor: move internal app runtime config to `_app` namespace (#9075) 2021-03-30 18:38:51 +02:00
rinu 3fb9194416
fix(vue-app): reload page once after loading chunk error (#8978) 2021-03-28 20:25:05 +02:00
Daniel Roe 2c4cc04b49
fix(vue-app): re-call `$fetch` if data is missing in payload (#9026) 2021-03-23 19:04:54 +01:00
Daniel Roe bc3b21a9bb
fix(vue-app): handle redirect functions in routes (#9024)
closes #8979
2021-03-22 11:29:27 +01:00
Thomas Beduneau e8ea37673f
fix(vue-app): use `app.context.route` to match components in server 2021-03-22 11:24:34 +01:00
ChangJoo Park(박창주) 0921ceeb2e
chore(lint): add indent result of createApp (#8982) 2021-03-16 21:41:57 +00:00
pooya parsa 1b9a9d6449
fix(renderer): deep merge runtimeConfig for server (#8856) 2021-02-19 17:33:00 +01:00
Daniel Roe e277bb284b
fix(vue-app): align client fetch key with server (#8809) 2021-02-12 12:55:27 +01:00
Daniel Roe 9d33456e69
fix(vue-app): add leading slash for payload hydration (#8802) 2021-02-10 13:18:27 +01:00
Daniel Roe 119091c8d1
refactor(utils, vue-app): use `ufo` to parse queries and join urls (#8765) 2021-02-09 17:01:37 +01:00
Daniel Roe c8a4b91ad4
fix: ignore trailing slash in static payloads manifest (#8794) 2021-02-09 16:58:49 +01:00
Daniel Roe 1196c17a2a
fix(vue-app): enable dynamic publicPath on server-side (#8759) 2021-02-04 21:56:18 +01:00
Daniel Roe 07dd2cce9b
fix(server, vue-app): address encoding issues with query params (#8748)
Co-authored-by: Pooya Parsa <pyapar@gmail.com>
2021-02-04 18:52:13 +00:00
Daniel Roe 6a8339e4c4
fix: encoding issues with payload paths (#8738)
- fix(generator): decode full static filesystem paths
- fix(vue-app): check decoded path against manifest
- fix(vue-app): prevent double encoding for urls

Co-authored-by: Pooya Parsa <pyapar@gmail.com>
2021-02-02 13:38:54 +01:00
pooya parsa febd7ee43c
fix(vue-app): static payload fetching bugfixes (#8701) 2021-01-27 11:26:34 +01:00
Xin Du (Clark) dc551f9709
fix(dev): clearnup vue installed plugins from server in dev mode (#8697) 2021-01-27 11:26:08 +01:00
Xin Du (Clark) 2b3eefc3a1
refactor(vue-app): simplify scrollToTop checking (#8621) 2021-01-12 09:47:29 +00:00
Daniel Roe 3265e94979
fix(vue-app): check for Page.options before looking within (#8612)
closes #8234
2021-01-11 17:04:33 +00:00
Daniel Roe 71a3df8443
fix(vue-app): don't remove req/res/query unless in full static mode (#8611)
closes #7965
2021-01-11 11:11:00 +01:00
Daniel Roe 3bba4c6a7f
fix(vue-app): check that `link.__prefetch` exists before calling it (#8608)
closes #8173
2021-01-08 19:23:55 +01:00
Ahad Birang 746b14319a
fix(vue-app): add id attribute to `noopApp` (#8596) 2021-01-05 14:14:39 +01:00
Beorn Facchini ac762299a1
fix(vue-app): scroll to top on route changes only (#8557) 2020-12-26 20:19:33 +01:00
Pooya Parsa 7529d65d75 chore: migrate from @nuxt/ufo to ufo 2020-12-22 18:20:41 +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
Daniel Roe 8c8793073f
fix(vue-app): set `push` on router instance rather than prototype (#8523)
resolves #7479
resolves #8522
2020-12-20 12:21:20 +01:00
Daniel Roe fb191d2fbd
fix(vue-app, vue-renderer, utils): respect `trailingSlash` setting for payloads (#8489)
* fix(utils): don't inject a trailing slash on catchall routes (e.g. `/*/`)

closes #8488

* fix(vue-app, vue-renderer): respect `trailingSlash` setting for payloads

* refactor: use new ufo `parsePath` utility

Co-authored-by: pooya parsa <pyapar@gmail.com>
2020-12-17 12:51:14 +01:00
Daniel Roe 92018e586b
feat(vue-app): support custom `fetchKey` for full static generation (#8466)
[release]
2020-12-17 12:49:59 +01:00
Pooya Parsa a78427c165 v2.14.12 [hotfix] [release] 2020-12-16 14:21:30 +01:00
pooya parsa a25bdd622d
fix: fix issues with url handling (#8494) 2020-12-16 14:12:16 +01:00
Daniel Roe 1269773d9d
fix(vue-app): do not preserve state when registering client-side dynamic module (#8486) 2020-12-14 10:52:02 +01:00
pooya parsa fc51ca3330
fix: normalize routes and decode resolved query (#8430) 2020-12-06 18:32:39 +01:00
pooya parsa 49c293b25f
fix: only encode non dynamic path params (#8421) 2020-12-01 16:01:25 +01:00
Pooya Parsa a8cc430574 chore: remove extra import 2020-11-30 23:25:44 +01:00
pooya parsa cc1f6d94b5
fix: handle route encoding (#8325)
Co-authored-by: farnabaz <farnabaz@users.noreply.github.com>
2020-11-30 23:10:02 +01:00
Sébastien Chopin 691f21c683
fix(vue-app): handle missing payloads on full static (#8314)
* fix(vue-app): handle missing payloads on full static

Fixes #7717

* chore: rename routesManifest to manifest

* chore: remove console.log

* chore(vue-app): don't have staticAssetsBase if undefined

* chore: add manifest option

* test: update snapshot

* chore: use foundRoute to avoid multiple vars name

Co-authored-by: Pooya Parsa <pyapar@gmail.com>
Co-authored-by: Daniel Roe <daniel@roe.dev>
2020-11-25 15:19:29 +01:00
Daniel Roe 7278b10112
fix(vue-app): warn if promises and functions are in fetch state (#8348) 2020-11-16 09:43:20 +01:00
Daniel Roe b050861332
fix(generator): respect publicPath for static assets (#8344)
* fix: respect publicPath for static assets

* test: add test for correct `publicPath` URL handling
2020-11-14 23:10:16 +01:00
Pim 2c6610cfb8
fix(vue-app): triggerScroll when transitions is disabled (#8225) 2020-11-06 09:38:08 +01:00
Daniel Roe 442b6c07c9
fix(vue-app): use nuxt globalName correctly in nuxt-link and fetch mixin (#8289) 2020-11-04 13:35:29 +00:00
Daniel Roe e14b7201b4
fix(vue-app): prevent redirection loop with uri encoded path (#8280) 2020-11-04 13:35:12 +00:00
Daniel Roe 9c4dac3c61
fix(vue-app): use getter to provide `this.$nuxt` (#8170) 2020-10-13 12:19:08 +02:00
Clark Du 61e93d01f9 Revert "fix(vue-app): use mixin to provide `this.$nuxt` (#8068)"
This reverts commit 8abdc177be.
2020-09-30 12:08:57 +01:00
Daniel Roe 8abdc177be
fix(vue-app): use mixin to provide `this.$nuxt` (#8068)
Co-authored-by: Clark Du <clark.duxin@gmail.com>
2020-09-30 11:16:16 +01:00
Dmitriy 79440f3ce5
fix(vue-app): scrollRestoration hasn't set (#8055) 2020-09-30 10:57:36 +01:00
Daniel Roe 89a64161d0
fix(vue-app): always import error layout (#8067) 2020-09-15 18:33:26 +02:00
Dmitriy 45b7838710
fix(vue-app): empty `$fetch` function for SSR with static target (#8053) 2020-09-10 21:16:00 +02:00
Dmitriy 757d5d46da
fix(vue-app): missing layout in error page with `splittedChunks.layout` (#8016) 2020-09-09 12:32:10 +02:00
Florent Catiau-Tristant 51b037fea6
fix(vue-app): var names shadowing in chrome debugger (#7939)
* fix: var names shadowing in debug

* fix: new appropriate variable name

Co-authored-by: florent.catiau <florent.catiau@veepee.com>
2020-08-25 21:31:36 +02:00