Commit Graph

68 Commits

Author SHA1 Message Date
Jonas Galvez
a3dd7dad6b feat: configurable global name (#4012)
Co-authored-by: JuliaNeumann <jn.julianeumann@gmail.com>
2018-10-09 15:38:33 +03:30
Clark Du
411bb1904e refactor: always use process.client instead of process.browser (#3910) 2018-09-19 13:30:23 +04:30
Jonas Galvez
e6e8adb671 Minor consistency tweaks (#3726) 2018-08-15 15:23:03 +02:00
Clark Du
5ddc394a50
fix: return 404 if extendRoutes without Component (#3608)
resolve #3351
2018-08-13 17:27:20 +01:00
Clark Du
6aaf839d54
feat: call global vue errorHandler in fetch and asyncData (#3652)
resolve #3335
2018-08-08 11:11:08 +01:00
Jonas Galvez
3f1d634fb7 Consistent parens in arrow functions (#3630)
* Minor consistency enhancements

* Arrow parenthesis consistency

* Change linting rule

* Fix typo

* Update .eslintrc.js to only require parens for blocks

* Update style according to brace-only suggestion

* Remove --fix from lint

* Tweak no-loading time (failing test)

* Tweak no-loading time (failing test) (2)

* Tweak no-loading time (failing test) (3)

* Tweak no-loading time (failing test) (4)

* Tweak no-loading time (failing test) (5)
2018-08-06 02:12:44 +02:00
Alexander Lichter
095404a251 refactor: change function calls when arity is one (#3563) 2018-07-20 16:42:31 +01:00
Clark Du
90d9283e70
deprecate: remove context.isServer/isClient 2018-03-15 17:19:36 +08:00
Clark Du
94bb02901c
fix: multiple components in one route 2018-01-24 14:33:27 +08:00
Pooya Parsa
24185c97e7 fix: redirect without unresolved promise 2018-01-16 10:04:40 +03:30
Sébastien Chopin
97d70f46c6 misc: Fix typo 2018-01-15 13:51:51 +01:00
Sébastien Chopin
e8532dc80c fix: Remove useless console.log 2018-01-15 13:51:25 +01:00
Sébastien Chopin
de02ea4b5d app: Better external url redirect handling 2018-01-15 12:22:57 +01:00
Clark Du
83d5f059ee feature: redirect by route name 2017-12-21 12:21:43 +03:30
Clark Du
ceae5a8844 fix(route): error when redirect to different route in router guards 2017-12-03 20:22:03 +08:00
Clark Du
40b9d23ea9
refactor: move redirect message to option.messges 2017-11-28 22:05:17 +08:00
Clark Du
21f9145309
feat: allow redirect to external url 2017-11-28 17:10:20 +08:00
Clark Du
16c12d1e85 refactor: remove unnecessary return await (#2224)
* refactor: remove unnecessary return await

* refactor: remove unnecessary async
2017-11-24 12:03:47 +03:30
Atinux
3d49d8d290 feat: Add Page.watchQuery 2017-11-06 18:30:37 +01:00
Atinux
a2cc3afe60 fix: Dont call pages asyncData/fetch if middleware redirected or errored 2017-11-02 17:47:33 +01:00
devneko
f186cadba6 fix unexpected state reset #1408 2017-10-29 11:02:48 +09:00
Sébastien Chopin
e02e8df224 fix: Fix tests in generate mode with redirect 2017-10-28 22:42:51 +02:00
Pooya Parsa
5384ee1a5c ctx => app.context 2017-10-25 01:08:31 +03:30
Pooya Parsa
aefa9f8c31 context => appContext 2017-10-25 00:49:14 +03:30
Sebastien Chopin
e3974b4729 deprecation: Deprecate isServer, isClient and dev 2017-10-20 12:05:22 +02:00
Sébastien Chopin
5b09b92286 Refactor to use only one context and add route.meta 2017-10-20 10:52:07 +02:00
Wu Haotian
e06aaaecc5 rename context.serverState to context.nuxtState 2017-09-07 10:46:28 +08:00
Sebastien Chopin
79a64df422 fix: Move back store hydration before plugins execution 2017-09-06 15:15:32 +02:00
Sebastien Chopin
f4c68e95e2 Add serverState 2017-09-01 10:29:06 +02:00
Sebastien Chopin
7da8785d72 Add context.serverStoreState 2017-08-31 14:46:10 +02:00
Clark Du
5616f1acba match correct route when resolveComponents in hash mode 2017-08-30 18:13:01 +08:00
Sébastien Chopin
b49713a096 Fix Maximum Call Size Stack 2017-08-29 20:53:50 +02:00
LookinGit
16608fad25 ~ fix asyncData parent + children pages in production build (#1248) 2017-08-25 08:56:38 +03:00
Sebastien Chopin
4ac14054f2 context: hotReload -> isHMR 2017-08-23 13:41:37 +02:00
Sebastien Chopin
af60ba21c0 Remove JS files for pages & layouts 2017-08-17 15:23:40 +02:00
Sebastien Chopin
4a6b651d56 Add beforeNuxtRender hook 2017-07-27 16:26:59 +02:00
Sébastien Chopin
03aa65a888 context: Add on client-side 2017-07-20 21:04:23 +02:00
Pooya Parsa
3ef0d15f6b perf: use es6 import for plugins 2017-07-11 03:23:06 +04:30
Pooya Parsa
a9f2f299a3 chore: minor olishes 2017-07-10 03:10:09 +04:30
Pooya Parsa
aaf924f49d fix(asyncData): keep results in ssrContext 2017-07-07 02:03:11 +04:30
Pooya Parsa
766009dbba Cleaner structure 2017-06-18 12:06:00 +04:30
Pooya Parsa
829ffa634b refactor structure 2017-06-16 17:12:45 +04:30
Sebastien Chopin
f089bcfff6 Add hotReload in context 2017-05-31 13:21:24 +02:00
Sebastien Chopin
4f1e82e959 fix: payload is not fully working on nuxt generate 2017-05-30 12:00:31 +02:00
Johan Roxendal
7cfa548ddf renamed generatePayload -> payload 2017-05-24 12:46:22 +02:00
Johan Roxendal
b2d5186e39 renamed routePayload to payload and generatePayload in the context object. added backwards compatability with string-only routes. 2017-05-24 11:32:17 +02:00
Johan Roxendal
64e7cab8fa [Feature: generate] Added support for rendering dynamic routes using data cached by generate.routes in the config file. 2017-05-23 12:20:26 +02:00
Sébastien Chopin
78cd3bae86 Remove injectAs property, now you only have to export a method which receives the context 2017-05-21 21:00:41 +02:00
Pooya Parsa
32ac90482e Merge remote-tracking branch 'remotes/origin/fix-middleware' into dev
# Conflicts:
#	lib/app/server.js
#	lib/app/utils.js
#	lib/generate.js
#	yarn.lock
2017-05-15 15:33:52 +04:30
Pooya Parsa
59ece4978e fix plugins injectAs 2017-05-15 02:26:00 +04:30