From 933d5018c53d269dbd42c97171ef0859c8615057 Mon Sep 17 00:00:00 2001 From: Victor Date: Wed, 20 Mar 2019 08:17:42 -0400 Subject: [PATCH 001/483] chore: Fix syntax in style guide examples (#2071) --- src/v2/style-guide/index.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/v2/style-guide/index.md b/src/v2/style-guide/index.md index 8ebeb9aca6..0611ce977d 100644 --- a/src/v2/style-guide/index.md +++ b/src/v2/style-guide/index.md @@ -331,7 +331,7 @@ When Vue processes directives, `v-for` has a higher priority than `v-if`, so tha :key="user.id" > {{ user.name }} -
  • +
  • ``` @@ -366,7 +366,7 @@ computed: { :key="user.id" > {{ user.name }} -
  • +
  • ``` @@ -386,7 +386,7 @@ We get similar benefits from updating: :key="user.id" > {{ user.name }} -
  • +
  • ``` @@ -399,7 +399,7 @@ to: :key="user.id" > {{ user.name }} -
  • +
  • ``` @@ -418,7 +418,7 @@ By moving the `v-if` to a container element, we're no longer checking `shouldSho :key="user.id" > {{ user.name }} -
  • +
  • ``` @@ -430,7 +430,7 @@ By moving the `v-if` to a container element, we're no longer checking `shouldSho :key="user.id" > {{ user.name }} -
  • +
  • ``` {% raw %}{% endraw %} @@ -445,7 +445,7 @@ By moving the `v-if` to a container element, we're no longer checking `shouldSho :key="user.id" > {{ user.name }} -
  • +
  • ``` @@ -456,7 +456,7 @@ By moving the `v-if` to a container element, we're no longer checking `shouldSho :key="user.id" > {{ user.name }} -
  • +
  • ``` {% raw %}{% endraw %} From 852056aa07946899a08ea667ce637c7c436a123a Mon Sep 17 00:00:00 2001 From: Suhwan Cha Date: Thu, 21 Mar 2019 16:11:36 +0900 Subject: [PATCH 002/483] header background color fix (#2076) --- themes/vue/source/css/page.styl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/themes/vue/source/css/page.styl b/themes/vue/source/css/page.styl index 4feaf20c7e..1f00cecabd 100644 --- a/themes/vue/source/css/page.styl +++ b/themes/vue/source/css/page.styl @@ -195,7 +195,7 @@ @media screen and (min-width: 1590px) #header - background-color: rgba(255,255,255,.4) + background-color: #fff; @media screen and (max-width: 1300px) .content.with-sidebar From 849fb42f138e10a0bdf4d9e2bb9b80d83426fc5b Mon Sep 17 00:00:00 2001 From: Phan An Date: Thu, 21 Mar 2019 17:36:29 +0100 Subject: [PATCH 003/483] Update my work info (#2077) --- src/v2/guide/team.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/v2/guide/team.md b/src/v2/guide/team.md index f5756e41f2..6e5f0badc7 100644 --- a/src/v2/guide/team.md +++ b/src/v2/guide/team.md @@ -608,6 +608,11 @@ order: 803 languages: ['vi', 'en'], github: 'phanan', twitter: 'notphanan', + work: { + role: 'Engineering Team Lead', + org: 'InterNations', + orgUrl: 'https://www.internations.org/' + }, reposOfficial: [ 'vuejs.org' ], From 529b1bbe353ecbd8778568455ac404bc371fdf4f Mon Sep 17 00:00:00 2001 From: Aditya Purwa Date: Fri, 22 Mar 2019 14:58:20 +0700 Subject: [PATCH 004/483] change readme's translaction section to post a comment instead of creating new issue (#2078) --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index db4b5ba602..eaaa09a8a0 100644 --- a/README.md +++ b/README.md @@ -85,7 +85,7 @@ Vietnamese translation is maintained by [Vue.js Vietnam User group](https://gith ### Want to help with the translation? -If you feel okay with translating sorta alone, you can fork the repo, create a "work-in-progress" issue to inform others that you're doing the translation, and go for it. +If you feel okay with translating sorta alone, you can fork the repo, post a comment on the [Community Translation Announcements](https://github.com/vuejs/vuejs.org/issues/2015) issue page to inform others that you're doing the translation, and go for it. If you are more of a team player, Translation Gang might be for you. Let us know somehow that you're ready to join this international open-source translators community. Feel free to contact [Grigoriy Beziuk](https://gbezyuk.github.io) or anybody else from [the team](https://github.com/orgs/translation-gang/people). From ffd51d29f1a61ad96f4b252e46e3a06f91ffd3e8 Mon Sep 17 00:00:00 2001 From: Andrew Anikin Date: Sat, 23 Mar 2019 00:43:47 +0300 Subject: [PATCH 005/483] Update form-validation.md (#2080) Add line break before tag's closing bracket --- src/v2/cookbook/form-validation.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/v2/cookbook/form-validation.md b/src/v2/cookbook/form-validation.md index f0654cf5e7..f21e2ae8b8 100644 --- a/src/v2/cookbook/form-validation.md +++ b/src/v2/cookbook/form-validation.md @@ -42,7 +42,8 @@ Given a form of three fields, make two required. Let's look at the HTML first: v-model="age" type="number" name="age" - min="0"> + min="0" + >

    From 1367e20a827231b781810e2c89b5925eeb95c14d Mon Sep 17 00:00:00 2001 From: Phan An Date: Fri, 22 Mar 2019 22:44:13 +0100 Subject: [PATCH 006/483] Fix the npm command and add a tip about ports (#2075) --- src/v2/cookbook/debugging-in-vscode.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/v2/cookbook/debugging-in-vscode.md b/src/v2/cookbook/debugging-in-vscode.md index 68b1c32e4e..0f0c05c710 100644 --- a/src/v2/cookbook/debugging-in-vscode.md +++ b/src/v2/cookbook/debugging-in-vscode.md @@ -41,6 +41,8 @@ module.exports = { ### Launching the Application from VS Code +

    We're assuming the port to be `8080` here. If it's not the case (for instance, if `8080` has been taken and Vue CLI automatically picks another port for you), just modify the configuration accordingly.

    + Click on the Debugging icon in the Activity Bar to bring up the Debug view, then click on the gear icon to configure a launch.json file, selecting **Chrome/Firefox: Launch** as the environment. Replace content of the generated launch.json with the corresponding configuration: ![Add Chrome Configuration](/images/config_add.png) @@ -81,7 +83,7 @@ Click on the Debugging icon in the Activity Bar to bring up the Debug view, then 2. Open your favorite terminal at the root folder and serve the app using Vue CLI: ``` - npm start + npm run serve ``` 3. Go to the Debug view, select the **'vuejs: chrome/firefox'** configuration, then press F5 or click the green play button. From 78ee76d0b1a176b62da29aae46207ccf5e86ff1b Mon Sep 17 00:00:00 2001 From: Alexey Pyltsyn Date: Sat, 23 Mar 2019 10:33:19 +0300 Subject: [PATCH 007/483] Remove unnecessary semicolons in page.styl file (#2081) --- themes/vue/source/css/page.styl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/themes/vue/source/css/page.styl b/themes/vue/source/css/page.styl index 1f00cecabd..6cf16b9e35 100644 --- a/themes/vue/source/css/page.styl +++ b/themes/vue/source/css/page.styl @@ -104,7 +104,7 @@ // FIX: For nested lists, the top margins on ul/ol // creates extra space at the top. (Issue: 1308) ul, ol - margin: 0; + margin: 0 a color: $green font-weight: 600 @@ -195,7 +195,7 @@ @media screen and (min-width: 1590px) #header - background-color: #fff; + background-color: #fff @media screen and (max-width: 1300px) .content.with-sidebar From 270ab3f119cd690770b6c92983e7090248a0ee13 Mon Sep 17 00:00:00 2001 From: Phan An Date: Mon, 25 Mar 2019 17:45:34 +0100 Subject: [PATCH 008/483] Move template complication demo to a fiddle (#2085) Moving our template complication demo to a fiddle to keep our md clean and make it easier for users to play around with the code. --- src/v2/guide/render-function.md | 77 +-------------------------------- 1 file changed, 1 insertion(+), 76 deletions(-) diff --git a/src/v2/guide/render-function.md b/src/v2/guide/render-function.md index 3c34501a05..452365f6ec 100644 --- a/src/v2/guide/render-function.md +++ b/src/v2/guide/render-function.md @@ -640,80 +640,5 @@ For this component, `children` will give you both paragraphs, `slots().default` You may be interested to know that Vue's templates actually compile to render functions. This is an implementation detail you usually don't need to know about, but if you'd like to see how specific template features are compiled, you may find it interesting. Below is a little demo using `Vue.compile` to live-compile a template string: {% raw %} -
    - -
    - -
    {{ result.render }}
    - -
    _m({{ index }}): {{ fn }}
    -
    {{ result.staticRenderFns }}
    -
    -
    - -
    {{ result }}
    -
    -
    - - + {% endraw %} From f1d244b29b810f66742a2e373b921f608a14eaad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8B=BE=E4=B8=89=E8=82=A1=E5=9B=9B?= Date: Tue, 26 Mar 2019 14:53:32 +0800 Subject: [PATCH 009/483] Update index.md (#2086) --- src/v2/api/index.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/v2/api/index.md b/src/v2/api/index.md index 4b8fa0a7e1..9fdd8188ff 100644 --- a/src/v2/api/index.md +++ b/src/v2/api/index.md @@ -510,12 +510,12 @@ type: api A list/hash of attributes that are exposed to accept data from the parent component. It has an Array-based simple syntax and an alternative Object-based syntax that allows advanced configurations such as type checking, custom validation and default values. With Object-based syntax, you can use following options: - - **type:** can be one of the following native constructors: `String`, `Number`, `Boolean`, `Array`, `Object`, `Date`, `Function`, `Symbol`, any custom constructor function or an array of those. Will check if a prop has a given type, and will throw a warning if it doesn't. [More information](../guide/components-props.html#Prop-Types) on prop types. - - **default:** `any` + - `type`: can be one of the following native constructors: `String`, `Number`, `Boolean`, `Array`, `Object`, `Date`, `Function`, `Symbol`, any custom constructor function or an array of those. Will check if a prop has a given type, and will throw a warning if it doesn't. [More information](../guide/components-props.html#Prop-Types) on prop types. + - `default`: `any` Specifies a default value for the prop. If the prop is not passed, this value will be used instead. Object or array defaults must be returned from a factory function. - - **required:** `Boolean` + - `required`: `Boolean` Defines if the prop is required. In a non-production environment, a console warning will be thrown if this value is truthy and the prop is not passed. - - **validator:** `Function` + - `validator`: `Function` Custom validator function that takes the prop value as the sole argument. In a non-production environment, a console warning will be thrown if this function returns a falsy value (i.e. the validation fails). You can read more about prop validation [here](../guide/components-props.html#Prop-Validation). - **Example:** From abf9cda2f4d89025093fdadf3da05d09f42eb5e4 Mon Sep 17 00:00:00 2001 From: Jarvot <34713793+MickaMx@users.noreply.github.com> Date: Tue, 26 Mar 2019 17:33:26 +0100 Subject: [PATCH 010/483] update Comparisons-guide Flexibility and Modularity (#2088) Fix for the issue #2067 --- src/v2/guide/comparison.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/v2/guide/comparison.md b/src/v2/guide/comparison.md index 31962d68a6..9d59c38113 100644 --- a/src/v2/guide/comparison.md +++ b/src/v2/guide/comparison.md @@ -146,7 +146,7 @@ Vue is much simpler than AngularJS, both in terms of API and design. Learning en AngularJS has strong opinions about how your applications should be structured, while Vue is a more flexible, modular solution. While this makes Vue more adaptable to a wide variety of projects, we also recognize that sometimes it's useful to have some decisions made for you, so that you can just start coding. -That's why we offer a [webpack template](https://github.com/vuejs-templates/webpack) that can set you up within minutes, while also granting you access to advanced features such as hot module reloading, linting, CSS extraction, and much more. +That's why we offer a full system for rapid Vue.js development. [Vue CLI](https://github.com/vuejs/vue-cli) aims to be the standard tooling baseline for the Vue ecosystem. It ensures the various build tools work smoothly together with sensible defaults so you can focus on writing your app instead of spending hours wrangling with configurations. At the same time, it still offers the flexibility to tweak the configuration of each tool to specific needs. ### Data binding From 01d9ea78d910d8cd8463c45cbff86dced6729017 Mon Sep 17 00:00:00 2001 From: Sergey Korepanov <38503175+svkorepanov@users.noreply.github.com> Date: Wed, 27 Mar 2019 14:20:58 +0300 Subject: [PATCH 011/483] api/index.md: add transition duration prop (#2089) * api/index.md: add transition duration prop * Apply suggestion Co-Authored-By: svkorepanov <38503175+svkorepanov@users.noreply.github.com> --- src/v2/api/index.md | 1 + 1 file changed, 1 insertion(+) diff --git a/src/v2/api/index.md b/src/v2/api/index.md index 9fdd8188ff..0b2499ae91 100644 --- a/src/v2/api/index.md +++ b/src/v2/api/index.md @@ -2488,6 +2488,7 @@ Used to denote a `