Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docs #3092

Closed
9 tasks done
yyx990803 opened this issue Jun 16, 2016 · 24 comments
Closed
9 tasks done

Docs #3092

yyx990803 opened this issue Jun 16, 2016 · 24 comments
Milestone

Comments

@yyx990803
Copy link
Member

yyx990803 commented Jun 16, 2016

@yyx990803 yyx990803 added the 2.0 label Jun 16, 2016
@yyx990803 yyx990803 added this to the 2.0-beta milestone Jun 16, 2016
@MeiYuanChen
Copy link

MeiYuanChen commented Jun 21, 2016

1.vue-server-renderer can solve 'seo' question?
2.Why not ’Guidelines Vue docs‘ inside vue-server-renderer?

@stylehuan
Copy link

I also need to server-renderer

@tong-zeng
Copy link

I wonder when we can have some documentations on vue server side rendering, thank you.

@rajibahmed
Copy link

@yyx990803 and @LinusBorg I would love to help you guys somehow ( docs or anything) ...

@chrisvfritz
Copy link
Contributor

@stylehuan @sharp-c As it's listed, rest assured we will be documenting server side rendering. 😉 In the meantime, you might enjoy browsing these tests.

@rajibahmed If you'd like to help, we'd love feedback on the updated guide. Note that the transition system page is out of date, but everything else should be current with the latest beta.

@amirrustam
Copy link

@MeiYuanChen Regarding your SEO worries, I'm under the impression that Google search crawlers have been able to understand Javascript. They announced this change back in 2014: https://webmasters.googleblog.com/2014/05/understanding-web-pages-better.html

Google is the dominate search engine in the Americas, Europe, Middle East and rest of Asia. The only exceptions are Russia and China. More than half of search traffic in China flows through Baidu, which does not interpret Javascript with their crawlers. Yandex, is the dominate engine in Russia, and they started crawling Javascript in pages since last year: https://yandex.ru/blog/webmaster/21369

So server-side rendering for sake SEO somewhat depends on your site's audience, and hopefully the info I provided helps. With that said, any server-side rendering that returns pre-rendered plain HTML or text content can be crawled by searchbots. vue-server-renderer will help with this, and actually @yyx990803 mentioned SEO as motivation for Vue on server-side when the issue was brought up: #114 (comment)

@blocka
Copy link

blocka commented Aug 1, 2016

Server side rendering is also needed for metatags (think facebook, etc.)

@amirrustam
Copy link

@blocka Yes. Also I came back to add that Google's crawlers are not full-proof JS renderers. They can't be fully be trusted yet to process your JS like you would think. Relevant: http://searchengineland.com/can-now-trust-google-crawl-ajax-sites-235267

So the new vue-server-renderer is greatly appreciated.

@elithrar
Copy link

As part of a migration to 2.0, I ported some 2-way filters on v-model to custom components with v-bind:value + emitting an input event - referring to http://rc.vuejs.org/guide/components.html#Form-Input-Components-using-Custom-Events

Two parts:

  • I'd love to submit a simple "2 way filter to custom component" example, especially after having read the filter issue
  • What isn't clear in the 2.0 changelog is why this approach doesn't work on 1.0 (which should also be documented, unless I've missed it, which is entirely possible)

@LinusBorg
Copy link
Member

LinusBorg commented Aug 23, 2016

What isn't clear in the 2.0 changelog is why this approach doesn't work on 1.0

...because in 1.0 you have.sync, there was not need for this.

The "v-model on component" feature was developed for 2.0 to provide a mechanism that works a bit like ".sync", but only in cases where it makes sense (components emulating inputs with v-model behavior)

@elithrar
Copy link

@LinusBorg Oh, derp. Of course. Is there an upgrade guide WIP - not seeing anything in https://github.com/vuejs/vuejs.org/tree/2.0/src/guide - I'd definitely want to contribute/cover that.

@chrisvfritz
Copy link
Contributor

@elithrar The closest thing we have to upgrade guide currently is in the 2.0 changes issue (see Other Breaking Changes and Upgrade Tips), but we will be building a real one prior to final release. 😃 It would actually be a great help if you could compile a list of things you'd like to see covered beyond what's already in that issue.

@LinusBorg
Copy link
Member

It would actually be a great help if you could compile a list of things you'd like to see covered beyond what's already in that issue.

Indeed. We may be blind to some spots as we are too familiar with both versions ...

@elithrar
Copy link

elithrar commented Aug 27, 2016

OK, so here seems as good as any place to cover some additional migration guide requests:

  • How to migrate from Vue 1.0's 2-way filters to a a custom component - this thread provides evidence of a need.
  • A more comprehensive Lifecycle Hook guide (ready -> mounted caveats, given how common ready usage is)
  • Replacing debounce with your own implementation - partially covered here but definitely needs to be clearly featured in the docs.

@dragonautdev
Copy link

@yyx990803 I'd love to contribute with Vue by generating a Spanish translation of the guides. Would this be something you would be interested in having?

Cheers!

@chrisvfritz
Copy link
Contributor

@srodriki Definitely! See vuejs/v2.vuejs.org#308.

@zigomir
Copy link
Contributor

zigomir commented Sep 28, 2016

vue-router 2.0 docs & vuex 2.0 docs are done, right? 🎉

@LinusBorg
Copy link
Member

Yep.

@chrisvfritz
Copy link
Contributor

chrisvfritz commented Sep 28, 2016

@elithrar I'm currently developing those two-way filters to components examples you talked about. You mentioned you might have some good examples to share?

@elithrar
Copy link

elithrar commented Sep 28, 2016

@chrisvfritz - here's a quick example of how I'm using it - https://gist.github.com/elithrar/659f531e574c46bb3bb8114045b437dc - custom v-model component w/ debounce inside.

@LinusBorg
Copy link
Member

your gist link gives me 404

@elithrar
Copy link

@LinusBorg fixed.

@chrisvfritz
Copy link
Contributor

chrisvfritz commented Oct 3, 2016

Thanks @elithrar! I just added a section on two-way filters specifically to the migration guide. Would love to hear your thoughts.

@elithrar
Copy link

elithrar commented Oct 3, 2016

@chrisvfritz Great write-up - breaking it down into Vue 1 -> Vue 2 steps does a great job of illustrating the changes required (and the benefits of the custom component approach).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests