From 58aee7a38ada4097e905d063c51bc028d7ae8699 Mon Sep 17 00:00:00 2001 From: kazuya kawaguchi Date: Sun, 27 Sep 2015 02:34:13 +0900 Subject: [PATCH 1/9] Fix assets option name on component guide --- source/guide/components.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/guide/components.md b/source/guide/components.md index 9702925bf6..2aada3402f 100644 --- a/source/guide/components.md +++ b/source/guide/components.md @@ -567,7 +567,7 @@ var MyComponent = Vue.extend({ partials: { // ... }, - effects: { + transitions: { // ... } }) From ed69b0311b1570e25e050e1f496d17a12793f0d0 Mon Sep 17 00:00:00 2001 From: Evan You Date: Wed, 30 Sep 2015 11:10:51 -0400 Subject: [PATCH 2/9] fix typo (close #129) --- source/api/options.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/api/options.md b/source/api/options.md index 50c0f6e391..7095d44831 100644 --- a/source/api/options.md +++ b/source/api/options.md @@ -97,7 +97,7 @@ Vue.component('prop-validation-demo', { The following component usage will result in two warnings: type mismatch for "size", and missing required prop "name". ``` html - + ``` From fcb21da2090bd6f0e81f256ff24ed790b914158c Mon Sep 17 00:00:00 2001 From: Jeroen Noten Date: Thu, 8 Oct 2015 12:53:48 +0200 Subject: [PATCH 3/9] Fix typo in FAQ --- source/guide/faq.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/guide/faq.md b/source/guide/faq.md index 6351cc26bf..0fd0fcad45 100644 --- a/source/guide/faq.md +++ b/source/guide/faq.md @@ -15,7 +15,7 @@ order: 16 2. You cannot define your own getter/setters on data objects. This isn't much of a problem because data objects are expected to be obtained from plain JSON and Vue.js provides computed properties. - 3. Vue.js adds a few extra properties/methods to obsesrved objects: `__ob__`, `$add`, `$set` and `$delete`. These properties are inenumberable so they will not show up in `for ... in ...` loops. However if you overwrite them things will likely break. + 3. Vue.js adds a few extra properties/methods to observed objects: `__ob__`, `$add`, `$set` and `$delete`. These properties are inenumberable so they will not show up in `for ... in ...` loops. However if you overwrite them things will likely break. That's pretty much it. Accessing properties on the object is the same as before, `JSON.stringify` and `for ... in ...` loops will work as normal. 99.9% of the time you don't even need to think about it. From 2dc2cc17d9a5a57181838354c142463febc38d79 Mon Sep 17 00:00:00 2001 From: Evan You Date: Thu, 8 Oct 2015 12:25:15 -0400 Subject: [PATCH 4/9] fix custom filter code example (close #131) --- source/guide/custom-filter.md | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/source/guide/custom-filter.md b/source/guide/custom-filter.md index 308928835c..f984168c45 100644 --- a/source/guide/custom-filter.md +++ b/source/guide/custom-filter.md @@ -37,18 +37,16 @@ Up till now we have used filters to transform values coming from the model and b ``` js Vue.filter('currencyDisplay', { - currencyDisplay: { - // model -> view - // formats the value when updating the input element. - read: function(val) { - return '$'+val.toFixed(2) - }, - // view -> model - // formats the value when updating the data. - write: function(val, oldVal) { - var number = +val.replace(/[^\d.]/g, '') - return isNaN(number) ? 0 : number - } + // model -> view + // formats the value when updating the input element. + read: function(val) { + return '$'+val.toFixed(2) + }, + // view -> model + // formats the value when updating the data. + write: function(val, oldVal) { + var number = +val.replace(/[^\d.]/g, '') + return isNaN(number) ? 0 : number } }) ``` From 22d8ecdb06953f4492aa2e3d64625f32fa99ec92 Mon Sep 17 00:00:00 2001 From: Jim Fitzpatrick Date: Mon, 12 Oct 2015 21:02:25 -0400 Subject: [PATCH 5/9] Fix typo --- source/guide/best-practices.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/guide/best-practices.md b/source/guide/best-practices.md index c6a84bf942..3d5652af09 100644 --- a/source/guide/best-practices.md +++ b/source/guide/best-practices.md @@ -43,7 +43,7 @@ As mentioned above, Vue observes data by converting properties with `Object.defi These methods can be used to add / delete properties from observed objects while triggering the desired DOM updates. The difference between `$add` and `$set` is that `$add` will return early if the key already exists on the object, so just calling `obj.$add(key)` won’t overwrite the existing value with `undefined`. -A related note is that when you change a data-bound Array directly by setting indices (e.g. `arr[1] = value`), Vue will not be able to pick up the change. Again, you can use augmented methods to notify Vue.js about those changes. Observerd Arrays are augmented with two methods: +A related note is that when you change a data-bound Array directly by setting indices (e.g. `arr[1] = value`), Vue will not be able to pick up the change. Again, you can use augmented methods to notify Vue.js about those changes. Observed Arrays are augmented with two methods: - `arr.$set(index, value)` - `arr.$remove(index | value)` From fae77a95da5df098564ff2e2128d3d09a05bc915 Mon Sep 17 00:00:00 2001 From: Christopher Pecoraro Date: Wed, 14 Oct 2015 23:36:06 +0200 Subject: [PATCH 6/9] Starting the Italian translation. --- themes/vue/layout/index.ejs | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/themes/vue/layout/index.ejs b/themes/vue/layout/index.ejs index c1a1b24753..47152df909 100644 --- a/themes/vue/layout/index.ejs +++ b/themes/vue/layout/index.ejs @@ -1,12 +1,14 @@

Vue.js

@@ -26,7 +28,7 @@
-

10 Second Example

+

Esempio al volo

1
 2
@@ -78,7 +80,7 @@
     

Simple

-

Write some HTML, grab some JSON, create a Vue instance, that's it.

+

Scrivi un pò di HTML, ricevi un JSON, e crei un'instanza di Vue, è così semplice.

Reactive

@@ -103,7 +105,7 @@
-

You should try it out if you like:

+

Perchè dovrei provarlo? Provalo se ti piace:

  • Extendable Data bindings
  • Plain JS object models
  • From 5146420349cdd1f5558e9043e53f46e3eb449c4f Mon Sep 17 00:00:00 2001 From: Christopher Pecoraro Date: Wed, 14 Oct 2015 23:59:24 +0200 Subject: [PATCH 7/9] adding info for Italian translators --- README.md | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 2f8899134a..9a8ffff912 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,13 @@ +Per i tradottori: +La pagina home è qui: + +vuejs.org/themes/vue/layout/index.ejs + + +Pagine con esempi sono qui: + +vuejs.org/source/examples/ ... + # vuejs.org This site is built with [hexo](http://hexo.io/). Site content is written in Markdown format located in `source`. Pull requests welcome! @@ -10,4 +20,4 @@ Start a dev server at `localhost:4000`: $ npm install -g hexo-cli $ npm install $ hexo server -``` \ No newline at end of file +``` From 02498ec956c227691338aa5d68fc8faeea3af84f Mon Sep 17 00:00:00 2001 From: Christopher Pecoraro Date: Thu, 15 Oct 2015 00:00:20 +0200 Subject: [PATCH 8/9] Fix typo. --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 9a8ffff912..bf6a23da15 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ -Per i tradottori: -La pagina home è qui: +Per i traduttori: +La pagina landing/home è qui: vuejs.org/themes/vue/layout/index.ejs From eea5f20650220088677cf59df11d5937fcc1bb84 Mon Sep 17 00:00:00 2001 From: Giuseppe Sanfrancesco Date: Thu, 15 Oct 2015 00:25:10 +0200 Subject: [PATCH 9/9] Italian translation --- themes/vue/layout/index.ejs | 35 ++++++++++++++++++----------------- themes/vue/layout/page.ejs | 4 ++-- themes/vue/layout/post.ejs | 4 ++-- 3 files changed, 22 insertions(+), 21 deletions(-) diff --git a/themes/vue/layout/index.ejs b/themes/vue/layout/index.ejs index 47152df909..f08e8d0932 100644 --- a/themes/vue/layout/index.ejs +++ b/themes/vue/layout/index.ejs @@ -12,13 +12,14 @@

Vue.js

-

Vue.js is a library for building modern web interfaces.
It provides data-reactive components with a simple and flexible API.

+

Vue.js è una libreria che permette di creare interfacce web moderne. +
Fornisce componenti data-reactive con API semplici e flessibili.

- Install v<%- theme.vue_version %> - Source on GitHub + Installa v<%- theme.vue_version %> + Sorgente su GitHub

    -
  • +
  • @@ -79,33 +80,33 @@
    -

    Simple

    -

    Scrivi un pò di HTML, ricevi un JSON, e crei un'instanza di Vue, è così semplice.

    +

    Semplice

    +

    Scrivi l'HTML, ricevi un JSON e crea un'instanza di Vue. È semplicissimo.

    -

    Reactive

    +

    Reattivo

    Expressions & computed properties with transparent dependency tracking.

    -

    Components

    -

    Compose your application with decoupled, reusable components.

    +

    Componenti

    +

    Crea la tua applicazione utilizzando i componenti come meglio credi

    -

    Compact

    -

    ~22kb min+gzip, no dependency.

    +

    Leggero

    +

    Vue pesa circa 22kb min+gzip e non dovrai installare nessuna dipendenza.

    -

    Fast

    +

    Veloce

    Precise and efficient async batch DOM updates.

    -

    Package Ready

    -

    Install via NPM, Bower or Duo - leverage your favorite eco system!

    +

    Pacchetti

    +

    Installabile via NPM, Bower e Duo

    -

    Perchè dovrei provarlo? Provalo se ti piace:

    +

    Perchè dovrei provarlo?

    • Extendable Data bindings
    • Plain JS object models
    • @@ -115,8 +116,8 @@
    diff --git a/themes/vue/layout/page.ejs b/themes/vue/layout/page.ejs index 3b57ae1b9d..d89749eb70 100644 --- a/themes/vue/layout/page.ejs +++ b/themes/vue/layout/page.ejs @@ -7,5 +7,5 @@
<%- page.content %> - - \ No newline at end of file + + diff --git a/themes/vue/layout/post.ejs b/themes/vue/layout/post.ejs index 2704e82303..c164e1520f 100644 --- a/themes/vue/layout/post.ejs +++ b/themes/vue/layout/post.ejs @@ -3,7 +3,7 @@ <%- partial('partials/main_menu') %>
-

Recent Posts

+

Post recenti

    <% site.posts.sort('date', -1).limit(10).each(function (post) { %>
  • @@ -25,4 +25,4 @@

<%- page.date.format('MMM D[,] YYYY') %>

<%- page.content %> - \ No newline at end of file +