Commit Graph

80 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
Sébastien Chopin
6975655d78
feat: Overwrite store.registerModule (#3909)
* feat: Overwrite store.registerModule

Make `store.registerModule` works seamlessly with server-side rendering.

* fix: test failure
2018-09-18 17:21:25 +02:00
Clark Du
9b060f3be1
feat: upgrade to Babel 7 (#3667) 2018-08-10 14:45:58 +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
Clark Du
918ce3c15f
refactor: make createRouter support async 2018-04-17 15:09:50 +08:00
Jordan Ramstad
869fdc2c25
Update router to allow async functions 2018-04-13 12:22:35 -06:00
jason
65b8148a3d inject ssrContext into createRouter and createStore 2018-02-14 01:45:37 +08:00
Pooya Parsa
806287e62c fix inject for store 2017-12-29 16:01:19 +03:30
Pooya Parsa
67f04458ec improve plugin imports 2017-12-07 13:36:04 +03:30
Clark Du
7952de520c refactor: unregister afterEach after route changed in guard 2017-12-03 20:22:03 +08:00
Clark Du
ceae5a8844 fix(route): error when redirect to different route in router guards 2017-12-03 20:22:03 +08:00
Pooya Parsa
1eee113d6d chore(builder): better naming for plugin generated aliases
Help developers tracing exact source of warns/errors
2017-11-07 13:32:10 +03:30
Atinux
a2cc3afe60 fix: Dont call pages asyncData/fetch if middleware redirected or errored 2017-11-02 17:47:33 +01:00
Sébastien Chopin
023f000e24 fix: Give back payload for generate 2017-10-28 18:10:36 +02:00
Sebastien Chopin
e3974b4729 deprecation: Deprecate isServer, isClient and dev 2017-10-20 12:05:22 +02:00
Sebastien Chopin
d1ed762c1b Merge branch 'dev' into refacto-app 2017-10-20 10:53:18 +02:00
Sébastien Chopin
5b09b92286 Refactor to use only one context and add route.meta 2017-10-20 10:52:07 +02:00
Antério Vieira
a66220b58c style(app): spaces removed (#1898) 2017-10-20 11:01:56 +03:30
Sebastien Chopin
53dc522849 add: store. & this. 2017-09-14 18:25:34 +02:00
Sebastien Chopin
1de4a16a02 fix: Typo 2017-09-06 15:19:51 +02:00
Sebastien Chopin
79a64df422 fix: Move back store hydration before plugins execution 2017-09-06 15:15:32 +02:00
Wu Haotian
e2a18d76da Fix typo in lib/app/index.js (#1539) 2017-08-31 10:57:52 +04:30
Sébastien Chopin
8dd1bfe169 Add app in store only if store exists 2017-08-29 21:04:14 +02:00
Pooya Parsa
c14b3be230 vuex@2.4.0 2017-08-29 22:33:42 +04:30
Sébastien Chopin
e32a3755dd feature: Add inject(key, value) as 2nd argument of plugins 2017-08-24 20:38:28 +02:00
Sebastien Chopin
12a31b0914 fix: SSR call router.push after plugin execution 2017-08-24 18:49:26 +02:00
Sebastien Chopin
fb25c982a7 feature: Add no-ssr component 2017-08-24 12:38:46 +02:00
Sebastien Chopin
8dca358216 Move store hydration after plugins execution 2017-08-22 11:08:59 +02:00
Sebastien Chopin
4a6b651d56 Add beforeNuxtRender hook 2017-07-27 16:26:59 +02:00
Sebastien Chopin
1b2b9dbbe7 Fix context route in plugins for client-side 2017-07-26 13:56:43 +02:00
Sébastien Chopin
d1d631a88e Remove logs 2017-07-20 20:37:52 +02:00
Pooya Parsa
0fece913e5 feat(app): hide error logs in production 2017-07-13 13:29:10 +04:30
Pooya Parsa
3ef0d15f6b perf: use es6 import for plugins 2017-07-11 03:23:06 +04:30
Pooya Parsa
518692b2f4 chore: minor fixes 2017-07-10 04:27:50 +04:30
Pooya Parsa
5da4e49d56 chore: polish app/index.js 2017-07-10 02:59:27 +04:30
Sebastien Chopin
0831f9c5bc Use es6-promise instead 2017-07-04 18:38:09 +02:00
Sebastien Chopin
70a75f4e42 Compatible with IE9+ 2017-07-04 18:30:01 +02:00
Pooya Parsa
447e85af14 depricated ~ in flavour of @ for aliases 2017-06-29 21:06:22 +04:30
Pooya Parsa
6a562e1fe7 fix minor problems with relative 2017-06-21 01:53:53 +04:30
Sébastien Chopin
4cfe700846 Use relative path for plugins paths 2017-06-20 20:31:03 +02:00
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
92951853fc Add error in plugins context 2017-06-09 13:44:07 +02:00
Sebastien Chopin
5e5b58c461 Add redirect in plugins context 2017-06-06 14:51:49 +02:00
Sebastien Chopin
ea03d76e85 Fix issue #829 with onNuxtReady undefined 2017-06-02 12:15:38 +02:00
Pooya Parsa
bbd2eddb40 import SSR plugins
This supports proper functionality of plugins registering Vue Components.
Also we await for each plugin to make sure that they are initialized before createApp
2017-05-22 15:30:20 +04:30
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
Sebastien Chopin
fd833216df Format code 2017-05-05 12:11:32 +02:00
Pooya Parsa
a04a563f8d create store only when available 2017-05-02 15:36:22 +04:30