Skip to content

Commit deaa935

Browse files
authored
Lint & Typo (#1072)
* linted cookbook/serverless-blog.md * linted guide/migration.md * linted guide/list.md * linted guide/installation.md * linted cookbook/debugging-in-vscode.md * linted style-guild/index.md
1 parent 3cc839d commit deaa935

File tree

6 files changed

+169
-109
lines changed

6 files changed

+169
-109
lines changed

src/v2/cookbook/debugging-in-vscode.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ module.exports = {
4848
<!-- todo: translation -->
4949
<p class="tip">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.</p>
5050

51-
点击在 Activity Bar 里的 Debugger 图标来到 Debug 视图,然后点击那个齿轮图标来配置一个 `launch.json` 的文件,选择 **Chrome/Firefox: Launch** 环境。然后将生成的 `launch.json` 的内容替换成为相应的配置:
51+
点击在 Activity Bar 里的 Debugger 图标来到 Debug 视图,然后点击那个齿轮图标来配置一个 `launch.json` 的文件,选择 **Chrome/FirefoxLaunch** 环境。然后将生成的 `launch.json` 的内容替换成为相应的配置:
5252

5353
![添加 Chrome 配置](/images/config_add.png)
5454

@@ -91,7 +91,7 @@ module.exports = {
9191
npm run serve
9292
```
9393

94-
3. 来到 Debug 视图,选择 **'vuejs: chrome/firefox'** 配置,然后按 <kbd>F5</kbd> 或点击那个绿色的 play 按钮。
94+
3. 来到 Debug 视图,选择**vuejschrome/firefox**配置,然后按 <kbd>F5</kbd> 或点击那个绿色的 play 按钮。
9595

9696
4. 随着一个新的浏览器实例打开 `http://localhost:8080`,你的断点现在应该被命中了。
9797

src/v2/cookbook/serverless-blog.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ import Butter from 'buttercms';
3939
const butter = Butter('your_api_token');
4040
```
4141

42-
使用 CDN:
42+
使用 CDN
4343

4444
```html
4545
<script src="https://cdnjs.buttercms.com/buttercms-1.1.0.min.js"></script>
@@ -302,4 +302,4 @@ created() {
302302

303303
## 总结
304304

305-
差不多就是这些了!现在你已经在自己的应用中拥有了一个可以正常工作的 CMS 博客。我们希望这份教程可以帮助你,使你的 Vue.js 开发体验更有乐趣 :)
305+
差不多就是这些了!现在你已经在自己的应用中拥有了一个可以正常工作的 CMS 博客。我们希望这份教程可以帮助你,使你的 Vue.js 开发体验更有乐趣 🙂

src/v2/guide/installation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ NODE_ENV=production browserify -g envify -e main.js | uglifyjs -c -m > build.js
255255

256256
## 开发版本
257257

258-
**重要**: GitHub 仓库的 `/dist` 文件夹只有在新版本发布时才会提交。如果想要使用 GitHub 上 Vue 最新的源码,你需要自己构建!
258+
**重要**GitHub 仓库的 `/dist` 文件夹只有在新版本发布时才会提交。如果想要使用 GitHub 上 Vue 最新的源码,你需要自己构建!
259259

260260
``` bash
261261
git clone https://github.com/vuejs/vue.git node_modules/vue

src/v2/guide/list.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ var example2 = new Vue({
8181

8282
结果:
8383

84-
{% raw%}
84+
{% raw %}
8585
<ul id="example-2" class="demo">
8686
<li v-for="(item, index) in items">
8787
{{ parentMessage }} - {{ index }} - {{ item.message }}
@@ -257,7 +257,7 @@ Vue 将被侦听的数组的变异方法进行了包裹,所以它们也将会
257257

258258
### 替换数组
259259

260-
变异方法,顾名思义,会改变调用了这些方法的原始数组。相比之下,也有非变异 (non-mutating method) 方法,例如 `filter()``concat()``slice()` 。它们不会改变原始数组,而**总是返回一个新数组**。当使用非变异方法时,可以用新数组替换旧数组:
260+
变异方法,顾名思义,会改变调用了这些方法的原始数组。相比之下,也有非变异 (non-mutating method) 方法,例如 `filter()``concat()``slice()`。它们不会改变原始数组,而**总是返回一个新数组**。当使用非变异方法时,可以用新数组替换旧数组:
261261

262262
``` js
263263
example1.items = example1.items.filter(function (item) {
@@ -457,7 +457,7 @@ methods: {
457457

458458
上面的代码将只渲染未完成的 todo。
459459

460-
而如果你的目的是有条件地跳过循环的执行,那么可以将 `v-if` 置于外层元素 (或 [`<template>`](conditional.html#在-lt-template-gt-中配合-v-if-条件渲染一整组))上。如:
460+
而如果你的目的是有条件地跳过循环的执行,那么可以将 `v-if` 置于外层元素 (或 [`<template>`](conditional.html#在-lt-template-gt-中配合-v-if-条件渲染一整组)) 上。如:
461461

462462
``` html
463463
<ul v-if="todos.length">
@@ -472,7 +472,7 @@ methods: {
472472

473473
> 这部分内容假定你已经了解[组件](components.html)相关知识。你也完全可以先跳过它,以后再回来查看。
474474
475-
在自定义组件上,你可以像在任何普通元素上一样使用 `v-for`
475+
在自定义组件上,你可以像在任何普通元素上一样使用 `v-for`
476476

477477
``` html
478478
<my-component v-for="item in items" :key="item.id"></my-component>

0 commit comments

Comments
 (0)