Skip to content

Commit

Permalink
chore: Merge branch 'master' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
haoqunjiang committed May 20, 2020
2 parents 057201c + 2dbeb45 commit f425fff
Show file tree
Hide file tree
Showing 7 changed files with 34 additions and 8 deletions.
2 changes: 1 addition & 1 deletion docs/dev-guide/plugin-dev.md
Original file line number Diff line number Diff line change
Expand Up @@ -861,7 +861,7 @@ The logo should be a square non-transparent image (ideally 84x84).

## Publish Plugin to npm

To publish your plugin, you need to be registered an [npmjs.com](npmjs.com) and you should have `npm` installed globally. If it's your first npm module, please run
To publish your plugin, you need to be registered an [npmjs.com](https://www.npmjs.com) and you should have `npm` installed globally. If it's your first npm module, please run

```bash
npm login
Expand Down
2 changes: 1 addition & 1 deletion docs/ru/core-plugins/eslint.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
--max-warnings количество предупреждений, по достижению которого сборка заканчивается ошибкой (по умолчанию: Infinity)
```

Проверяет и исправляет файлы. Если конкретные файлы для проверки не указаны, то будут проверяться все файлы в `src` и `test`.
Проверяет и исправляет файлы. Если конкретные файлы для проверки не указаны, то будут проверяться все файлы в `src` и `tests`.

Другие [настройки ESLint CLI](https://eslint.org/docs/user-guide/command-line-interface#options) также поддерживаются.

Expand Down
26 changes: 26 additions & 0 deletions docs/ru/core-plugins/pwa.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,30 @@
- start_url: `'.'`
- display: `'standalone'`
- theme_color: `pwa.themeColor`
- icons: `[
{
'src': './img/icons/android-chrome-192x192.png',
'sizes': '192x192',
'type': 'image/png'
},
{
'src': './img/icons/android-chrome-512x512.png',
'sizes': '512x512',
'type': 'image/png'
},
{
'src': './img/icons/android-chrome-maskable-192x192.png',
'sizes': '192x192',
'type': 'image/png',
'purpose': 'maskable'
},
{
'src': './img/icons/android-chrome-maskable-512x512.png',
'sizes': '512x512',
'type': 'image/png',
'purpose': 'maskable'
}
]`

- **pwa.iconPaths**

Expand All @@ -98,6 +122,8 @@

Измените эти значения при необходимости использовать различные пути для иконок.

*ПРИМЕЧАНИЕ:* Эти иконки используются только для генерации мета-тегов в `<head>` HTML-документа. Для изменения пути к иконкам в манифесте используйте `pwa.manifestOptions.icons`

### Пример конфигурации

```js
Expand Down
2 changes: 1 addition & 1 deletion docs/ru/guide/deployment.md
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ npm install now
git push heroku master
```

Подробная информация: [https://gist.github.com/hone/24b06869b4c1eca701f9](https://gist.github.com/hone/24b06869b4c1eca701f9)
Подробная информация: [Начало работы с SPA на Heroku](https://gist.github.com/hone/24b06869b4c1eca701f9)

### Surge

Expand Down
2 changes: 1 addition & 1 deletion docs/zh/dev-guide/ui-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -914,7 +914,7 @@ export default {

## 插件的 action

插件的 action 就是在 cli-ui (浏览器) 和插件 (Node.js) 直接的调用
插件的 action 就是在 cli-ui (浏览器) 和插件 (Node.js) 之间的调用

> 例如,你可能有一个自定义组件里的按钮 (详见[客户端 addon](#客户端-addon)),这个按钮会通过这个 API 向服务端调用一些 Node.js 代码。
Expand Down
6 changes: 3 additions & 3 deletions docs/zh/guide/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ sidebarDepth: 0

Vue CLI 是一个基于 Vue.js 进行快速开发的完整系统,提供:

- 通过 `@vue/cli` 搭建交互式的项目脚手架
- 通过 `@vue/cli` + `@vue/cli-service-global` 快速开始零配置原型开发
- 通过 `@vue/cli` 实现的交互式的项目脚手架
- 通过 `@vue/cli` + `@vue/cli-service-global` 实现的零配置原型开发
- 一个运行时依赖 (`@vue/cli-service`),该依赖:
- 可升级;
- 基于 webpack 构建,并带有合理的默认配置;
Expand All @@ -28,7 +28,7 @@ Vue CLI 有几个独立的部分——如果你看到了我们的[源代码](htt

### CLI

CLI (`@vue/cli`) 是一个全局安装的 npm 包,提供了终端里的 `vue` 命令。它可以通过 `vue create` 快速创建一个新项目的脚手架,或者直接通过 `vue serve` 构建新想法的原型。你也可以通过 `vue ui` 通过一套图形化界面管理你的所有项目。我们会在接下来的指南中逐章节深入介绍。
CLI (`@vue/cli`) 是一个全局安装的 npm 包,提供了终端里的 `vue` 命令。它可以通过 `vue create` 快速搭建一个新项目,或者直接通过 `vue serve` 构建新想法的原型。你也可以通过 `vue ui` 通过一套图形化界面管理你的所有项目。我们会在接下来的指南中逐章节深入介绍。

### CLI 服务

Expand Down
2 changes: 1 addition & 1 deletion docs/zh/guide/css.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Vue CLI 项目天生支持 [PostCSS](http://postcss.org/)、[CSS Modules](https:

``` bash
# Sass
npm install -D sass-loader node-sass
npm install -D sass-loader sass

# Less
npm install -D less-loader less
Expand Down

0 comments on commit f425fff

Please sign in to comment.