Date: Thu, 20 Aug 2020 10:43:00 +0800
Subject: [PATCH 05/13] docs: update slogan, set en as default language (#444)
* docs: section order
* docs: rename Iceworks Pack to Iceworks
* docs: update Iceworks demo
* docs: extensions list for Iceworks
* docs: extensions
* docs: format
* docs: more keys
* docs: style
* docs: add more categories
* docs: add more keywords
* docs: set en as default language
* docs: update slogan
* chore: md i18n
* docs: update slogan
---
README.md | 43 +++----
README.en.md => README.zh-CN.md | 40 +++---
extensions/iceworks-app/README.en.md | 105 ---------------
extensions/iceworks-app/README.md | 121 +++++++++---------
extensions/iceworks-app/README.zh-CN.md | 102 +++++++++++++++
.../iceworks-config-helper/CHANGELOG.md | 4 +
.../iceworks-config-helper/README.en.md | 67 ----------
extensions/iceworks-config-helper/README.md | 79 +++++-------
.../iceworks-config-helper/README.zh-CN.md | 72 +++++++++++
.../iceworks-config-helper/package.json | 2 +-
.../iceworks-material-helper/CHANGELOG.md | 4 +
.../iceworks-material-helper/README.en.md | 93 --------------
extensions/iceworks-material-helper/README.md | 110 ++++++++--------
.../iceworks-material-helper/README.zh-CN.md | 89 +++++++++++++
.../iceworks-material-helper/package.json | 2 +-
.../iceworks-project-creator/CHANGELOG.md | 2 +
.../iceworks-project-creator/README.en.md | 33 -----
extensions/iceworks-project-creator/README.md | 40 +++---
.../iceworks-project-creator/README.zh-CN.md | 31 +++++
extensions/iceworks-style-helper/CHANGELOG.md | 6 +
extensions/iceworks-style-helper/README.en.md | 86 -------------
extensions/iceworks-style-helper/README.md | 99 +++++++-------
.../iceworks-style-helper/README.zh-CN.md | 89 +++++++++++++
extensions/iceworks-style-helper/package.json | 2 +-
extensions/iceworks-ui-builder/CHANGELOG.md | 4 +
extensions/iceworks-ui-builder/README.en.md | 72 -----------
extensions/iceworks-ui-builder/README.md | 86 ++++++-------
.../iceworks-ui-builder/README.zh-CN.md | 72 +++++++++++
extensions/iceworks-ui-builder/package.json | 2 +-
extensions/iceworks/CHANGELOG.md | 4 +
extensions/iceworks/README.en.md | 37 ------
extensions/iceworks/README.md | 48 +++----
extensions/iceworks/README.zh-CN.md | 37 ++++++
extensions/iceworks/package.json | 25 ++--
scripts/extension-docs-check.ts | 4 +-
yarn.lock | 2 +-
36 files changed, 859 insertions(+), 855 deletions(-)
rename README.en.md => README.zh-CN.md (70%)
delete mode 100644 extensions/iceworks-app/README.en.md
create mode 100644 extensions/iceworks-app/README.zh-CN.md
delete mode 100644 extensions/iceworks-config-helper/README.en.md
create mode 100644 extensions/iceworks-config-helper/README.zh-CN.md
delete mode 100644 extensions/iceworks-material-helper/README.en.md
create mode 100644 extensions/iceworks-material-helper/README.zh-CN.md
delete mode 100644 extensions/iceworks-project-creator/README.en.md
create mode 100644 extensions/iceworks-project-creator/README.zh-CN.md
delete mode 100644 extensions/iceworks-style-helper/README.en.md
create mode 100644 extensions/iceworks-style-helper/README.zh-CN.md
delete mode 100644 extensions/iceworks-ui-builder/README.en.md
create mode 100644 extensions/iceworks-ui-builder/README.zh-CN.md
delete mode 100644 extensions/iceworks/README.en.md
create mode 100644 extensions/iceworks/README.zh-CN.md
diff --git a/README.md b/README.md
index bd60a4000..cd9213e64 100644
--- a/README.md
+++ b/README.md
@@ -1,5 +1,4 @@
-
-简体中文 | [English](./README.en.md)
+English | [简体中文](./README.zh-CN.md)
@@ -9,7 +8,7 @@
Iceworks
-基于 VS Code 的多端研发套件
+Visual Intelligent Development Assistant
@@ -20,36 +19,36 @@
-## 快速开始
+## Quick Start
-使用 VS Code 套件快速开发多端应用:
+Use Iceworks to develop Universal Application quickly:
-- 点击 VS Code 活动栏上的「插件商店图标」;
-- 在输入框中输入「iceworks」进行搜索;
-- 点击第一个「iceworks」选项上的「安装」按钮。
+- Click "Shop Icon" on Activity Bar of VS Code
+- Enter "iceworks" in the input box to search
+- Click the Install button on the first iceworks option
-![install demo](https://img.alicdn.com/tfs/TB1Bm.kaCR26e4jSZFEXXbwuXXa-1024-766.gif)
+![install demo](https://img.alicdn.com/tfs/TB1jDJ7R8r0gK0jSZFnXXbRRXXa-1024-768.png)
-安装成功后,点击 VS Code 界面左侧活动栏上的「Iceworks 图标」,开始使用:
+After installation is successful, click the "Iceworks icon" on Activity Bar of VS Code to start:
-![Iceworks](https://img.alicdn.com/tfs/TB1kPb5NoT1gK0jSZFrXXcNCXXa-1024-766.gif)
+![Iceworks](https://img.alicdn.com/tfs/TB1lyV9inM11u4jSZPxXXahcXXa-1024-768.png_790x10000.jpg)
-查看 [Iceworks Pack](extensions/iceworks/README.md) 了解更多功能。
+[See the Pack for more details](extensions/iceworks/README.md).
-## 参与贡献
+## Contributors
-欢迎通过 [issue](https://github.com/ice-lab/iceworks/issues/new) 反馈问题。
+Feel free to report any questions as an [issue](https://github.com/ice-lab/iceworks/issues/new), we'd love to have your helping hand on icestore.
-如果对 `Iceworks` 感兴趣,请参考 [CONTRIBUTING.md](./.github/CONTRIBUTING.md) 学习如何贡献代码。
+If you're interested in icestore, see [CONTRIBUTING.md](./.github/CONTRIBUTING.md) for more information to learn how to get started.
-## ICE 生态
+## ICE Ecosystem
| Project | Version | Docs | Description |
|----------------|------------------|--------------|-----------|
-| [icejs] | [![icejs-status]][icejs-package] | [docs][icejs-docs] | 基于 React 的企业级研发框架 |
-| [icestark] | [![icestark-status]][icestark-package] | [docs][icestark-docs] | 面向大型应用的微前端解决方案 |
-| [icestore] | [![icestore-status]][icestore-package] | [docs][icestore-docs] | 简单友好的轻量级状态管理方案 |
-| [formily] | [![formily-status]][formily-package] | [docs][formily-docs] | 能力完备性能出众的表单解决方案 |
+| [icejs] | [![icejs-status]][icejs-package] | [docs][icejs-docs] | A universal framework based on react.js |
+| [icestark] | [![icestark-status]][icestark-package] | [docs][icestark-docs] | Micro Frontends solution for large application |
+| [icestore] | [![icestore-status]][icestore-package] | [docs][icestore-docs] | Simple and friendly state for React |
+| [formily] | [![formily-status]][formily-package] | [docs][formily-docs] | Alibaba Group Unified Form Solution |
[icejs]: https://github.com/alibaba/ice
[icestark]: https://github.com/ice-lab/icestark
@@ -71,9 +70,9 @@
[icestore-docs]: https://github.com/ice-lab/icestore#icestore
[formily-docs]: https://formilyjs.org/
-## 社区
+## Community
-| 钉钉群 | GitHub issues | Gitter |
+| DingTalk community | GitHub issues | Gitter |
|-------------------------------------|--------------|---------|
| | [issues] | [gitter]|
diff --git a/README.en.md b/README.zh-CN.md
similarity index 70%
rename from README.en.md
rename to README.zh-CN.md
index b77b9252f..fe8e2d029 100644
--- a/README.en.md
+++ b/README.zh-CN.md
@@ -1,4 +1,4 @@
-English | [简体中文](./README.md)
+简体中文 | [English](./README.md)
@@ -8,7 +8,7 @@ English | [简体中文](./README.md)
Iceworks
-Universal Application Development Pack
+可视化智能开发助手
@@ -19,36 +19,34 @@ English | [简体中文](./README.md)
-## Quick Start
+## 快速开始
-Use Iceworks to develop Universal Application quickly:
-
-- Click "Shop Icon" on Activity Bar of VS Code
-- Enter "iceworks" in the input box to search
-- Click the Install button on the first iceworks option
+- 点击 VS Code 活动栏上的「插件商店图标」;
+- 在输入框中输入「iceworks」进行搜索;
+- 点击第一个「iceworks」选项上的「安装」按钮。
![install demo](https://img.alicdn.com/tfs/TB1Bm.kaCR26e4jSZFEXXbwuXXa-1024-766.gif)
-After installation is successful, click the "Iceworks icon" on Activity Bar of VS Code to start:
+安装成功后,点击 VS Code 界面左侧活动栏上的「Iceworks 图标」,开始使用:
-![Iceworks](https://img.alicdn.com/tfs/TB1kPb5NoT1gK0jSZFrXXcNCXXa-1024-766.gif)
+![使用示例](https://img.alicdn.com/tfs/TB1nk3YRQL0gK0jSZFtXXXQCXXa-1024-768.png_790x10000.jpg)
-See the [Iceworks Pack](extensions/iceworks/README.md) for more details.
+[查看套件了解更多功能](extensions/iceworks/README.md)。
-## Contributors
+## 参与贡献
-Feel free to report any questions as an [issue](https://github.com/ice-lab/iceworks/issues/new), we'd love to have your helping hand on icestore.
+欢迎通过 [issue](https://github.com/ice-lab/iceworks/issues/new) 反馈问题。
-If you're interested in icestore, see [CONTRIBUTING.md](./.github/CONTRIBUTING.md) for more information to learn how to get started.
+如果对 `Iceworks` 感兴趣,请参考 [CONTRIBUTING.md](./.github/CONTRIBUTING.md) 学习如何贡献代码。
-## ICE Ecosystem
+## ICE 生态
| Project | Version | Docs | Description |
|----------------|------------------|--------------|-----------|
-| [icejs] | [![icejs-status]][icejs-package] | [docs][icejs-docs] | A universal framework based on react.js |
-| [icestark] | [![icestark-status]][icestark-package] | [docs][icestark-docs] | Micro Frontends solution for large application |
-| [icestore] | [![icestore-status]][icestore-package] | [docs][icestore-docs] | Simple and friendly state for React |
-| [formily] | [![formily-status]][formily-package] | [docs][formily-docs] | Alibaba Group Unified Form Solution |
+| [icejs] | [![icejs-status]][icejs-package] | [docs][icejs-docs] | 基于 React 的企业级研发框架 |
+| [icestark] | [![icestark-status]][icestark-package] | [docs][icestark-docs] | 面向大型应用的微前端解决方案 |
+| [icestore] | [![icestore-status]][icestore-package] | [docs][icestore-docs] | 简单友好的轻量级状态管理方案 |
+| [formily] | [![formily-status]][formily-package] | [docs][formily-docs] | 能力完备性能出众的表单解决方案 |
[icejs]: https://github.com/alibaba/ice
[icestark]: https://github.com/ice-lab/icestark
@@ -70,9 +68,9 @@ If you're interested in icestore, see [CONTRIBUTING.md](./.github/CONTRIBUTING.m
[icestore-docs]: https://github.com/ice-lab/icestore#icestore
[formily-docs]: https://formilyjs.org/
-## Community
+## 社区
-| DingTalk community | GitHub issues | Gitter |
+| 钉钉群 | GitHub issues | Gitter |
|-------------------------------------|--------------|---------|
| | [issues] | [gitter]|
diff --git a/extensions/iceworks-app/README.en.md b/extensions/iceworks-app/README.en.md
deleted file mode 100644
index 9c31b0ed2..000000000
--- a/extensions/iceworks-app/README.en.md
+++ /dev/null
@@ -1,105 +0,0 @@
-English | [简体中文](./README.md)
-
-[![Version](https://vsmarketplacebadge.apphb.com/version/iceworks-team.iceworks-app.svg)](https://marketplace.visualstudio.com/items?itemName=iceworks-team.iceworks-app)
-[![Installs](https://vsmarketplacebadge.apphb.com/installs-short/iceworks-team.iceworks-app.svg)](https://marketplace.visualstudio.com/items?itemName=iceworks-team.iceworks-app)
-
-# Iceworks Application Viewer
-
-Preview and manage your application from a framework perspective, including npm scripts, pages, components and dependencies, friendly for React and [Rax](https://rax.js.org/).
-
-## Usage
-
-### Initialize panel
-
-After you install the Iceworks-APP plugin, an `Iceworks` icon will be added to your activity bar. Click it to enter Iceworks panel.
-
-The initialization panel appears if your current workspace is empty or **isn't React/Rax application**.
-
-![demo](https://user-images.githubusercontent.com/56879942/87553484-8e928980-c6e5-11ea-8183-a6ba7f4eae95.gif)
-
-### Create a new project
-
-When you open an empty folder, the initialization panel automatically invokes the create application process, which you can also invoke by clicking the Create Application button on the panel.
-
-![demo](https://user-images.githubusercontent.com/56879942/87407459-c4a41080-c5f4-11ea-882e-d198afc35413.png)
-
-#### Setting
-
-![demo](https://user-images.githubusercontent.com/56879942/87531798-d1903500-c6c4-11ea-9c6d-e19d6241c91a.gif)
-
-1. Click Settings to enter the Settings page
-2. Configure package management tools (default: npm)
-3. Configure default image source (default: Taobao image)
-4. Set up custom repositories (default: null)
-
-### Iceworks panel
-
-When your workspace is a React or Rax application, the Iceworks panel appears.
-
-#### View and execute npm Scripts
-
-![demo](https://user-images.githubusercontent.com/56879942/87393980-9f59d700-c5e1-11ea-9e07-0244926f54cc.gif)
-
-1. View executable script information in the left pane.
-2. Click the `Play` button to execute the script at terminal immediately.
-3. Click the `Stop` button to end the corresponding script executed at terminal.
-
-### Pages and Components
-
-#### Jump into corresponding pages and components
-
-![demo](https://user-images.githubusercontent.com/56879942/87393958-9963f600-c5e1-11ea-9c96-94fc10492577.gif)
-
-1. Click items in PAGES and COMPONENTS on the left panel.
-2. Jump into files of selected projects.
-
-#### Activate Generate Page and Create Component(See [Iceworks UI Builder](https://marketplace.visualstudio.com/items?itemName=iceworks-team.iceworks-ui-builder))
-
-![demo](https://user-images.githubusercontent.com/56879942/87393958-9963f600-c5e1-11ea-9c96-94fc10492577.gif)
-
-1. Click `+` in PAGES header to jump into GENERATE PAGE page.
-2. Click `+` in COMPONENTS header to jump into CREATE COMPONENT page.
-
-### Node Dependencies
-
-#### View the application dependency information and install new dependencies
-
-![demo](https://user-images.githubusercontent.com/56879942/87393973-9cf77d00-c5e1-11ea-8baa-96c8c41229cf.gif)
-
-1. View all installed dependencies in the project in NODE DEPENDENCIES in the bottom of ICE panel.
-2. Click `⬆` button next to dependency item, you can update the dependency to the latest version.
-3. Click `Reinstall Dependencies` button on NODE DEPENDENCIES header to reinstall all the dependencisce of the project.
-
-#### Install and reinstall dependencies
-
-![demo](https://user-images.githubusercontent.com/56879942/87393970-9bc65000-c5e1-11ea-9724-3bd47c4b21ed.gif)
-
-1. Click the `+` button on the NODE DEPENDENCIES header.
-2. Select Install product Dependency or Debug Devdependency on the command panel that appears.
-3. Type the npm package name and version information to be installed, such as' `typescript@latest`.
-4. The npm package will be installed automatically.
- NOTE: If the package was installed, it will be reinstalled.
-
-## Iceworks command palette
-
-If you install [Iceworks suite](https://marketplace.visualstudio.com/items?ItemName=iceWorks-team.iceWorks), you can activate other extensions in VS Code command palette.
-
-![demo](https://user-images.githubusercontent.com/56879942/87544740-8d5b5f80-c6d9-11ea-85ff-bc31501911e1.gif)
-
-1. Find Iceworks in the bottom right of VS Code.
- > NOTE: if you do not find the Iceworks icon, Activate Extension the Iceworks plugin by following the action in 'Activate Extension'.
-2. Click the Iceworks plugin icon to enter the Iceworks command palette.
-
-### Debug
-
-![debug-demo](https://img.alicdn.com/tfs/TB1vCixhP39YK4jSZPcXXXrUFXa-1200-695.gif)
-
-For more information, please see [Reference Document](https://github.com/ice-lab/iceworks/blob/master/extensions/iceworks-app/docs/debug.en.md)
-
-## More
-
-See the [Iceworks Pack](https://marketplace.visualstudio.com/items?itemName=iceworks-team.iceworks) to know more features.
-
-## License
-
-[MIT](https://github.com/ice-lab/iceworks/blob/master/LICENSE)
diff --git a/extensions/iceworks-app/README.md b/extensions/iceworks-app/README.md
index eba1b3b37..18fb48daa 100644
--- a/extensions/iceworks-app/README.md
+++ b/extensions/iceworks-app/README.md
@@ -1,104 +1,103 @@
-简体中文 | [English](./README.en.md)
+English | [简体中文](https://github.com/ice-lab/iceworks/blob/master/extensions/iceworks-app/README.zh-CN.md)
-[![Version](https://vsmarketplacebadge.apphb.com/version/iceworks-team.iceworks-app.svg)](https://marketplace.visualstudio.com/items?itemName=iceworks-team.iceworks-app)
-[![Installs](https://vsmarketplacebadge.apphb.com/installs-short/iceworks-team.iceworks-app.svg)](https://marketplace.visualstudio.com/items?itemName=iceworks-team.iceworks-app)
+# Iceworks Application Viewer
-# Iceworks 应用大纲树
+[![Version for VS Code Extension](https://vsmarketplacebadge.apphb.com/version-short/iceworks-team.iceworks-app.svg?logo=visual-studio-code)](https://marketplace.visualstudio.com/items?itemName=iceworks-team.iceworks-app)
+[![Installs](https://vsmarketplacebadge.apphb.com/installs-short/iceworks-team.iceworks-app.svg)](https://marketplace.visualstudio.com/items?itemName=iceworks-team.iceworks-app)
+[![Rating](https://vsmarketplacebadge.apphb.com/rating-short/iceworks-team.iceworks-app.svg)](https://marketplace.visualstudio.com/items?itemName=iceworks-team.iceworks-app)
+[![The MIT License](https://img.shields.io/badge/license-MIT-blue.svg)](http://opensource.org/licenses/MIT)
-从框架视角预览和管理您应用的组织,包括 npm 脚本、页面、组件和依赖信息。对 React 和 [Rax](https://rax.js.org/) 应用友好。
+Preview and manage your application from a framework perspective, including npm scripts, pages, components and dependencies, friendly for React and [Rax](https://rax.js.org/).
-## 功能
+## Usage
-### 侧边栏 - 初始化
+### Initialize panel
-当您安装了插件之后,VS Code 的活动栏上会增加 Iceworks 图标,单击此图标进入应用大纲树插件。
+After you install the Iceworks-APP plugin, an `Iceworks` icon will be added to your activity bar. Click it to enter Iceworks panel.
-如您当前的**工作区为空**或**非 React/Rax 应用**,则会出现初始化侧边栏。
+The initialization panel appears if your current workspace is empty or **isn't React/Rax application**.
-![使用示例](https://user-images.githubusercontent.com/56879942/87553484-8e928980-c6e5-11ea-8183-a6ba7f4eae95.gif)
+![demo](https://user-images.githubusercontent.com/56879942/87553484-8e928980-c6e5-11ea-8183-a6ba7f4eae95.gif)
-#### 创建项目
+### Create a new project
-当您打开一个空文件夹时,初始化侧边栏将自动唤起创建应用流程,您也可以通过点击侧边栏上的「创建应用」按钮来唤起该流程。
+When you open an empty folder, the initialization panel automatically invokes the create application process, which you can also invoke by clicking the Create Application button on the panel.
-![使用示例](https://user-images.githubusercontent.com/56879942/87407459-c4a41080-c5f4-11ea-882e-d198afc35413.png)
+![demo](https://user-images.githubusercontent.com/56879942/87407459-c4a41080-c5f4-11ea-882e-d198afc35413.png)
-#### 设置
+#### Setting
-![使用示例](https://user-images.githubusercontent.com/56879942/87531798-d1903500-c6c4-11ea-9c6d-e19d6241c91a.gif)
+![demo](https://user-images.githubusercontent.com/56879942/87531798-d1903500-c6c4-11ea-9c6d-e19d6241c91a.gif)
-1. 点击设置,进入设置页面
-2. 配置包管理工具(默认为 npm )
-3. 配置默认镜像源(默认为淘宝网镜像)
-4. 选择自定义物料库 (无默认外部物料库)
+1. Click Settings to enter the Settings page
+2. Configure package management tools (default: npm)
+3. Configure default image source (default: Taobao image)
+4. Set up custom repositories (default: null)
-### 侧边栏 - 大纲树
+### Iceworks panel
-当您的工作区是一个 React 或 Rax 应用,则会出现大纲树侧边栏。
+When your workspace is a React or Rax application, the Iceworks panel appears.
-#### 查看和执行应用的 npm 脚本
+#### View and execute npm Scripts
-![使用示例](https://user-images.githubusercontent.com/56879942/87393980-9f59d700-c5e1-11ea-9e07-0244926f54cc.gif)
+![demo](https://user-images.githubusercontent.com/56879942/87393980-9f59d700-c5e1-11ea-9e07-0244926f54cc.gif)
-1. 在左侧的面板处查看可执行的脚本信息;
-2. 点击 `播放按钮` ,立即在终端执行脚本;
-3. 点击 `终止按钮` ,结束在终端执行的对应脚本。
+1. View executable script information in the left pane.
+2. Click the `Play` button to execute the script at terminal immediately.
+3. Click the `Stop` button to end the corresponding script executed at terminal.
-#### 页面和组件信息
+### Pages and Components
-##### 快速跳转至对应页面和组件的源码
+#### Jump into corresponding pages and components
-![使用示例](https://user-images.githubusercontent.com/56879942/87393958-9963f600-c5e1-11ea-9c96-94fc10492577.gif)
+![demo](https://user-images.githubusercontent.com/56879942/87393958-9963f600-c5e1-11ea-9c96-94fc10492577.gif)
-1. 点击左侧面板中页面列表和组件列表中的选项。
-2. 跳转到所选项目所在的源码文件
+1. Click items in PAGES and COMPONENTS on the left panel.
+2. Jump into files of selected projects.
-##### 支持激活添加页面和组件功能 (使用方法参照 [可视化搭建插件](https://marketplace.visualstudio.com/items?itemName=iceworks-team.iceworks-ui-builder))
+#### Activate Generate Page and Create Component(See [Iceworks UI Builder](https://marketplace.visualstudio.com/items?itemName=iceworks-team.iceworks-ui-builder))
-![使用示例](https://user-images.githubusercontent.com/56879942/87393953-949f4200-c5e1-11ea-896a-fd2d592050e0.gif)
+![demo](https://user-images.githubusercontent.com/56879942/87393958-9963f600-c5e1-11ea-9c96-94fc10492577.gif)
-1. 点击页面列表标题栏的 `+` 进入生成页面界面;
-2. 点击组件列表标题栏的 `+` 进入创建组件界面。
+1. Click `+` in PAGES header to jump into GENERATE PAGE page.
+2. Click `+` in COMPONENTS header to jump into CREATE COMPONENT page.
-#### 应用依赖信息
+### Node Dependencies
-##### 查看依赖信息、升级依赖包或重装应用依赖
+#### View the application dependency information and install new dependencies
-![使用示例](https://user-images.githubusercontent.com/56879942/87393973-9cf77d00-c5e1-11ea-8baa-96c8c41229cf.gif)
+![demo](https://user-images.githubusercontent.com/56879942/87393973-9cf77d00-c5e1-11ea-8baa-96c8c41229cf.gif)
-1. 在左下角依赖库中查看应用安装的所有依赖;
-2. 点击依赖项目旁边的 `⬆️` 按钮,即可更新到最新依赖;
-3. 点击依赖列表标题框上的 `重装依赖` 按钮,即可重装应用的所有依赖包。
+1. View all installed dependencies in the project in NODE DEPENDENCIES in the bottom of ICE panel.
+2. Click `⬆` button next to dependency item, you can update the dependency to the latest version.
+3. Click `Reinstall Dependencies` button on NODE DEPENDENCIES header to reinstall all the dependencisce of the project.
-##### 一键安装或重装指定依赖
+#### Install and reinstall dependencies
-![使用示例](https://user-images.githubusercontent.com/56879942/87393970-9bc65000-c5e1-11ea-9724-3bd47c4b21ed.gif)
+![demo](https://user-images.githubusercontent.com/56879942/87393970-9bc65000-c5e1-11ea-9724-3bd47c4b21ed.gif)
-1. 点击依赖列表标题框上面的 `+` 按钮;
-2. 在出现的命令面板上选择安装为 Dependencies (生产环境的依赖)或 devDependencies (开发环境的依赖);
-3. 输入需要安装的 npm 包及版本信息,例如 `typescript@latest` ;
-4. npm 包将会自动安装,如果这个包已经添加到了依赖中,那么将会重新安装。
+1. Click the `+` button on the NODE DEPENDENCIES header.
+2. Select Install product Dependency or Debug Devdependency on the command panel that appears.
+3. Type the npm package name and version information to be installed, such as' `typescript@latest`.
+4. The npm package will be installed automatically.
+ NOTE: If the package was installed, it will be reinstalled.
-### 命令面板
+## Iceworks command palette
-您可以通过点击窗口右下角状态栏上的「Iceworks」按钮激活 Iceworks 命令面板。
+If you install [Iceworks suite](https://marketplace.visualstudio.com/items?ItemName=iceWorks-team.iceWorks), you can activate other extensions in VS Code command palette.
-![使用示例](https://user-images.githubusercontent.com/56879942/87544740-8d5b5f80-c6d9-11ea-85ff-bc31501911e1.gif)
+![demo](https://user-images.githubusercontent.com/56879942/87544740-8d5b5f80-c6d9-11ea-85ff-bc31501911e1.gif)
-1. 找到 VS Code 右下角的 Iceworks 。
- > 注意 : 如果没有 Iceworks 图标,请按照 `激活` 章节的内容来激活此按钮。
-2. 点击 Iceworks 按钮,打开命令面板。
+1. Find Iceworks in the bottom right of VS Code.
+ > NOTE: if you do not find the Iceworks icon, Activate Extension the Iceworks plugin by following the action in 'Activate Extension'.
+2. Click the Iceworks plugin icon to enter the Iceworks command palette.
-### 工程调试
+### Debug
![debug-demo](https://img.alicdn.com/tfs/TB1vCixhP39YK4jSZPcXXXrUFXa-1200-695.gif)
-更多请看[参考文档](https://github.com/ice-lab/iceworks/blob/master/extensions/iceworks-app/docs/debug.md)
-
-## 更多
-
-访问 [Iceworks 套件](https://marketplace.visualstudio.com/items?itemName=iceworks-team.iceworks)获取更多功能。
+For more information, please see [Reference Document](https://github.com/ice-lab/iceworks/blob/master/extensions/iceworks-app/docs/debug.en.md)
-## License
+## More
-[MIT](https://github.com/ice-lab/iceworks/blob/master/LICENSE)
+See the [Iceworks](https://marketplace.visualstudio.com/items?itemName=iceworks-team.iceworks) to know more features.
diff --git a/extensions/iceworks-app/README.zh-CN.md b/extensions/iceworks-app/README.zh-CN.md
new file mode 100644
index 000000000..f8c01e2f2
--- /dev/null
+++ b/extensions/iceworks-app/README.zh-CN.md
@@ -0,0 +1,102 @@
+简体中文 | [English](https://github.com/ice-lab/iceworks/blob/master/extensions/iceworks-app/README.md)
+
+# Iceworks 应用概览插件
+
+[![Version for VS Code Extension](https://vsmarketplacebadge.apphb.com/version-short/iceworks-team.iceworks-app.svg?logo=visual-studio-code)](https://marketplace.visualstudio.com/items?itemName=iceworks-team.iceworks-app)
+[![Installs](https://vsmarketplacebadge.apphb.com/installs-short/iceworks-team.iceworks-app.svg)](https://marketplace.visualstudio.com/items?itemName=iceworks-team.iceworks-app)
+[![Rating](https://vsmarketplacebadge.apphb.com/rating-short/iceworks-team.iceworks-app.svg)](https://marketplace.visualstudio.com/items?itemName=iceworks-team.iceworks-app)
+[![The MIT License](https://img.shields.io/badge/license-MIT-blue.svg)](http://opensource.org/licenses/MIT)
+
+从框架视角预览和管理您应用的组织,包括 npm 脚本、页面、组件和依赖信息。对 React 和 [Rax](https://rax.js.org/) 应用友好。
+
+## 功能
+
+### 侧边栏 - 初始化
+
+当您安装了插件之后,VS Code 的活动栏上会增加 Iceworks 图标,单击此图标进入应用大纲树插件。
+
+如您当前的**工作区为空**或**非 React/Rax 应用**,则会出现初始化侧边栏。
+
+![使用示例](https://user-images.githubusercontent.com/56879942/87553484-8e928980-c6e5-11ea-8183-a6ba7f4eae95.gif)
+
+#### 创建项目
+
+当您打开一个空文件夹时,初始化侧边栏将自动唤起创建应用流程,您也可以通过点击侧边栏上的「创建应用」按钮来唤起该流程。
+
+![使用示例](https://user-images.githubusercontent.com/56879942/87407459-c4a41080-c5f4-11ea-882e-d198afc35413.png)
+
+#### 设置
+
+![使用示例](https://user-images.githubusercontent.com/56879942/87531798-d1903500-c6c4-11ea-9c6d-e19d6241c91a.gif)
+
+1. 点击设置,进入设置页面
+2. 配置包管理工具(默认为 npm )
+3. 配置默认镜像源(默认为淘宝网镜像)
+4. 选择自定义物料库 (无默认外部物料库)
+
+### 侧边栏 - 大纲树
+
+当您的工作区是一个 React 或 Rax 应用,则会出现大纲树侧边栏。
+
+#### 查看和执行应用的 npm 脚本
+
+![使用示例](https://user-images.githubusercontent.com/56879942/87393980-9f59d700-c5e1-11ea-9e07-0244926f54cc.gif)
+
+1. 在左侧的面板处查看可执行的脚本信息;
+2. 点击 `播放按钮` ,立即在终端执行脚本;
+3. 点击 `终止按钮` ,结束在终端执行的对应脚本。
+
+#### 页面和组件信息
+
+##### 快速跳转至对应页面和组件的源码
+
+![使用示例](https://user-images.githubusercontent.com/56879942/87393958-9963f600-c5e1-11ea-9c96-94fc10492577.gif)
+
+1. 点击左侧面板中页面列表和组件列表中的选项。
+2. 跳转到所选项目所在的源码文件
+
+##### 支持激活添加页面和组件功能 (使用方法参照 [可视化搭建插件](https://marketplace.visualstudio.com/items?itemName=iceworks-team.iceworks-ui-builder))
+
+![使用示例](https://user-images.githubusercontent.com/56879942/87393953-949f4200-c5e1-11ea-896a-fd2d592050e0.gif)
+
+1. 点击页面列表标题栏的 `+` 进入生成页面界面;
+2. 点击组件列表标题栏的 `+` 进入创建组件界面。
+
+#### 应用依赖信息
+
+##### 查看依赖信息、升级依赖包或重装应用依赖
+
+![使用示例](https://user-images.githubusercontent.com/56879942/87393973-9cf77d00-c5e1-11ea-8baa-96c8c41229cf.gif)
+
+1. 在左下角依赖库中查看应用安装的所有依赖;
+2. 点击依赖项目旁边的 `⬆️` 按钮,即可更新到最新依赖;
+3. 点击依赖列表标题框上的 `重装依赖` 按钮,即可重装应用的所有依赖包。
+
+##### 一键安装或重装指定依赖
+
+![使用示例](https://user-images.githubusercontent.com/56879942/87393970-9bc65000-c5e1-11ea-9724-3bd47c4b21ed.gif)
+
+1. 点击依赖列表标题框上面的 `+` 按钮;
+2. 在出现的命令面板上选择安装为 Dependencies (生产环境的依赖)或 devDependencies (开发环境的依赖);
+3. 输入需要安装的 npm 包及版本信息,例如 `typescript@latest` ;
+4. npm 包将会自动安装,如果这个包已经添加到了依赖中,那么将会重新安装。
+
+### 命令面板
+
+您可以通过点击窗口右下角状态栏上的「Iceworks」按钮激活 Iceworks 命令面板。
+
+![使用示例](https://user-images.githubusercontent.com/56879942/87544740-8d5b5f80-c6d9-11ea-85ff-bc31501911e1.gif)
+
+1. 找到 VS Code 右下角的 Iceworks 。
+ > 注意 : 如果没有 Iceworks 图标,请按照 `激活` 章节的内容来激活此按钮。
+2. 点击 Iceworks 按钮,打开命令面板。
+
+### 工程调试
+
+![debug-demo](https://img.alicdn.com/tfs/TB1vCixhP39YK4jSZPcXXXrUFXa-1200-695.gif)
+
+更多请看[参考文档](https://github.com/ice-lab/iceworks/blob/master/extensions/iceworks-app/docs/debug.md)
+
+## 更多
+
+访问 [Iceworks](https://marketplace.visualstudio.com/items?itemName=iceworks-team.iceworks) 获取更多功能。
diff --git a/extensions/iceworks-config-helper/CHANGELOG.md b/extensions/iceworks-config-helper/CHANGELOG.md
index 86b43140a..3305495a0 100644
--- a/extensions/iceworks-config-helper/CHANGELOG.md
+++ b/extensions/iceworks-config-helper/CHANGELOG.md
@@ -1,5 +1,9 @@
# Change Log
+## 0.3.2
+
+- docs: add more badges.
+
## 0.3.1
- feat: support all json files.
diff --git a/extensions/iceworks-config-helper/README.en.md b/extensions/iceworks-config-helper/README.en.md
deleted file mode 100644
index e6b01ce21..000000000
--- a/extensions/iceworks-config-helper/README.en.md
+++ /dev/null
@@ -1,67 +0,0 @@
-English | [简体中文](./README.md)
-
-[![Version](https://vsmarketplacebadge.apphb.com/version/iceworks-team.iceworks-config-helper.svg)](https://marketplace.visualstudio.com/items?itemName=iceworks-team.iceworks-config-helper)
-[![Installs](https://vsmarketplacebadge.apphb.com/installs-short/iceworks-team.iceworks-config-helper.svg)](https://marketplace.visualstudio.com/items?itemName=iceworks-team.iceworks-config-helper)
-
-# Iceworks Config Helper
-
-For [icejs](https://ice.work/)(& [rax-app](https://rax.js.org/)) configuration files(like app.json/build.json), provides visualization form setting or code editing reminder, verification and other features. It also provides visualization for all json files.
-
-## Usage
-
-### Editing Config File Visually
-
-Visually edit the configuration file through the palette.
-
-### Activite
-
-#### Active In Side Bar
-
-![demo](https://user-images.githubusercontent.com/56879942/89491695-68db3a80-d7e2-11ea-8bfe-af1b545eb2ad.gif)
-
-1. Right click on the configuration file in the sidebar and select `Iceworks: Setup xxx.json by visually.` to launch the visual editing panel
-
-#### Active In TextEditer
-
-![demo](https://user-images.githubusercontent.com/56879942/89491449-e94d6b80-d7e1-11ea-8780-051ff9845023.gif)
-
-1. Open the configuration file, right click `Iceworks: Setup xxx.json by visually.` to launch the visual editing panel
-2. Click the `Iceworks: Setup xxx.json by visually.` icon in the title bar and click it to launch the visual editing panel
-
-### Demo
-
-![demo](https://user-images.githubusercontent.com/56879942/89491159-30872c80-d7e1-11ea-9463-501248e1b08c.gif)
-
-### IntelliSense
-
-#### Hover Widget
-
-Whenever you hover over some Json key, shows the description in a Hover widget.
-
-![demo](https://user-images.githubusercontent.com/56879942/87398212-290ca300-c5e8-11ea-9596-c15c380c0d7c.gif)
-
-#### Code Completion
-
-When you input it will show key suggestions related to your config.
-
-![demo](https://user-images.githubusercontent.com/56879942/87398228-2e69ed80-c5e8-11ea-8b2e-611924fa76bb.gif)
-
-#### Snippets
-
-Use code snippets for quick configuration:
-
-![demo](https://user-images.githubusercontent.com/56879942/87398223-2d38c080-c5e8-11ea-8eef-2f208f498210.gif)
-
-#### Reveal Source File
-
-Quickly locate the source file of panel and open an editor of sourceFile.
-
-![demo](https://user-images.githubusercontent.com/56879942/90112437-91cf7280-dd82-11ea-875f-dc85459bfcc7.gif)
-
-## More
-
-See the [Iceworks Pack](https://marketplace.visualstudio.com/items?itemName=iceworks-team.iceworks) to know more features.
-
-## License
-
-[MIT](https://github.com/ice-lab/iceworks/blob/master/LICENSE)
diff --git a/extensions/iceworks-config-helper/README.md b/extensions/iceworks-config-helper/README.md
index 22951b3cf..ccc5c42d3 100644
--- a/extensions/iceworks-config-helper/README.md
+++ b/extensions/iceworks-config-helper/README.md
@@ -1,74 +1,65 @@
-简体中文 | [English](./README.en.md)
+English | [简体中文](https://github.com/ice-lab/iceworks/blob/master/extensions/iceworks-config-helper/README.zh-CN.md)
-[![Version](https://vsmarketplacebadge.apphb.com/version/iceworks-team.iceworks-config-helper.svg)](https://marketplace.visualstudio.com/items?itemName=iceworks-team.iceworks-config-helper)
-[![Installs](https://vsmarketplacebadge.apphb.com/installs-short/iceworks-team.iceworks-config-helper.svg)](https://marketplace.visualstudio.com/items?itemName=iceworks-team.iceworks-config-helper)
-
-# Iceworks 应用配置辅助开发插件
-
-为 [icejs](https://ice.work/)(& [rax-app](https://rax.js.org/)) 的配置类文件(build.json/app.json) 提供可视化表单设置或代码编辑提醒、校验等功能。并且为所有 json 类型的配置文件提供可视化编辑功能。
+# Iceworks Config Helper
-## 功能
-
-### 可视化表单设置
-
-通过可视化表单设置的方式对配置文件进行编辑。
+[![Version for VS Code Extension](https://vsmarketplacebadge.apphb.com/version-short/iceworks-team.iceworks-config-helper.svg?logo=visual-studio-code)](https://marketplace.visualstudio.com/items?itemName=iceworks-team.iceworks-config-helper)
+[![Installs](https://vsmarketplacebadge.apphb.com/installs-short/iceworks-team.iceworks-config-helper.svg)](https://marketplace.visualstudio.com/items?itemName=iceworks-team.iceworks-config-helper)
+[![Rating](https://vsmarketplacebadge.apphb.com/rating-short/iceworks-team.iceworks-config-helper.svg)](https://marketplace.visualstudio.com/items?itemName=iceworks-team.iceworks-config-helper)
+[![The MIT License](https://img.shields.io/badge/license-MIT-blue.svg)](http://opensource.org/licenses/MIT)
-### 激活
+For [icejs](https://ice.work/)(& [rax-app](https://rax.js.org/)) configuration files(like app.json/build.json), provides visualization form setting or code editing reminder, verification and other features. It also provides visualization for all json files.
-#### 在侧边栏激活面板
+## Usage
-![使用说明](https://user-images.githubusercontent.com/56879942/89489442-18ada980-d7dd-11ea-8db3-1751e5db2eca.gif)
+### Editing Config File Visually
-1. 在资源文件夹选择配置文件,点击鼠标右键
-2. 在右键列表中选择 `Iceworks: 可视化设置 xxx.json`
-3. 启动可视化配置面板
+Visually edit the configuration file through the palette.
-#### 在文档编辑器中激活面板
+### Activite
-![使用说明](https://user-images.githubusercontent.com/56879942/89489443-19464000-d7dd-11ea-9eeb-2958027525c4.gif)
+#### Active In Side Bar
-1. 打开配置文件,点击鼠标右键
-2. 在右键列表中选择 `Iceworks: 可视化设置 xxx.json`
-3. 启动可视化配置面板
+![demo](https://user-images.githubusercontent.com/56879942/89491695-68db3a80-d7e2-11ea-8bfe-af1b545eb2ad.gif)
-或者:
+1. Right click on the configuration file in the sidebar and select `Iceworks: Setup xxx.json by visually.` to launch the visual editing panel
-点击标签栏右侧的搜索图标,启动可视化配置面板。
+#### Active In TextEditer
-### 演示
+![demo](https://user-images.githubusercontent.com/56879942/89491449-e94d6b80-d7e1-11ea-8780-051ff9845023.gif)
-![使用说明](https://user-images.githubusercontent.com/56879942/89489431-12b7c880-d7dd-11ea-9802-8f3fa51304f0.gif)
+1. Open the configuration file, right click `Iceworks: Setup xxx.json by visually.` to launch the visual editing panel
+2. Click the `Iceworks: Setup xxx.json by visually.` icon in the title bar and click it to launch the visual editing panel
-### 代码编辑辅助
+### Demo
-#### 悬停提示
+![demo](https://user-images.githubusercontent.com/56879942/89491159-30872c80-d7e1-11ea-9463-501248e1b08c.gif)
-当您将鼠标悬停在某个 Json 的字段上时,会出现悬浮小部件显示字段的描述。
+### IntelliSense
-![使用说明](https://user-images.githubusercontent.com/56879942/87398212-290ca300-c5e8-11ea-9596-c15c380c0d7c.gif)
+#### Hover Widget
-#### 自动补全
+Whenever you hover over some Json key, shows the description in a Hover widget.
-当您在输入时,显示与您的配置相关的建议。
+![demo](https://user-images.githubusercontent.com/56879942/87398212-290ca300-c5e8-11ea-9596-c15c380c0d7c.gif)
-![使用说明](https://user-images.githubusercontent.com/56879942/87398228-2e69ed80-c5e8-11ea-8b2e-611924fa76bb.gif)
+#### Code Completion
-#### 代码片段
+When you input it will show key suggestions related to your config.
-预设标准的代码片段,方便您进行快速配置。
+![demo](https://user-images.githubusercontent.com/56879942/87398228-2e69ed80-c5e8-11ea-8b2e-611924fa76bb.gif)
-![使用说明](https://user-images.githubusercontent.com/56879942/87398223-2d38c080-c5e8-11ea-8eef-2f208f498210.gif)
+#### Snippets
-#### 显示源文件
+Use code snippets for quick configuration:
-在可视化面板中快速定位到源文件并进行代码编辑。
+![demo](https://user-images.githubusercontent.com/56879942/87398223-2d38c080-c5e8-11ea-8eef-2f208f498210.gif)
-![使用说明](https://user-images.githubusercontent.com/56879942/90103045-7493a780-dd74-11ea-836c-13ad2a3ad3d5.gif)
+#### Reveal Source File
-## 更多
+Quickly locate the source file of panel and open an editor of sourceFile.
-访问 [Iceworks 套件](https://marketplace.visualstudio.com/items?itemName=iceworks-team.iceworks)获取更多功能。
+![demo](https://user-images.githubusercontent.com/56879942/90112437-91cf7280-dd82-11ea-875f-dc85459bfcc7.gif)
-## License
+## More
-[MIT](https://github.com/ice-lab/iceworks/blob/master/LICENSE)
+See the [Iceworks](https://marketplace.visualstudio.com/items?itemName=iceworks-team.iceworks) to know more features.
diff --git a/extensions/iceworks-config-helper/README.zh-CN.md b/extensions/iceworks-config-helper/README.zh-CN.md
new file mode 100644
index 000000000..d05988071
--- /dev/null
+++ b/extensions/iceworks-config-helper/README.zh-CN.md
@@ -0,0 +1,72 @@
+简体中文 | [English](https://github.com/ice-lab/iceworks/blob/master/extensions/iceworks-config-helper/README.md)
+
+# Iceworks 应用配置辅助开发插件
+
+[![Version for VS Code Extension](https://vsmarketplacebadge.apphb.com/version-short/iceworks-team.iceworks-config-helper.svg?logo=visual-studio-code)](https://marketplace.visualstudio.com/items?itemName=iceworks-team.iceworks-config-helper)
+[![Installs](https://vsmarketplacebadge.apphb.com/installs-short/iceworks-team.iceworks-config-helper.svg)](https://marketplace.visualstudio.com/items?itemName=iceworks-team.iceworks-config-helper)
+[![Rating](https://vsmarketplacebadge.apphb.com/rating-short/iceworks-team.iceworks-config-helper.svg)](https://marketplace.visualstudio.com/items?itemName=iceworks-team.iceworks-config-helper)
+[![The MIT License](https://img.shields.io/badge/license-MIT-blue.svg)](http://opensource.org/licenses/MIT)
+
+为 [icejs](https://ice.work/)(& [rax-app](https://rax.js.org/)) 的配置类文件(build.json/app.json) 提供可视化表单设置或代码编辑提醒、校验等功能。并且为所有 json 类型的配置文件提供可视化编辑功能。
+
+## 功能
+
+### 可视化表单设置
+
+通过可视化表单设置的方式对配置文件进行编辑。
+
+### 激活
+
+#### 在侧边栏激活面板
+
+![使用说明](https://user-images.githubusercontent.com/56879942/89489442-18ada980-d7dd-11ea-8db3-1751e5db2eca.gif)
+
+1. 在资源文件夹选择配置文件,点击鼠标右键
+2. 在右键列表中选择 `Iceworks: 可视化设置 xxx.json`
+3. 启动可视化配置面板
+
+#### 在文档编辑器中激活面板
+
+![使用说明](https://user-images.githubusercontent.com/56879942/89489443-19464000-d7dd-11ea-9eeb-2958027525c4.gif)
+
+1. 打开配置文件,点击鼠标右键
+2. 在右键列表中选择 `Iceworks: 可视化设置 xxx.json`
+3. 启动可视化配置面板
+
+或者:
+
+点击标签栏右侧的搜索图标,启动可视化配置面板。
+
+### 演示
+
+![使用说明](https://user-images.githubusercontent.com/56879942/89489431-12b7c880-d7dd-11ea-9802-8f3fa51304f0.gif)
+
+### 代码编辑辅助
+
+#### 悬停提示
+
+当您将鼠标悬停在某个 Json 的字段上时,会出现悬浮小部件显示字段的描述。
+
+![使用说明](https://user-images.githubusercontent.com/56879942/87398212-290ca300-c5e8-11ea-9596-c15c380c0d7c.gif)
+
+#### 自动补全
+
+当您在输入时,显示与您的配置相关的建议。
+
+![使用说明](https://user-images.githubusercontent.com/56879942/87398228-2e69ed80-c5e8-11ea-8b2e-611924fa76bb.gif)
+
+#### 代码片段
+
+预设标准的代码片段,方便您进行快速配置。
+
+![使用说明](https://user-images.githubusercontent.com/56879942/87398223-2d38c080-c5e8-11ea-8eef-2f208f498210.gif)
+
+#### 显示源文件
+
+在可视化面板中快速定位到源文件并进行代码编辑。
+
+![使用说明](https://user-images.githubusercontent.com/56879942/90103045-7493a780-dd74-11ea-836c-13ad2a3ad3d5.gif)
+
+## 更多
+
+访问 [Iceworks](https://marketplace.visualstudio.com/items?itemName=iceworks-team.iceworks) 获取更多功能。
diff --git a/extensions/iceworks-config-helper/package.json b/extensions/iceworks-config-helper/package.json
index 7361ea6a3..754b1f58d 100644
--- a/extensions/iceworks-config-helper/package.json
+++ b/extensions/iceworks-config-helper/package.json
@@ -3,7 +3,7 @@
"displayName": "Iceworks Config Helper",
"description": "Easily write Config files in icejs(& rax-app)",
"publisher": "iceworks-team",
- "version": "0.3.1",
+ "version": "0.3.2",
"engines": {
"vscode": "^1.41.0"
},
diff --git a/extensions/iceworks-material-helper/CHANGELOG.md b/extensions/iceworks-material-helper/CHANGELOG.md
index a2364f131..76e4bfdf3 100644
--- a/extensions/iceworks-material-helper/CHANGELOG.md
+++ b/extensions/iceworks-material-helper/CHANGELOG.md
@@ -1,5 +1,9 @@
# Change Log
+## 0.3.1
+
+- docs: add more badges.
+
## 0.3.0
- feat: add Component Doc Helper
diff --git a/extensions/iceworks-material-helper/README.en.md b/extensions/iceworks-material-helper/README.en.md
deleted file mode 100644
index 7f1a4f6d0..000000000
--- a/extensions/iceworks-material-helper/README.en.md
+++ /dev/null
@@ -1,93 +0,0 @@
-English | [简体中文](./README.md)
-
-[![Version](https://vsmarketplacebadge.apphb.com/version/iceworks-team.iceworks-material-helper.svg)](https://marketplace.visualstudio.com/items?itemName=iceworks-team.iceworks-material-helper)
-[![Installs](https://vsmarketplacebadge.apphb.com/installs-short/iceworks-team.iceworks-material-helper.svg)](https://marketplace.visualstudio.com/items?itemName=iceworks-team.iceworks-material-helper)
-
-# React Component Helper
-
-Use Component and Write Props easier in [JSX](https://reactjs.org/docs/introducing-jsx.html), friendly for React and [Rax](https://rax.js.org/).
-
-## Usage
-
-### Using Material
-
-#### Activate Material Panel
-
-![demo](https://user-images.githubusercontent.com/56879942/88197902-b2ba1180-cc75-11ea-8e33-0ce4e7faa368.gif)
-
-1. Open vscode command palette through `Ctrl+Shift+P` or `⇧⌘P`.
-2. Enter `Iceworks: Import Material` to activate Material Panel.
-
-#### Use in Pages
-
-![demo](https://user-images.githubusercontent.com/56879942/88197928-b8aff280-cc75-11ea-816d-1c609bc90878.gif)
-
-1. Click src/pages/*/index.tsx in the resource panel to open a page.
-2. Activate the Material Panel.
-3. Move cursor to a position for materials.
-4. Search the block materials, click the material to be used, and the material code will be automatically added to the corresponding position.
-5. Search for component materials. Click the material to be used, and the material code will be automatically added to the corresponding position.
-
-#### Use in Components
-
-![demo](https://user-images.githubusercontent.com/56879942/88197942-bb124c80-cc75-11ea-8caa-68fe2dc4cbc3.gif)
-
-1. Click src/components/*/index.tsx in the resource panel to open a page.
-2. Activate the material-import extension.
-3. Move cursor to a position for materials.
-4. Search for component materials. Click the material to be used, and the material code will be automatically added to the corresponding position.
-
-### Props Autocomplete
-
-When editing the props of a component in a JSX file, an automatic completion reminder will be given:
-
-![demo](https://user-images.githubusercontent.com/56879942/88197950-bd74a680-cc75-11ea-8650-dec13706366c.gif)
-
-1. Use materials in JSX files (such as View).
-2. Enter part of props in the material tag, it will arouse automatic completion.
-
-### Component Document Support
-
-#### Active
-
-![demo](https://user-images.githubusercontent.com/56879942/90105043-d275be80-dd77-11ea-9723-0ce16206c134.gif)
-
-1. Open vscode command palette through `Ctrl+Shift+P` or `⇧⌘P`.
-2. Enter `Iceworks: Import Material` to activate Material Panel.
-
-Or Active In Editor
-
-![demo](https://user-images.githubusercontent.com/56879942/90105027-cc7fdd80-dd77-11ea-89f8-48b2a8d566eb.gif)
-
-1. Right Clikc In a Jsx File Editor.
-2. Choose `Iceworks: Show Compoents Docs In Current File`.
-
-#### Component Document Support Usage
-
-![demo](https://user-images.githubusercontent.com/56879942/90105051-d570af00-dd77-11ea-86b6-b460fa6cf430.gif)
-
-1. Search the component label for the document you need to find
-2. Click the item that appears after activation
-3. Confirm to open component document link
-
-Or
-
-![demo](https://user-images.githubusercontent.com/56879942/90107055-dbb45a80-dd7a-11ea-98eb-6fa6ecf3acc8.gif)
-
-1. Move the mouse over the component label.
-2. Click the document link.
-3. Confirm to open copmonent document link
-
-#### Document Opening Mode
-
-![demo](https://user-images.githubusercontent.com/56879942/90105064-d86b9f80-dd77-11ea-999e-d93974b9e6c5.gif)
-
-You can choose whether to open the document link in VS Code, which depends on the extension [Browser Preview](https://marketplace.visualstudio.com/items?itemName=auchenberg.vscode-browser-preview). If you want to open the document page in VS Code, install Browser Preview first.
-
-## More
-
-See the [Iceworks Pack](https://marketplace.visualstudio.com/items?itemName=iceworks-team.iceworks) to know more features.
-
-## License
-
-[MIT](https://github.com/ice-lab/iceworks/blob/master/LICENSE)
diff --git a/extensions/iceworks-material-helper/README.md b/extensions/iceworks-material-helper/README.md
index 2a64ed049..312beb263 100644
--- a/extensions/iceworks-material-helper/README.md
+++ b/extensions/iceworks-material-helper/README.md
@@ -1,91 +1,91 @@
-简体中文 | [English](./README.en.md)
+English | [简体中文](https://github.com/ice-lab/iceworks/blob/master/extensions/iceworks-material-helper/README.zh-CN.md)
-[![Version](https://vsmarketplacebadge.apphb.com/version/iceworks-team.iceworks-material-helper.svg)](https://marketplace.visualstudio.com/items?itemName=iceworks-team.iceworks-material-helper)
-[![Installs](https://vsmarketplacebadge.apphb.com/installs-short/iceworks-team.iceworks-material-helper.svg)](https://marketplace.visualstudio.com/items?itemName=iceworks-team.iceworks-material-helper)
-
-# React 组件开发辅助插件
+# React Component Helper
-在 [JSX](https://zh-hans.reactjs.org/docs/introducing-jsx.html) 中更快更好地添加组件、编写组件属性、查找组件文档,对 React 和 [Rax](https://rax.js.org/) 应用友好。
-
-## 功能
+[![Version for VS Code Extension](https://vsmarketplacebadge.apphb.com/version-short/iceworks-team.iceworks-material-helper.svg?logo=visual-studio-code)](https://marketplace.visualstudio.com/items?itemName=iceworks-team.iceworks-material-helper)
+[![Installs](https://vsmarketplacebadge.apphb.com/installs-short/iceworks-team.iceworks-material-helper.svg)](https://marketplace.visualstudio.com/items?itemName=iceworks-team.iceworks-material-helper)
+[![Rating](https://vsmarketplacebadge.apphb.com/rating-short/iceworks-team.iceworks-material-helper.svg)](https://marketplace.visualstudio.com/items?itemName=iceworks-team.iceworks-material-helper)
+[![The MIT License](https://img.shields.io/badge/license-MIT-blue.svg)](http://opensource.org/licenses/MIT)
-### 使用物料
+Use Component and Write Props easier in [JSX](https://reactjs.org/docs/introducing-jsx.html), friendly for React and [Rax](https://rax.js.org/).
-> [什么是物料?](https://ice.work/docs/materials/about)
+## Usage
-#### 激活物料面板
+### Using Material
-![使用示例](https://user-images.githubusercontent.com/56879942/87538941-a19a5f00-c6cf-11ea-92f2-b8ed100792fc.gif)
+#### Activate Material Panel
-1. 通过 `⇧⌘P` 或 `Ctrl+Shift+P` 快捷键唤醒命令面板
-2. 输入 `Iceworks: 使用物料` 激活物料添加面板
+![demo](https://user-images.githubusercontent.com/56879942/88197902-b2ba1180-cc75-11ea-8e33-0ce4e7faa368.gif)
-#### 在页面中使用物料
+1. Open vscode command palette through `Ctrl+Shift+P` or `⇧⌘P`.
+2. Enter `Iceworks: Import Material` to activate Material Panel.
-![使用示例](https://user-images.githubusercontent.com/56879942/87619860-ba4a5980-c74f-11ea-84c1-9ef69ef17b18.gif)
+#### Use in Pages
-1. 在资源面板中点击 src/pages/*/index.tsx 打开页面源码
-2. 激活物料添加面板
-3. 选择需要插入物料的代码位置
-4. 搜索区块,点击需要使用的区块,物料代码将自动添加到相应的位置中
-5. 搜索组件,点击需要使用的组件,物料代码将自动添加到相应的位置中
+![demo](https://user-images.githubusercontent.com/56879942/88197928-b8aff280-cc75-11ea-816d-1c609bc90878.gif)
-#### 在组件中使用物料
+1. Click src/pages/*/index.tsx in the resource panel to open a page.
+2. Activate the Material Panel.
+3. Move cursor to a position for materials.
+4. Search the block materials, click the material to be used, and the material code will be automatically added to the corresponding position.
+5. Search for component materials. Click the material to be used, and the material code will be automatically added to the corresponding position.
-![使用示例](https://user-images.githubusercontent.com/56879942/87619875-c2a29480-c74f-11ea-945e-788a32e65881.gif)
+#### Use in Components
-1. 在资源面板中点击 src/components/*/index.tsx 打开页面源码
-2. 激活物料添加面板
-3. 选择需要插入物料的代码位置
-4. 搜索组件,点击需要使用的组件,物料代码将自动添加到相应的位置中
+![demo](https://user-images.githubusercontent.com/56879942/88197942-bb124c80-cc75-11ea-8caa-68fe2dc4cbc3.gif)
-### 组件文档搜索
+1. Click src/components/*/index.tsx in the resource panel to open a page.
+2. Activate the material-import extension.
+3. Move cursor to a position for materials.
+4. Search for component materials. Click the material to be used, and the material code will be automatically added to the corresponding position.
-#### 激活
+### Props Autocomplete
-通过命名面板激活:
+When editing the props of a component in a JSX file, an automatic completion reminder will be given:
-![使用说明](https://user-images.githubusercontent.com/56879942/90105060-d73a7280-dd77-11ea-8cb6-dbda547adcf2.gif)
+![demo](https://user-images.githubusercontent.com/56879942/88197950-bd74a680-cc75-11ea-8650-dec13706366c.gif)
-或者在 JSX 中通过鼠标右键激活:
+1. Use materials in JSX files (such as View).
+2. Enter part of props in the material tag, it will arouse automatic completion.
-![使用说明](https://user-images.githubusercontent.com/56879942/90105045-d3a6eb80-dd77-11ea-9d4e-e0f4433e36c1.gif)
+### Component Document Support
-#### 使用
+#### Active
-![使用说明](https://user-images.githubusercontent.com/56879942/90112425-8d0abe80-dd82-11ea-955c-38fdaea2e7eb.gif)
+![demo](https://user-images.githubusercontent.com/56879942/90105043-d275be80-dd77-11ea-9723-0ce16206c134.gif)
-1. 搜索您需要查找文档的组件名
-2. 点击组件名后,选择打开组件文档的方式
-3. 浏览文档
+1. Open vscode command palette through `Ctrl+Shift+P` or `⇧⌘P`.
+2. Enter `Iceworks: Import Material` to activate Material Panel.
-或者:
+Or Active In Editor
-![使用说明](https://user-images.githubusercontent.com/56879942/90112444-93009f80-dd82-11ea-8413-9578f7244a21.gif)
+![demo](https://user-images.githubusercontent.com/56879942/90105027-cc7fdd80-dd77-11ea-89f8-48b2a8d566eb.gif)
-1. 将鼠标悬停在需要查找文档的组件标签上
-2. 点击文档链接
-3. 浏览文档
+1. Right Clikc In a Jsx File Editor.
+2. Choose `Iceworks: Show Compoents Docs In Current File`.
-#### 文档浏览方式设置
+#### Component Document Support Usage
-![使用说明](https://user-images.githubusercontent.com/56879942/90105048-d4d81880-dd77-11ea-8fcf-76da90af3a23.gif)
+![demo](https://user-images.githubusercontent.com/56879942/90105051-d570af00-dd77-11ea-86b6-b460fa6cf430.gif)
-您可以选择是否在 VS Code 浏览文档网页,这一功能依赖 [Browser Preview](https://marketplace.visualstudio.com/items?itemName=auchenberg.vscode-browser-preview) 插件进行实现。 如果您希望在 VS Code 内部浏览文档,请先安装此插件。
+1. Search the component label for the document you need to find
+2. Click the item that appears after activation
+3. Confirm to open component document link
-### 组件属性自动补全
+Or
-在 JSX 文件中编辑组件的属性时将给予自动补全提醒:
+![demo](https://user-images.githubusercontent.com/56879942/90107055-dbb45a80-dd7a-11ea-98eb-6fa6ecf3acc8.gif)
-![使用说明](https://user-images.githubusercontent.com/56879942/87399599-2dd25680-c5ea-11ea-9402-5e36ba7b8f98.gif)
+1. Move the mouse over the component label.
+2. Click the document link.
+3. Confirm to open copmonent document link
-1. 在 JSX 文件中使用组件(如 View )
-2. 在组件标签内输入属性的部分内容,将会激活自动补全提醒。
+#### Document Opening Mode
-## 更多
+![demo](https://user-images.githubusercontent.com/56879942/90105064-d86b9f80-dd77-11ea-999e-d93974b9e6c5.gif)
-访问 [Iceworks 套件](https://marketplace.visualstudio.com/items?itemName=iceworks-team.iceworks)获取更多功能。
+You can choose whether to open the document link in VS Code, which depends on the extension [Browser Preview](https://marketplace.visualstudio.com/items?itemName=auchenberg.vscode-browser-preview). If you want to open the document page in VS Code, install Browser Preview first.
-## License
+## More
-[MIT](https://github.com/ice-lab/iceworks/blob/master/LICENSE)
+See the [Iceworks](https://marketplace.visualstudio.com/items?itemName=iceworks-team.iceworks) to know more features.
diff --git a/extensions/iceworks-material-helper/README.zh-CN.md b/extensions/iceworks-material-helper/README.zh-CN.md
new file mode 100644
index 000000000..d24bf8758
--- /dev/null
+++ b/extensions/iceworks-material-helper/README.zh-CN.md
@@ -0,0 +1,89 @@
+简体中文 | [English](https://github.com/ice-lab/iceworks/blob/master/extensions/iceworks-material-helper/README.md)
+
+# React 组件开发辅助插件
+
+[![Version for VS Code Extension](https://vsmarketplacebadge.apphb.com/version-short/iceworks-team.iceworks-material-helper.svg?logo=visual-studio-code)](https://marketplace.visualstudio.com/items?itemName=iceworks-team.iceworks-material-helper)
+[![Installs](https://vsmarketplacebadge.apphb.com/installs-short/iceworks-team.iceworks-material-helper.svg)](https://marketplace.visualstudio.com/items?itemName=iceworks-team.iceworks-material-helper)
+[![Rating](https://vsmarketplacebadge.apphb.com/rating-short/iceworks-team.iceworks-material-helper.svg)](https://marketplace.visualstudio.com/items?itemName=iceworks-team.iceworks-material-helper)
+[![The MIT License](https://img.shields.io/badge/license-MIT-blue.svg)](http://opensource.org/licenses/MIT)
+
+在 [JSX](https://zh-hans.reactjs.org/docs/introducing-jsx.html) 中更快更好地添加组件、编写组件属性、查找组件文档,对 React 和 [Rax](https://rax.js.org/) 应用友好。
+
+## 功能
+
+### 使用物料
+
+> [什么是物料?](https://ice.work/docs/materials/about)
+
+#### 激活物料面板
+
+![使用示例](https://user-images.githubusercontent.com/56879942/87538941-a19a5f00-c6cf-11ea-92f2-b8ed100792fc.gif)
+
+1. 通过 `⇧⌘P` 或 `Ctrl+Shift+P` 快捷键唤醒命令面板
+2. 输入 `Iceworks: 使用物料` 激活物料添加面板
+
+#### 在页面中使用物料
+
+![使用示例](https://user-images.githubusercontent.com/56879942/87619860-ba4a5980-c74f-11ea-84c1-9ef69ef17b18.gif)
+
+1. 在资源面板中点击 src/pages/*/index.tsx 打开页面源码
+2. 激活物料添加面板
+3. 选择需要插入物料的代码位置
+4. 搜索区块,点击需要使用的区块,物料代码将自动添加到相应的位置中
+5. 搜索组件,点击需要使用的组件,物料代码将自动添加到相应的位置中
+
+#### 在组件中使用物料
+
+![使用示例](https://user-images.githubusercontent.com/56879942/87619875-c2a29480-c74f-11ea-945e-788a32e65881.gif)
+
+1. 在资源面板中点击 src/components/*/index.tsx 打开页面源码
+2. 激活物料添加面板
+3. 选择需要插入物料的代码位置
+4. 搜索组件,点击需要使用的组件,物料代码将自动添加到相应的位置中
+
+### 组件文档搜索
+
+#### 激活
+
+通过命名面板激活:
+
+![使用说明](https://user-images.githubusercontent.com/56879942/90105060-d73a7280-dd77-11ea-8cb6-dbda547adcf2.gif)
+
+或者在 JSX 中通过鼠标右键激活:
+
+![使用说明](https://user-images.githubusercontent.com/56879942/90105045-d3a6eb80-dd77-11ea-9d4e-e0f4433e36c1.gif)
+
+#### 使用
+
+![使用说明](https://user-images.githubusercontent.com/56879942/90112425-8d0abe80-dd82-11ea-955c-38fdaea2e7eb.gif)
+
+1. 搜索您需要查找文档的组件名
+2. 点击组件名后,选择打开组件文档的方式
+3. 浏览文档
+
+或者:
+
+![使用说明](https://user-images.githubusercontent.com/56879942/90112444-93009f80-dd82-11ea-8413-9578f7244a21.gif)
+
+1. 将鼠标悬停在需要查找文档的组件标签上
+2. 点击文档链接
+3. 浏览文档
+
+#### 文档浏览方式设置
+
+![使用说明](https://user-images.githubusercontent.com/56879942/90105048-d4d81880-dd77-11ea-8fcf-76da90af3a23.gif)
+
+您可以选择是否在 VS Code 浏览文档网页,这一功能依赖 [Browser Preview](https://marketplace.visualstudio.com/items?itemName=auchenberg.vscode-browser-preview) 插件进行实现。 如果您希望在 VS Code 内部浏览文档,请先安装此插件。
+
+### 组件属性自动补全
+
+在 JSX 文件中编辑组件的属性时将给予自动补全提醒:
+
+![使用说明](https://user-images.githubusercontent.com/56879942/87399599-2dd25680-c5ea-11ea-9402-5e36ba7b8f98.gif)
+
+1. 在 JSX 文件中使用组件(如 View )
+2. 在组件标签内输入属性的部分内容,将会激活自动补全提醒。
+
+## 更多
+
+访问 [Iceworks](https://marketplace.visualstudio.com/items?itemName=iceworks-team.iceworks) 获取更多功能。
diff --git a/extensions/iceworks-material-helper/package.json b/extensions/iceworks-material-helper/package.json
index b7db59778..1ee66f89a 100644
--- a/extensions/iceworks-material-helper/package.json
+++ b/extensions/iceworks-material-helper/package.json
@@ -3,7 +3,7 @@
"displayName": "React Component Helper",
"description": "Easily use Component in React/Rax.",
"publisher": "iceworks-team",
- "version": "0.3.0",
+ "version": "0.3.1",
"main": "./build/extension.js",
"engines": {
"vscode": "^1.41.0"
diff --git a/extensions/iceworks-project-creator/CHANGELOG.md b/extensions/iceworks-project-creator/CHANGELOG.md
index 1ac1f3798..ad161c3ec 100644
--- a/extensions/iceworks-project-creator/CHANGELOG.md
+++ b/extensions/iceworks-project-creator/CHANGELOG.md
@@ -1,6 +1,8 @@
# Change Log
## 0.3.7
+
+- docs: add more badges.
- feat: support create pegasus project
## 0.3.6
diff --git a/extensions/iceworks-project-creator/README.en.md b/extensions/iceworks-project-creator/README.en.md
deleted file mode 100644
index 726b56177..000000000
--- a/extensions/iceworks-project-creator/README.en.md
+++ /dev/null
@@ -1,33 +0,0 @@
-English | [简体中文](./README.md)
-
-[![Version](https://vsmarketplacebadge.apphb.com/version/iceworks-team.iceworks-project-creator.svg)](https://marketplace.visualstudio.com/items?itemName=iceworks-team.iceworks-project-creator)
-[![Installs](https://vsmarketplacebadge.apphb.com/installs-short/iceworks-team.iceworks-project-creator.svg)](https://marketplace.visualstudio.com/items?itemName=iceworks-team.iceworks-project-creator)
-
-# Iceworks Application Creator
-
-Create a Universal Application(React/Rax/Vue, etc) quickly.
-
-## Usage
-
-### Activate Extension
-
-![demo](https://user-images.githubusercontent.com/56879942/88181928-1e927f00-cc62-11ea-94fb-06d12dab77d1.gif)
-
-1. Open vscode command palette through `Ctrl+Shift+P` or `⇧⌘P`.
-2. Enter `Iceworks: create Application` to activate the extension.
-
-### Create a new application
-
-![demo](https://user-images.githubusercontent.com/56879942/88175435-6f9d7580-cc58-11ea-8a88-f74a5ab4f674.gif)
-
-1. Select a scaffold.
-2. Input your application Infomation.
-3. Create your application and open application automatically.
-
-## More
-
-See the [Iceworks Pack](https://marketplace.visualstudio.com/items?itemName=iceworks-team.iceworks) to know more features.
-
-## License
-
-[MIT](https://github.com/ice-lab/iceworks/blob/master/LICENSE)
diff --git a/extensions/iceworks-project-creator/README.md b/extensions/iceworks-project-creator/README.md
index 81bc9f407..28c3450ca 100644
--- a/extensions/iceworks-project-creator/README.md
+++ b/extensions/iceworks-project-creator/README.md
@@ -1,33 +1,31 @@
-简体中文 | [English](./README.en.md)
+English | [简体中文](https://github.com/ice-lab/iceworks/blob/master/extensions/iceworks-project-creator/README.zh-CN.md)
-[![Version](https://vsmarketplacebadge.apphb.com/version/iceworks-team.iceworks-project-creator.svg)](https://marketplace.visualstudio.com/items?itemName=iceworks-team.iceworks-project-creator)
-[![Installs](https://vsmarketplacebadge.apphb.com/installs-short/iceworks-team.iceworks-project-creator.svg)](https://marketplace.visualstudio.com/items?itemName=iceworks-team.iceworks-project-creator)
-
-# Iceworks 创建应用插件
+# Iceworks Application Creator
-快速创建多端应用(例如:React/Rax/Vue...)
-
-## 功能
+[![Version for VS Code Extension](https://vsmarketplacebadge.apphb.com/version-short/iceworks-team.iceworks-project-creator.svg?logo=visual-studio-code)](https://marketplace.visualstudio.com/items?itemName=iceworks-team.iceworks-project-creator)
+[![Installs](https://vsmarketplacebadge.apphb.com/installs-short/iceworks-team.iceworks-project-creator.svg)](https://marketplace.visualstudio.com/items?itemName=iceworks-team.iceworks-project-creator)
+[![Rating](https://vsmarketplacebadge.apphb.com/rating-short/iceworks-team.iceworks-project-creator.svg)](https://marketplace.visualstudio.com/items?itemName=iceworks-team.iceworks-project-creator)
+[![The MIT License](https://img.shields.io/badge/license-MIT-blue.svg)](http://opensource.org/licenses/MIT)
-### 激活
+Create a Universal Application(React/Rax/Vue, etc) quickly.
-![使用示例](https://user-images.githubusercontent.com/56879942/87621232-e61b0e80-c752-11ea-852c-77bb164d2dab.gif)
+## Usage
-1. 通过 `⇧⌘P` 或 `Ctrl+Shift+P` 快捷键唤醒命令面板
-2. 输入 `Iceworks: createApplication` 激活插件
+### Activate Extension
-### 创建应用
+![demo](https://user-images.githubusercontent.com/56879942/88181928-1e927f00-cc62-11ea-94fb-06d12dab77d1.gif)
-![使用示例](https://user-images.githubusercontent.com/56879942/87621825-41013580-c754-11ea-8da8-e49e71397d08.gif)
+1. Open vscode command palette through `Ctrl+Shift+P` or `⇧⌘P`.
+2. Enter `Iceworks: create Application` to activate the extension.
-1. 选择模板
-2. 输入应用信息
-3. 创建应用并自动打开应用
+### Create a new application
-## 更多
+![demo](https://user-images.githubusercontent.com/56879942/88175435-6f9d7580-cc58-11ea-8a88-f74a5ab4f674.gif)
-访问 [Iceworks 套件](https://marketplace.visualstudio.com/items?itemName=iceworks-team.iceworks)获取更多功能。
+1. Select a scaffold.
+2. Input your application Infomation.
+3. Create your application and open application automatically.
-## License
+## More
-[MIT](https://github.com/ice-lab/iceworks/blob/master/LICENSE)
+See the [Iceworks](https://marketplace.visualstudio.com/items?itemName=iceworks-team.iceworks) to know more features.
diff --git a/extensions/iceworks-project-creator/README.zh-CN.md b/extensions/iceworks-project-creator/README.zh-CN.md
new file mode 100644
index 000000000..058fb7f4c
--- /dev/null
+++ b/extensions/iceworks-project-creator/README.zh-CN.md
@@ -0,0 +1,31 @@
+简体中文 | [English](https://github.com/ice-lab/iceworks/blob/master/extensions/iceworks-project-creator/README.md)
+
+# Iceworks 创建应用插件
+
+[![Version for VS Code Extension](https://vsmarketplacebadge.apphb.com/version-short/iceworks-team.iceworks-project-creator.svg?logo=visual-studio-code)](https://marketplace.visualstudio.com/items?itemName=iceworks-team.iceworks-project-creator)
+[![Installs](https://vsmarketplacebadge.apphb.com/installs-short/iceworks-team.iceworks-project-creator.svg)](https://marketplace.visualstudio.com/items?itemName=iceworks-team.iceworks-project-creator)
+[![Rating](https://vsmarketplacebadge.apphb.com/rating-short/iceworks-team.iceworks-project-creator.svg)](https://marketplace.visualstudio.com/items?itemName=iceworks-team.iceworks-project-creator)
+[![The MIT License](https://img.shields.io/badge/license-MIT-blue.svg)](http://opensource.org/licenses/MIT)
+
+快速创建多端应用(例如:React/Rax/Vue...)
+
+## 功能
+
+### 激活
+
+![使用示例](https://user-images.githubusercontent.com/56879942/87621232-e61b0e80-c752-11ea-852c-77bb164d2dab.gif)
+
+1. 通过 `⇧⌘P` 或 `Ctrl+Shift+P` 快捷键唤醒命令面板
+2. 输入 `Iceworks: createApplication` 激活插件
+
+### 创建应用
+
+![使用示例](https://user-images.githubusercontent.com/56879942/87621825-41013580-c754-11ea-8da8-e49e71397d08.gif)
+
+1. 选择模板
+2. 输入应用信息
+3. 创建应用并自动打开应用
+
+## 更多
+
+访问 [Iceworks](https://marketplace.visualstudio.com/items?itemName=iceworks-team.iceworks) 获取更多功能。
diff --git a/extensions/iceworks-style-helper/CHANGELOG.md b/extensions/iceworks-style-helper/CHANGELOG.md
index 3c09565fb..d11f47280 100644
--- a/extensions/iceworks-style-helper/CHANGELOG.md
+++ b/extensions/iceworks-style-helper/CHANGELOG.md
@@ -1,11 +1,17 @@
# Change Log
+## 0.3.6
+
+- docs: add more badges.
+
## 0.3.5
+
- Update completionItem detail text.
- Update data recorder.
- Support build-plugin-fusion themePackage.
## 0.3.4
+
- Fix variables completions shown when edit css classes and style keys.
- Add data recorder.
diff --git a/extensions/iceworks-style-helper/README.en.md b/extensions/iceworks-style-helper/README.en.md
deleted file mode 100644
index 6871d0f3a..000000000
--- a/extensions/iceworks-style-helper/README.en.md
+++ /dev/null
@@ -1,86 +0,0 @@
-English | [简体中文](./README.md)
-
-[![Version](https://vsmarketplacebadge.apphb.com/version/iceworks-team.iceworks-style-helper.svg)](https://marketplace.visualstudio.com/items?itemName=iceworks-team.iceworks-style-helper)
-[![Installs](https://vsmarketplacebadge.apphb.com/installs-short/iceworks-team.iceworks-style-helper.svg)](https://marketplace.visualstudio.com/items?itemName=iceworks-team.iceworks-style-helper)
-
-# Iceworks Style Helper
-
-Write styles easier in [JSX](https://reactjs.org/docs/introducing-jsx.html), provide a powerful auxiliary development functions in style files like CSS, SASS. Friendly for React and [Rax](https://rax.js.org/).
-
-## Usage
-
-### JSX
-
-When editing the 'style' attribute of a component in a JSX file, an automatic completion reminder will be given:
-
-#### Inline style
-
-Automatic completion for style keys and values according to W3C standards:
-
-![demo](https://user-images.githubusercontent.com/56879942/87412958-3895e700-c5fc-11ea-88e2-3e3e78a07f9e.gif)
-
-##### Variable assignment
-
-When using CSS Module, automatic completion of style fields is carried out according to style declaration:
-
-![demo](https://user-images.githubusercontent.com/56879942/87412953-36cc2380-c5fc-11ea-9315-f153b1415dc8.gif)
-
-### className
-
-Automatic completion, value previews, and defined jumps are given when editing the component's 'className' properties in the JSX file.
-
-#### Automatic completion
-
-According to the class selector in the style file 'import' , automatic completion will be provided when editing ‘className'.
-
-![demo](https://user-images.githubusercontent.com/56879942/87412926-2caa2500-c5fc-11ea-9acc-78974ddb1932.gif)
-
-#### Value preview and define jump
-
-![demo](https://user-images.githubusercontent.com/56879942/87412950-35026000-c5fc-11ea-83ee-33de13681911.gif)
-
-1. Hover over the 'className' value, and the hover board displays the style declaration corresponding to the value.
-2. Click the corresponding 'className' value to jump to the definition of the value.
-
-### Classname
-
-When editing the 'class' name of a CSS, LESS or SASS file, an automatic completion reminder will be given:
-
-![demo](https://user-images.githubusercontent.com/56879942/87416514-63366e80-c601-11ea-8f3e-05fe51a8f26b.gif)
-
-1. Declare the value of the component 'className' property in JSX file like ` home, Text0, Text1, text2 `.
-2. Reference SASS files in JSX: 'import './index.scss''.
-3. step into the 'index.css' file.
-4. Enter ' . ' in ' index.css ' to get the auto-completion reminder of the above property values.
-
-### SASS
-
-#### Automatic completion When editing the variable
-
-When a variable is entered in an SASS file, code completion is provided based on the reference file
-
-![demo](https://user-images.githubusercontent.com/56879942/87523081-026a6d00-c6b9-11ea-8e8a-5d62688c020d.gif)
-
-#### Show the variable value when hover it
-
-![demo](https://user-images.githubusercontent.com/56879942/87412974-3e8bc800-c5fc-11ea-9a6c-ea62eecbfbff.gif)
-
-#### Automatic completion When editing the colors and attributes
-
-When the attribute value is entered, if it is found that variables can be replaced as standard value, variable replacement suggestions will appear:
-
-![demo](https://user-images.githubusercontent.com/56879942/87531943-04d2c400-c6c5-11ea-9f74-be6721353e46.gif)
-
-#### variable identifier and link
-
-Use `cmd + click` (Windows: `ctrl + click`) jump to the variable identifier under the cursor.
-
-![demo](https://user-images.githubusercontent.com/56879942/87419478-2456e780-c606-11ea-9842-47a01b7e85c8.gif)ß
-
-## More
-
-See the [Iceworks Pack](https://marketplace.visualstudio.com/items?itemName=iceworks-team.iceworks) to know more features.
-
-## License
-
-[MIT](https://github.com/ice-lab/iceworks/blob/master/LICENSE)
diff --git a/extensions/iceworks-style-helper/README.md b/extensions/iceworks-style-helper/README.md
index deb84ae33..b60c2dc0e 100644
--- a/extensions/iceworks-style-helper/README.md
+++ b/extensions/iceworks-style-helper/README.md
@@ -1,91 +1,84 @@
-简体中文 | [English](./README.en.md)
+English | [简体中文](https://github.com/ice-lab/iceworks/blob/master/extensions/iceworks-style-helper/README.zh-CN.md)
-[![Version](https://vsmarketplacebadge.apphb.com/version/iceworks-team.iceworks-style-helper.svg)](https://marketplace.visualstudio.com/items?itemName=iceworks-team.iceworks-style-helper)
-[![Installs](https://vsmarketplacebadge.apphb.com/installs-short/iceworks-team.iceworks-style-helper.svg)](https://marketplace.visualstudio.com/items?itemName=iceworks-team.iceworks-style-helper)
-
-# Iceworks 样式开发辅助插件
-
-方便您在 [JSX](https://zh-hans.reactjs.org/docs/introducing-jsx.html) 中更快速地编写内联样式,并对 CSS 、SASS 等样式文件提供强大的辅助开发功能。对 React 和 [Rax](https://rax.js.org/) 应用友好。
-
-## 用法
+# Iceworks Style Helper
-### JSX 文件
-
-#### style 属性
-
-在 JSX 文件中编辑组件的 `style` 属性时给予自动补全提醒。
+[![Version for VS Code Extension](https://vsmarketplacebadge.apphb.com/version-short/iceworks-team.iceworks-style-helper.svg?logo=visual-studio-code)](https://marketplace.visualstudio.com/items?itemName=iceworks-team.iceworks-style-helper)
+[![Installs](https://vsmarketplacebadge.apphb.com/installs-short/iceworks-team.iceworks-style-helper.svg)](https://marketplace.visualstudio.com/items?itemName=iceworks-team.iceworks-style-helper)
+[![Rating](https://vsmarketplacebadge.apphb.com/rating-short/iceworks-team.iceworks-style-helper.svg)](https://marketplace.visualstudio.com/items?itemName=iceworks-team.iceworks-style-helper)
+[![The MIT License](https://img.shields.io/badge/license-MIT-blue.svg)](http://opensource.org/licenses/MIT)
-##### 行内样式
+Write styles easier in [JSX](https://reactjs.org/docs/introducing-jsx.html), provide a powerful auxiliary development functions in style files like CSS, SASS. Friendly for React and [Rax](https://rax.js.org/).
-根据 w3c 标准给予样式字段和值的自动补全提醒:
+## Usage
-![使用示例](https://user-images.githubusercontent.com/56879942/87412958-3895e700-c5fc-11ea-88e2-3e3e78a07f9e.gif)
+### JSX
-##### 变量赋值
+When editing the 'style' attribute of a component in a JSX file, an automatic completion reminder will be given:
-使用 CSS Module 时,根据样式声明进行样式字段的自动补全:
+#### Inline style
-![使用示例](https://user-images.githubusercontent.com/56879942/87412953-36cc2380-c5fc-11ea-9315-f153b1415dc8.gif)
+Automatic completion for style keys and values according to W3C standards:
-#### className 属性
+![demo](https://user-images.githubusercontent.com/56879942/87412958-3895e700-c5fc-11ea-88e2-3e3e78a07f9e.gif)
-在 JSX 文件中编辑组件的 `className` 属性时给予自动补全提醒,值预览及定义跳转。
+##### Variable assignment
-##### 自动补全提醒
+When using CSS Module, automatic completion of style fields is carried out according to style declaration:
-在编辑组件的 `className` 时,根据文件 `import` 的样式文件内的类选择器进行自动补全提醒。
+![demo](https://user-images.githubusercontent.com/56879942/87412953-36cc2380-c5fc-11ea-9315-f153b1415dc8.gif)
-![使用示例](https://user-images.githubusercontent.com/56879942/87412926-2caa2500-c5fc-11ea-9acc-78974ddb1932.gif)
+### className
-##### 值预览及定义跳转
+Automatic completion, value previews, and defined jumps are given when editing the component's 'className' properties in the JSX file.
-![使用示例](https://user-images.githubusercontent.com/56879942/87412950-35026000-c5fc-11ea-83ee-33de13681911.gif)
+#### Automatic completion
-1. 鼠标停留在 `className` 值上,出现悬浮部件显示该值对应的样式声明
+According to the class selector in the style file 'import' , automatic completion will be provided when editing ‘className'.
-2. 点击对应的 `className` 值,跳转到该值的定义处
+![demo](https://user-images.githubusercontent.com/56879942/87412926-2caa2500-c5fc-11ea-9acc-78974ddb1932.gif)
-### 样式文件
+#### Value preview and define jump
-在 CSS、LESS、SASS 文件中输入类选择器时,根据引用值进行自动补全提醒:
+![demo](https://user-images.githubusercontent.com/56879942/87412950-35026000-c5fc-11ea-83ee-33de13681911.gif)
-![使用示例](https://user-images.githubusercontent.com/56879942/87416514-63366e80-c601-11ea-8f3e-05fe51a8f26b.gif)
+1. Hover over the 'className' value, and the hover board displays the style declaration corresponding to the value.
+2. Click the corresponding 'className' value to jump to the definition of the value.
-1. 在 JSX 内声明组件 `className` 属性的值为 ` home , text0 , text1 , text2 `
-2. 在 JSX 内引用样式文件:`import './index.scss'`
-3. 新建该 `index.css` 文件
-4. 在 `index.css` 内输入 `.` ,出现上述属性值的自动补全提醒
+### Classname
-### SASS 文件
+When editing the 'class' name of a CSS, LESS or SASS file, an automatic completion reminder will be given:
-#### 变量自动补全提醒
+![demo](https://user-images.githubusercontent.com/56879942/87416514-63366e80-c601-11ea-8f3e-05fe51a8f26b.gif)
-在 SASS 文件内输入变量时,根据引用文件进行代码自动补全:
+1. Declare the value of the component 'className' property in JSX file like ` home, Text0, Text1, text2 `.
+2. Reference SASS files in JSX: 'import './index.scss''.
+3. step into the 'index.css' file.
+4. Enter ' . ' in ' index.css ' to get the auto-completion reminder of the above property values.
-![使用示例](https://user-images.githubusercontent.com/56879942/87523081-026a6d00-c6b9-11ea-8e8a-5d62688c020d.gif)
+### SASS
-#### 变量预览值
+#### Automatic completion When editing the variable
-鼠标停留在变量上,出现悬浮部件显示该变量对应的值:
+When a variable is entered in an SASS file, code completion is provided based on the reference file
-![使用示例](https://user-images.githubusercontent.com/56879942/87412974-3e8bc800-c5fc-11ea-9a6c-ea62eecbfbff.gif)
+![demo](https://user-images.githubusercontent.com/56879942/87523081-026a6d00-c6b9-11ea-8e8a-5d62688c020d.gif)
-#### 属性值使用变量替换的建议
+#### Show the variable value when hover it
-输入属性值时,如发现可使用变量进行替换,则出现变量替换提醒列表:
+![demo](https://user-images.githubusercontent.com/56879942/87412974-3e8bc800-c5fc-11ea-9a6c-ea62eecbfbff.gif)
-![使用示例](https://user-images.githubusercontent.com/56879942/87531943-04d2c400-c6c5-11ea-9f74-be6721353e46.gif)
+#### Automatic completion When editing the colors and attributes
-#### 变量的定义跳转
+When the attribute value is entered, if it is found that variables can be replaced as standard value, variable replacement suggestions will appear:
-通过 cmd + 点击( Windows: ctrl + 点击 )进行变量的定义代码跳转:
+![demo](https://user-images.githubusercontent.com/56879942/87531943-04d2c400-c6c5-11ea-9f74-be6721353e46.gif)
-![使用示例](https://user-images.githubusercontent.com/56879942/87419478-2456e780-c606-11ea-9842-47a01b7e85c8.gif)
+#### variable identifier and link
-## 更多
+Use `cmd + click` (Windows: `ctrl + click`) jump to the variable identifier under the cursor.
-访问 [Iceworks 套件](https://marketplace.visualstudio.com/items?itemName=iceworks-team.iceworks)获取更多功能。
+![demo](https://user-images.githubusercontent.com/56879942/87419478-2456e780-c606-11ea-9842-47a01b7e85c8.gif)ß
-## License
+## More
-[MIT](https://github.com/ice-lab/iceworks/blob/master/LICENSE)
+See the [Iceworks](https://marketplace.visualstudio.com/items?itemName=iceworks-team.iceworks) to know more features.
diff --git a/extensions/iceworks-style-helper/README.zh-CN.md b/extensions/iceworks-style-helper/README.zh-CN.md
new file mode 100644
index 000000000..d9f660c50
--- /dev/null
+++ b/extensions/iceworks-style-helper/README.zh-CN.md
@@ -0,0 +1,89 @@
+简体中文 | [English](https://github.com/ice-lab/iceworks/blob/master/extensions/iceworks-style-helper/README.md)
+
+# Iceworks 样式开发辅助插件
+
+[![Version for VS Code Extension](https://vsmarketplacebadge.apphb.com/version-short/iceworks-team.iceworks-style-helper.svg?logo=visual-studio-code)](https://marketplace.visualstudio.com/items?itemName=iceworks-team.iceworks-style-helper)
+[![Installs](https://vsmarketplacebadge.apphb.com/installs-short/iceworks-team.iceworks-style-helper.svg)](https://marketplace.visualstudio.com/items?itemName=iceworks-team.iceworks-style-helper)
+[![Rating](https://vsmarketplacebadge.apphb.com/rating-short/iceworks-team.iceworks-style-helper.svg)](https://marketplace.visualstudio.com/items?itemName=iceworks-team.iceworks-style-helper)
+[![The MIT License](https://img.shields.io/badge/license-MIT-blue.svg)](http://opensource.org/licenses/MIT)
+
+方便您在 [JSX](https://zh-hans.reactjs.org/docs/introducing-jsx.html) 中更快速地编写内联样式,并对 CSS 、SASS 等样式文件提供强大的辅助开发功能。对 React 和 [Rax](https://rax.js.org/) 应用友好。
+
+## 用法
+
+### JSX 文件
+
+#### style 属性
+
+在 JSX 文件中编辑组件的 `style` 属性时给予自动补全提醒。
+
+##### 行内样式
+
+根据 w3c 标准给予样式字段和值的自动补全提醒:
+
+![使用示例](https://user-images.githubusercontent.com/56879942/87412958-3895e700-c5fc-11ea-88e2-3e3e78a07f9e.gif)
+
+##### 变量赋值
+
+使用 CSS Module 时,根据样式声明进行样式字段的自动补全:
+
+![使用示例](https://user-images.githubusercontent.com/56879942/87412953-36cc2380-c5fc-11ea-9315-f153b1415dc8.gif)
+
+#### className 属性
+
+在 JSX 文件中编辑组件的 `className` 属性时给予自动补全提醒,值预览及定义跳转。
+
+##### 自动补全提醒
+
+在编辑组件的 `className` 时,根据文件 `import` 的样式文件内的类选择器进行自动补全提醒。
+
+![使用示例](https://user-images.githubusercontent.com/56879942/87412926-2caa2500-c5fc-11ea-9acc-78974ddb1932.gif)
+
+##### 值预览及定义跳转
+
+![使用示例](https://user-images.githubusercontent.com/56879942/87412950-35026000-c5fc-11ea-83ee-33de13681911.gif)
+
+1. 鼠标停留在 `className` 值上,出现悬浮部件显示该值对应的样式声明
+
+2. 点击对应的 `className` 值,跳转到该值的定义处
+
+### 样式文件
+
+在 CSS、LESS、SASS 文件中输入类选择器时,根据引用值进行自动补全提醒:
+
+![使用示例](https://user-images.githubusercontent.com/56879942/87416514-63366e80-c601-11ea-8f3e-05fe51a8f26b.gif)
+
+1. 在 JSX 内声明组件 `className` 属性的值为 ` home , text0 , text1 , text2 `
+2. 在 JSX 内引用样式文件:`import './index.scss'`
+3. 新建该 `index.css` 文件
+4. 在 `index.css` 内输入 `.` ,出现上述属性值的自动补全提醒
+
+### SASS 文件
+
+#### 变量自动补全提醒
+
+在 SASS 文件内输入变量时,根据引用文件进行代码自动补全:
+
+![使用示例](https://user-images.githubusercontent.com/56879942/87523081-026a6d00-c6b9-11ea-8e8a-5d62688c020d.gif)
+
+#### 变量预览值
+
+鼠标停留在变量上,出现悬浮部件显示该变量对应的值:
+
+![使用示例](https://user-images.githubusercontent.com/56879942/87412974-3e8bc800-c5fc-11ea-9a6c-ea62eecbfbff.gif)
+
+#### 属性值使用变量替换的建议
+
+输入属性值时,如发现可使用变量进行替换,则出现变量替换提醒列表:
+
+![使用示例](https://user-images.githubusercontent.com/56879942/87531943-04d2c400-c6c5-11ea-9f74-be6721353e46.gif)
+
+#### 变量的定义跳转
+
+通过 cmd + 点击( Windows: ctrl + 点击 )进行变量的定义代码跳转:
+
+![使用示例](https://user-images.githubusercontent.com/56879942/87419478-2456e780-c606-11ea-9842-47a01b7e85c8.gif)
+
+## 更多
+
+访问 [Iceworks](https://marketplace.visualstudio.com/items?itemName=iceworks-team.iceworks) 获取更多功能。
diff --git a/extensions/iceworks-style-helper/package.json b/extensions/iceworks-style-helper/package.json
index b5779a6e7..5c06d0e21 100644
--- a/extensions/iceworks-style-helper/package.json
+++ b/extensions/iceworks-style-helper/package.json
@@ -3,7 +3,7 @@
"displayName": "React Style Helper",
"description": "Easily write styles(CSS/Less/SASS).",
"publisher": "iceworks-team",
- "version": "0.3.5",
+ "version": "0.3.6",
"engines": {
"vscode": "^1.41.0"
},
diff --git a/extensions/iceworks-ui-builder/CHANGELOG.md b/extensions/iceworks-ui-builder/CHANGELOG.md
index 48e922de0..a7aa37ab0 100644
--- a/extensions/iceworks-ui-builder/CHANGELOG.md
+++ b/extensions/iceworks-ui-builder/CHANGELOG.md
@@ -1,5 +1,9 @@
# Change Log
+## 0.1.6
+
+- docs: add more badges.
+
## 0.1.5
- fix: build error
diff --git a/extensions/iceworks-ui-builder/README.en.md b/extensions/iceworks-ui-builder/README.en.md
deleted file mode 100644
index 69002bf4e..000000000
--- a/extensions/iceworks-ui-builder/README.en.md
+++ /dev/null
@@ -1,72 +0,0 @@
-English | [简体中文](./README.md)
-
-[![Version](https://vsmarketplacebadge.apphb.com/version/iceworks-team.iceworks-ui-builder.svg)](https://marketplace.visualstudio.com/items?itemName=iceworks-team.iceworks-ui-builder)
-[![Installs](https://vsmarketplacebadge.apphb.com/installs-short/iceworks-team.iceworks-ui-builder.svg)](https://marketplace.visualstudio.com/items?itemName=iceworks-team.iceworks-ui-builder)
-
-# Iceworks UI Builder
-
-Build UI by low-code way.
-
-## Generate Page
-
-Through GUI, you can quickly assemble pages with materials.
-
-### Activate
-
-![demo](https://user-images.githubusercontent.com/56879942/88197953-bf3e6a00-cc75-11ea-81c2-b75a55d649bd.gif)
-
-1. Open vscode command palette by `Ctrl+Shift+P` or `⇧⌘P` .
-2. In the command palette, type 'Iceworks: Generate page' and click on the selected item or press enter on the keyboard to evoke page-builder extension.
-
-### Usage
-
-![demo](https://user-images.githubusercontent.com/56879942/88197942-bb124c80-cc75-11ea-8caa-68fe2dc4cbc3.gif)
-
-1. Enter the page name (to be used as the folder name).
-2. Select the block to be used for the page from the block list on the right, click to add it to the page preview area on the left.
-3. Rearrange blocks by dragging and dropping the order of the blocks in the left page preview area, or delete blocks by clicking icons in the upper right corner.
-4. Click `Generate page` button to generate page code. The page code will be generated into 'src /pages/'
-
-## Create Component
-
-Iceworks provides a huge amount of high-quality materials for React and [Rax](https://rax.js.org/) apps that can be added to your app with one click.
-
-### Activate
-
-![demo](https://user-images.githubusercontent.com/56879942/88188643-b4320c80-cc6a-11ea-9cbd-251fd6d8acf1.gif)
-
-1. Through (Ctrl+Shift+P or ⇧⌘P) evoke vscode command palette
-2. In the vscode command palette, enter 'Iceworks: Create component', click the selected item or press enter to arouse the plugin;
-
-### Usage
-
-![demo](https://user-images.githubusercontent.com/56879942/88188623-af6d5880-cc6a-11ea-8b33-3304926f5ce7.gif)
-
-1. Fill in the component name (also the folder name of the componenent)
-2. Select a material below.
-3. Click `Create component` button to generate component code.
-
-## Generate Component
-
-Generate components in a visual way.
-
-### Activate
-
-![demo](https://img.alicdn.com/tfs/TB1hMmdRxz1gK0jSZSgXXavwpXa-2880-1800.gif)
-
-- Activate vscode command palette by `⇧⌘P` (MacOS) or `Ctrl+Shift+p` (Windows), and input `Iceworks: Generate Component` to activate the extension.
-
-### Usage
-
-![demo](https://img.alicdn.com/tfs/TB1VGQHeypE_u4jSZKbXXbCUVXa-1440-900.gif)
-
-1. Drag the components in the left to the middle panel.
-2. Press `⌘+S` (MacOS) or `Ctrl+S` (Windows), input the name of the component and then press Enter to generate component.
-
-## More
-
-See the [Iceworks Pack](https://marketplace.visualstudio.com/items?itemName=iceworks-team.iceworks) to know more features.
-
-## License
-
-[MIT](https://github.com/ice-lab/iceworks/blob/master/LICENSE)
diff --git a/extensions/iceworks-ui-builder/README.md b/extensions/iceworks-ui-builder/README.md
index 136075362..ae37de517 100644
--- a/extensions/iceworks-ui-builder/README.md
+++ b/extensions/iceworks-ui-builder/README.md
@@ -1,74 +1,70 @@
-简体中文 | [English](./README.en.md)
+English | [简体中文](https://github.com/ice-lab/iceworks/blob/master/extensions/iceworks-ui-builder/README.zh-CN.md)
-[![Version](https://vsmarketplacebadge.apphb.com/version/iceworks-team.iceworks-ui-builder.svg)](https://marketplace.visualstudio.com/items?itemName=iceworks-team.iceworks-ui-builder)
-[![Installs](https://vsmarketplacebadge.apphb.com/installs-short/iceworks-team.iceworks-ui-builder.svg)](https://marketplace.visualstudio.com/items?itemName=iceworks-team.iceworks-ui-builder)
-
-# Iceworks 可视化搭建插件
-
-使用可视化搭建的方式创建用户界面。
+# Iceworks UI Builder
-## 生成页面
-
-通过可视化操作,以区块拼装的方式快速生成页面。
+[![Version for VS Code Extension](https://vsmarketplacebadge.apphb.com/version-short/iceworks-team.iceworks-ui-builder.svg?logo=visual-studio-code)](https://marketplace.visualstudio.com/items?itemName=iceworks-team.iceworks-ui-builder)
+[![Installs](https://vsmarketplacebadge.apphb.com/installs-short/iceworks-team.iceworks-ui-builder.svg)](https://marketplace.visualstudio.com/items?itemName=iceworks-team.iceworks-ui-builder)
+[![Rating](https://vsmarketplacebadge.apphb.com/rating-short/iceworks-team.iceworks-ui-builder.svg)](https://marketplace.visualstudio.com/items?itemName=iceworks-team.iceworks-ui-builder)
+[![The MIT License](https://img.shields.io/badge/license-MIT-blue.svg)](http://opensource.org/licenses/MIT)
-### 激活
+Build UI by low-code way.
-![使用示例](https://user-images.githubusercontent.com/56879942/87402315-f49be580-c5ed-11ea-87a8-4143a461124f.gif)
+## Generate Component
-1. 通过 `⇧⌘P` 或 `Ctrl+Shift+P` 快捷键唤醒命令面板
-2. 在命令面板中输入 `Iceworks: 生成页面` ,点击选中的项目或按下键盘回车键,激活页面生成插件
+Generate components in a visual way.
-### 使用
+### Activate
-![使用示例](https://user-images.githubusercontent.com/56879942/87531900-f5ec1180-c6c4-11ea-8753-ad269d5768d5.gif)
+![demo](https://img.alicdn.com/tfs/TB1hMmdRxz1gK0jSZSgXXavwpXa-2880-1800.gif)
-1. 输入页面名称(将用作文件夹名)
-2. 从右侧的区块列表中选择页面需要使用的区块,点击添加到左侧页面预览区
-3. 在左侧页面预览区可通过拖拽排序区块的顺序,或点击右上角的删除图标移除区块
-4. 点击“生成页面”按钮,生成页面代码,页面代码将生成到 `src/pages/` 目录下
+- Activate vscode command palette by `⇧⌘P` (MacOS) or `Ctrl+Shift+p` (Windows), and input `Iceworks: Generate Component` to activate the extension.
-## 创建组件
+### Usage
-通过物料快速创建前端组件。
+![demo](https://img.alicdn.com/tfs/TB1VGQHeypE_u4jSZKbXXbCUVXa-1440-900.gif)
-### 激活
+1. Drag the components in the left to the middle panel.
+2. Press `⌘+S` (MacOS) or `Ctrl+S` (Windows), input the name of the component and then press Enter to generate component.
-![使用示例](https://user-images.githubusercontent.com/56879942/87535699-77926e00-c6ca-11ea-9e21-65fad2e95e0f.gif)
+## Generate Page
-1. 通过 `⇧⌘P` ( MacOS ) 或 `Ctrl+Shift+p` ( Windows ) 快捷键唤起命令面板;
-2. 输入 `Iceworks: 创建组件` ,点击选中的项目或按下键盘回车键,激活插件
+Through GUI, you can quickly assemble pages with materials.
-### 使用
+### Activate
-Iceworks 为 React 和 [Rax](https://rax.js.org/) 应用提供了海量的高质量物料,可一键添加到您的应用中。
+![demo](https://user-images.githubusercontent.com/56879942/88197953-bf3e6a00-cc75-11ea-81c2-b75a55d649bd.gif)
-![使用示例](https://user-images.githubusercontent.com/56879942/87535673-6f3a3300-c6ca-11ea-852e-f3a2bb3eb7bc.gif)
+1. Open vscode command palette by `Ctrl+Shift+P` or `⇧⌘P` .
+2. In the command palette, type 'Iceworks: Generate page' and click on the selected item or press enter on the keyboard to evoke page-builder extension.
-1. 填写组件名(同时也是组件所在文件夹的名称);
-2. 组件名输入框下方选择一个使用的区块;
-3. 点击 `创建组件` 按钮,生成组件代码。
+### Usage
-## 生成组件
+![demo](https://user-images.githubusercontent.com/56879942/88197942-bb124c80-cc75-11ea-8caa-68fe2dc4cbc3.gif)
-通过可视化搭建的方式生成组件
+1. Enter the page name (to be used as the folder name).
+2. Select the block to be used for the page from the block list on the right, click to add it to the page preview area on the left.
+3. Rearrange blocks by dragging and dropping the order of the blocks in the left page preview area, or delete blocks by clicking icons in the upper right corner.
+4. Click `Generate page` button to generate page code. The page code will be generated into 'src /pages/'
-### 激活
+## Create Component
-![使用示例](https://img.alicdn.com/tfs/TB1hMmdRxz1gK0jSZSgXXavwpXa-2880-1800.gif)
+Iceworks provides a huge amount of high-quality materials for React and [Rax](https://rax.js.org/) apps that can be added to your app with one click.
-通过 `⇧⌘P` ( MacOS ) 或 `Ctrl+Shift+p` ( Windows ) 快捷键唤起命令面板,输入 `Iceworks: 生成组件` ,激活插件。
+### Activate
-### 使用
+![demo](https://user-images.githubusercontent.com/56879942/88188643-b4320c80-cc6a-11ea-9cbd-251fd6d8acf1.gif)
-![使用示例](https://img.alicdn.com/tfs/TB1VGQHeypE_u4jSZKbXXbCUVXa-1440-900.gif)
+1. Through (Ctrl+Shift+P or ⇧⌘P) evoke vscode command palette
+2. In the vscode command palette, enter 'Iceworks: Create component', click the selected item or press enter to arouse the plugin;
-1. 拖拽左侧的组件到中间的画布面板中;
-2. 按下 `⌘+S` ( MacOS ) 或 `Ctrl+S` ( Windows ) ,在输入框中填写组件名,按下回车键即可生成组件到项目中。
+### Usage
-## 更多
+![demo](https://user-images.githubusercontent.com/56879942/88188623-af6d5880-cc6a-11ea-8b33-3304926f5ce7.gif)
-访问 [Iceworks 套件](https://marketplace.visualstudio.com/items?itemName=iceworks-team.iceworks)获取更多功能。
+1. Fill in the component name (also the folder name of the componenent)
+2. Select a material below.
+3. Click `Create component` button to generate component code.
-## License
+## More
-[MIT](https://github.com/ice-lab/iceworks/blob/master/LICENSE)
+See the [Iceworks](https://marketplace.visualstudio.com/items?itemName=iceworks-team.iceworks) to know more features.
diff --git a/extensions/iceworks-ui-builder/README.zh-CN.md b/extensions/iceworks-ui-builder/README.zh-CN.md
new file mode 100644
index 000000000..a7b18c9d2
--- /dev/null
+++ b/extensions/iceworks-ui-builder/README.zh-CN.md
@@ -0,0 +1,72 @@
+简体中文 | [English](https://github.com/ice-lab/iceworks/blob/master/extensions/iceworks-ui-builder/README.md)
+
+# Iceworks 可视化搭建插件
+
+[![Version for VS Code Extension](https://vsmarketplacebadge.apphb.com/version-short/iceworks-team.iceworks-ui-builder.svg?logo=visual-studio-code)](https://marketplace.visualstudio.com/items?itemName=iceworks-team.iceworks-ui-builder)
+[![Installs](https://vsmarketplacebadge.apphb.com/installs-short/iceworks-team.iceworks-ui-builder.svg)](https://marketplace.visualstudio.com/items?itemName=iceworks-team.iceworks-ui-builder)
+[![Rating](https://vsmarketplacebadge.apphb.com/rating-short/iceworks-team.iceworks-ui-builder.svg)](https://marketplace.visualstudio.com/items?itemName=iceworks-team.iceworks-ui-builder)
+[![The MIT License](https://img.shields.io/badge/license-MIT-blue.svg)](http://opensource.org/licenses/MIT)
+
+使用可视化搭建的方式创建用户界面。
+
+## 可视化搭建组件
+
+通过可视化搭建的方式生成组件代码。
+
+### 激活
+
+![使用示例](https://img.alicdn.com/tfs/TB1hMmdRxz1gK0jSZSgXXavwpXa-2880-1800.gif)
+
+通过 `⇧⌘P` ( MacOS ) 或 `Ctrl+Shift+p` ( Windows ) 快捷键唤起命令面板,输入 `Iceworks: 生成组件` ,激活插件。
+
+### 使用
+
+![使用示例](https://img.alicdn.com/tfs/TB1VGQHeypE_u4jSZKbXXbCUVXa-1440-900.gif)
+
+1. 拖拽左侧的组件到中间的画布面板中;
+2. 按下 `⌘+S` ( MacOS ) 或 `Ctrl+S` ( Windows ) ,在输入框中填写组件名,按下回车键即可生成组件到项目中。
+
+## 拼接区块组装页面
+
+通过可视化操作,以区块拼装的方式快速生成页面。
+
+### 激活
+
+![使用示例](https://user-images.githubusercontent.com/56879942/87402315-f49be580-c5ed-11ea-87a8-4143a461124f.gif)
+
+1. 通过 `⇧⌘P` 或 `Ctrl+Shift+P` 快捷键唤醒命令面板
+2. 在命令面板中输入 `Iceworks: 生成页面` ,点击选中的项目或按下键盘回车键,激活页面生成插件
+
+### 使用
+
+![使用示例](https://user-images.githubusercontent.com/56879942/87531900-f5ec1180-c6c4-11ea-8753-ad269d5768d5.gif)
+
+1. 输入页面名称(将用作文件夹名)
+2. 从右侧的区块列表中选择页面需要使用的区块,点击添加到左侧页面预览区
+3. 在左侧页面预览区可通过拖拽排序区块的顺序,或点击右上角的删除图标移除区块
+4. 点击“生成页面”按钮,生成页面代码,页面代码将生成到 `src/pages/` 目录下
+
+## 下载远程物料到本地
+
+通过选择物料快速创建前端组件。
+
+### 激活
+
+![使用示例](https://user-images.githubusercontent.com/56879942/87535699-77926e00-c6ca-11ea-9e21-65fad2e95e0f.gif)
+
+1. 通过 `⇧⌘P` ( MacOS ) 或 `Ctrl+Shift+p` ( Windows ) 快捷键唤起命令面板;
+2. 输入 `Iceworks: 创建组件` ,点击选中的项目或按下键盘回车键,激活插件
+
+### 使用
+
+Iceworks 为 React 和 [Rax](https://rax.js.org/) 应用提供了海量的高质量物料,可一键添加到您的应用中。
+
+![使用示例](https://user-images.githubusercontent.com/56879942/87535673-6f3a3300-c6ca-11ea-852e-f3a2bb3eb7bc.gif)
+
+1. 填写组件名(同时也是组件所在文件夹的名称);
+2. 组件名输入框下方选择一个使用的区块;
+3. 点击 `创建组件` 按钮,生成组件代码。
+
+## 更多
+
+访问 [Iceworks](https://marketplace.visualstudio.com/items?itemName=iceworks-team.iceworks) 获取更多功能。
diff --git a/extensions/iceworks-ui-builder/package.json b/extensions/iceworks-ui-builder/package.json
index 7bc852472..10c04c703 100644
--- a/extensions/iceworks-ui-builder/package.json
+++ b/extensions/iceworks-ui-builder/package.json
@@ -3,7 +3,7 @@
"displayName": "Iceworks UI Builder",
"description": "Build UI by low-code way",
"publisher": "iceworks-team",
- "version": "0.1.5",
+ "version": "0.1.6",
"engines": {
"vscode": "^1.41.0"
},
diff --git a/extensions/iceworks/CHANGELOG.md b/extensions/iceworks/CHANGELOG.md
index 8a6892238..812efefd7 100644
--- a/extensions/iceworks/CHANGELOG.md
+++ b/extensions/iceworks/CHANGELOG.md
@@ -1,5 +1,9 @@
# Change Log
+## 0.7.0
+
+- docs: add more badges
+
## 0.6.0
- docs: update slogan
diff --git a/extensions/iceworks/README.en.md b/extensions/iceworks/README.en.md
deleted file mode 100644
index 764ed6c90..000000000
--- a/extensions/iceworks/README.en.md
+++ /dev/null
@@ -1,37 +0,0 @@
-English | [简体中文](./README.md)
-
-[![Version](https://vsmarketplacebadge.apphb.com/version/iceworks-team.iceworks.svg)](https://marketplace.visualstudio.com/items?itemName=iceworks-team.iceworks)
-[![Installs](https://vsmarketplacebadge.apphb.com/installs-short/iceworks-team.iceworks.svg)](https://marketplace.visualstudio.com/items?itemName=iceworks-team.iceworks)
-
-# Iceworks Pack
-
-Universal Application Development Pack based on [icejs](https://ice.work/)(& [rax-app](https://rax.js.org/)) framework, provide visualization and intelligent technology to build Universal Application.
-
-## Extensions
-
-Includes following feature:
-
-- [Application Viewer](https://marketplace.visualstudio.com/items?itemName=iceworks-team.iceworks-app): Quick to view and build your Universal Application
-- [Application Creator](https://marketplace.visualstudio.com/items?itemName=iceworks-team.iceworks-project-creator): Quick to create a new Universal Application
-- [UI Builder](https://marketplace.visualstudio.com/items?itemName=iceworks-team.iceworks-ui-builder): Build UI by low-code way
-- [React Style Helper](https://marketplace.visualstudio.com/items?itemName=iceworks-team.iceworks-style-helper):Auto completion reminder for writing inline style in [JSX](https://reactjs.org/docs/introducing-jsx.html)
-- [React Component Helper](https://marketplace.visualstudio.com/items?itemName=iceworks-team.iceworks-material-helper):Use Component and Write Props easier in [JSX](https://reactjs.org/docs/introducing-jsx.html)
-- [Config Helper](https://marketplace.visualstudio.com/items?itemName=iceworks-team.iceworks-config-helper):For icejs(& rax-app) configuration files(like app.json/build.json), provides visualization form setting or code editing reminder, verification and other features.
-
-## Quick start
-
-Setp 1: Click "Iceworks Icon" on the **Activity Bar** to open the **Iceworks Side Bar**:
-
-![demo](https://img.alicdn.com/tfs/TB1ts7cNeL2gK0jSZPhXXahvXXa-2048-1536.png_790x10000.jpg)
-
-Setp 2: After the application is created, NPM script execution/page creation/component creation and other operations are performed in **Iceworks Side Bar**:
-
-![demo](https://img.alicdn.com/tfs/TB18aIoNkT2gK0jSZFkXXcIQFXa-2048-1536.png_790x10000.jpg)
-
-Setp 3: More features can be obtained by search 'Iceworks' in the Command Panel or click "Iceworks button" on the Status Bar:
-
-![demo](https://img.alicdn.com/tfs/TB1jjUjNaL7gK0jSZFBXXXZZpXa-2048-1536.png_790x10000.jpg)
-
-## License
-
-[MIT](https://github.com/ice-lab/iceworks/blob/master/LICENSE)
diff --git a/extensions/iceworks/README.md b/extensions/iceworks/README.md
index e226c8e08..dae3edf3d 100644
--- a/extensions/iceworks/README.md
+++ b/extensions/iceworks/README.md
@@ -1,37 +1,37 @@
-简体中文 | [English](./README.en.md)
+English | [简体中文](https://github.com/ice-lab/iceworks/blob/master/extensions/iceworks/README.zh-CN.md)
-[![Version](https://vsmarketplacebadge.apphb.com/version/iceworks-team.iceworks.svg)](https://marketplace.visualstudio.com/items?itemName=iceworks-team.iceworks)
-[![Installs](https://vsmarketplacebadge.apphb.com/installs-short/iceworks-team.iceworks.svg)](https://marketplace.visualstudio.com/items?itemName=iceworks-team.iceworks)
-
-# Iceworks 套件
+# Iceworks
-> 基于 [icejs](https://ice.work/)(& [rax-app](https://rax.js.org/)) 框架的多端研发套件,提供可视化和智能化技术构建多端应用。
-
-## 插件列表
+[![Version for VS Code Extension](https://vsmarketplacebadge.apphb.com/version-short/iceworks-team.iceworks.svg?logo=visual-studio-code)](https://marketplace.visualstudio.com/items?itemName=iceworks-team.iceworks)
+[![Installs](https://vsmarketplacebadge.apphb.com/installs-short/iceworks-team.iceworks.svg)](https://marketplace.visualstudio.com/items?itemName=iceworks-team.iceworks)
+[![Rating](https://vsmarketplacebadge.apphb.com/rating-short/iceworks-team.iceworks.svg)](https://marketplace.visualstudio.com/items?itemName=iceworks-team.iceworks)
+[![The MIT License](https://img.shields.io/badge/license-MIT-blue.svg)](http://opensource.org/licenses/MIT)
-包含以下功能:
+Iceworks is a Visual Intelligent Development Assistant, provide visualization and intelligent technology to build Universal Application faster and better.
-- [应用大纲树](https://marketplace.visualstudio.com/items?itemName=iceworks-team.iceworks-app):从框架视角全面预览您应用的组织
-- [创建应用](https://marketplace.visualstudio.com/items?itemName=iceworks-team.iceworks-project-creator):通过图像界面引导创建多端应用
-- [可视化搭建](https://marketplace.visualstudio.com/items?itemName=iceworks-team.iceworks-ui-builder):通过可视化操作生成用户界面
-- [样式开发辅助](https://marketplace.visualstudio.com/items?itemName=iceworks-team.iceworks-style-helper):提供在 [JSX](https://zh-hans.reactjs.org/docs/introducing-jsx.html) 内编写行内样式或使用 SASS/Less 等 CSS 预处理语言的代码编辑提醒
-- [组件开发辅助](https://marketplace.visualstudio.com/items?itemName=iceworks-team.iceworks-material-helper):在 [JSX](https://zh-hans.reactjs.org/docs/introducing-jsx.html) 内更快更好地添加组件、编写组件属性,
-- [应用配置开发辅助](https://marketplace.visualstudio.com/items?itemName=iceworks-team.iceworks-config-helper):为应用的配置类文件提供可视化表单设置或代码编辑提醒、校验等功能
+## Quick start
-## 快速使用
+Click "Iceworks Icon" on the **Activity Bar** to open the **Iceworks Side Bar**:
-**第一步**:点击活动栏上的 Iceworks 图标,打开侧边栏和创建应用流程:
+![demo](https://img.alicdn.com/tfs/TB1aRI.RHr1gK0jSZFDXXb9yVXa-1024-768.png_790x10000.jpg)
-![使用示例](https://img.alicdn.com/tfs/TB1ts7cNeL2gK0jSZPhXXahvXXa-2048-1536.png_790x10000.jpg)
+After the application is created, NPM script execution/page creation/component creation and other operations are performed in **Iceworks Side Bar**:
-**第二步**:应用创建完成,在 Iceworks 侧边栏上进行 npm 脚本执行、生成页面、创建组件等操作:
+![demo](https://img.alicdn.com/tfs/TB1lyV9inM11u4jSZPxXXahcXXa-1024-768.png_790x10000.jpg)
-![使用示例](https://img.alicdn.com/tfs/TB18aIoNkT2gK0jSZFkXXcIQFXa-2048-1536.png_790x10000.jpg)
+More features can be obtained by search 'Iceworks' in the Command Panel or click "Iceworks button" on the Status Bar:
-**第三步**:更多功能,可以点击状态栏右下角的「Iceworks」进行获取:
+![demo](https://img.alicdn.com/tfs/TB1ickZRQL0gK0jSZFtXXXQCXXa-1024-768.png_790x10000.jpg)
-![使用示例](https://img.alicdn.com/tfs/TB1jjUjNaL7gK0jSZFBXXXZZpXa-2048-1536.png_790x10000.jpg)
+## Extensions
-## License
+Iceworks Pack extension installs these extensions:
-[MIT](https://github.com/ice-lab/iceworks/blob/master/LICENSE)
+Extension | Description | State
+--------- | ------- | ---------
+[Application Viewer](https://marketplace.visualstudio.com/items?itemName=iceworks-team.iceworks-app) | Quick to view and build your Universal Application | ![Version](https://vsmarketplacebadge.apphb.com/version-short/iceworks-team.iceworks-app.svg) [![Installs](https://vsmarketplacebadge.apphb.com/installs-short/iceworks-team.iceworks-app.svg)](https://marketplace.visualstudio.com/items?itemName=iceworks-team.iceworks-app)
+[Application Creator](https://marketplace.visualstudio.com/items?itemName=iceworks-team.iceworks-project-creator) | Quick to create a new Universal Application | ![Version](https://vsmarketplacebadge.apphb.com/version-short/iceworks-team.iceworks-project-creator.svg) [![Installs](https://vsmarketplacebadge.apphb.com/installs-short/iceworks-team.iceworks-project-creator.svg)](https://marketplace.visualstudio.com/items?itemName=iceworks-team.iceworks-project-creator)
+[UI Builder](https://marketplace.visualstudio.com/items?itemName=iceworks-team.iceworks-ui-builder) | Build UI by visual way | ![Version](https://vsmarketplacebadge.apphb.com/version-short/iceworks-team.iceworks-ui-builder.svg) [![Installs](https://vsmarketplacebadge.apphb.com/installs-short/iceworks-team.iceworks-ui-builder.svg)](https://marketplace.visualstudio.com/items?itemName=iceworks-team.iceworks-ui-builder)
+[React Style Helper](https://marketplace.visualstudio.com/items?itemName=iceworks-team.iceworks-style-helper) | Auto completion reminder for writing inline style in [JSX](https://reactjs.org/docs/introducing-jsx.html) | ![Version](https://vsmarketplacebadge.apphb.com/version-short/iceworks-team.iceworks-style-helper.svg) [![Installs](https://vsmarketplacebadge.apphb.com/installs-short/iceworks-team.iceworks-style-helper.svg)](https://marketplace.visualstudio.com/items?itemName=iceworks-team.iceworks-style-helper)
+[React Component Helper](https://marketplace.visualstudio.com/items?itemName=iceworks-team.iceworks-material-helper) | Use Component and Write Props easier in [JSX](https://reactjs.org/docs/introducing-jsx.html) | ![Version](https://vsmarketplacebadge.apphb.com/version-short/iceworks-team.iceworks-material-helper.svg) [![Installs](https://vsmarketplacebadge.apphb.com/installs-short/iceworks-team.iceworks-material-helper.svg)](https://marketplace.visualstudio.com/items?itemName=iceworks-team.iceworks-material-helper)
+[Config Helper](https://marketplace.visualstudio.com/items?itemName=iceworks-team.iceworks-config-helper) | For configuration files(like *.json), provides visualization form setting or code editing reminder, verification and other features. | ![Version](https://vsmarketplacebadge.apphb.com/version-short/iceworks-team.iceworks-config-helper.svg) [![Installs](https://vsmarketplacebadge.apphb.com/installs-short/iceworks-team.iceworks-config-helper.svg)](https://marketplace.visualstudio.com/items?itemName=iceworks-team.iceworks-config-helper)
diff --git a/extensions/iceworks/README.zh-CN.md b/extensions/iceworks/README.zh-CN.md
new file mode 100644
index 000000000..acf161004
--- /dev/null
+++ b/extensions/iceworks/README.zh-CN.md
@@ -0,0 +1,37 @@
+简体中文 | [English](https://github.com/ice-lab/iceworks/blob/master/extensions/iceworks/README.md)
+
+# Iceworks
+
+[![Version for VS Code Extension](https://vsmarketplacebadge.apphb.com/version-short/iceworks-team.iceworks.svg?logo=visual-studio-code)](https://marketplace.visualstudio.com/items?itemName=iceworks-team.iceworks)
+[![Installs](https://vsmarketplacebadge.apphb.com/installs-short/iceworks-team.iceworks.svg)](https://marketplace.visualstudio.com/items?itemName=iceworks-team.iceworks)
+[![Rating](https://vsmarketplacebadge.apphb.com/rating-short/iceworks-team.iceworks.svg)](https://marketplace.visualstudio.com/items?itemName=iceworks-team.iceworks)
+[![The MIT License](https://img.shields.io/badge/license-MIT-blue.svg)](http://opensource.org/licenses/MIT)
+
+可视化智能开发助手,通过可视化编程和智能辅助手段,更快更好地构建多端应用。
+
+## 快速开始
+
+点击活动栏上的 Iceworks 图标,打开侧边栏和创建应用流程:
+
+![使用示例](https://img.alicdn.com/tfs/TB16Vo4RND1gK0jSZFsXXbldVXa-1024-768.png_790x10000.jpg)
+
+应用创建完成,在 Iceworks 侧边栏上进行 npm 脚本执行、创建组件、生成页面等操作:
+
+![使用示例](https://img.alicdn.com/tfs/TB1nk3YRQL0gK0jSZFtXXXQCXXa-1024-768.png_790x10000.jpg)
+
+更多功能,可以点击状态栏右下角的「Iceworks」进行获取:
+
+![使用示例](https://img.alicdn.com/tfs/TB17372RKL2gK0jSZPhXXahvXXa-1024-768.png_790x10000.jpg)
+
+## 插件列表
+
+Iceworks 套件内包含以下插件:
+
+插件 | 简介 | 徽标
+--------- | ------- | ---------
+[应用概览](https://marketplace.visualstudio.com/items?itemName=iceworks-team.iceworks-app) | 从 UI 视角全面预览应用的组织 | ![Version](https://vsmarketplacebadge.apphb.com/version-short/iceworks-team.iceworks-app.svg) [![Installs](https://vsmarketplacebadge.apphb.com/installs-short/iceworks-team.iceworks-app.svg)](https://marketplace.visualstudio.com/items?itemName=iceworks-team.iceworks-app)
+[创建应用](https://marketplace.visualstudio.com/items?itemName=iceworks-team.iceworks-project-creator) | 通过图像界面引导创建多端应用 | ![Version](https://vsmarketplacebadge.apphb.com/version-short/iceworks-team.iceworks-project-creator.svg) [![Installs](https://vsmarketplacebadge.apphb.com/installs-short/iceworks-team.iceworks-project-creator.svg)](https://marketplace.visualstudio.com/items?itemName=iceworks-team.iceworks-project-creator)
+[可视化搭建](https://marketplace.visualstudio.com/items?itemName=iceworks-team.iceworks-ui-builder) | 通过可视化操作生成用户界面 | ![Version](https://vsmarketplacebadge.apphb.com/version-short/iceworks-team.iceworks-ui-builder.svg) [![Installs](https://vsmarketplacebadge.apphb.com/installs-short/iceworks-team.iceworks-ui-builder.svg)](https://marketplace.visualstudio.com/items?itemName=iceworks-team.iceworks-ui-builder)
+[样式开发辅助](https://marketplace.visualstudio.com/items?itemName=iceworks-team.iceworks-style-helper) | 提供在 JSX 内编写行内样式或使用 SASS/Less 等 CSS 预处理语言的代码编辑智能辅助 | ![Version](https://vsmarketplacebadge.apphb.com/version-short/iceworks-team.iceworks-style-helper.svg) [![Installs](https://vsmarketplacebadge.apphb.com/installs-short/iceworks-team.iceworks-style-helper.svg)](https://marketplace.visualstudio.com/items?itemName=iceworks-team.iceworks-style-helper)
+[组件开发辅助](https://marketplace.visualstudio.com/items?itemName=iceworks-team.iceworks-material-helper) | 在 JSX 内更快更好地添加组件、编写组件属性 | ![Version](https://vsmarketplacebadge.apphb.com/version-short/iceworks-team.iceworks-material-helper.svg) [![Installs](https://vsmarketplacebadge.apphb.com/installs-short/iceworks-team.iceworks-material-helper.svg)](https://marketplace.visualstudio.com/items?itemName=iceworks-team.iceworks-material-helper)
+[应用配置开发辅助](https://marketplace.visualstudio.com/items?itemName=iceworks-team.iceworks-config-helper) | 为应用的配置类文件(例如 *.json)提供可视化表单设置或代码编辑提醒、校验等功能 | ![Version](https://vsmarketplacebadge.apphb.com/version-short/iceworks-team.iceworks-config-helper.svg) [![Installs](https://vsmarketplacebadge.apphb.com/installs-short/iceworks-team.iceworks-config-helper.svg)](https://marketplace.visualstudio.com/items?itemName=iceworks-team.iceworks-config-helper)
diff --git a/extensions/iceworks/package.json b/extensions/iceworks/package.json
index d5cd4e93c..374575cf8 100644
--- a/extensions/iceworks/package.json
+++ b/extensions/iceworks/package.json
@@ -1,24 +1,31 @@
{
"name": "iceworks",
"displayName": "Iceworks",
- "description": "Universal Application Development Pack based on icejs(& rax-app) framework, provide visualization and intelligent technology to build Universal Application.",
+ "description": "Visual Intelligent Development Assistant, provide visualization and intelligent technology to build Universal Application faster and better.",
"publisher": "iceworks-team",
- "version": "0.6.0",
+ "version": "0.7.0",
"engines": {
"vscode": "^1.41.0"
},
"categories": [
- "Extension Packs"
+ "Extension Packs",
+ "Programming Languages",
+ "Visualization",
+ "Debuggers",
+ "Notebooks"
],
"keywords": [
+ "React",
+ "Low Code",
+ "Visual",
+ "Intelli Code",
+ "AI",
+ "Autocomplete",
+ "JavaScript",
+ "TypeScript",
"ICE",
"Rax",
- "React",
- "Low-code",
- "lowcode",
- "visual",
- "IntelliCode",
- "AI"
+ "小程序"
],
"repository": {
"type": "git",
diff --git a/scripts/extension-docs-check.ts b/scripts/extension-docs-check.ts
index 572612e60..8240ba3e6 100644
--- a/scripts/extension-docs-check.ts
+++ b/scripts/extension-docs-check.ts
@@ -3,8 +3,8 @@ import * as path from 'path';
import * as fse from 'fs-extra';
const EXTENSION_PATH = path.join(__dirname, '../extensions');
-const ZHCN_DOC = 'README.md';
-const I18N_DOC = 'README.en.md';
+const ZHCN_DOC = 'README.zh-CN.md';
+const I18N_DOC = 'README.md';
const DOCS = [];
// 加载所有docs
diff --git a/yarn.lock b/yarn.lock
index 53c63cc8b..df4038b45 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -1433,7 +1433,7 @@
resolved "https://registry.npm.taobao.org/@icedesign/skin/download/@icedesign/skin-0.1.14.tgz#be8e62f467a5a2eabe79f54de23b0925e830dae2"
integrity sha1-vo5i9Gelouq+efVN4jsJJegw2uI=
-"@iceworks/code-generator@^0.1.0":
+"@iceworks/code-generator@^0.1.2":
version "0.1.2"
resolved "https://registry.npm.taobao.org/@iceworks/code-generator/download/@iceworks/code-generator-0.1.2.tgz?cache=0&sync_timestamp=1597288372252&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2F%40iceworks%2Fcode-generator%2Fdownload%2F%40iceworks%2Fcode-generator-0.1.2.tgz#92361b3535c00df48de941dc9aec60a2cbca66dc"
integrity sha1-kjYbNTXADfSN6UHcmuxgosvKZtw=
From e0fd98d5c5381d51f99825e9f5fc2fe507b81198 Mon Sep 17 00:00:00 2001
From: Hengchang Lu <44047106+luhc228@users.noreply.github.com>
Date: Thu, 20 Aug 2020 11:20:23 +0800
Subject: [PATCH 06/13] feat: quick entries in tree view (#446)
* feat: support quick entry in tree view
* feat: update entry icon
* feat: add start icon
* chore: verison
* fix: comment
---
extensions/iceworks-app/CHANGELOG.md | 1 +
extensions/iceworks-app/assets/dark/entry.svg | 1 +
.../iceworks-app/assets/light/entry.svg | 1 +
extensions/iceworks-app/package.json | 34 ++++++---
extensions/iceworks-app/package.nls.json | 2 +
.../iceworks-app/package.nls.zh-cn.json | 2 +
extensions/iceworks-app/src/constants.ts | 56 ++++++++++++++-
extensions/iceworks-app/src/extension.ts | 7 +-
.../iceworks-app/src/locales/en-US.json | 44 ++++++------
.../iceworks-app/src/locales/zh-CN.json | 44 ++++++------
.../quickPicks/showAddComponentQuickPick.ts | 8 +--
.../src/quickPicks/showEntriesQuickPick.ts | 18 +++++
.../src/quickPicks/showExtensionsQuickPick.ts | 71 -------------------
.../src/views/quickEntriesView.ts | 60 ++++++++++++++++
14 files changed, 218 insertions(+), 131 deletions(-)
create mode 100644 extensions/iceworks-app/assets/dark/entry.svg
create mode 100644 extensions/iceworks-app/assets/light/entry.svg
create mode 100644 extensions/iceworks-app/src/quickPicks/showEntriesQuickPick.ts
delete mode 100644 extensions/iceworks-app/src/quickPicks/showExtensionsQuickPick.ts
create mode 100644 extensions/iceworks-app/src/views/quickEntriesView.ts
diff --git a/extensions/iceworks-app/CHANGELOG.md b/extensions/iceworks-app/CHANGELOG.md
index 412648644..04caaf3f1 100644
--- a/extensions/iceworks-app/CHANGELOG.md
+++ b/extensions/iceworks-app/CHANGELOG.md
@@ -2,6 +2,7 @@
## 0.4.6
- Support pegasus project debugger.
+- feat: add quick entries in tree view.
## 0.4.5
- feat: add component-generator and component-creator quickPick.
diff --git a/extensions/iceworks-app/assets/dark/entry.svg b/extensions/iceworks-app/assets/dark/entry.svg
new file mode 100644
index 000000000..34e02dc38
--- /dev/null
+++ b/extensions/iceworks-app/assets/dark/entry.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/extensions/iceworks-app/assets/light/entry.svg b/extensions/iceworks-app/assets/light/entry.svg
new file mode 100644
index 000000000..67e6c05c6
--- /dev/null
+++ b/extensions/iceworks-app/assets/light/entry.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/extensions/iceworks-app/package.json b/extensions/iceworks-app/package.json
index 928d552ad..40a650ee2 100644
--- a/extensions/iceworks-app/package.json
+++ b/extensions/iceworks-app/package.json
@@ -36,9 +36,13 @@
"iceworksApp": [
{
"id": "welcome",
- "name": "",
+ "name": "Welcome",
"when": "iceworks:isNotTargetProject"
},
+ {
+ "id": "quickEntries",
+ "name": "%iceworksApp.view.quickEntries.name%"
+ },
{
"id": "npmScripts",
"name": "%iceworksApp.view.npmScripts.name%",
@@ -66,6 +70,10 @@
"view": "welcome",
"contents": "%iceworksApp.viewsWelcome.welcome.contents%"
},
+ {
+ "view": "quickEntries",
+ "contents": ""
+ },
{
"view": "npmScripts",
"contents": "%iceworksApp.viewsWelcome.npmScripts.contents%"
@@ -100,6 +108,14 @@
"dark": "assets/dark/publish.svg"
}
},
+ {
+ "command": "iceworksApp.quickEntries.start",
+ "title": "%iceworksApp.command.quickEntries.start.title%",
+ "icon": {
+ "light": "assets/light/run.svg",
+ "dark": "assets/dark/run.svg"
+ }
+ },
{
"command": "iceworksApp.npmScripts.refresh",
"title": "%iceworksApp.command.npmScripts.refresh.title%",
@@ -274,20 +290,15 @@
"group": "navigation@01",
"when": "iceworks:showScriptIconInEditorTitleMenu"
},
- {
- "command": "iceworksApp.editorMenu.DefPublish",
- "group": "navigation@02",
- "when": "iceworks:showScriptIconInEditorTitleMenu && iceworks:isAliInternal"
- },
{
"command": "iceworksApp.editorMenu.runBuild",
"group": "navigation@02",
- "when": "iceworks:showScriptIconInEditorTitleMenu && !iceworks:isAliInternal"
+ "when": "iceworks:showScriptIconInEditorTitleMenu"
},
{
- "command": "iceworksApp.configHelper.start",
+ "command": "iceworksApp.editorMenu.DefPublish",
"group": "navigation@03",
- "when": "iceworks:showScriptIconInEditorTitleMenu"
+ "when": "iceworks:showScriptIconInEditorTitleMenu && iceworks:isAliInternal"
}
],
"view/title": [
@@ -333,6 +344,11 @@
}
],
"view/item/context": [
+ {
+ "command": "iceworksApp.quickEntries.start",
+ "when": "view == quickEntries && viewItem == quickEntry",
+ "group": "inline"
+ },
{
"command": "iceworksApp.npmScripts.run",
"when": "view == npmScripts && viewItem == script",
diff --git a/extensions/iceworks-app/package.nls.json b/extensions/iceworks-app/package.nls.json
index 123740975..7a63af2ee 100644
--- a/extensions/iceworks-app/package.nls.json
+++ b/extensions/iceworks-app/package.nls.json
@@ -1,4 +1,5 @@
{
+ "iceworksApp.view.quickEntries.name": "Quick Entries",
"iceworksApp.view.npmScripts.name": "npm Scripts",
"iceworksApp.view.pages.name": "Pages",
"iceworksApp.view.components.name": "Components",
@@ -10,6 +11,7 @@
"iceworksApp.viewsWelcome.nodeDependencies.contents": "Node dependencies could not be found in package.json.",
"iceworksApp.command.configHelper.start.title": "Iceworks: Settings",
"iceworksApp.command.DefPublish.title": "Iceworks: Def Publish",
+ "iceworksApp.command.quickEntries.start.title": "Start",
"iceworksApp.command.npmScripts.refresh.title": "Refresh",
"iceworksApp.command.npmScripts.run.title": "Run Script",
"iceworksApp.command.npmScripts.stop.title": "Stop Script",
diff --git a/extensions/iceworks-app/package.nls.zh-cn.json b/extensions/iceworks-app/package.nls.zh-cn.json
index dc812a896..cfb52590c 100644
--- a/extensions/iceworks-app/package.nls.zh-cn.json
+++ b/extensions/iceworks-app/package.nls.zh-cn.json
@@ -1,4 +1,5 @@
{
+ "iceworksApp.view.quickEntries.name": "快速入口",
"iceworksApp.view.npmScripts.name": "npm 脚本",
"iceworksApp.view.pages.name": "页面列表",
"iceworksApp.view.components.name": "组件列表",
@@ -10,6 +11,7 @@
"iceworksApp.viewsWelcome.nodeDependencies.contents": "未找到依赖。",
"iceworksApp.command.configHelper.start.title": "Iceworks: 设置",
"iceworksApp.command.DefPublish.title": "Iceworks: 使用 Def 发布",
+ "iceworksApp.command.quickEntries.start.title": "启动",
"iceworksApp.command.npmScripts.refresh.title": "刷新",
"iceworksApp.command.npmScripts.run.title": "运行脚本",
"iceworksApp.command.npmScripts.stop.title": "停止脚本",
diff --git a/extensions/iceworks-app/src/constants.ts b/extensions/iceworks-app/src/constants.ts
index 96fd9af68..0fc0b9a07 100644
--- a/extensions/iceworks-app/src/constants.ts
+++ b/extensions/iceworks-app/src/constants.ts
@@ -1,10 +1,64 @@
import { NodeDepTypes } from './types';
+import i18n from './i18n';
export const entryFileSuffix = ['.jsx', '.js', '.tsx', '.rml', '.vue'];
export const nodeDepTypes: NodeDepTypes[] = ['dependencies', 'devDependencies'];
-export const showExtensionsQuickPickCommandId = 'iceworksApp.showExtensionsQuickPick';
+export const showExtensionsQuickPickCommandId = 'iceworksApp.showEntriesQuickPick';
export const editorTitleRunDebugCommandId = 'npmScripts-editor-title-run-dev';
export const editorTitleRunBuildCommandId = 'npmScripts-editor-title-run-build';
+
+export const entryOptions = [
+ {
+ label: i18n.format('extension.iceworksApp.showEntriesQuickPick.projectCreater.label'),
+ detail: i18n.format('extension.iceworksApp.showEntriesQuickPick.projectCreater.detail'),
+ command: 'iceworks-project-creator.start',
+ },
+ {
+ label: i18n.format('extension.iceworksApp.showEntriesQuickPick.generateComponent.label'),
+ detail: i18n.format('extension.iceworksApp.showEntriesQuickPick.generateComponent.detail'),
+ command: 'iceworks-ui-builder.generate-component',
+ },
+ {
+ label: i18n.format('extension.iceworksApp.showEntriesQuickPick.pageBuilder.label'),
+ detail: i18n.format('extension.iceworksApp.showEntriesQuickPick.pageBuilder.detail'),
+ command: 'iceworks-ui-builder.generate-page',
+ },
+ {
+ label: i18n.format('extension.iceworksApp.showEntriesQuickPick.materialImport.label'),
+ detail: i18n.format('extension.iceworksApp.showEntriesQuickPick.materialImport.detail'),
+ command: 'iceworks-material-helper.start',
+ },
+ {
+ label: i18n.format('extension.iceworksApp.showEntriesQuickPick.showMaterialDocs.label'),
+ detail: i18n.format('extension.iceworksApp.showEntriesQuickPick.showMaterialDocs.detail'),
+ command: 'iceworks-material-helper.showMaterialDocs',
+ },
+ {
+ label: i18n.format('extension.iceworksApp.showEntriesQuickPick.runDebug.label'),
+ detail: i18n.format('extension.iceworksApp.showEntriesQuickPick.runDebug.detail'),
+ command: 'iceworksApp.editorMenu.runDebug',
+ },
+ {
+ label: i18n.format('extension.iceworksApp.showEntriesQuickPick.runBuild.label'),
+ detail: i18n.format('extension.iceworksApp.showEntriesQuickPick.runBuild.detail'),
+ command: 'iceworksApp.editorMenu.runBuild',
+ },
+ {
+ label: i18n.format('extension.iceworksApp.showEntriesQuickPick.reinstall.label'),
+ detail: i18n.format('extension.iceworksApp.showEntriesQuickPick.reinstall.detail'),
+ command: 'iceworksApp.nodeDependencies.reinstall',
+ },
+ {
+ label: i18n.format('extension.iceworksApp.showEntriesQuickPick.addDepsAndDevDeps.label'),
+ detail: i18n.format('extension.iceworksApp.showEntriesQuickPick.addDepsAndDevDeps.detail'),
+ command: 'iceworksApp.nodeDependencies.addDepsAndDevDeps',
+ },
+ {
+ label: i18n.format('extension.iceworksApp.showEntriesQuickPick.openSettings.label'),
+ detail: i18n.format('extension.iceworksApp.showEntriesQuickPick.openSettings.detail'),
+ command: 'iceworksApp.configHelper.start',
+ },
+];
diff --git a/extensions/iceworks-app/src/extension.ts b/extensions/iceworks-app/src/extension.ts
index 66ecc59a9..d35ee0dd7 100644
--- a/extensions/iceworks-app/src/extension.ts
+++ b/extensions/iceworks-app/src/extension.ts
@@ -8,10 +8,11 @@ import { createNpmScriptsTreeView } from './views/npmScriptsView';
import { createNodeDependenciesTreeView } from './views/nodeDependenciesView';
import { createComponentsTreeView } from './views/componentsView';
import { createPagesTreeView } from './views/pagesView';
+import { createQuickEntriesTreeView } from './views/quickEntriesView';
import { ITerminalMap } from './types';
import services from './services';
import { showExtensionsQuickPickCommandId } from './constants';
-import showExtensionsQuickPick from './quickPicks/showExtensionsQuickPick';
+import showEntriesQuickPick from './quickPicks/showEntriesQuickPick';
import createEditorMenuAction from './createEditorMenuAction';
import createExtensionsStatusBar from './statusBar/createExtensionsStatusBar';
import autoSetViewContext from './autoSetViewContext';
@@ -34,7 +35,7 @@ export async function activate(context: vscode.ExtensionContext) {
registerCommand(showExtensionsQuickPickCommandId, () => {
recorder.recordActivate();
- showExtensionsQuickPick();
+ showEntriesQuickPick();
})
);
@@ -77,6 +78,8 @@ export async function activate(context: vscode.ExtensionContext) {
window.onDidCloseTerminal((terminal) => {
terminals.delete(terminal.name);
});
+
+ treeViews.push(createQuickEntriesTreeView(context));
treeViews.push(createNpmScriptsTreeView(context, terminals));
treeViews.push(createComponentsTreeView(context));
treeViews.push(createPagesTreeView(context));
diff --git a/extensions/iceworks-app/src/locales/en-US.json b/extensions/iceworks-app/src/locales/en-US.json
index 3fc7a781b..11e86d8f6 100644
--- a/extensions/iceworks-app/src/locales/en-US.json
+++ b/extensions/iceworks-app/src/locales/en-US.json
@@ -1,26 +1,26 @@
{
- "extension.iceworksApp.showExtensionsQuickPick.projectCreater.label": "Iceworks: Create Application",
- "extension.iceworksApp.showExtensionsQuickPick.projectCreater.detail": "Create a Universal Application(React/Rax/Vue, etc) quickly.",
- "extension.iceworksApp.showExtensionsQuickPick.pageBuilder.label": "Iceworks: Generate Page",
- "extension.iceworksApp.showExtensionsQuickPick.pageBuilder.detail": "Build Page UI by low-code way.",
- "extension.iceworksApp.showExtensionsQuickPick.materialImport.label": "Iceworks: Import Component",
- "extension.iceworksApp.showExtensionsQuickPick.materialImport.detail": "Add Component to the Application in a visual way.",
- "extension.iceworksApp.showExtensionsQuickPick.generateComponent.label": "Iceworks: Generate Component",
- "extension.iceworksApp.showExtensionsQuickPick.generateComponent.detail": "Generate components in a visual way.",
- "extension.iceworksApp.showExtensionsQuickPick.createComponent.label": "Iceworks: Create Component",
- "extension.iceworksApp.showExtensionsQuickPick.createComponent.detail": "Create Component by downloading materials.",
- "extension.iceworksApp.showExtensionsQuickPick.openSettings.label": "Iceworks: Settings",
- "extension.iceworksApp.showExtensionsQuickPick.openSettings.detail": "Set the related functions provided by Iceworks",
- "extension.iceworksApp.showExtensionsQuickPick.showMaterialDocs.label": "Iceworks: Find Component Document",
- "extension.iceworksApp.showExtensionsQuickPick.showMaterialDocs.detail": "Quickly search and browse component documents",
- "extension.iceworksApp.showExtensionsQuickPick.runDebug.label": "Iceworks: Debug",
- "extension.iceworksApp.showExtensionsQuickPick.runDebug.detail": "Debug and Preview the application through VS Code",
- "extension.iceworksApp.showExtensionsQuickPick.runBuild.label": "Iceworks: Run Build",
- "extension.iceworksApp.showExtensionsQuickPick.runBuild.detail": "Build the application of online resources",
- "extension.iceworksApp.showExtensionsQuickPick.reinstall.label": "Iceworks: Reinstall Dependencies",
- "extension.iceworksApp.showExtensionsQuickPick.reinstall.detail": "Reinstall the dependency packages for the application",
- "extension.iceworksApp.showExtensionsQuickPick.addDepsAndDevDeps.label": "Iceworks: Install Dependency",
- "extension.iceworksApp.showExtensionsQuickPick.addDepsAndDevDeps.detail": "Add a new dependency package for the application",
+ "extension.iceworksApp.showEntriesQuickPick.projectCreater.label": "Create Application",
+ "extension.iceworksApp.showEntriesQuickPick.projectCreater.detail": "Create a Universal Application(React/Rax/Vue, etc) quickly.",
+ "extension.iceworksApp.showEntriesQuickPick.pageBuilder.label": "Generate Page",
+ "extension.iceworksApp.showEntriesQuickPick.pageBuilder.detail": "Build Page UI by low-code way.",
+ "extension.iceworksApp.showEntriesQuickPick.materialImport.label": "Import Component",
+ "extension.iceworksApp.showEntriesQuickPick.materialImport.detail": "Add Component to the Application in a visual way.",
+ "extension.iceworksApp.showEntriesQuickPick.generateComponent.label": "Generate Component",
+ "extension.iceworksApp.showEntriesQuickPick.generateComponent.detail": "Generate components in a visual way.",
+ "extension.iceworksApp.showEntriesQuickPick.createComponent.label": "Open the Add Component Panel",
+ "extension.iceworksApp.showEntriesQuickPick.createComponent.detail": "Create Component by downloading materials.",
+ "extension.iceworksApp.showEntriesQuickPick.openSettings.label": "Settings",
+ "extension.iceworksApp.showEntriesQuickPick.openSettings.detail": "Set the related functions provided by Iceworks",
+ "extension.iceworksApp.showEntriesQuickPick.showMaterialDocs.label": "Find Component Document",
+ "extension.iceworksApp.showEntriesQuickPick.showMaterialDocs.detail": "Quickly search and browse component documents",
+ "extension.iceworksApp.showEntriesQuickPick.runDebug.label": "Debug",
+ "extension.iceworksApp.showEntriesQuickPick.runDebug.detail": "Debug and Preview the application through VS Code",
+ "extension.iceworksApp.showEntriesQuickPick.runBuild.label": "Run Build",
+ "extension.iceworksApp.showEntriesQuickPick.runBuild.detail": "Build the application of online resources",
+ "extension.iceworksApp.showEntriesQuickPick.reinstall.label": "Reinstall Dependencies",
+ "extension.iceworksApp.showEntriesQuickPick.reinstall.detail": "Reinstall the dependency packages for the application",
+ "extension.iceworksApp.showEntriesQuickPick.addDepsAndDevDeps.label": "Add Dependency",
+ "extension.iceworksApp.showEntriesQuickPick.addDepsAndDevDeps.detail": "Add a new dependency package for the application",
"extension.iceworksApp.showDepsInputBox.materialImport.placeHolder": "for example: lodash react@latest.",
"extension.iceworksApp.showDepsInputBox.materialImport.prompt": "Please enter the name of the dependency to be addded to <%= depType %>. Multiple dependencies should be spilted by Spaces.",
"extension.iceworksApp.showDefPublishEnvQuickPick.DEFEnvOptions.daily.label": "Daily",
diff --git a/extensions/iceworks-app/src/locales/zh-CN.json b/extensions/iceworks-app/src/locales/zh-CN.json
index 207e7ffed..80393c358 100644
--- a/extensions/iceworks-app/src/locales/zh-CN.json
+++ b/extensions/iceworks-app/src/locales/zh-CN.json
@@ -1,26 +1,26 @@
{
- "extension.iceworksApp.showExtensionsQuickPick.projectCreater.label": "Iceworks 创建应用",
- "extension.iceworksApp.showExtensionsQuickPick.projectCreater.detail": "快速创建多端应用(例如:React/Rax/Vue...)",
- "extension.iceworksApp.showExtensionsQuickPick.pageBuilder.label": "Iceworks 生成页面",
- "extension.iceworksApp.showExtensionsQuickPick.pageBuilder.detail": "通过区块组装的方式生成页面",
- "extension.iceworksApp.showExtensionsQuickPick.generateComponent.label": "Iceworks 生成组件",
- "extension.iceworksApp.showExtensionsQuickPick.generateComponent.detail": "通过可视化搭建生成组件",
- "extension.iceworksApp.showExtensionsQuickPick.createComponent.label": "Iceworks 创建组件",
- "extension.iceworksApp.showExtensionsQuickPick.createComponent.detail": "通过选择下载远程区块创建组件",
- "extension.iceworksApp.showExtensionsQuickPick.materialImport.label": "Iceworks 添加组件",
- "extension.iceworksApp.showExtensionsQuickPick.materialImport.detail": "通过可视化操作添加组件到应用代码",
- "extension.iceworksApp.showExtensionsQuickPick.openSettings.label": "Iceworks 设置",
- "extension.iceworksApp.showExtensionsQuickPick.openSettings.detail": "设置 Iceworks 提供的相关功能",
- "extension.iceworksApp.showExtensionsQuickPick.showMaterialDocs.label": "Iceworks 查找组件文档",
- "extension.iceworksApp.showExtensionsQuickPick.showMaterialDocs.detail": "快速搜索组件文档并进行浏览",
- "extension.iceworksApp.showExtensionsQuickPick.runDebug.label": "Iceworks 启动调试",
- "extension.iceworksApp.showExtensionsQuickPick.runDebug.detail": "通过 VS Code 调试并预览应用",
- "extension.iceworksApp.showExtensionsQuickPick.runBuild.label": "Iceworks 执行构建",
- "extension.iceworksApp.showExtensionsQuickPick.runBuild.detail": "构建出应用的线上前端资源",
- "extension.iceworksApp.showExtensionsQuickPick.reinstall.label": "Iceworks 重装依赖",
- "extension.iceworksApp.showExtensionsQuickPick.reinstall.detail": "重新安装应用的依赖包",
- "extension.iceworksApp.showExtensionsQuickPick.addDepsAndDevDeps.label": "Iceworks 安装依赖",
- "extension.iceworksApp.showExtensionsQuickPick.addDepsAndDevDeps.detail": "为应用添加新的依赖包",
+ "extension.iceworksApp.showEntriesQuickPick.projectCreater.label": "创建应用",
+ "extension.iceworksApp.showEntriesQuickPick.projectCreater.detail": "快速创建多端应用(例如:React/Rax/Vue...)",
+ "extension.iceworksApp.showEntriesQuickPick.pageBuilder.label": "生成页面",
+ "extension.iceworksApp.showEntriesQuickPick.pageBuilder.detail": "通过区块组装的方式生成页面",
+ "extension.iceworksApp.showEntriesQuickPick.generateComponent.label": "生成组件",
+ "extension.iceworksApp.showEntriesQuickPick.generateComponent.detail": "通过可视化搭建生成组件",
+ "extension.iceworksApp.showEntriesQuickPick.createComponent.label": "创建组件",
+ "extension.iceworksApp.showEntriesQuickPick.createComponent.detail": "通过选择下载远程区块创建组件",
+ "extension.iceworksApp.showEntriesQuickPick.materialImport.label": "打开添加组件面板",
+ "extension.iceworksApp.showEntriesQuickPick.materialImport.detail": "通过可视化操作添加组件到应用代码",
+ "extension.iceworksApp.showEntriesQuickPick.openSettings.label": "设置",
+ "extension.iceworksApp.showEntriesQuickPick.openSettings.detail": "设置 Iceworks 提供的相关功能",
+ "extension.iceworksApp.showEntriesQuickPick.showMaterialDocs.label": "查找组件文档",
+ "extension.iceworksApp.showEntriesQuickPick.showMaterialDocs.detail": "快速搜索组件文档并进行浏览",
+ "extension.iceworksApp.showEntriesQuickPick.runDebug.label": "启动调试",
+ "extension.iceworksApp.showEntriesQuickPick.runDebug.detail": "通过 VS Code 调试并预览应用",
+ "extension.iceworksApp.showEntriesQuickPick.runBuild.label": "执行构建",
+ "extension.iceworksApp.showEntriesQuickPick.runBuild.detail": "构建出应用的线上前端资源",
+ "extension.iceworksApp.showEntriesQuickPick.reinstall.label": "重装依赖",
+ "extension.iceworksApp.showEntriesQuickPick.reinstall.detail": "重新安装应用的依赖包",
+ "extension.iceworksApp.showEntriesQuickPick.addDepsAndDevDeps.label": "添加依赖",
+ "extension.iceworksApp.showEntriesQuickPick.addDepsAndDevDeps.detail": "为应用添加新的依赖",
"extension.iceworksApp.showDepsInputBox.materialImport.placeHolder": "例如: lodash react@latest",
"extension.iceworksApp.showDepsInputBox.materialImport.prompt": "请输入需要添加到 <%= depType %> 的依赖名称, 支持通过空格添加多个依赖",
"extension.iceworksApp.showDefPublishEnvQuickPick.DEFEnvOptions.daily.label": "日常环境",
diff --git a/extensions/iceworks-app/src/quickPicks/showAddComponentQuickPick.ts b/extensions/iceworks-app/src/quickPicks/showAddComponentQuickPick.ts
index ab1fb8ff7..cdfd80775 100644
--- a/extensions/iceworks-app/src/quickPicks/showAddComponentQuickPick.ts
+++ b/extensions/iceworks-app/src/quickPicks/showAddComponentQuickPick.ts
@@ -5,13 +5,13 @@ const { window, commands } = vscode;
const addComponentTypeOptions = [
{
- label: i18n.format('extension.iceworksApp.showExtensionsQuickPick.generateComponent.label'),
- detail: i18n.format('extension.iceworksApp.showExtensionsQuickPick.generateComponent.detail'),
+ label: i18n.format('extension.iceworksApp.showEntriesQuickPick.generateComponent.label'),
+ detail: i18n.format('extension.iceworksApp.showEntriesQuickPick.generateComponent.detail'),
command: 'iceworks-ui-builder.generate-component',
},
{
- label: i18n.format('extension.iceworksApp.showExtensionsQuickPick.createComponent.label'),
- detail: i18n.format('extension.iceworksApp.showExtensionsQuickPick.createComponent.detail'),
+ label: i18n.format('extension.iceworksApp.showEntriesQuickPick.createComponent.label'),
+ detail: i18n.format('extension.iceworksApp.showEntriesQuickPick.createComponent.detail'),
command: 'iceworks-ui-builder.create-component',
},
];
diff --git a/extensions/iceworks-app/src/quickPicks/showEntriesQuickPick.ts b/extensions/iceworks-app/src/quickPicks/showEntriesQuickPick.ts
new file mode 100644
index 000000000..05b4671a7
--- /dev/null
+++ b/extensions/iceworks-app/src/quickPicks/showEntriesQuickPick.ts
@@ -0,0 +1,18 @@
+import * as vscode from 'vscode';
+import { entryOptions } from '../constants';
+
+const { window, commands } = vscode;
+
+export default function showEntriesQuickPick() {
+ const quickPick = window.createQuickPick();
+ quickPick.items = entryOptions.map((options) => ({ label: options.label, detail: options.detail }));
+ quickPick.onDidChangeSelection((selection) => {
+ if (selection[0]) {
+ const currentExtension = entryOptions.find((option) => option.label === selection[0].label)!;
+ commands.executeCommand(currentExtension.command);
+ quickPick.dispose();
+ }
+ });
+ quickPick.onDidHide(() => quickPick.dispose());
+ quickPick.show();
+}
diff --git a/extensions/iceworks-app/src/quickPicks/showExtensionsQuickPick.ts b/extensions/iceworks-app/src/quickPicks/showExtensionsQuickPick.ts
deleted file mode 100644
index 9dc995215..000000000
--- a/extensions/iceworks-app/src/quickPicks/showExtensionsQuickPick.ts
+++ /dev/null
@@ -1,71 +0,0 @@
-import * as vscode from 'vscode';
-import i18n from '../i18n';
-
-const { window, commands } = vscode;
-
-const extensionOptions = [
- {
- label: i18n.format('extension.iceworksApp.showExtensionsQuickPick.projectCreater.label'),
- detail: i18n.format('extension.iceworksApp.showExtensionsQuickPick.projectCreater.detail'),
- command: 'iceworks-project-creator.start',
- },
- {
- label: i18n.format('extension.iceworksApp.showExtensionsQuickPick.generateComponent.label'),
- detail: i18n.format('extension.iceworksApp.showExtensionsQuickPick.generateComponent.detail'),
- command: 'iceworks-ui-builder.generate-component',
- },
- {
- label: i18n.format('extension.iceworksApp.showExtensionsQuickPick.pageBuilder.label'),
- detail: i18n.format('extension.iceworksApp.showExtensionsQuickPick.pageBuilder.detail'),
- command: 'iceworks-ui-builder.generate-page',
- },
- {
- label: i18n.format('extension.iceworksApp.showExtensionsQuickPick.materialImport.label'),
- detail: i18n.format('extension.iceworksApp.showExtensionsQuickPick.materialImport.detail'),
- command: 'iceworks-material-helper.start',
- },
- {
- label: i18n.format('extension.iceworksApp.showExtensionsQuickPick.showMaterialDocs.label'),
- detail: i18n.format('extension.iceworksApp.showExtensionsQuickPick.showMaterialDocs.detail'),
- command: 'iceworks-material-helper.showMaterialDocs',
- },
- {
- label: i18n.format('extension.iceworksApp.showExtensionsQuickPick.runDebug.label'),
- detail: i18n.format('extension.iceworksApp.showExtensionsQuickPick.runDebug.detail'),
- command: 'iceworksApp.editorMenu.runDebug',
- },
- {
- label: i18n.format('extension.iceworksApp.showExtensionsQuickPick.runBuild.label'),
- detail: i18n.format('extension.iceworksApp.showExtensionsQuickPick.runBuild.detail'),
- command: 'iceworksApp.editorMenu.runBuild',
- },
- {
- label: i18n.format('extension.iceworksApp.showExtensionsQuickPick.reinstall.label'),
- detail: i18n.format('extension.iceworksApp.showExtensionsQuickPick.reinstall.detail'),
- command: 'iceworksApp.nodeDependencies.reinstall',
- },
- {
- label: i18n.format('extension.iceworksApp.showExtensionsQuickPick.addDepsAndDevDeps.label'),
- detail: i18n.format('extension.iceworksApp.showExtensionsQuickPick.addDepsAndDevDeps.detail'),
- command: 'iceworksApp.nodeDependencies.addDepsAndDevDeps',
- },
- {
- label: i18n.format('extension.iceworksApp.showExtensionsQuickPick.openSettings.label'),
- detail: i18n.format('extension.iceworksApp.showExtensionsQuickPick.openSettings.detail'),
- command: 'iceworksApp.configHelper.start',
- },
-];
-
-export default function showExtensionsQuickPick() {
- const quickPick = window.createQuickPick();
- quickPick.items = extensionOptions.map((options) => ({ label: options.label, detail: options.detail }));
- quickPick.onDidChangeSelection((selection) => {
- if (selection[0]) {
- const currentExtension = extensionOptions.find((option) => option.label === selection[0].label)!;
- commands.executeCommand(currentExtension.command);
- quickPick.dispose();
- }
- });
- quickPick.onDidHide(() => quickPick.dispose());
- quickPick.show();
-}
diff --git a/extensions/iceworks-app/src/views/quickEntriesView.ts b/extensions/iceworks-app/src/views/quickEntriesView.ts
new file mode 100644
index 000000000..e41f597cd
--- /dev/null
+++ b/extensions/iceworks-app/src/views/quickEntriesView.ts
@@ -0,0 +1,60 @@
+import * as vscode from 'vscode';
+import { registerCommand, executeCommand } from '@iceworks/common-service';
+import { entryOptions } from '../constants';
+
+export class QuickEntriesProvider implements vscode.TreeDataProvider {
+ private extensionContext: vscode.ExtensionContext;
+
+ constructor(context: vscode.ExtensionContext) {
+ this.extensionContext = context;
+ }
+
+ getTreeItem(element: QuickEntryItem): vscode.TreeItem {
+ return element;
+ }
+
+ async getChildren() {
+ const quickEntries = this.getEntries();
+ return Promise.resolve(quickEntries);
+ }
+
+ private getEntries() {
+ return entryOptions.map((option) => {
+ const { label, detail, command } = option;
+ const entryCommand: vscode.Command = {
+ command,
+ title: label,
+ };
+ return new QuickEntryItem(this.extensionContext, label, detail, entryCommand);
+ });
+ }
+}
+
+class QuickEntryItem extends vscode.TreeItem {
+ constructor(
+ public readonly extensionContext: vscode.ExtensionContext,
+ public readonly label: string,
+ public readonly tooltip: string,
+ public readonly command: vscode.Command
+ ) {
+ super(label);
+ }
+
+ iconPath = {
+ dark: vscode.Uri.file(this.extensionContext.asAbsolutePath('assets/dark/entry.svg')),
+ light: vscode.Uri.file(this.extensionContext.asAbsolutePath('assets/light/entry.svg')),
+ };
+
+ contextValue = 'quickEntry';
+}
+
+export function createQuickEntriesTreeView(context: vscode.ExtensionContext) {
+ const quickEntriesProvider = new QuickEntriesProvider(context);
+ const treeView = vscode.window.createTreeView('quickEntries', { treeDataProvider: quickEntriesProvider });
+
+ registerCommand('iceworksApp.quickEntries.start', (quickEntry: QuickEntryItem) => {
+ executeCommand(quickEntry.command.command);
+ });
+
+ return treeView;
+}
From d80aefea38a32ec4fd5c88d26cc0ab7677824bd2 Mon Sep 17 00:00:00 2001
From: yangfan <18767120422@163.com>
Date: Thu, 20 Aug 2020 15:20:19 +0800
Subject: [PATCH 07/13] feat: using webpack for build style-helper (#447)
---
.../iceworks-style-helper/.vscode/launch.json | 18 ++------
.../iceworks-style-helper/.vscodeignore | 3 +-
extensions/iceworks-style-helper/package.json | 13 +++---
.../iceworks-style-helper/webpack.config.js | 44 +++++++++++++++++++
4 files changed, 57 insertions(+), 21 deletions(-)
create mode 100644 extensions/iceworks-style-helper/webpack.config.js
diff --git a/extensions/iceworks-style-helper/.vscode/launch.json b/extensions/iceworks-style-helper/.vscode/launch.json
index 9747f6e31..e5ea897b0 100644
--- a/extensions/iceworks-style-helper/.vscode/launch.json
+++ b/extensions/iceworks-style-helper/.vscode/launch.json
@@ -6,25 +6,13 @@
"version": "0.2.0",
"configurations": [
{
- "name": "Run Extension",
+ "name": "Launch Extension",
"type": "extensionHost",
"request": "launch",
"runtimeExecutable": "${execPath}",
"args": ["--extensionDevelopmentPath=${workspaceFolder}"],
- "outFiles": ["${workspaceFolder}/out/**/*.js"],
- "preLaunchTask": "${defaultBuildTask}"
- },
- {
- "name": "Extension Tests",
- "type": "extensionHost",
- "request": "launch",
- "runtimeExecutable": "${execPath}",
- "args": [
- "--extensionDevelopmentPath=${workspaceFolder}",
- "--extensionTestsPath=${workspaceFolder}/out/test/suite/index"
- ],
- "outFiles": ["${workspaceFolder}/out/test/**/*.js"],
- "preLaunchTask": "${defaultBuildTask}"
+ "outFiles": ["${workspaceFolder}/build/*.js"],
+ "preLaunchTask": "npm: webpack"
}
]
}
diff --git a/extensions/iceworks-style-helper/.vscodeignore b/extensions/iceworks-style-helper/.vscodeignore
index ed3f9d37c..0bb532bdc 100644
--- a/extensions/iceworks-style-helper/.vscodeignore
+++ b/extensions/iceworks-style-helper/.vscodeignore
@@ -7,4 +7,5 @@ vsc-extension-quickstart.md
**/tsconfig.json
**/tslint.json
**/*.map
-**/*.ts
\ No newline at end of file
+**/*.ts
+node_modules
diff --git a/extensions/iceworks-style-helper/package.json b/extensions/iceworks-style-helper/package.json
index 5c06d0e21..f4465b328 100644
--- a/extensions/iceworks-style-helper/package.json
+++ b/extensions/iceworks-style-helper/package.json
@@ -39,11 +39,12 @@
"type": "git",
"url": "https://github.com/ice-lab/iceworks.git"
},
- "main": "./build/index.js",
+ "main": "./build/extension.js",
"scripts": {
- "vscode:prepublish": "rm -rf build && npm run compile",
- "compile": "tsc -p ./",
- "watch": "tsc -watch -p ./tsconfig.json"
+ "vscode:prepublish": "rm -rf build && webpack --mode production",
+ "webpack": "webpack --mode development",
+ "webpack-dev": "webpack --mode development --watch",
+ "compile": "tsc -p ./tsconfig.json"
},
"contributes": {
"commands": [
@@ -67,7 +68,9 @@
"datauri": "^2.0.0",
"line-column": "^1.0.2",
"tinycolor2": "^1.4.1",
- "vscode-web-custom-data": "^0.1.4"
+ "vscode-web-custom-data": "^0.1.4",
+ "webpack": "^4.44.1",
+ "webpack-cli": "^3.3.12"
},
"homepage": "https://github.com/ice-lab/iceworks/blob/master/extensions/iceworks-style-helper/README.md",
"bugs": {
diff --git a/extensions/iceworks-style-helper/webpack.config.js b/extensions/iceworks-style-helper/webpack.config.js
new file mode 100644
index 000000000..d19a102d6
--- /dev/null
+++ b/extensions/iceworks-style-helper/webpack.config.js
@@ -0,0 +1,44 @@
+const path = require('path');
+
+const tsConfigPath = path.join(__dirname, 'tsconfig.json');
+
+const config = {
+ target: 'node',
+ entry: './src/index.ts',
+ output: {
+ path: path.resolve(__dirname, 'build'),
+ filename: 'extension.js',
+ libraryTarget: 'commonjs2',
+ devtoolModuleFilenameTemplate: '../[resource-path]',
+ },
+ externals: {
+ vscode: 'commonjs vscode',
+ },
+ resolve: {
+ extensions: ['.ts', '.js'],
+ },
+ module: {
+ rules: [
+ {
+ test: /\.ts$/,
+ use: [
+ {
+ loader: 'ts-loader',
+ options: {
+ transpileOnly: true,
+ configFile: tsConfigPath,
+ },
+ },
+ ],
+ },
+ ],
+ },
+};
+
+module.exports = (env, argv) => {
+ if (argv.mode === 'development') {
+ config.devtool = 'source-map';
+ }
+
+ return config;
+};
From ef9cca631ac6bd7a164fb1d9eb47189bb0a69898 Mon Sep 17 00:00:00 2001
From: Hengchang Lu <44047106+luhc228@users.noreply.github.com>
Date: Thu, 20 Aug 2020 17:14:22 +0800
Subject: [PATCH 08/13] fix: def publish typo (#450)
---
extensions/iceworks-app/package.nls.zh-cn.json | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/extensions/iceworks-app/package.nls.zh-cn.json b/extensions/iceworks-app/package.nls.zh-cn.json
index cfb52590c..2f3b1c6df 100644
--- a/extensions/iceworks-app/package.nls.zh-cn.json
+++ b/extensions/iceworks-app/package.nls.zh-cn.json
@@ -10,7 +10,7 @@
"iceworksApp.viewsWelcome.components.contents": "未找到组件。",
"iceworksApp.viewsWelcome.nodeDependencies.contents": "未找到依赖。",
"iceworksApp.command.configHelper.start.title": "Iceworks: 设置",
- "iceworksApp.command.DefPublish.title": "Iceworks: 使用 Def 发布",
+ "iceworksApp.command.DefPublish.title": "Iceworks: DEF 发布",
"iceworksApp.command.quickEntries.start.title": "启动",
"iceworksApp.command.npmScripts.refresh.title": "刷新",
"iceworksApp.command.npmScripts.run.title": "运行脚本",
From 35e97a3c5553fdecb07605742111182ded994a00 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E8=AE=B8=E6=96=87=E6=B6=9B?=
Date: Thu, 20 Aug 2020 17:14:36 +0800
Subject: [PATCH 09/13] docs: add PRs Welcome (#449)
---
README.md | 5 +++--
README.zh-CN.md | 5 +++--
extensions/iceworks/README.md | 3 ++-
extensions/iceworks/README.zh-CN.md | 3 ++-
4 files changed, 10 insertions(+), 6 deletions(-)
diff --git a/README.md b/README.md
index cd9213e64..f6cafa7da 100644
--- a/README.md
+++ b/README.md
@@ -11,11 +11,12 @@ English | [简体中文](./README.zh-CN.md)
Visual Intelligent Development Assistant
-
+
+
-
+
diff --git a/README.zh-CN.md b/README.zh-CN.md
index fe8e2d029..c1c2c4944 100644
--- a/README.zh-CN.md
+++ b/README.zh-CN.md
@@ -11,11 +11,12 @@
可视化智能开发助手
-
+
+
-
+
diff --git a/extensions/iceworks/README.md b/extensions/iceworks/README.md
index dae3edf3d..42346bf13 100644
--- a/extensions/iceworks/README.md
+++ b/extensions/iceworks/README.md
@@ -4,7 +4,8 @@ English | [简体中文](https://github.com/ice-lab/iceworks/blob/master/extensi
[![Version for VS Code Extension](https://vsmarketplacebadge.apphb.com/version-short/iceworks-team.iceworks.svg?logo=visual-studio-code)](https://marketplace.visualstudio.com/items?itemName=iceworks-team.iceworks)
[![Installs](https://vsmarketplacebadge.apphb.com/installs-short/iceworks-team.iceworks.svg)](https://marketplace.visualstudio.com/items?itemName=iceworks-team.iceworks)
-[![Rating](https://vsmarketplacebadge.apphb.com/rating-short/iceworks-team.iceworks.svg)](https://marketplace.visualstudio.com/items?itemName=iceworks-team.iceworks)
+[![Rating](https://vsmarketplacebadge.apphb.com/rating-short/iceworks-team.iceworks.svg)](https://marketplace.visualstudio.com/items?itemName=iceworks-team.iceworks&ssr=false#review-details)
+[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)](https://github.com/ice-lab/iceworks/pulls)
[![The MIT License](https://img.shields.io/badge/license-MIT-blue.svg)](http://opensource.org/licenses/MIT)
Iceworks is a Visual Intelligent Development Assistant, provide visualization and intelligent technology to build Universal Application faster and better.
diff --git a/extensions/iceworks/README.zh-CN.md b/extensions/iceworks/README.zh-CN.md
index acf161004..c346de6c9 100644
--- a/extensions/iceworks/README.zh-CN.md
+++ b/extensions/iceworks/README.zh-CN.md
@@ -4,7 +4,8 @@
[![Version for VS Code Extension](https://vsmarketplacebadge.apphb.com/version-short/iceworks-team.iceworks.svg?logo=visual-studio-code)](https://marketplace.visualstudio.com/items?itemName=iceworks-team.iceworks)
[![Installs](https://vsmarketplacebadge.apphb.com/installs-short/iceworks-team.iceworks.svg)](https://marketplace.visualstudio.com/items?itemName=iceworks-team.iceworks)
-[![Rating](https://vsmarketplacebadge.apphb.com/rating-short/iceworks-team.iceworks.svg)](https://marketplace.visualstudio.com/items?itemName=iceworks-team.iceworks)
+[![Rating](https://vsmarketplacebadge.apphb.com/rating-short/iceworks-team.iceworks.svg)](https://marketplace.visualstudio.com/items?itemName=iceworks-team.iceworks&ssr=false#review-details)
+[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)](https://github.com/ice-lab/iceworks/pulls)
[![The MIT License](https://img.shields.io/badge/license-MIT-blue.svg)](http://opensource.org/licenses/MIT)
可视化智能开发助手,通过可视化编程和智能辅助手段,更快更好地构建多端应用。
From 10b008f6c274234fe5faa8fb847986addbd452f8 Mon Sep 17 00:00:00 2001
From: Hengchang Lu <44047106+luhc228@users.noreply.github.com>
Date: Thu, 20 Aug 2020 17:14:48 +0800
Subject: [PATCH 10/13] fix: stop command fail (#448)
* fix: stop command fail
* chore: change log
* fix: lint
* chore: remove unused code
---
extensions/iceworks-app/CHANGELOG.md | 3 ++-
.../src/commands/executeCommand.ts | 24 ++++++++----------
.../iceworks-app/src/commands/stopCommand.ts | 16 +++++++++---
.../src/createEditorMenuAction.ts | 25 +++++++------------
extensions/iceworks-app/src/extension.ts | 13 +++-------
.../src/inputBoxs/showDepsInputBox.ts | 10 +++-----
.../quickPicks/showDefPublishEnvQuickPick.ts | 5 ++--
.../src/quickPicks/showDepsQuickPick.ts | 6 ++---
extensions/iceworks-app/src/types.ts | 4 ---
.../src/views/nodeDependenciesView.ts | 14 +++++------
.../iceworks-app/src/views/npmScriptsView.ts | 9 +++----
11 files changed, 55 insertions(+), 74 deletions(-)
diff --git a/extensions/iceworks-app/CHANGELOG.md b/extensions/iceworks-app/CHANGELOG.md
index 04caaf3f1..35388477c 100644
--- a/extensions/iceworks-app/CHANGELOG.md
+++ b/extensions/iceworks-app/CHANGELOG.md
@@ -1,8 +1,9 @@
# Change Log
## 0.4.6
-- Support pegasus project debugger.
+- feat: support pegasus project debugger.
- feat: add quick entries in tree view.
+- fix: stop command fail.
## 0.4.5
- feat: add component-generator and component-creator quickPick.
diff --git a/extensions/iceworks-app/src/commands/executeCommand.ts b/extensions/iceworks-app/src/commands/executeCommand.ts
index e89614eb0..c980c5c71 100644
--- a/extensions/iceworks-app/src/commands/executeCommand.ts
+++ b/extensions/iceworks-app/src/commands/executeCommand.ts
@@ -1,28 +1,24 @@
import * as vscode from 'vscode';
import { Terminal, TerminalOptions } from 'vscode';
-import { ITerminalMap } from '../types';
-export default function executeCommand(terminalMapping: ITerminalMap, script: vscode.Command, id?: string) {
- if (!script.arguments) {
+export default function executeCommand(command: vscode.Command) {
+ if (!command.arguments) {
return;
}
- const args = script.arguments;
- const [cwd, command] = args;
- if (!command) {
+ const args = command.arguments;
+ const [cwd, script] = args;
+ if (!script) {
return;
}
- const terminalId = id || command;
- let terminal: Terminal;
+ const terminals = vscode.window.terminals;
- if (terminalMapping.has(terminalId)) {
- terminal = terminalMapping.get(terminalId)!;
- } else {
- const terminalOptions: TerminalOptions = { cwd, name: command };
+ let terminal: Terminal | undefined = terminals.find((terminal: Terminal) => terminal.name === script);
+ if (!terminal) {
+ const terminalOptions: TerminalOptions = { cwd, name: script };
terminal = vscode.window.createTerminal(terminalOptions);
- terminalMapping.set(terminalId, terminal);
}
terminal.show();
- terminal.sendText(command);
+ terminal.sendText(script);
}
diff --git a/extensions/iceworks-app/src/commands/stopCommand.ts b/extensions/iceworks-app/src/commands/stopCommand.ts
index 2e3ae171a..977dcddfb 100644
--- a/extensions/iceworks-app/src/commands/stopCommand.ts
+++ b/extensions/iceworks-app/src/commands/stopCommand.ts
@@ -1,9 +1,17 @@
-import { ITerminalMap } from '../types';
+import * as vscode from 'vscode';
-export default function stopCommand(terminalMapping: ITerminalMap, scriptId: string) {
- const currentTerminal = terminalMapping.get(scriptId);
+export default function stopCommand(command: vscode.Command) {
+ const terminals = vscode.window.terminals;
+ const commandArgs = command.arguments;
+ if (!commandArgs) {
+ return;
+ }
+ const [cwd, script] = commandArgs;
+ if (!script) {
+ return;
+ }
+ const currentTerminal = terminals.find((terminal: vscode.Terminal) => terminal.name === script);
if (currentTerminal) {
currentTerminal.dispose();
- terminalMapping.delete(scriptId);
}
}
diff --git a/extensions/iceworks-app/src/createEditorMenuAction.ts b/extensions/iceworks-app/src/createEditorMenuAction.ts
index 496bb2732..948cd70bd 100644
--- a/extensions/iceworks-app/src/createEditorMenuAction.ts
+++ b/extensions/iceworks-app/src/createEditorMenuAction.ts
@@ -2,26 +2,20 @@ import * as vscode from 'vscode';
import { createNpmCommand, checkPathExists, checkIsAliInternal, registerCommand } from '@iceworks/common-service';
import { dependencyDir, projectPath } from '@iceworks/project-service';
import { setDebugConfig } from './debugConfig/index';
-import { editorTitleRunDebugCommandId, editorTitleRunBuildCommandId } from './constants';
-import { ITerminalMap } from './types';
import showDefPublishEnvQuickPick from './quickPicks/showDefPublishEnvQuickPick';
import executeCommand from './commands/executeCommand';
-export default async function createEditorMenuAction(terminals: ITerminalMap) {
+export default async function createEditorMenuAction() {
const EDITOR_MENU_RUN_DEBUG = 'iceworksApp.editorMenu.runDebug';
registerCommand(EDITOR_MENU_RUN_DEBUG, async () => {
// Check dependences
if (!(await checkPathExists(projectPath, dependencyDir))) {
vscode.window.showInformationMessage('"node_modules" directory not found! Install dependencies first.');
- executeCommand(
- terminals,
- {
- command: EDITOR_MENU_RUN_DEBUG,
- title: 'Run Install',
- arguments: [projectPath, createNpmCommand('install')],
- },
- editorTitleRunDebugCommandId
- );
+ executeCommand({
+ command: EDITOR_MENU_RUN_DEBUG,
+ title: 'Run Install',
+ arguments: [projectPath, createNpmCommand('install')],
+ });
return;
}
@@ -44,19 +38,18 @@ export default async function createEditorMenuAction(terminals: ITerminalMap) {
title: 'Run Build',
arguments: [projectPath, createNpmCommand('run', 'build')],
};
- const commandId = editorTitleRunBuildCommandId;
if (!pathExists) {
command.arguments = [projectPath, `${createNpmCommand('install')} && ${command.arguments![1]}`];
- executeCommand(terminals, command, commandId);
+ executeCommand(command);
return;
}
- executeCommand(terminals, command, commandId);
+ executeCommand(command);
});
const isAliInternal = await checkIsAliInternal();
if (isAliInternal) {
registerCommand('iceworksApp.editorMenu.DefPublish', () => {
- showDefPublishEnvQuickPick(terminals);
+ showDefPublishEnvQuickPick();
});
}
}
diff --git a/extensions/iceworks-app/src/extension.ts b/extensions/iceworks-app/src/extension.ts
index d35ee0dd7..bec83e91a 100644
--- a/extensions/iceworks-app/src/extension.ts
+++ b/extensions/iceworks-app/src/extension.ts
@@ -1,5 +1,5 @@
import * as vscode from 'vscode';
-import { Terminal, window, ViewColumn } from 'vscode';
+import { window, ViewColumn } from 'vscode';
import { connectService, getHtmlForWebview } from '@iceworks/vscode-webview/lib/vscode';
import { getProjectType } from '@iceworks/project-service';
import { Recorder, recordDAU } from '@iceworks/recorder';
@@ -9,7 +9,6 @@ import { createNodeDependenciesTreeView } from './views/nodeDependenciesView';
import { createComponentsTreeView } from './views/componentsView';
import { createPagesTreeView } from './views/pagesView';
import { createQuickEntriesTreeView } from './views/quickEntriesView';
-import { ITerminalMap } from './types';
import services from './services';
import { showExtensionsQuickPickCommandId } from './constants';
import showEntriesQuickPick from './quickPicks/showEntriesQuickPick';
@@ -74,16 +73,12 @@ export async function activate(context: vscode.ExtensionContext) {
// init tree view
const treeViews: any[] = [];
- const terminals: ITerminalMap = new Map();
- window.onDidCloseTerminal((terminal) => {
- terminals.delete(terminal.name);
- });
treeViews.push(createQuickEntriesTreeView(context));
- treeViews.push(createNpmScriptsTreeView(context, terminals));
+ treeViews.push(createNpmScriptsTreeView(context));
treeViews.push(createComponentsTreeView(context));
treeViews.push(createPagesTreeView(context));
- treeViews.push(createNodeDependenciesTreeView(context, terminals));
+ treeViews.push(createNodeDependenciesTreeView(context));
let didSetViewContext;
treeViews.forEach((treeView) => {
const { title } = treeView;
@@ -110,6 +105,6 @@ export async function activate(context: vscode.ExtensionContext) {
if (projectType !== 'unknown') {
vscode.commands.executeCommand('setContext', 'iceworks:isAliInternal', await checkIsAliInternal());
vscode.commands.executeCommand('setContext', 'iceworks:showScriptIconInEditorTitleMenu', true);
- await createEditorMenuAction(terminals);
+ await createEditorMenuAction();
}
}
diff --git a/extensions/iceworks-app/src/inputBoxs/showDepsInputBox.ts b/extensions/iceworks-app/src/inputBoxs/showDepsInputBox.ts
index a6cc3214b..5aaa0e8d0 100644
--- a/extensions/iceworks-app/src/inputBoxs/showDepsInputBox.ts
+++ b/extensions/iceworks-app/src/inputBoxs/showDepsInputBox.ts
@@ -1,13 +1,9 @@
import * as vscode from 'vscode';
-import { NodeDepTypes, ITerminalMap } from '../types';
+import { NodeDepTypes } from '../types';
import executeCommand from '../commands/executeCommand';
import i18n from '../i18n';
-export default async function showDepsInputBox(
- terminals: ITerminalMap,
- nodeDependenciesInstance: any,
- depType: NodeDepTypes
-) {
+export default async function showDepsInputBox(nodeDependenciesInstance: any, depType: NodeDepTypes) {
const result = await vscode.window.showInputBox({
placeHolder: i18n.format('extension.iceworksApp.showDepsInputBox.materialImport.placeHolder'),
prompt: i18n.format('extension.iceworksApp.showDepsInputBox.materialImport.prompt', { depType }),
@@ -15,5 +11,5 @@ export default async function showDepsInputBox(
if (!result) {
return;
}
- executeCommand(terminals, nodeDependenciesInstance.getAddDependencyScript(depType, result));
+ executeCommand(nodeDependenciesInstance.getAddDependencyScript(depType, result));
}
diff --git a/extensions/iceworks-app/src/quickPicks/showDefPublishEnvQuickPick.ts b/extensions/iceworks-app/src/quickPicks/showDefPublishEnvQuickPick.ts
index 1163fc39f..9e9e2aae8 100644
--- a/extensions/iceworks-app/src/quickPicks/showDefPublishEnvQuickPick.ts
+++ b/extensions/iceworks-app/src/quickPicks/showDefPublishEnvQuickPick.ts
@@ -1,12 +1,11 @@
import * as vscode from 'vscode';
import { projectPath } from '@iceworks/project-service';
-import { ITerminalMap } from '../types';
import executeCommand from '../commands/executeCommand';
import i18n from '../i18n';
const { window } = vscode;
-export default function showDefPublishEnvQuickPick(terminalMapping: ITerminalMap) {
+export default function showDefPublishEnvQuickPick() {
const DEFEnvOptions = [
{
label: i18n.format('extension.iceworksApp.showDefPublishEnvQuickPick.DEFEnvOptions.daily.label'),
@@ -30,7 +29,7 @@ export default function showDefPublishEnvQuickPick(terminalMapping: ITerminalMap
command: 'iceworksApp.editorMenu.DefPublish',
arguments: [projectPath, env.command],
};
- executeCommand(terminalMapping, command, `DefPublish-${env.label}`);
+ executeCommand(command);
quickPick.dispose();
}
});
diff --git a/extensions/iceworks-app/src/quickPicks/showDepsQuickPick.ts b/extensions/iceworks-app/src/quickPicks/showDepsQuickPick.ts
index 48a258ec1..39a855343 100644
--- a/extensions/iceworks-app/src/quickPicks/showDepsQuickPick.ts
+++ b/extensions/iceworks-app/src/quickPicks/showDepsQuickPick.ts
@@ -1,10 +1,10 @@
import * as vscode from 'vscode';
import { nodeDepTypes } from '../constants';
-import { NodeDepTypes, ITerminalMap } from '../types';
+import { NodeDepTypes } from '../types';
import showDepsInputBox from '../inputBoxs/showDepsInputBox';
import i18n from '../i18n';
-export default function showDepsQuickPick(terminals: ITerminalMap, nodeDependenciesInstance: any) {
+export default function showDepsQuickPick(nodeDependenciesInstance: any) {
const quickPick = vscode.window.createQuickPick();
quickPick.items = nodeDepTypes.map((label) => ({
label,
@@ -12,7 +12,7 @@ export default function showDepsQuickPick(terminals: ITerminalMap, nodeDependenc
}));
quickPick.onDidChangeSelection((selection) => {
if (selection[0]) {
- showDepsInputBox(terminals, nodeDependenciesInstance, selection[0].label as NodeDepTypes).catch(console.error);
+ showDepsInputBox(nodeDependenciesInstance, selection[0].label as NodeDepTypes).catch(console.error);
}
});
quickPick.onDidHide(() => quickPick.dispose());
diff --git a/extensions/iceworks-app/src/types.ts b/extensions/iceworks-app/src/types.ts
index 61de66591..89d0a962d 100644
--- a/extensions/iceworks-app/src/types.ts
+++ b/extensions/iceworks-app/src/types.ts
@@ -1,5 +1 @@
-import { Terminal } from 'vscode';
-
-export type ITerminalMap = Map;
-
export type NodeDepTypes = 'dependencies' | 'devDependencies';
diff --git a/extensions/iceworks-app/src/views/nodeDependenciesView.ts b/extensions/iceworks-app/src/views/nodeDependenciesView.ts
index abc4ac41e..3ad3362c2 100644
--- a/extensions/iceworks-app/src/views/nodeDependenciesView.ts
+++ b/extensions/iceworks-app/src/views/nodeDependenciesView.ts
@@ -194,31 +194,29 @@ class DependencyTreeItem extends vscode.TreeItem {
};
}
-export function createNodeDependenciesTreeView(context, terminals) {
+export function createNodeDependenciesTreeView(context) {
const nodeDependenciesProvider = new DepNodeProvider(context, projectPath);
const treeView = vscode.window.createTreeView('nodeDependencies', { treeDataProvider: nodeDependenciesProvider });
registerCommand('iceworksApp.nodeDependencies.refresh', () => nodeDependenciesProvider.refresh());
registerCommand('iceworksApp.nodeDependencies.upgrade', (node: DependencyTreeItem) => {
if (node.command) {
- executeCommand(terminals, node.command, node.id);
+ executeCommand(node.command);
}
});
registerCommand('iceworksApp.nodeDependencies.reinstall', async () => {
if (await nodeDependenciesProvider.packageJsonExists()) {
const script = await nodeDependenciesProvider.getReinstallScript();
- executeCommand(terminals, script!);
+ executeCommand(script);
}
});
registerCommand('iceworksApp.nodeDependencies.dependencies.add', () =>
- showDepsInputBox(terminals, nodeDependenciesProvider, 'dependencies')
+ showDepsInputBox(nodeDependenciesProvider, 'dependencies')
);
registerCommand('iceworksApp.nodeDependencies.devDependencies.add', () =>
- showDepsInputBox(terminals, nodeDependenciesProvider, 'devDependencies')
- );
- registerCommand('iceworksApp.nodeDependencies.addDepsAndDevDeps', () =>
- showDepsQuickPick(terminals, nodeDependenciesProvider)
+ showDepsInputBox(nodeDependenciesProvider, 'devDependencies')
);
+ registerCommand('iceworksApp.nodeDependencies.addDepsAndDevDeps', () => showDepsQuickPick(nodeDependenciesProvider));
const pattern = new vscode.RelativePattern(path.join(projectPath, dependencyDir), '**');
const fileWatcher = vscode.workspace.createFileSystemWatcher(pattern, false, false, false);
diff --git a/extensions/iceworks-app/src/views/npmScriptsView.ts b/extensions/iceworks-app/src/views/npmScriptsView.ts
index b9de3b0e3..e2e41d561 100644
--- a/extensions/iceworks-app/src/views/npmScriptsView.ts
+++ b/extensions/iceworks-app/src/views/npmScriptsView.ts
@@ -5,7 +5,6 @@ import { createNpmCommand, checkPathExists, registerCommand } from '@iceworks/co
import { dependencyDir, packageJSONFilename, projectPath } from '@iceworks/project-service';
import executeCommand from '../commands/executeCommand';
import stopCommand from '../commands/stopCommand';
-import { ITerminalMap } from '../types';
export class NpmScriptsProvider implements vscode.TreeDataProvider {
private workspaceRoot: string | undefined;
@@ -88,19 +87,19 @@ export class ScriptTreeItem extends vscode.TreeItem {
contextValue = 'script';
}
-export function createNpmScriptsTreeView(context: vscode.ExtensionContext, terminals: ITerminalMap) {
+export function createNpmScriptsTreeView(context: vscode.ExtensionContext) {
const npmScriptsProvider = new NpmScriptsProvider(context, projectPath);
const treeView = vscode.window.createTreeView('npmScripts', { treeDataProvider: npmScriptsProvider });
registerCommand('iceworksApp.npmScripts.run', async (script: ScriptTreeItem) => {
if (!(await checkPathExists(projectPath, dependencyDir))) {
script.command.arguments = [projectPath, `${createNpmCommand('install')} && ${script.command.arguments![1]}`];
- executeCommand(terminals, script.command, script.id);
+ executeCommand(script.command);
return;
}
- executeCommand(terminals, script.command, script.id);
+ executeCommand(script.command);
});
- registerCommand('iceworksApp.npmScripts.stop', (script: ScriptTreeItem) => stopCommand(terminals, script.id));
+ registerCommand('iceworksApp.npmScripts.stop', (script: ScriptTreeItem) => stopCommand(script.command));
registerCommand('iceworksApp.npmScripts.refresh', () => npmScriptsProvider.refresh());
const pattern = new vscode.RelativePattern(projectPath, packageJSONFilename);
From 03f33955aa32a6291ba69b83525f6ded8d310944 Mon Sep 17 00:00:00 2001
From: yangfan <18767120422@163.com>
Date: Fri, 21 Aug 2020 10:41:04 +0800
Subject: [PATCH 11/13] fix: pegasus debugger (#452)
* fix: pegasus debugger
* feat: update review
---
.../src/debugConfig/getDefaultConfigs.ts | 11 +++++++++--
.../iceworks-app/src/debugConfig/index.ts | 17 ++++++++++++++++-
2 files changed, 25 insertions(+), 3 deletions(-)
diff --git a/extensions/iceworks-app/src/debugConfig/getDefaultConfigs.ts b/extensions/iceworks-app/src/debugConfig/getDefaultConfigs.ts
index ca797af54..ce3d5ac5a 100644
--- a/extensions/iceworks-app/src/debugConfig/getDefaultConfigs.ts
+++ b/extensions/iceworks-app/src/debugConfig/getDefaultConfigs.ts
@@ -22,7 +22,13 @@ const tasksConfigTemplate = `
{
"label": "<%= startLabel %>",
"command": "npm",
- "args": ["run", "start", "--", "--disable-open"],
+ "args": [
+ "run",
+ "start"<%_ if (disableOpen) { -%>,
+ "--",
+ "--disable-open"
+ <%_ } -%>
+ ],
"isBackground": true,
<%_ if (isPegasusProject) { -%>
"options": {
@@ -70,13 +76,14 @@ export function getLaunchConfig(launchUrl?: string): IDebugConfig {
}
// https://code.visualstudio.com/docs/editor/tasks#vscode
-export function getTasksConfig(isPegasusProject = false): IDebugConfig {
+export function getTasksConfig(isPegasusProject = false, disableOpen = false): IDebugConfig {
const DEBUG_TASKS_VERSION = '2.0.0';
return {
version: DEBUG_TASKS_VERSION,
tasks: JSON.parse(
ejs.render(tasksConfigTemplate, {
baseUrl: BASE_URL,
+ disableOpen,
isPegasusProject,
startLabel: CONFIG_START_LABEL,
stopLabel: CONFIG_STOP_LABEL,
diff --git a/extensions/iceworks-app/src/debugConfig/index.ts b/extensions/iceworks-app/src/debugConfig/index.ts
index a8c88e563..8bce91837 100644
--- a/extensions/iceworks-app/src/debugConfig/index.ts
+++ b/extensions/iceworks-app/src/debugConfig/index.ts
@@ -69,9 +69,24 @@ export function setDebugConfig() {
}
writeConfigFile(launchConfigPath, launchConfig);
+ let disableOpen = false;
+ try {
+ const packageConfigFile = path.join(rootPath, 'package.json');
+ if (fs.existsSync(packageConfigFile)) {
+ const { dependencies = {}, devDependencies = {} } = fs.readJSONSync(packageConfigFile);
+ // Only ice.js support set webpack dev server disable open, for now
+ // TODO wait rax script support --disable-open or sync getProjectFramework method
+ if (devDependencies['ice.js'] || dependencies['ice.js']) {
+ disableOpen = true;
+ }
+ }
+ } catch (e) {
+ // ignore
+ }
+
// Set tasks.json
let tasksConfig;
- const defaultTasksConfig = getTasksConfig(isPegasusProject);
+ const defaultTasksConfig = getTasksConfig(isPegasusProject, disableOpen);
const tasksConfigPath = path.join(targetDir, 'tasks.json');
if (fs.existsSync(tasksConfigPath)) {
From d8ecb4c6f535f3e14cd9bc74bcb7ca5a185631a5 Mon Sep 17 00:00:00 2001
From: Hengchang Lu <44047106+luhc228@users.noreply.github.com>
Date: Fri, 21 Aug 2020 11:06:51 +0800
Subject: [PATCH 12/13] fix: record treeview active (#453)
* fix: record treeView active
* fix: comment
---
extensions/iceworks-app/src/extension.ts | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/extensions/iceworks-app/src/extension.ts b/extensions/iceworks-app/src/extension.ts
index bec83e91a..1e35be610 100644
--- a/extensions/iceworks-app/src/extension.ts
+++ b/extensions/iceworks-app/src/extension.ts
@@ -92,6 +92,11 @@ export async function activate(context: vscode.ExtensionContext) {
},
});
}
+
+ recorder.record({
+ module: 'treeView',
+ action: 'active',
+ });
if (visible && !didSetViewContext) {
didSetViewContext = true;
recordDAU();
From 20484971280fe4a48bbe5a190fc4e613b49968d8 Mon Sep 17 00:00:00 2001
From: sspku-yqLiu <56879942+sspku-yqLiu@users.noreply.github.com>
Date: Fri, 21 Aug 2020 11:36:11 +0800
Subject: [PATCH 13/13] feat: use _ejs to identify template file (#451)
* feat: use _ejs to identify template file
* fix: update ejsRender
* chore: match more accurate
---
.../generate-material/src/ejsRenderDir.ts | 27 +++++++++++--------
.../generate-material/src/formatProject.ts | 2 +-
packages/generate-material/src/index.ts | 25 ++++++++++++++++-
packages/generate-material/src/type.ts | 24 -----------------
4 files changed, 41 insertions(+), 37 deletions(-)
delete mode 100644 packages/generate-material/src/type.ts
diff --git a/packages/generate-material/src/ejsRenderDir.ts b/packages/generate-material/src/ejsRenderDir.ts
index c299d30d2..2bbe8fe54 100644
--- a/packages/generate-material/src/ejsRenderDir.ts
+++ b/packages/generate-material/src/ejsRenderDir.ts
@@ -2,17 +2,17 @@ import * as path from 'path';
import * as glob from 'glob';
import * as ejs from 'ejs';
import * as fse from 'fs-extra';
-import { ITemplateOptions } from './type';
+import { ITemplateOptions } from './index';
export default async function (dir: string, options: ITemplateOptions): Promise {
return new Promise((resolve, reject) => {
glob(
- '**/*.ejs',
+ '**/*.?(_)ejs',
{
cwd: dir,
nodir: true,
dot: true,
- ignore: options.useEjsTemplate ? ['**/*.tsx.ejs', '**/*.jsx.ejs', 'node_modules/**'] : ['node_modules/**'],
+ ignore: ['node_modules/**'],
},
(err, files) => {
if (err) {
@@ -38,14 +38,19 @@ export default async function (dir: string, options: ITemplateOptions): Promise<
function renderFile(filepath: string, options: any): Promise {
return new Promise((resolve, reject) => {
- ejs.renderFile(filepath, options, (err, result) => {
- if (err) {
- return reject(err);
- }
-
- fse.removeSync(filepath);
- fse.writeFileSync(filepath.replace(/\.ejs$/, ''), result);
+ if (filepath.endsWith('_ejs')) {
+ const templateFilePath = filepath.replace(/_ejs$/, 'ejs');
+ fse.renameSync(filepath, templateFilePath);
resolve();
- });
+ } else {
+ ejs.renderFile(filepath, options, (err, result) => {
+ if (err) {
+ return reject(err);
+ }
+ fse.removeSync(filepath);
+ fse.writeFileSync(filepath.replace(/\.ejs$/, ''), result);
+ resolve();
+ });
+ }
});
}
diff --git a/packages/generate-material/src/formatProject.ts b/packages/generate-material/src/formatProject.ts
index 885431c1e..223b3d9c1 100644
--- a/packages/generate-material/src/formatProject.ts
+++ b/packages/generate-material/src/formatProject.ts
@@ -1,7 +1,7 @@
import * as path from 'path';
import * as fse from 'fs-extra';
import { isAliNpm } from 'ice-npm-utils';
-import { ITemplateOptions } from './type';
+import { ITemplateOptions } from './index';
interface IOptions {
rootDir: string;
diff --git a/packages/generate-material/src/index.ts b/packages/generate-material/src/index.ts
index 8dccea189..0fb7cbb30 100644
--- a/packages/generate-material/src/index.ts
+++ b/packages/generate-material/src/index.ts
@@ -6,11 +6,34 @@ import { getNpmTarball, getAndExtractTarball } from 'ice-npm-utils';
import ejsRenderDir from './ejsRenderDir';
import formatProject from './formatProject';
-import { IOptions, ITemplateOptions } from './type';
/**
* init component by template
*/
+export interface ITemplateOptions {
+ npmName: string; // @icedesign/ice-label
+ name?: string; // ice-label (english and variable)
+ kebabCaseName?: string; // ice-label
+ npmScope?: string; // @icedesign
+ title?: string; //
+ description?: string;
+ className?: string;
+ version?: string;
+ category?: string;
+ // web, miniapp...
+ projectTargets?: string[];
+ adaptor?: boolean;
+}
+
+export interface IOptions {
+ rootDir: string;
+ materialTemplateDir: string;
+ templateOptions: ITemplateOptions;
+ enablePegasus?: boolean;
+ enableDefPublish?: boolean;
+ materialType: 'component' | 'block' | 'scaffold';
+}
+
export async function generateMaterial({
rootDir,
materialTemplateDir,
diff --git a/packages/generate-material/src/type.ts b/packages/generate-material/src/type.ts
deleted file mode 100644
index 8ffd6e8f6..000000000
--- a/packages/generate-material/src/type.ts
+++ /dev/null
@@ -1,24 +0,0 @@
-export interface ITemplateOptions {
- npmName: string; // @icedesign/ice-label
- name?: string; // ice-label (english and variable)
- kebabCaseName?: string; // ice-label
- npmScope?: string; // @icedesign
- title?: string; //
- description?: string;
- className?: string;
- version?: string;
- category?: string;
- // web, miniapp...
- projectTargets?: string[];
- adaptor?: boolean;
- useEjsTemplate?: boolean;
-}
-
-export interface IOptions {
- rootDir: string;
- materialTemplateDir: string;
- templateOptions: ITemplateOptions;
- enablePegasus?: boolean;
- enableDefPublish?: boolean;
- materialType: 'component' | 'block' | 'scaffold';
-}