Evan You
7d9cfebe39
fix(ssr): properly handle invalid and numeric style properties
...
Ignores values that are not string or numbers, and append px as default
unit to appropriate properties.
There will still be certain cases where the user simply provides an
invalid string value to a property which will be too costly to detect
(it's possible by using the `cssstyle` package, but very heavy). But
in such cases the user would already notice the style is not working
on the client, so it's not really worth it for the perf implications.
fix #9231
2019-01-11 11:07:40 -05:00
Guillaume Chau
d7a533d6f8
feat(ssr): ssrPrefetch option + context.rendered hook ( #9017 )
2018-12-20 15:26:12 -05:00
Evan You
780dac561b
fix(ssr): should not warn for custom directives that do not have ssr implementation
...
fix #9167
2018-12-09 15:47:43 -05:00
sqal
a89384c8d9
test(ssr): add basic directives test ( #9166 )
2018-12-09 15:42:20 -05:00
sqal
33e669b22f
fix(ssr): computed properties should pass vm as first argument in ssr ( #9090 )
...
fix #8977
2018-12-01 00:05:13 -05:00
Evan You
76fd45c9fd
build: upgrade eslint and use only non-stylistic rules
2018-10-24 12:08:32 -04:00
Haoqun Jiang
c21b89ebed
fix(ssr): fix double escaping of staticClass values ( #7859 ) ( #8037 )
2018-08-20 17:49:18 -04:00
Evan You
3d36a443c7
fix: fix potential xss vulnerability in ssr when using v-bind
2018-08-01 12:33:47 -07:00
leon
1a979c44d6
fix(ssr): fix v-show inline style rendering when style binding is array ( #7814 )
...
fix #7813
2018-03-13 11:40:22 -04:00
Evan You
882e7199fd
fix(ssr): fix SSR for async functional components
...
fix #7784
2018-03-13 11:39:29 -04:00
Evan You
9b22d86ab3
fix: install ssr helpers for functional context during SSR
...
close #7443 , ref nuxt/nuxt.js#2565
2018-03-08 09:51:03 -05:00
Evan You
8936b8d9c1
fix(ssr): properly handle errors in async component
...
fix #6778
2017-12-12 18:12:02 -05:00
Evan You
86e4d7566e
test: add test case for #7223
2017-12-12 17:07:28 -05:00
Evan You
e1657fd7ce
fix(ssr): properly render <select v-model> initial state
...
fix #6986
2017-11-03 15:30:47 -04:00
Evan You
79c0d7bcfb
fix(ssr): properly render textarea value
...
partial fix for #6986
2017-11-02 23:04:31 -04:00
Evan You
f2e00f756f
fix: special case for static muted attribute in firefox
...
fix #6887
2017-11-02 16:55:05 -04:00
Evan You
4ad9a56b22
fix(ssr): should not optimize root if conditions
...
fix #6907
2017-10-26 18:43:57 +02:00
Evan You
dff85b230a
fix(ssr): handle inline template compilation error
...
fix #6766
2017-10-10 10:47:41 -04:00
Evan You
f881dd175a
feat(ssr): renderToString return Promise
...
close #6160
2017-10-05 22:42:56 -04:00
Evan You
09106f066a
fix(ssr): handle v-text/v-html with non-string value
...
fix #6572
2017-09-12 23:23:24 -04:00
Josh Soref
f477ecdbbb
chore: spelling ( #6535 )
2017-09-07 07:33:09 -04:00
Evan You
06741f3266
fix: computed properties should not be cached during SSR
...
ref: vuejs/vuex#877
2017-09-01 12:51:29 -04:00
Evan You
db1d047499
chore: remove unnecessary log in tests
2017-09-01 12:19:58 -04:00
Evan You
172dbf9faf
fix(ssr): should also escape static text content
...
fix #6345
2017-08-29 23:32:28 +02:00
Evan You
5091e2c984
fix(ssr): address possible xss vector
2017-08-29 16:42:54 +02:00
Evan You
6bf97721f1
feat(ssr): inheritAttrs support in SSR
2017-07-12 16:54:31 +08:00
Evan You
0cd6ef321b
feat: resolve ES module default when resolving async components
2017-06-29 12:12:01 +08:00
Evan You
8262edcd22
test for ssr rendering async components
2017-05-24 16:50:17 +08:00
Evan You
f061d802d3
fix v-if false rendering
2017-05-18 16:53:35 +08:00
Evan You
41acdc0ff1
fix v-html/v-text on root element
2017-05-18 16:07:49 +08:00
Evan You
2f4ad14d9f
test template v-if/v-for
2017-05-18 16:04:54 +08:00
宋铄运
38810d8fd0
Support auto-prefixed style value as array (client/ssr) ( #5460 )
...
* support auto-prefixed style value as array (client/ssr)
* adjust test case
2017-04-17 20:49:10 +08:00
Evan You
1e37633567
fix ssr xss ( fix #5351 )
2017-04-01 14:07:05 +08:00
Evan You
2ea80399da
restructure ssr tests: move template tests into separate file
2017-03-30 12:10:43 +08:00
Evan You
e0a7c1ac68
use data attribute for ssr marker
2017-03-29 17:53:46 +08:00
chengchao
e733e5cee8
fix SSR v-show render. ( #5224 )
...
* fix SSR v-show bug. v-show info needs to be merged from parent to child component
* improve variable name
* update test case
* update test case
2017-03-21 09:50:26 +08:00
YOU
61930e0cc6
chore(test): fix some typos ( #5101 )
2017-03-06 09:50:49 +01:00
Herrington Darkholme
01151ce3fa
fix #4872 , use context agnostic Function constructor check ( #4928 )
...
* fix #4872 , use context agnostic Function constructor check
* use getType to check Function Constructor
* fix negation
2017-02-14 13:40:57 -05:00
Evan You
1c79592524
feat: implement template option for vue-server-renderer
2017-02-13 13:34:05 -05:00
Evan You
cfb4d7c655
improve parser warning for tags with no matching close tag
2017-02-06 19:18:50 -05:00
Evan You
c9fbcaf591
remove unnecessary slice in SSR renderStyle (small perf gain)
2017-01-19 23:41:37 -05:00
Evan You
2dc2d062b1
adjust build
2016-11-20 12:03:43 -05:00
chengchao
e960cd104e
enable style merge behavior between parent-child components ( fix #3997 ) ( #4138 )
...
* merge style between components
* update test case
* update style compiler
* add paren to style binding code
* update background property parsing
* introduce interpolation warning and refactor var to const
2016-11-07 16:19:48 -05:00
chengchao
33cf1134ed
Update ssr class render ( fix #4143 ) ( #4146 )
...
* fix ssr class render
* update test case
2016-11-07 11:33:37 -05:00
Evan You
e5f23d9fa0
fix component attrs/domProps merging in SSR
2016-11-04 12:53:15 -04:00
(´・ω・`)
240df147f1
Generate style on custom component in SSR ( fix #4055 ) ( #4076 )
...
* fix #4055 , generate style on custom component
* add test for custom component style
* add synthetic data for module processing
2016-11-04 09:38:52 -04:00
Evan You
d362d64633
update entities encoding/decoding ( fix #3899 )
2016-10-13 05:05:35 -04:00
Evan You
22894810df
fix ssr v-bind test
2016-08-05 03:22:31 -04:00
Evan You
351aef3cb4
use comment node as empty placeholder (fix <transition> SSR hydration)
2016-08-05 01:52:09 -04:00
Evan You
b283f53fd0
support :style bind to text in SSR too
2016-08-02 22:05:33 -04:00