[GitHub] incubator-weex issue #1084: [doc] fix playground link

2018-03-22 Thread weex-bot
Github user weex-bot commented on the issue:

https://github.com/apache/incubator-weex/pull/1084
  






  

  
  Messages

  
  
  :book:
  has no jsfm file changed.

  

  :book:
  jsfm test finished.

  




  Generated by :no_entry_sign: http://github.com/danger/danger-js/";>dangerJS




---


[GitHub] incubator-weex pull request #1084: [doc] fix playground link

2018-03-22 Thread RezaHaidari
GitHub user RezaHaidari opened a pull request:

https://github.com/apache/incubator-weex/pull/1084

[doc] fix playground link

First of all, thank you for your contribution! 

Please makes sure that these checkboxes are checked before submitting your 
PR, thank you!



CheckList:

**if** *isBugFix* **:**

  * [ ] Make sure that you add at least one unit test for the bug which you 
had fixed.

**elif** *isNewFeature* **:**

  * [ ] Update API docs for the component.
  * [ ] Update/Add demo to demonstrate new feature.
  * [ ] Update test scripts for the feature.
  * [ ] Add unit tests for the feature.






You can merge this pull request into a Git repository by running:

$ git pull https://github.com/RezaHaidari/incubator-weex master

Alternatively you can review and apply these changes as the patch at:

https://github.com/apache/incubator-weex/pull/1084.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

This closes #1084


commit 35e20b1c3a4efc730f634b7857c2da02f76d5dbd
Author: Reza Haidari .A 
Date:   2018-03-23T04:17:34Z

[doc] fix playground url




---


[GitHub] incubator-weex issue #1083: [Andoird] travis java -Xmx=1g

2018-03-22 Thread weex-bot
Github user weex-bot commented on the issue:

https://github.com/apache/incubator-weex/pull/1083
  





  

  
  Warnings

  
  
  :warning:
  No Changelog changes!

  




  

  
  Messages

  
  
  :book:
  danger test finished.

  




  Generated by :no_entry_sign: http://github.com/danger/danger-js/";>dangerJS




---


[GitHub] incubator-weex pull request #1083: [Andoird] travis java -Xmx=1g

2018-03-22 Thread lucky-chen
GitHub user lucky-chen opened a pull request:

https://github.com/apache/incubator-weex/pull/1083

 [Andoird] travis java -Xmx=1g

edit travis.yml config, java -Xmx 512m->1024m

You can merge this pull request into a Git repository by running:

$ git pull https://github.com/lucky-chen/incubator-weex 
master_travis_java_heap_1g

Alternatively you can review and apply these changes as the patch at:

https://github.com/apache/incubator-weex/pull/1083.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

This closes #1083


commit 1dc10ab81e4b03788d092294ecf72539c68b5032
Author: zhongcang 
Date:   2018-03-23T03:43:48Z

* [Andoird] travis java -Xmx=1g

* [Android] add test code




---


[GitHub] incubator-weex pull request #1082: [Andoird] travis java -Xmx=1g

2018-03-22 Thread lucky-chen
Github user lucky-chen closed the pull request at:

https://github.com/apache/incubator-weex/pull/1082


---


[GitHub] incubator-weex issue #1082: [Andoird] travis java -Xmx=1g

2018-03-22 Thread weex-bot
Github user weex-bot commented on the issue:

https://github.com/apache/incubator-weex/pull/1082
  





  

  
  Warnings

  
  
  :warning:
  No Changelog changes!

  




  

  
  Messages

  
  
  :book:
  danger test finished.

  




  Generated by :no_entry_sign: http://github.com/danger/danger-js/";>dangerJS




---


[GitHub] incubator-weex pull request #1082: * [Andoird] travis java -Xmx=1g

2018-03-22 Thread lucky-chen
GitHub user lucky-chen opened a pull request:

https://github.com/apache/incubator-weex/pull/1082

* [Andoird] travis java -Xmx=1g

edit travis.yml config,   java -Xmx 512m->1024m 


You can merge this pull request into a Git repository by running:

$ git pull https://github.com/lucky-chen/incubator-weex 
master_travis_java_heap_1g

Alternatively you can review and apply these changes as the patch at:

https://github.com/apache/incubator-weex/pull/1082.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

This closes #1082


commit 39461cfb0aea45aa3fbbe0f0ca4c3be153f97d77
Author: zhongcang 
Date:   2018-03-23T03:43:48Z

* [Andoird] travis java -Xmx=1g




---


[GitHub] incubator-weex pull request #1080: [Android] new feature for weex performanc...

2018-03-22 Thread lucky-chen
GitHub user lucky-chen reopened a pull request:

https://github.com/apache/incubator-weex/pull/1080

[Android] new feature for weex performance (single commit)

# commit msg

- support more performance data about weex performance


  * [ ] Update API docs for the component.
  * [x] Update/Add demo to demonstrate new feature.
  * [x] Update test scripts for the feature.
  * [ ] Add unit tests for the feature.

# Detail

## errorGroup

- degradation
-  js
-  render

## performance

 - JSLibSize
 - JSLibInitTime
 -   SDKInitTime
  -  SDKInitInvokeTime
  -  SDKInitExecuteTime
  - JSTemplateSize
  - pureNetworkTime
 -   networkTime
  -  fsCreateInstanceTime
  -  fsCallJsTotalTime
  -  fsCallJsTotalNum
  -  fsCallNativeTotalTime
  -  fsCallNativeTotalNum
  -  fsCallEventTotalNum
   - fsRenderTime
   - fsRequestNum
  -  callCreateFinishTime
   - cellExceedNum
   - communicateTotalTime
   - maxDeepViewLayer
   - maxDeepVDomLayer
   - componentCount
   - avgFps
   - timerCount
-imgSizeCount
-   interactionTime


 




You can merge this pull request into a Git repository by running:

$ git pull https://github.com/lucky-chen/incubator-weex 
master_gky_commit_chen

Alternatively you can review and apply these changes as the patch at:

https://github.com/apache/incubator-weex/pull/1080.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

This closes #1080


commit 495c7acafbe6e71ab879de02821986d08aaea0fb
Author: zhongcang 
Date:   2018-03-22T08:10:52Z

* [Android] merge WXPerformance code,now support more performance data




---


[GitHub] incubator-weex pull request #1080: [Android] new feature for weex performanc...

2018-03-22 Thread lucky-chen
Github user lucky-chen closed the pull request at:

https://github.com/apache/incubator-weex/pull/1080


---


incubator-weex git commit: *[android] playground weekly release 0.18.0-beta-2

2018-03-22 Thread misakuo
Repository: incubator-weex
Updated Branches:
  refs/heads/master f27bf04c4 -> 14059467b


*[android] playground weekly release 0.18.0-beta-2


Project: http://git-wip-us.apache.org/repos/asf/incubator-weex/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-weex/commit/14059467
Tree: http://git-wip-us.apache.org/repos/asf/incubator-weex/tree/14059467
Diff: http://git-wip-us.apache.org/repos/asf/incubator-weex/diff/14059467

Branch: refs/heads/master
Commit: 14059467bd969288ad04b62a0839f8b83bf6d5e7
Parents: f27bf04
Author: misakuo 
Authored: Fri Mar 23 10:45:34 2018 +0800
Committer: misakuo 
Committed: Fri Mar 23 10:45:34 2018 +0800

--
 android/playground/app/build.gradle | 4 ++--
 android/sdk/build.gradle| 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/14059467/android/playground/app/build.gradle
--
diff --git a/android/playground/app/build.gradle 
b/android/playground/app/build.gradle
index 20d10e4..ede9c84 100755
--- a/android/playground/app/build.gradle
+++ b/android/playground/app/build.gradle
@@ -8,8 +8,8 @@ android {
 applicationId "com.alibaba.weex"
 minSdkVersion project.appMinSdkVersion
 targetSdkVersion project.targetSdkVersion
-versionCode 15
-versionName "0.18.0-beta-1"
+versionCode 16
+versionName "0.18.0-beta-2"
 testInstrumentationRunner 
"android.support.test.runner.AndroidJUnitRunner"
 ndk{
 abiFilters "x86"

http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/14059467/android/sdk/build.gradle
--
diff --git a/android/sdk/build.gradle b/android/sdk/build.gradle
index 7e7569d..728e1c6 100755
--- a/android/sdk/build.gradle
+++ b/android/sdk/build.gradle
@@ -40,7 +40,7 @@ checkstyle {
 toolVersion = '6.9'
 }
 
-version = "0.18.0-beta-1"
+version = "0.18.0-beta-2"
 
 android {
 compileSdkVersion project.compileSdkVersion



[GitHub] incubator-weex pull request #1080: [Android] new feature for weex performanc...

2018-03-22 Thread lucky-chen
Github user lucky-chen closed the pull request at:

https://github.com/apache/incubator-weex/pull/1080


---


[GitHub] incubator-weex pull request #1080: [Android] new feature for weex performanc...

2018-03-22 Thread lucky-chen
GitHub user lucky-chen reopened a pull request:

https://github.com/apache/incubator-weex/pull/1080

[Android] new feature for weex performance (single commit)

# commit msg

- support more performance data about weex performance


  * [ ] Update API docs for the component.
  * [x] Update/Add demo to demonstrate new feature.
  * [x] Update test scripts for the feature.
  * [ ] Add unit tests for the feature.

# Detail

## errorGroup

- degradation
-  js
-  render

## performance

 - JSLibSize
 - JSLibInitTime
 -   SDKInitTime
  -  SDKInitInvokeTime
  -  SDKInitExecuteTime
  - JSTemplateSize
  - pureNetworkTime
 -   networkTime
  -  fsCreateInstanceTime
  -  fsCallJsTotalTime
  -  fsCallJsTotalNum
  -  fsCallNativeTotalTime
  -  fsCallNativeTotalNum
  -  fsCallEventTotalNum
   - fsRenderTime
   - fsRequestNum
  -  callCreateFinishTime
   - cellExceedNum
   - communicateTotalTime
   - maxDeepViewLayer
   - maxDeepVDomLayer
   - componentCount
   - avgFps
   - timerCount
-imgSizeCount
-   interactionTime


 




You can merge this pull request into a Git repository by running:

$ git pull https://github.com/lucky-chen/incubator-weex 
master_gky_commit_chen

Alternatively you can review and apply these changes as the patch at:

https://github.com/apache/incubator-weex/pull/1080.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

This closes #1080


commit 495c7acafbe6e71ab879de02821986d08aaea0fb
Author: zhongcang 
Date:   2018-03-22T08:10:52Z

* [Android] merge WXPerformance code,now support more performance data




---


[GitHub] incubator-weex pull request #1080: [Android] new feature for weex performanc...

2018-03-22 Thread lucky-chen
GitHub user lucky-chen reopened a pull request:

https://github.com/apache/incubator-weex/pull/1080

[Android] new feature for weex performance (single commit)

# commit msg

- support more performance data about weex performance


  * [ ] Update API docs for the component.
  * [x] Update/Add demo to demonstrate new feature.
  * [x] Update test scripts for the feature.
  * [ ] Add unit tests for the feature.

# Detail

## errorGroup

- degradation
-  js
-  render

## performance

 - JSLibSize
 - JSLibInitTime
 -   SDKInitTime
  -  SDKInitInvokeTime
  -  SDKInitExecuteTime
  - JSTemplateSize
  - pureNetworkTime
 -   networkTime
  -  fsCreateInstanceTime
  -  fsCallJsTotalTime
  -  fsCallJsTotalNum
  -  fsCallNativeTotalTime
  -  fsCallNativeTotalNum
  -  fsCallEventTotalNum
   - fsRenderTime
   - fsRequestNum
  -  callCreateFinishTime
   - cellExceedNum
   - communicateTotalTime
   - maxDeepViewLayer
   - maxDeepVDomLayer
   - componentCount
   - avgFps
   - timerCount
-imgSizeCount
-   interactionTime


 




You can merge this pull request into a Git repository by running:

$ git pull https://github.com/lucky-chen/incubator-weex 
master_gky_commit_chen

Alternatively you can review and apply these changes as the patch at:

https://github.com/apache/incubator-weex/pull/1080.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

This closes #1080


commit 495c7acafbe6e71ab879de02821986d08aaea0fb
Author: zhongcang 
Date:   2018-03-22T08:10:52Z

* [Android] merge WXPerformance code,now support more performance data




---


[GitHub] incubator-weex pull request #1080: [Android] new feature for weex performanc...

2018-03-22 Thread lucky-chen
Github user lucky-chen closed the pull request at:

https://github.com/apache/incubator-weex/pull/1080


---


[GitHub] incubator-weex pull request #1080: [Android] new feature for weex performanc...

2018-03-22 Thread lucky-chen
Github user lucky-chen closed the pull request at:

https://github.com/apache/incubator-weex/pull/1080


---


[GitHub] incubator-weex pull request #1080: [Android] new feature for weex performanc...

2018-03-22 Thread lucky-chen
GitHub user lucky-chen reopened a pull request:

https://github.com/apache/incubator-weex/pull/1080

[Android] new feature for weex performance (single commit)

# commit msg

- support more performance data about weex performance


  * [ ] Update API docs for the component.
  * [x] Update/Add demo to demonstrate new feature.
  * [x] Update test scripts for the feature.
  * [ ] Add unit tests for the feature.

# Detail

## errorGroup

- degradation
-  js
-  render

## performance

 - JSLibSize
 - JSLibInitTime
 -   SDKInitTime
  -  SDKInitInvokeTime
  -  SDKInitExecuteTime
  - JSTemplateSize
  - pureNetworkTime
 -   networkTime
  -  fsCreateInstanceTime
  -  fsCallJsTotalTime
  -  fsCallJsTotalNum
  -  fsCallNativeTotalTime
  -  fsCallNativeTotalNum
  -  fsCallEventTotalNum
   - fsRenderTime
   - fsRequestNum
  -  callCreateFinishTime
   - cellExceedNum
   - communicateTotalTime
   - maxDeepViewLayer
   - maxDeepVDomLayer
   - componentCount
   - avgFps
   - timerCount
-imgSizeCount
-   interactionTime


 




You can merge this pull request into a Git repository by running:

$ git pull https://github.com/lucky-chen/incubator-weex 
master_gky_commit_chen

Alternatively you can review and apply these changes as the patch at:

https://github.com/apache/incubator-weex/pull/1080.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

This closes #1080


commit 495c7acafbe6e71ab879de02821986d08aaea0fb
Author: zhongcang 
Date:   2018-03-22T08:10:52Z

* [Android] merge WXPerformance code,now support more performance data




---


[GitHub] incubator-weex pull request #1080: [Android] new feature for weex performanc...

2018-03-22 Thread lucky-chen
Github user lucky-chen closed the pull request at:

https://github.com/apache/incubator-weex/pull/1080


---


[GitHub] incubator-weex pull request #1080: [Android] new feature for weex performanc...

2018-03-22 Thread lucky-chen
GitHub user lucky-chen reopened a pull request:

https://github.com/apache/incubator-weex/pull/1080

[Android] new feature for weex performance (single commit)

# commit msg

- support more performance data about weex performance


  * [ ] Update API docs for the component.
  * [x] Update/Add demo to demonstrate new feature.
  * [x] Update test scripts for the feature.
  * [ ] Add unit tests for the feature.

# Detail

## errorGroup

- degradation
-  js
-  render

## performance

 - JSLibSize
 - JSLibInitTime
 -   SDKInitTime
  -  SDKInitInvokeTime
  -  SDKInitExecuteTime
  - JSTemplateSize
  - pureNetworkTime
 -   networkTime
  -  fsCreateInstanceTime
  -  fsCallJsTotalTime
  -  fsCallJsTotalNum
  -  fsCallNativeTotalTime
  -  fsCallNativeTotalNum
  -  fsCallEventTotalNum
   - fsRenderTime
   - fsRequestNum
  -  callCreateFinishTime
   - cellExceedNum
   - communicateTotalTime
   - maxDeepViewLayer
   - maxDeepVDomLayer
   - componentCount
   - avgFps
   - timerCount
-imgSizeCount
-   interactionTime


 




You can merge this pull request into a Git repository by running:

$ git pull https://github.com/lucky-chen/incubator-weex 
master_gky_commit_chen

Alternatively you can review and apply these changes as the patch at:

https://github.com/apache/incubator-weex/pull/1080.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

This closes #1080


commit 495c7acafbe6e71ab879de02821986d08aaea0fb
Author: zhongcang 
Date:   2018-03-22T08:10:52Z

* [Android] merge WXPerformance code,now support more performance data




---


[GitHub] incubator-weex pull request #1080: [Android] new feature for weex performanc...

2018-03-22 Thread lucky-chen
GitHub user lucky-chen reopened a pull request:

https://github.com/apache/incubator-weex/pull/1080

[Android] new feature for weex performance (single commit)

# commit msg

- support more performance data about weex performance


  * [ ] Update API docs for the component.
  * [x] Update/Add demo to demonstrate new feature.
  * [x] Update test scripts for the feature.
  * [ ] Add unit tests for the feature.

# Detail

## errorGroup

- degradation
-  js
-  render

## performance

 - JSLibSize
 - JSLibInitTime
 -   SDKInitTime
  -  SDKInitInvokeTime
  -  SDKInitExecuteTime
  - JSTemplateSize
  - pureNetworkTime
 -   networkTime
  -  fsCreateInstanceTime
  -  fsCallJsTotalTime
  -  fsCallJsTotalNum
  -  fsCallNativeTotalTime
  -  fsCallNativeTotalNum
  -  fsCallEventTotalNum
   - fsRenderTime
   - fsRequestNum
  -  callCreateFinishTime
   - cellExceedNum
   - communicateTotalTime
   - maxDeepViewLayer
   - maxDeepVDomLayer
   - componentCount
   - avgFps
   - timerCount
-imgSizeCount
-   interactionTime


 




You can merge this pull request into a Git repository by running:

$ git pull https://github.com/lucky-chen/incubator-weex 
master_gky_commit_chen

Alternatively you can review and apply these changes as the patch at:

https://github.com/apache/incubator-weex/pull/1080.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

This closes #1080


commit 495c7acafbe6e71ab879de02821986d08aaea0fb
Author: zhongcang 
Date:   2018-03-22T08:10:52Z

* [Android] merge WXPerformance code,now support more performance data




---


[GitHub] incubator-weex pull request #1080: [Android] new feature for weex performanc...

2018-03-22 Thread lucky-chen
Github user lucky-chen closed the pull request at:

https://github.com/apache/incubator-weex/pull/1080


---


[2/7] incubator-weex-site git commit: Fix a lot of 404 local path

2018-03-22 Thread hanks
Fix a lot of 404 local path


Project: http://git-wip-us.apache.org/repos/asf/incubator-weex-site/repo
Commit: 
http://git-wip-us.apache.org/repos/asf/incubator-weex-site/commit/06f9ee6c
Tree: http://git-wip-us.apache.org/repos/asf/incubator-weex-site/tree/06f9ee6c
Diff: http://git-wip-us.apache.org/repos/asf/incubator-weex-site/diff/06f9ee6c

Branch: refs/heads/master
Commit: 06f9ee6cbe6b973b9d8ea0c832b88a8b017678ac
Parents: 8fcc513
Author: Zhenfei You 
Authored: Thu Mar 22 17:06:16 2018 +0800
Committer: Zhenfei You 
Committed: Thu Mar 22 17:06:26 2018 +0800

--
 source/cn/guide/index.md |  4 ++--
 source/cn/guide/use-vue.md   |  2 +-
 source/cn/references/components/cell.md  |  4 ++--
 source/cn/references/components/div.md   |  4 ++--
 source/cn/references/components/indicator.md |  4 ++--
 source/cn/references/components/input.md |  6 +++---
 source/cn/references/components/list.md  |  4 ++--
 source/cn/references/components/loading.md   |  2 +-
 source/cn/references/components/refresh.md   |  2 +-
 source/cn/references/components/scroller.md  |  4 ++--
 source/cn/references/components/slider.md|  4 ++--
 source/cn/references/components/switch.md|  4 ++--
 source/cn/references/components/text.md  |  2 +-
 source/cn/references/components/textarea.md  |  6 +++---
 source/cn/references/components/video.md |  2 +-
 source/cn/references/components/waterfall.md |  4 ++--
 source/cn/references/modules/storage.md  |  1 +
 source/cn/releasenote.md |  6 +++---
 source/cn/tools/index.md |  4 ++--
 source/cn/tools/toolkit.md   |  7 ---
 source/cn/wiki/css-units.md  |  2 +-
 source/cn/wiki/faq.md|  6 +++---
 source/cn/wiki/index.md  | 10 +-
 source/cn/wiki/platform-difference.md| 10 +-
 source/cn/wiki/text-styles.md|  2 +-
 source/contributing.md   |  4 ++--
 source/development-process.md|  6 --
 source/guide/create-a-plugin.md  |  2 +-
 source/guide/index.md|  4 ++--
 source/guide/use-vue.md  |  2 +-
 source/references/components/cell.md |  8 
 source/references/components/div.md  |  8 
 source/references/components/indicator.md|  8 
 source/references/components/input.md|  8 
 source/references/components/list.md |  8 
 source/references/components/loading.md  |  2 +-
 source/references/components/refresh.md  |  2 +-
 source/references/components/scroller.md |  8 
 source/references/components/slider.md   | 10 +-
 source/references/components/switch.md   |  8 
 source/references/components/text.md |  6 +++---
 source/references/components/textarea.md |  8 
 source/references/components/video.md|  2 +-
 source/references/components/waterfall.md|  8 
 source/references/weex-variable.md   |  2 +-
 source/releasenote.md|  6 +++---
 source/tools/index.md|  4 ++--
 source/tools/toolkit.md  | 14 +++---
 source/wiki/faq.md   |  8 
 source/wiki/index.md | 14 +++---
 source/wiki/text-styles.md   |  2 +-
 51 files changed, 136 insertions(+), 132 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/incubator-weex-site/blob/06f9ee6c/source/cn/guide/index.md
--
diff --git a/source/cn/guide/index.md b/source/cn/guide/index.md
index 400da60..f6f257e 100644
--- a/source/cn/guide/index.md
+++ b/source/cn/guide/index.md
@@ -26,7 +26,7 @@ Weex 的另一个主要目标是跟进当代先进的 Web 
开发和原生开发
 
 ![Weex Example](../../guide/images/weex-example-yo.png)
 
-这个例子在屏幕正中间渲染了一个单词 “Yo”。 如果你
想在移动设备上预览渲染结果,你只需要安装[Weex playground 
app](https://weex.apache.org/cn/tools/playground.html) 或将 Weex SDK 
集成到您自己的应用程序中,然后使用扫描网页右侧的二维ç 
ã€‚
+这个例子在屏幕正中间渲染了一个单词 “Yo”。 如果你
想在移动设备上预览渲染结果,你只需要安装[Weex playground 
app](https://weex-project.io/playground.html) 或将 Weex SDK 
集成到您自己的应用程序中,然后使用扫描网页右侧的二维ç 
ã€‚
 
 在源代码的 `` 中,`` 你应该很熟悉了,它在 Weex 
平台上也是一个通用容器。但是 `` 组件是由 Weex 
特有的,它是一个块级的文本容器,可以用来渲染文字。
 
@@ 

[4/7] incubator-weex-site git commit: Revert unnecessary changes in relasenote

2018-03-22 Thread hanks
Revert unnecessary changes in relasenote


Project: http://git-wip-us.apache.org/repos/asf/incubator-weex-site/repo
Commit: 
http://git-wip-us.apache.org/repos/asf/incubator-weex-site/commit/0bee04f7
Tree: http://git-wip-us.apache.org/repos/asf/incubator-weex-site/tree/0bee04f7
Diff: http://git-wip-us.apache.org/repos/asf/incubator-weex-site/diff/0bee04f7

Branch: refs/heads/master
Commit: 0bee04f73cd06c1f977e99a05fff5c66cd2a62ef
Parents: 06f9ee6
Author: Zhenfei You 
Authored: Thu Mar 22 17:45:55 2018 +0800
Committer: Zhenfei You 
Committed: Thu Mar 22 17:45:55 2018 +0800

--
 source/cn/releasenote.md | 6 +++---
 source/releasenote.md| 6 +++---
 2 files changed, 6 insertions(+), 6 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/incubator-weex-site/blob/0bee04f7/source/cn/releasenote.md
--
diff --git a/source/cn/releasenote.md b/source/cn/releasenote.md
index ba3ab43..5ead271 100644
--- a/source/cn/releasenote.md
+++ b/source/cn/releasenote.md
@@ -174,7 +174,7 @@ layout: post
 The former front-end framework (commonly known as `.we`), which is 
inspired by Vue 1.0, is deprecated. Although it still works well in this 
release, we suggest to migrate it to Vue 2.0.
   - SDK
 - New CSS support
-  - [text 
`font-weight`](https://weex-project.io/references/text-style.html)
+  - [text `font-weight`](https://weex.apache.org/wiki/text-styles.html)
 `font-weight` can set to [`normal`|`bold`] or 100-900.
   - gradient
 like CSS3, now you can use gradient in Weex. For example:
@@ -183,7 +183,7 @@ layout: post
 background-image: linear-gradient(to right, blue, white);
 ```
 
![img_1695](https://cloud.githubusercontent.com/assets/115201/23015955/ba075876-f46f-11e6-9d88-2ca3096551b9.jpeg)
-[Read more about 
gradient](https://weex-project.io/references/common-style.html).
+[Read more about 
gradient](https://weex.apache.org/wiki/common-styles.html#linear-gradient-v0-10).
   - Pseudo class
 Currently, Weex supports 4 pseudo classes:`active`, `focus`, 
`disabled`, `enabled`.
 - New BroadcastChannel API
@@ -225,7 +225,7 @@ layout: post
   - Has full set of commands for developers to setup android/ios 
application with his .we/.vue files.
   - Developers could easily pack/install his application with simple 
command.
   - Has full set of commands for developers to manage weex plugins, 
including create plugin template, add plugin to his project etc.
-  - [Plugin market](http://market.weex-project.io) was formally used for 
developers to publish/download weex plugins.
+  - [Plugin market](https://market.dotwe.org) was formally used for 
developers to publish/download weex plugins.
 
 
 ## v0.9.4

http://git-wip-us.apache.org/repos/asf/incubator-weex-site/blob/0bee04f7/source/releasenote.md
--
diff --git a/source/releasenote.md b/source/releasenote.md
index ba3ab43..5ead271 100644
--- a/source/releasenote.md
+++ b/source/releasenote.md
@@ -174,7 +174,7 @@ layout: post
 The former front-end framework (commonly known as `.we`), which is 
inspired by Vue 1.0, is deprecated. Although it still works well in this 
release, we suggest to migrate it to Vue 2.0.
   - SDK
 - New CSS support
-  - [text 
`font-weight`](https://weex-project.io/references/text-style.html)
+  - [text `font-weight`](https://weex.apache.org/wiki/text-styles.html)
 `font-weight` can set to [`normal`|`bold`] or 100-900.
   - gradient
 like CSS3, now you can use gradient in Weex. For example:
@@ -183,7 +183,7 @@ layout: post
 background-image: linear-gradient(to right, blue, white);
 ```
 
![img_1695](https://cloud.githubusercontent.com/assets/115201/23015955/ba075876-f46f-11e6-9d88-2ca3096551b9.jpeg)
-[Read more about 
gradient](https://weex-project.io/references/common-style.html).
+[Read more about 
gradient](https://weex.apache.org/wiki/common-styles.html#linear-gradient-v0-10).
   - Pseudo class
 Currently, Weex supports 4 pseudo classes:`active`, `focus`, 
`disabled`, `enabled`.
 - New BroadcastChannel API
@@ -225,7 +225,7 @@ layout: post
   - Has full set of commands for developers to setup android/ios 
application with his .we/.vue files.
   - Developers could easily pack/install his application with simple 
command.
   - Has full set of commands for developers to manage weex plugins, 
including create plugin template, add plugin to his project etc.
-  - [Plugin market](http://market.weex-project.io) was formally used for 
developers to publish/download weex plugins.
+  - [Plugin market](https://market.dotwe.org) was formally used for 
developers to publish/d

[7/7] incubator-weex-site git commit: Update url validator to scan local path and fix 404 local path (#118)

2018-03-22 Thread hanks
Update url validator to scan local path and fix 404 local path (#118)

close #105


Project: http://git-wip-us.apache.org/repos/asf/incubator-weex-site/repo
Commit: 
http://git-wip-us.apache.org/repos/asf/incubator-weex-site/commit/da4a81e4
Tree: http://git-wip-us.apache.org/repos/asf/incubator-weex-site/tree/da4a81e4
Diff: http://git-wip-us.apache.org/repos/asf/incubator-weex-site/diff/da4a81e4

Branch: refs/heads/master
Commit: da4a81e4de53dac692e6b6175899115a03276bc5
Parents: 4dedcdf 15a0788
Author: Hanks 
Authored: Thu Mar 22 19:01:23 2018 +0800
Committer: Hanks 
Committed: Thu Mar 22 19:01:23 2018 +0800

--
 package-lock.json|  9 +++
 package.json |  1 +
 source/cn/guide/index.md |  8 +--
 source/cn/guide/use-vue.md   |  2 +-
 source/cn/references/components/cell.md  |  4 +-
 source/cn/references/components/div.md   |  4 +-
 source/cn/references/components/indicator.md |  4 +-
 source/cn/references/components/input.md |  6 +-
 source/cn/references/components/list.md  |  4 +-
 source/cn/references/components/loading.md   |  2 +-
 source/cn/references/components/refresh.md   |  2 +-
 source/cn/references/components/scroller.md  |  4 +-
 source/cn/references/components/slider.md|  4 +-
 source/cn/references/components/switch.md|  4 +-
 source/cn/references/components/text.md  |  2 +-
 source/cn/references/components/textarea.md  |  6 +-
 source/cn/references/components/video.md |  2 +-
 source/cn/references/components/waterfall.md |  4 +-
 source/cn/references/modules/storage.md  |  1 +
 source/cn/tools/index.md |  4 +-
 source/cn/tools/toolkit.md   | 21 +++
 source/cn/wiki/css-units.md  |  2 +-
 source/cn/wiki/faq.md|  6 +-
 source/cn/wiki/index.md  | 10 ++--
 source/cn/wiki/platform-difference.md| 10 ++--
 source/cn/wiki/text-styles.md|  2 +-
 source/contributing.md   |  4 +-
 source/development-process.md|  6 +-
 source/guide/create-a-plugin.md  |  2 +-
 source/guide/index.md|  6 +-
 source/guide/use-vue.md  |  2 +-
 source/references/components/cell.md |  8 +--
 source/references/components/div.md  |  8 +--
 source/references/components/indicator.md|  8 +--
 source/references/components/input.md|  8 +--
 source/references/components/list.md |  8 +--
 source/references/components/loading.md  |  2 +-
 source/references/components/refresh.md  |  2 +-
 source/references/components/scroller.md |  8 +--
 source/references/components/slider.md   | 10 ++--
 source/references/components/switch.md   |  8 +--
 source/references/components/text.md |  6 +-
 source/references/components/textarea.md |  8 +--
 source/references/components/video.md|  2 +-
 source/references/components/waterfall.md|  8 +--
 source/references/weex-variable.md   |  2 +-
 source/tools/index.md|  4 +-
 source/tools/toolkit.md  | 10 ++--
 source/wiki/faq.md   |  8 +--
 source/wiki/index.md | 14 ++---
 source/wiki/text-styles.md   |  2 +-
 test/url-validator.js| 69 ++-
 52 files changed, 203 insertions(+), 148 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/incubator-weex-site/blob/da4a81e4/source/cn/references/components/input.md
--

http://git-wip-us.apache.org/repos/asf/incubator-weex-site/blob/da4a81e4/source/cn/references/components/slider.md
--

http://git-wip-us.apache.org/repos/asf/incubator-weex-site/blob/da4a81e4/source/references/components/input.md
--

http://git-wip-us.apache.org/repos/asf/incubator-weex-site/blob/da4a81e4/source/references/components/slider.md
--
diff --cc source/references/components/slider.md
index d822760,6d3b377..05cfd3d
--- a/source/references/components/slider.md
+++ b/source/references/components/slider.md
@@@ -22,12 -22,8 +22,12 @@@ It supports all kinds of weex component
  - `interval`:  millisecond. This value determines time interval 
for each page displayed in slider.
  - `index`:  . This value determines the  index of current shown 
slide. The default value is `0`.
  - `offset-x-accuracy {float}`:set the scroll event trigger precision, 
precision value represents the rolling distance of a page width ra

[6/7] incubator-weex-site git commit: update doc of input&slider&pickers (#117)

2018-03-22 Thread hanks
update doc of input&slider&pickers (#117)


Project: http://git-wip-us.apache.org/repos/asf/incubator-weex-site/repo
Commit: 
http://git-wip-us.apache.org/repos/asf/incubator-weex-site/commit/4dedcdfc
Tree: http://git-wip-us.apache.org/repos/asf/incubator-weex-site/tree/4dedcdfc
Diff: http://git-wip-us.apache.org/repos/asf/incubator-weex-site/diff/4dedcdfc

Branch: refs/heads/master
Commit: 4dedcdfc552045799145af07592d9c3609a75c9e
Parents: ff1c81f bc465a5
Author: Hanks 
Authored: Thu Mar 22 18:03:25 2018 +0800
Committer: Hanks 
Committed: Thu Mar 22 18:03:25 2018 +0800

--
 source/cn/references/components/input.md  | 10 +-
 source/cn/references/components/slider.md |  4 
 source/cn/references/modules/picker.md|  9 +
 source/references/components/input.md | 10 +-
 source/references/components/slider.md|  4 
 source/references/modules/picker.md   |  9 +
 6 files changed, 44 insertions(+), 2 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/incubator-weex-site/blob/4dedcdfc/source/cn/references/components/input.md
--

http://git-wip-us.apache.org/repos/asf/incubator-weex-site/blob/4dedcdfc/source/cn/references/components/slider.md
--
diff --cc source/cn/references/components/slider.md
index ad90222,18feaaf..b230221
--- a/source/cn/references/components/slider.md
+++ b/source/cn/references/components/slider.md
@@@ -25,10 -25,11 +25,14 @@@ version: 2.
  - `interval {number}`:值为毫秒数,此值设定 slider 
切换时间间隔。当 `auto-play` 值为 `true` 时生效。
  - `infinite {boolean}`:循环播放,可选值为 
`true`/`false`,默认的是 `true`。
  - `offset-x-accuracy {number}`0.11+:控制`onscroll`事件触发的频率,默认值为10,表示两次`onscroll`事件之间Slider
 
Page至少滚动了10px。注意,将该值设置为较小的数值会提高滚动事件采æ
 ·çš„精度,但同时也会降低页面的性能。
+ - `show-indicators {boolean}`:设置是否显示indicator
+ - `index {number}`:设置显示slider的第几个页面
+ - `scrollable 
{boolean}`:设置是否可以通过滑动手势来切换slider页面
+ - `keep-index 
{boolean}`:设置slider中的数据发生变化后是否保持变化前的页面index
  
 +- `index {number}`: 指定当前展示页面的索引
 +  [体验一下](http://dotwe.org/vue/58a29d38247e7946a6db44e1b616f082)
 +
  ## 样式
  
  - 通用样式:支持所有通用样式

http://git-wip-us.apache.org/repos/asf/incubator-weex-site/blob/4dedcdfc/source/cn/references/modules/picker.md
--

http://git-wip-us.apache.org/repos/asf/incubator-weex-site/blob/4dedcdfc/source/references/components/input.md
--

http://git-wip-us.apache.org/repos/asf/incubator-weex-site/blob/4dedcdfc/source/references/components/slider.md
--
diff --cc source/references/components/slider.md
index b6bec18,74c8487..d822760
--- a/source/references/components/slider.md
+++ b/source/references/components/slider.md
@@@ -22,10 -22,11 +22,14 @@@ It supports all kinds of weex component
  - `interval`:  millisecond. This value determines time interval 
for each page displayed in slider.
  - `index`:  . This value determines the  index of current shown 
slide. The default value is `0`.
  - `offset-x-accuracy {float}`:set the scroll event trigger precision, 
precision value represents the rolling distance of a page width ratio.
+ - `show-indicators {boolean}`:set whether to display indicator
+ - `infinite {boolean}`:set whether the page in the slider can be scrolled
+ - `scrollable {boolean}`:set whether slider pages can be switched by 
sliding gestures
+ - `keep-index {boolean}`:set whether to maintain the index of the page 
after the data changes
  
 +- `index {number}`: specify current page index of slider 
 +  [try in dotWe](http://dotwe.org/vue/58a29d38247e7946a6db44e1b616f082)
 +
  ## Styles
  
  **common styles**: check out [common styles for 
components](../common-style.html)

http://git-wip-us.apache.org/repos/asf/incubator-weex-site/blob/4dedcdfc/source/references/modules/picker.md
--



[3/7] incubator-weex-site git commit: Add local file scan and fix to url validator

2018-03-22 Thread hanks
Add local file scan and fix to url validator


Project: http://git-wip-us.apache.org/repos/asf/incubator-weex-site/repo
Commit: 
http://git-wip-us.apache.org/repos/asf/incubator-weex-site/commit/8fcc5138
Tree: http://git-wip-us.apache.org/repos/asf/incubator-weex-site/tree/8fcc5138
Diff: http://git-wip-us.apache.org/repos/asf/incubator-weex-site/diff/8fcc5138

Branch: refs/heads/master
Commit: 8fcc513871610090849dcaf4c3339b14c1d8624f
Parents: ff1c81f
Author: Zhenfei You 
Authored: Thu Mar 22 17:05:51 2018 +0800
Committer: Zhenfei You 
Committed: Thu Mar 22 17:06:26 2018 +0800

--
 package-lock.json |  9 ++
 package.json  |  1 +
 test/url-validator.js | 69 --
 3 files changed, 65 insertions(+), 14 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/incubator-weex-site/blob/8fcc5138/package-lock.json
--
diff --git a/package-lock.json b/package-lock.json
index c9344bd..660f566 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -6130,6 +6130,15 @@
 "limiter": "1.1.2"
   }
 },
+"string-similarity": {
+  "version": "1.2.0",
+  "resolved": 
"https://registry.npmjs.org/string-similarity/-/string-similarity-1.2.0.tgz";,
+  "integrity": "sha1-11FTyzg4RjGLejmo2SkrtNtOnDA=",
+  "dev": true,
+  "requires": {
+"lodash": "4.17.4"
+  }
+},
 "string-width": {
   "version": "1.0.2",
   "resolved": 
"https://registry.npmjs.org/string-width/-/string-width-1.0.2.tgz";,

http://git-wip-us.apache.org/repos/asf/incubator-weex-site/blob/8fcc5138/package.json
--
diff --git a/package.json b/package.json
index e2ba441..f567920 100644
--- a/package.json
+++ b/package.json
@@ -37,6 +37,7 @@
 "find-line-column": "^0.5.2",
 "glob": "^7.1.2",
 "node-fetch": "^2.1.1",
+"string-similarity": "^1.2.0",
 "url-extractor": "^2.0.2"
   }
 }

http://git-wip-us.apache.org/repos/asf/incubator-weex-site/blob/8fcc5138/test/url-validator.js
--
diff --git a/test/url-validator.js b/test/url-validator.js
index f020d52..198dc9b 100644
--- a/test/url-validator.js
+++ b/test/url-validator.js
@@ -1,8 +1,10 @@
-const glob = require('glob')
 const fs = require('fs')
+const path = require('path')
+const glob = require('glob')
+const chalk = require('chalk')
 const fetch = require('node-fetch')
 const urlExtractor = require('url-extractor')
-const chalk = require('chalk')
+const similarity = require('string-similarity')
 const findLineColumn = require('find-line-column')
 
 const extractUrls = urlExtractor.extractUrls
@@ -32,25 +34,64 @@ glob('source/**/*.md', (err, files) => {
 // '//xxx.com' -> 'http://xxx.com'
 if (url.match(/^\/\//)) url = 'http:' + url
 
-// ignore non-http(s)
-if (!url.match(/^https?:\/\//)) return
 // ignore whitelist
 for (let i = 0; i < whiteList.length; i++) {
   if (url.match(whiteList[i])) return
 }
 
-// using fetch to test whether available
-fetch(url)
-  .then(res => {
-if (res.status >= 400) {
-  log(res.status, url, file, position);
-}
-  })
-  .catch(err => {
-if (err.code !== 'ECONNREFUSED' && err.code !== 'ECONNRESET') {
-  log(err.code, url, file, position)
+if (url.match(/^https?:\/\//)) {
+  // using fetch to test whether available
+  fetch(url)
+.then(res => {
+  if (res.status >= 400) {
+log(res.status, url, file, position);
+  }
+})
+.catch(err => {
+  if (err.code !== 'ECONNREFUSED' && err.code !== 'ECONNRESET') {
+log(err.code, url, file, position)
+  }
+})
+} else if (url.match(/^.{0,2}\//)) {
+  // test local path
+  let targetPath
+  if (url.startsWith('/')) {
+// '/wiki' -> 'source/wiki'
+targetPath = path.resolve('source', url.substring(1))
+  } else {
+targetPath = path.resolve(path.dirname(file), url)
+  }
+  // 'a.html#title1' -> '#title1
+  const urlHash = url.split('#')[1] ? '#' + url.split('#')[1] : ''
+  // 'a.html#title1' -> 'a.html' -> 'a.md
+  targetPath = targetPath.replace(/#(.*)/, '').replace('.html', '.md')
+  fs.access(targetPath, err => {
+if (err) {
+  let patternDir
+  const option = {
+cwd: 'source'
+  }
+  if (file.indexOf('/cn/') >= 0) {
+patternDir = 'cn/**/'
+  } else

[5/7] incubator-weex-site git commit: Fix absolute URL to local relative path

2018-03-22 Thread hanks
Fix absolute URL to local relative path


Project: http://git-wip-us.apache.org/repos/asf/incubator-weex-site/repo
Commit: 
http://git-wip-us.apache.org/repos/asf/incubator-weex-site/commit/15a0788b
Tree: http://git-wip-us.apache.org/repos/asf/incubator-weex-site/tree/15a0788b
Diff: http://git-wip-us.apache.org/repos/asf/incubator-weex-site/diff/15a0788b

Branch: refs/heads/master
Commit: 15a0788b016886651bdf466c88c257442a5e82cd
Parents: 0bee04f
Author: Zhenfei You 
Authored: Thu Mar 22 17:22:44 2018 +0800
Committer: Zhenfei You 
Committed: Thu Mar 22 18:03:00 2018 +0800

--
 source/cn/guide/index.md   |  6 +++---
 source/cn/tools/toolkit.md | 16 
 source/guide/index.md  |  4 ++--
 source/tools/toolkit.md| 12 ++--
 4 files changed, 19 insertions(+), 19 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/incubator-weex-site/blob/15a0788b/source/cn/guide/index.md
--
diff --git a/source/cn/guide/index.md b/source/cn/guide/index.md
index f6f257e..28c987b 100644
--- a/source/cn/guide/index.md
+++ b/source/cn/guide/index.md
@@ -26,7 +26,7 @@ Weex 的另一个主要目标是跟进当代先进的 Web 
开发和原生开发
 
 ![Weex Example](../../guide/images/weex-example-yo.png)
 
-这个例子在屏幕正中间渲染了一个单词 “Yo”。 如果你
想在移动设备上预览渲染结果,你只需要安装[Weex playground 
app](https://weex-project.io/playground.html) 或将 Weex SDK 
集成到您自己的应用程序中,然后使用扫描网页右侧的二维ç 
ã€‚
+这个例子在屏幕正中间渲染了一个单词 “Yo”。 如果你
想在移动设备上预览渲染结果,你只需要安装[Weex playground 
app](/cn/tools/playground.html) 或将 Weex SDK 
集成到您自己的应用程序中,然后使用扫描网页右侧的二维ç 
ã€‚
 
 在源代码的 `` 中,`` 你应该很熟悉了,它在 Weex 
平台上也是一个通用容器。但是 `` 组件是由 Weex 
特有的,它是一个块级的文本容器,可以用来渲染文字。
 
@@ -89,7 +89,7 @@ Weex 可以只编写一份代ç 
ï¼Œå¼€å‘出三端都可用的页面。
 
 > 以下步骤假设您已经了解了 Node.js 和 npm 
 > 的基本知识。如果对它们不熟悉,可以访问 
 > [https://docs.npmjs.com/](https://docs.npmjs.com/) 来了解更多关于 npm 
 > 的用法。
 
-Weex 提供了一个命令行工具 
[weex-toolkit](http://weex-project.io/tools/toolkit.html) 来帮助开发者
使用 Weex。它可以用来快速创建一个空项目、初始化 iOS 和 
Android 开发环境、调试、安装插件等操作。
+Weex 提供了一个命令行工具 [weex-toolkit](/cn/tools/toolkit.html) 
来帮助开发者使用 
Weex。它可以用来快速创建一个空项目、初始化 iOS 和 Android 
开发环境、调试、安装插件等操作。
 
 目前 `weex-toolkit` 只支持创建 Vue.js 的项目。创建 Rax 
的项目可以使用 `rax-cli`,参考 [Rax 
的官方网站](https://alibaba.github.io/rax/) 了解其用法。
 
@@ -123,7 +123,7 @@ npm start
 
 ![Preview](../../guide/images/toolkit-preview.png)
 
-除此之外,你还可以打开 `http://localhost:8081/preview.html` 
开启一个预览页面,它会把 web 端的页面放在一个 iframe 
中渲染,而且在右侧生成一个二维码。用 [Weex playground 
app](http://weex-project.io/playground.html) 扫描这个二维ç 
å¯ä»¥çœ‹åˆ°é¡µé¢åœ¨æ‰‹æœºä¸Šæ¸²æŸ“的真实效果。
+除此之外,你还可以打开 `http://localhost:8081/preview.html` 
开启一个预览页面,它会把 web 端的页面放在一个 iframe 
中渲染,而且在右侧生成一个二维码。用 [Weex playground 
app](/cn/tools/playground.html) 扫描这个二维ç 
å¯ä»¥çœ‹åˆ°é¡µé¢åœ¨æ‰‹æœºä¸Šæ¸²æŸ“的真实效果。
 
 ### 编译和运行
 

http://git-wip-us.apache.org/repos/asf/incubator-weex-site/blob/15a0788b/source/cn/tools/toolkit.md
--
diff --git a/source/cn/tools/toolkit.md b/source/cn/tools/toolkit.md
index 0c66756..fb8043e 100644
--- a/source/cn/tools/toolkit.md
+++ b/source/cn/tools/toolkit.md
@@ -50,7 +50,7 @@ weex-toolkit工具支持对你
的Weex文件(`.we`或`.vue`)在监听模式下
 $ weex preview src/foo.vue
 ```
 
-浏览器会自动得打开预览页面并且你可以看到你
的weex页面的布局和效果。如果你在你的设备上安装
了[Playground](https://weex.apache.org/cn/playground.html),你
还可以通过扫描页面上的二维码来查看页面。
+浏览器会自动得打开预览页面并且你可以看到你
的weex页面的布局和效果。如果你在你的设备上安装
了[Playground](/cn/tools/playground.html),你
还可以通过扫描页面上的二维码来查看页面。
 
 使用下面的命令ï¼

commits@weex.incubator.apache.org

2018-03-22 Thread hanks
Repository: incubator-weex-site
Updated Branches:
  refs/heads/master ff1c81fc3 -> da4a81e4d


update doc of input&slider&pickers


Project: http://git-wip-us.apache.org/repos/asf/incubator-weex-site/repo
Commit: 
http://git-wip-us.apache.org/repos/asf/incubator-weex-site/commit/bc465a5e
Tree: http://git-wip-us.apache.org/repos/asf/incubator-weex-site/tree/bc465a5e
Diff: http://git-wip-us.apache.org/repos/asf/incubator-weex-site/diff/bc465a5e

Branch: refs/heads/master
Commit: bc465a5e8e4159440ffc06006e0ae3b2bb599d59
Parents: 58feaa3
Author: moxun.ljf 
Authored: Thu Mar 22 12:02:23 2018 +0800
Committer: moxun.ljf 
Committed: Thu Mar 22 12:02:23 2018 +0800

--
 source/cn/references/components/input.md  | 10 +-
 source/cn/references/components/slider.md |  4 
 source/cn/references/modules/picker.md|  9 +
 source/references/components/input.md | 10 +-
 source/references/components/slider.md|  4 
 source/references/modules/picker.md   |  9 +
 6 files changed, 44 insertions(+), 2 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/incubator-weex-site/blob/bc465a5e/source/cn/references/components/input.md
--
diff --git a/source/cn/references/components/input.md 
b/source/cn/references/components/input.md
index c97dc04..6782b29 100644
--- a/source/cn/references/components/input.md
+++ b/source/cn/references/components/input.md
@@ -125,9 +125,17 @@ Weex 内置的 `` 
组件用来创建接收用户输入字符的输入组
 - `setSelectionRange(selectionStart,selectionEnd)`  v0.11+设置文本选区
   - `selectionStart {number}`:设置文本选区的起始点
   - `selectionEnd {number}`:设置文本选区的起终点
-- `getEditSelectionRange(callback[selectionStart,selectionEnd])`  v0.11+设置文本选区
+- `getSelectionRange(callback[selectionStart,selectionEnd])`  v0.11+设置文本选区
 - `selectionStart {number}`:获取文本选区的起始点
 - `selectionEnd {number}`:获取文本选区的起终点
+- `setTextFormatter(params)`v0.18+:这是一个非常有用的特性,可以对input设置一组对输å
…¥çš„内容进行实时格式化的规则。
+- `params {object}`:格式化规则,包含以下参数:
+  - `formatRule {regexp}`:格式化匹配的正则表达式
+  - `formatReplace {string}`:格式化匹配后用于替换的内容
+  - `recoverRule {regexp}`:从格式化后的内容还原原始内
容的正则表达式
+  - `recoverReplace {string}`:还原原始内容时用于替换的内容
+
+`setTextFormatter` 的详细使用方法请参照 
[示例](http://dotwe.org/vue/bea3cb0cad697829d8d343552a2b7b77)
 ## 约束
 
 目前不支持 `this.$el(id).value = ''` 这种方式改写 input 
value。只支持在 `` 组件的 `input`、`change` 事件中改写。

http://git-wip-us.apache.org/repos/asf/incubator-weex-site/blob/bc465a5e/source/cn/references/components/slider.md
--
diff --git a/source/cn/references/components/slider.md 
b/source/cn/references/components/slider.md
index bb2098d..18feaaf 100644
--- a/source/cn/references/components/slider.md
+++ b/source/cn/references/components/slider.md
@@ -25,6 +25,10 @@ version: 2.1
 - `interval {number}`:值为毫秒数,此值设定 slider 
切换时间间隔。当 `auto-play` 值为 `true` 时生效。
 - `infinite {boolean}`:循环播放,可选值为 
`true`/`false`,默认的是 `true`。
 - `offset-x-accuracy {number}`0.11+:控制`onscroll`事件触发的频率,默认值为10,表示两次`onscroll`事件之间Slider
 
Page至少滚动了10px。注意,将该值设置为较小的数值会提高滚动事件采æ
 ·çš„精度,但同时也会降低页面的性能。
+- `show-indicators {boolean}`:设置是否显示indicator
+- `index {number}`:设置显示slider的第几个页面
+- `scrollable 
{boolean}`:设置是否可以通过滑动手势来切换slider页面
+- `keep-index 
{boolean}`:设置slider中的数据发生变化后是否保持变化前的页面index
 
 ## 样式
 

http://git-wip-us.apache.org/repos/asf/incubator-weex-site/blob/bc465a5e/source/cn/references/modules/picker.md
--
diff --git a/source/cn/references/modules/picker.md 
b/source/cn/references/modules/picker.md
index ed1cff2..35e3db5 100644
--- a/source/cn/references/modules/picker.md
+++ b/source/cn/references/modules/picker.md
@@ -24,6 +24,15 @@ version: 2.1
 - `options {Object}`:调用单选 picker 选项
   - `index {number}`:默认选中的选项
   - `items {array}`:picker 数据源
+  - `textColor {color}`:picker中文字的颜色
+  - `selectionColor {color}`:picker中选中item的背景色
+  - `co

[GitHub] incubator-weex issue #1081: [WEEX-261][android]Flat GUI NullPointerException...

2018-03-22 Thread weex-bot
Github user weex-bot commented on the issue:

https://github.com/apache/incubator-weex/pull/1081
  





  

  
  Warnings

  
  
  :warning:
  No Changelog changes!

  

  :warning:
  Potential BREAK CHANGE. Modify public in 
android/sdk/src/main/java/com/taobao/weex/ui/WXComponentRegistry.java without 
metion it in commit message. You'd better add '@notdanger' in your commit log. 


  




  

  
  Messages

  
  
  :book:
  danger test finished.

  




  Generated by :no_entry_sign: http://github.com/danger/danger-js/";>dangerJS




---


[GitHub] incubator-weex pull request #1081: [WEEX-261][android]Flat GUI NullPointerEx...

2018-03-22 Thread gubaojian
GitHub user gubaojian opened a pull request:

https://github.com/apache/incubator-weex/pull/1081

[WEEX-261][android]Flat GUI NullPointerException fix

[WEEX-261][android]Flat GUI NullPointerException fix

You can merge this pull request into a Git repository by running:

$ git pull https://github.com/gubaojian/incubator-weex release-0.18-scroller

Alternatively you can review and apply these changes as the patch at:

https://github.com/apache/incubator-weex/pull/1081.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

This closes #1081


commit 8e6299d37750a54bf88d33f7cfefe108febae666
Author: jianbai.gbj 
Date:   2018-03-20T02:56:12Z

[WEEX-253][android]WXScroller Handler should use mainLooper ensure main 
thread

commit 6e5558bef03ed69f7d651ac09db46c201309a9c3
Author: jianbai.gbj 
Date:   2018-03-22T06:25:24Z

[WEEX-261][android]Flat GUI NullPointerException fix

commit a6fa146cb97fbcd38d75e5c8cd20a2165c5dbb78
Author: jianbai.gbj 
Date:   2018-03-22T07:05:33Z

[WEEX-261][android]Flat GUI NullPointerException fix

commit 1e70579d30f65f13498907b1816ee92bb4b10d41
Author: jianbai.gbj 
Date:   2018-03-22T09:54:08Z

[WEEX-261][android]Flat GUI NullPointerException fix




---


[GitHub] incubator-weex pull request #1074: [WEEX-253][android]WXScroller Handler sho...

2018-03-22 Thread gubaojian
Github user gubaojian closed the pull request at:

https://github.com/apache/incubator-weex/pull/1074


---


[GitHub] incubator-weex pull request #1080: [Android] new feature for weex performanc...

2018-03-22 Thread lucky-chen
Github user lucky-chen closed the pull request at:

https://github.com/apache/incubator-weex/pull/1080


---


[GitHub] incubator-weex pull request #1080: [Android] new feature for weex performanc...

2018-03-22 Thread lucky-chen
GitHub user lucky-chen reopened a pull request:

https://github.com/apache/incubator-weex/pull/1080

[Android] new feature for weex performance (single commit)

# commit msg

- support more performance data about weex performance


  * [ ] Update API docs for the component.
  * [x] Update/Add demo to demonstrate new feature.
  * [x] Update test scripts for the feature.
  * [ ] Add unit tests for the feature.

# Detail

## errorGroup

- degradation
-  js
-  render

## performance

 - JSLibSize
 - JSLibInitTime
 -   SDKInitTime
  -  SDKInitInvokeTime
  -  SDKInitExecuteTime
  - JSTemplateSize
  - pureNetworkTime
 -   networkTime
  -  fsCreateInstanceTime
  -  fsCallJsTotalTime
  -  fsCallJsTotalNum
  -  fsCallNativeTotalTime
  -  fsCallNativeTotalNum
  -  fsCallEventTotalNum
   - fsRenderTime
   - fsRequestNum
  -  callCreateFinishTime
   - cellExceedNum
   - communicateTotalTime
   - maxDeepViewLayer
   - maxDeepVDomLayer
   - componentCount
   - avgFps
   - timerCount
-imgSizeCount
-   interactionTime


 




You can merge this pull request into a Git repository by running:

$ git pull https://github.com/lucky-chen/incubator-weex 
master_gky_commit_chen

Alternatively you can review and apply these changes as the patch at:

https://github.com/apache/incubator-weex/pull/1080.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

This closes #1080


commit 495c7acafbe6e71ab879de02821986d08aaea0fb
Author: zhongcang 
Date:   2018-03-22T08:10:52Z

* [Android] merge WXPerformance code,now support more performance data




---


[GitHub] incubator-weex issue #1080: [Android] new feature for weex performance (sing...

2018-03-22 Thread weex-bot
Github user weex-bot commented on the issue:

https://github.com/apache/incubator-weex/pull/1080
  





  

  
  Warnings

  
  
  :warning:
  No Changelog changes!

  

  :warning:
  Potential BREAK CHANGE. Modify public in 
android/sdk/src/main/java/com/taobao/weex/common/WXJSExceptionInfo.java without 
metion it in commit message. You'd better add '@notdanger' in your commit log. 


  

  :warning:
  Potential BREAK CHANGE. Modify public in 
android/sdk/src/main/java/com/taobao/weex/common/WXPerformance.java without 
metion it in commit message. You'd better add '@notdanger' in your commit log. 


  

  :warning:
  Potential BREAK CHANGE. Modify public in 
android/sdk/src/main/java/com/taobao/weex/dom/WXDomObject.java without metion 
it in commit message. You'd better add '@notdanger' in your commit log. 

  

  :warning:
  Potential BREAK CHANGE. Modify public in 
android/sdk/src/main/java/com/taobao/weex/WXSDKInstance.java without metion it 
in commit message. You'd better add '@notdanger' in your commit log. 

  




  

  
  Messages

  
  
  :book:
  danger test finished.

  




  Generated by :no_entry_sign: http://github.com/danger/danger-js/";>dangerJS




---


[GitHub] incubator-weex pull request #1063: [Android] new feature for weex performanc...

2018-03-22 Thread lucky-chen
Github user lucky-chen closed the pull request at:

https://github.com/apache/incubator-weex/pull/1063


---


[GitHub] incubator-weex pull request #1080: [Android] new feature for weex performanc...

2018-03-22 Thread lucky-chen
GitHub user lucky-chen opened a pull request:

https://github.com/apache/incubator-weex/pull/1080

[Android] new feature for weex performance (single commit)

# commit msg

- support more performance data about weex performance


  * [ ] Update API docs for the component.
  * [x] Update/Add demo to demonstrate new feature.
  * [x] Update test scripts for the feature.
  * [ ] Add unit tests for the feature.

# Detail

## errorGroup

- degradation
-  js
-  render

## performance

 - JSLibSize
 - JSLibInitTime
 -   SDKInitTime
  -  SDKInitInvokeTime
  -  SDKInitExecuteTime
  - JSTemplateSize
  - pureNetworkTime
 -   networkTime
  -  fsCreateInstanceTime
  -  fsCallJsTotalTime
  -  fsCallJsTotalNum
  -  fsCallNativeTotalTime
  -  fsCallNativeTotalNum
  -  fsCallEventTotalNum
   - fsRenderTime
   - fsRequestNum
  -  callCreateFinishTime
   - cellExceedNum
   - communicateTotalTime
   - maxDeepViewLayer
   - maxDeepVDomLayer
   - componentCount
   - avgFps
   - timerCount
-imgSizeCount
-   interactionTime


 




You can merge this pull request into a Git repository by running:

$ git pull https://github.com/lucky-chen/incubator-weex 
master_gky_commit_chen

Alternatively you can review and apply these changes as the patch at:

https://github.com/apache/incubator-weex/pull/1080.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

This closes #1080


commit 495c7acafbe6e71ab879de02821986d08aaea0fb
Author: zhongcang 
Date:   2018-03-22T08:10:52Z

* [Android] merge WXPerformance code,now support more performance data




---


[GitHub] incubator-weex issue #1076: [Weex-260][iOS]switch supports setting color

2018-03-22 Thread acton393
Github user acton393 commented on the issue:

https://github.com/apache/incubator-weex/pull/1076
  
it looks good to me , accepted


---


incubator-weex git commit: [Weex-260][iOS] switch supports setting color close #1076

2018-03-22 Thread acton393
Repository: incubator-weex
Updated Branches:
  refs/heads/master 40c6c191a -> f27bf04c4


[Weex-260][iOS] switch supports setting color
close #1076


Project: http://git-wip-us.apache.org/repos/asf/incubator-weex/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-weex/commit/f27bf04c
Tree: http://git-wip-us.apache.org/repos/asf/incubator-weex/tree/f27bf04c
Diff: http://git-wip-us.apache.org/repos/asf/incubator-weex/diff/f27bf04c

Branch: refs/heads/master
Commit: f27bf04c4e50b37ce1f5e86d152f3f725fa9b733
Parents: 40c6c19
Author: Tw93 
Authored: Tue Mar 20 15:23:09 2018 +0800
Committer: acton393 
Committed: Thu Mar 22 16:15:05 2018 +0800

--
 .../Sources/Component/WXSwitchComponent.m   | 49 
 1 file changed, 49 insertions(+)
--


http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/f27bf04c/ios/sdk/WeexSDK/Sources/Component/WXSwitchComponent.m
--
diff --git a/ios/sdk/WeexSDK/Sources/Component/WXSwitchComponent.m 
b/ios/sdk/WeexSDK/Sources/Component/WXSwitchComponent.m
index 2ab57a9..f5f9ce2 100644
--- a/ios/sdk/WeexSDK/Sources/Component/WXSwitchComponent.m
+++ b/ios/sdk/WeexSDK/Sources/Component/WXSwitchComponent.m
@@ -36,6 +36,16 @@
 @property (nonatomic, assign)   BOOLchecked;
 @property (nonatomic, assign)   BOOLdisabled;
 
+//Background color when the switch is turned on.
+@property (nonatomic, strong)  UIColor *onTintColor;
+
+
+//Color of the foreground switch grip.
+@property (nonatomic, strong)  UIColor *thumbTintColor;
+
+//Border color and background color on Android when the switch is turned off
+@property (nonatomic, strong)  UIColor *tintColor;
+
 @end
 
 @implementation WXSwitchComponent
@@ -46,6 +56,18 @@
 _checked = attributes[@"checked"] ? [WXConvert 
BOOL:attributes[@"checked"]] : NO;
 _disabled = attributes[@"disabled"] ? [WXConvert 
BOOL:attributes[@"disabled"]] : NO;
 
+if(attributes[@"onTintColor"]){
+_onTintColor = [WXConvert UIColor:attributes[@"onTintColor"]];
+}
+
+if(attributes[@"thumbTintColor"]){
+_thumbTintColor = [WXConvert 
UIColor:attributes[@"thumbTintColor"]];
+}
+
+if(attributes[@"tintColor"]){
+_tintColor = [WXConvert UIColor:attributes[@"tintColor"]];
+}
+
 self.cssNode->style.dimensions[CSS_WIDTH] = 51;
 self.cssNode->style.dimensions[CSS_HEIGHT] = 31;
 }
@@ -64,6 +86,18 @@
 [_switchView setOn:_checked animated:YES];
 [_switchView setEnabled:!_disabled];
 [_switchView addTarget:self action:@selector(checkChanged) 
forControlEvents:UIControlEventValueChanged];
+
+if(_onTintColor){
+_switchView.onTintColor = _onTintColor;
+}
+
+if(_tintColor){
+_switchView.tintColor = _tintColor;
+}
+
+if(_thumbTintColor){
+_switchView.thumbTintColor = _thumbTintColor;
+}
 }
 
 - (void)addEvent:(NSString *)eventName
@@ -90,6 +124,21 @@
 _disabled = [WXConvert BOOL:attributes[@"disabled"]];
 [_switchView setEnabled:!_disabled];
 }
+
+if(attributes[@"onTintColor"]){
+_onTintColor = [WXConvert UIColor:attributes[@"onTintColor"]];
+_switchView.onTintColor = _onTintColor;
+}
+
+if(attributes[@"thumbTintColor"]){
+_thumbTintColor = [WXConvert UIColor:attributes[@"thumbTintColor"]];
+_switchView.thumbTintColor = _thumbTintColor;
+}
+
+if(attributes[@"tintColor"]){
+_tintColor = [WXConvert UIColor:attributes[@"tintColor"]];
+_switchView.tintColor = _tintColor;
+}
 }
 
 - (void)checkChanged



[GitHub] incubator-weex pull request #1076: [Weex-260][iOS]switch supports setting co...

2018-03-22 Thread asfgit
Github user asfgit closed the pull request at:

https://github.com/apache/incubator-weex/pull/1076


---


[GitHub] incubator-weex pull request #1079: [WEEX-262][iOS] Add new interface of Inst...

2018-03-22 Thread asfgit
Github user asfgit closed the pull request at:

https://github.com/apache/incubator-weex/pull/1079


---


incubator-weex git commit: [WEEX-262][iOS] Add new interface of Instance, which will terminate render process after bundleJS download finished.

2018-03-22 Thread acton393
Repository: incubator-weex
Updated Branches:
  refs/heads/master 83d254398 -> 40c6c191a


[WEEX-262][iOS] Add new interface of Instance,which will terminate render 
process after bundleJS download finished.


Project: http://git-wip-us.apache.org/repos/asf/incubator-weex/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-weex/commit/40c6c191
Tree: http://git-wip-us.apache.org/repos/asf/incubator-weex/tree/40c6c191
Diff: http://git-wip-us.apache.org/repos/asf/incubator-weex/diff/40c6c191

Branch: refs/heads/master
Commit: 40c6c191aaa83a98fec5243a5d18e0f70f26c956
Parents: 83d2543
Author: boboning 
Authored: Thu Mar 22 15:37:14 2018 +0800
Committer: boboning 
Committed: Thu Mar 22 15:48:32 2018 +0800

--
 ios/sdk/WeexSDK/Sources/Model/WXSDKInstance.h | 7 +++
 ios/sdk/WeexSDK/Sources/Model/WXSDKInstance.m | 6 ++
 2 files changed, 13 insertions(+)
--


http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/40c6c191/ios/sdk/WeexSDK/Sources/Model/WXSDKInstance.h
--
diff --git a/ios/sdk/WeexSDK/Sources/Model/WXSDKInstance.h 
b/ios/sdk/WeexSDK/Sources/Model/WXSDKInstance.h
index 1d92352..23eae9e 100644
--- a/ios/sdk/WeexSDK/Sources/Model/WXSDKInstance.h
+++ b/ios/sdk/WeexSDK/Sources/Model/WXSDKInstance.h
@@ -167,6 +167,13 @@ typedef NS_ENUM(NSInteger, WXErrorCode) {//error.code
 @property (nonatomic, copy) void(^onJSDownloadedFinish)(WXResourceResponse 
*response,WXResourceRequest *request,NSData *data, NSError* error);
 
 /**
+ * The callback triggered when the bundleJS request finished in the 
renderWithURL. If the callback returns YES, the render process will terminate.
+ * @return A block that takes response which the server response,request which 
send to server,data which the server returned and an error
+ */
+@property (nonatomic, copy) BOOL 
(^onRenderTerminateWhenJSDownloadedFinish)(WXResourceResponse 
*response,WXResourceRequest *request,NSData *data, NSError* error);
+
+
+/**
  *  the frame of current instance.
  **/
 @property (nonatomic, assign) CGRect frame;

http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/40c6c191/ios/sdk/WeexSDK/Sources/Model/WXSDKInstance.m
--
diff --git a/ios/sdk/WeexSDK/Sources/Model/WXSDKInstance.m 
b/ios/sdk/WeexSDK/Sources/Model/WXSDKInstance.m
index e3aafcc..79abbbd 100644
--- a/ios/sdk/WeexSDK/Sources/Model/WXSDKInstance.m
+++ b/ios/sdk/WeexSDK/Sources/Model/WXSDKInstance.m
@@ -320,6 +320,12 @@ typedef enum : NSUInteger {
 WX_MONITOR_SUCCESS_ON_PAGE(WXMTJSDownload, strongSelf.pageName);
 WX_MONITOR_INSTANCE_PERF_END(WXPTJSDownload, strongSelf);
 
+if (strongSelf.onRenderTerminateWhenJSDownloadedFinish) {
+if (strongSelf.onRenderTerminateWhenJSDownloadedFinish(response, 
request, data, error)) {
+return;
+}
+}
+
 [strongSelf _renderWithMainBundleString:jsBundleString];
 [WXTracingManager setBundleJSType:jsBundleString 
instanceId:weakSelf.instanceId];
 };



[GitHub] incubator-weex issue #1079: [WEEX-262][iOS] Add new interface of Instance,wh...

2018-03-22 Thread weex-bot
Github user weex-bot commented on the issue:

https://github.com/apache/incubator-weex/pull/1079
  





  

  
  Warnings

  
  
  :warning:
  No Changelog changes!

  




  

  
  Messages

  
  
  :book:
  danger test finished.

  




  Generated by :no_entry_sign: http://github.com/danger/danger-js/";>dangerJS




---


[GitHub] incubator-weex pull request #1079: [WEEX-262][iOS] Add new interface of Inst...

2018-03-22 Thread boboning
GitHub user boboning opened a pull request:

https://github.com/apache/incubator-weex/pull/1079

[WEEX-262][iOS] Add new interface of Instance,which will terminate re…

We hope to have some chance to terminate render process  after BundleJS 
download has finished。Then,we will handle the BundleJS and continue render.

You can merge this pull request into a Git repository by running:

$ git pull https://github.com/boboning/incubator-weex master

Alternatively you can review and apply these changes as the patch at:

https://github.com/apache/incubator-weex/pull/1079.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

This closes #1079






---


[1/2] incubator-weex git commit: [WEEX-261][android]Flat GUI NullPointerException fix

2018-03-22 Thread misakuo
Repository: incubator-weex
Updated Branches:
  refs/heads/master a1d4ed2cd -> 83d254398


[WEEX-261][android]Flat GUI NullPointerException fix


Project: http://git-wip-us.apache.org/repos/asf/incubator-weex/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-weex/commit/83d25439
Tree: http://git-wip-us.apache.org/repos/asf/incubator-weex/tree/83d25439
Diff: http://git-wip-us.apache.org/repos/asf/incubator-weex/diff/83d25439

Branch: refs/heads/master
Commit: 83d254398d088f8047362a14dd7d582f08cc87d9
Parents: 9dcd0cd
Author: jianbai.gbj 
Authored: Thu Mar 22 15:05:33 2018 +0800
Committer: misakuo 
Committed: Thu Mar 22 15:43:30 2018 +0800

--
 .../java/com/taobao/weex/ui/WXComponentRegistry.java |  5 +++--
 .../taobao/weex/ui/config/AutoScanConfigRegister.java| 11 +++
 2 files changed, 14 insertions(+), 2 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/83d25439/android/sdk/src/main/java/com/taobao/weex/ui/WXComponentRegistry.java
--
diff --git 
a/android/sdk/src/main/java/com/taobao/weex/ui/WXComponentRegistry.java 
b/android/sdk/src/main/java/com/taobao/weex/ui/WXComponentRegistry.java
index bfaff30..39e3b89 100644
--- a/android/sdk/src/main/java/com/taobao/weex/ui/WXComponentRegistry.java
+++ b/android/sdk/src/main/java/com/taobao/weex/ui/WXComponentRegistry.java
@@ -29,16 +29,17 @@ import java.util.ArrayList;
 import java.util.HashMap;
 import java.util.Map;
 import java.util.Objects;
+import java.util.concurrent.ConcurrentHashMap;
 
 /**
  * All components must be registered within this class before used.
  */
 public class WXComponentRegistry {
 
-  private static Map sTypeComponentMap = new 
HashMap<>();
+  private static Map sTypeComponentMap = new 
ConcurrentHashMap<>();
   private static ArrayList> sComponentInfos=new 
ArrayList<>();
 
-  public static boolean registerComponent(final String type, final 
IFComponentHolder holder, final Map componentInfo) throws 
WXException {
+  public static synchronized boolean registerComponent(final String type, 
final IFComponentHolder holder, final Map componentInfo) throws 
WXException {
 if (holder == null || TextUtils.isEmpty(type)) {
   return false;
 }

http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/83d25439/android/sdk/src/main/java/com/taobao/weex/ui/config/AutoScanConfigRegister.java
--
diff --git 
a/android/sdk/src/main/java/com/taobao/weex/ui/config/AutoScanConfigRegister.java
 
b/android/sdk/src/main/java/com/taobao/weex/ui/config/AutoScanConfigRegister.java
index 94278a9..5c35de6 100644
--- 
a/android/sdk/src/main/java/com/taobao/weex/ui/config/AutoScanConfigRegister.java
+++ 
b/android/sdk/src/main/java/com/taobao/weex/ui/config/AutoScanConfigRegister.java
@@ -45,6 +45,17 @@ public class AutoScanConfigRegister {
  * auto scan config files and do auto config from files, none need center 
register
  * */
 public static void doScanConfig(){
+   Thread thread = new Thread(new Runnable() {
+@Override
+public void run() {
+doScanConfigSync();
+}
+});
+   thread.setName("AutoScanConfigRegister");
+   thread.start();
+}
+
+private static void doScanConfigSync(){
 if(WXEnvironment.sApplication == null){
 return;
 }



[2/2] incubator-weex git commit: [WEEX-261][android]Flat GUI NullPointerException fix

2018-03-22 Thread misakuo
[WEEX-261][android]Flat GUI NullPointerException fix


Project: http://git-wip-us.apache.org/repos/asf/incubator-weex/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-weex/commit/9dcd0cdb
Tree: http://git-wip-us.apache.org/repos/asf/incubator-weex/tree/9dcd0cdb
Diff: http://git-wip-us.apache.org/repos/asf/incubator-weex/diff/9dcd0cdb

Branch: refs/heads/master
Commit: 9dcd0cdb6558228d2b6b59f63e8326495bb13cfd
Parents: a1d4ed2
Author: jianbai.gbj 
Authored: Thu Mar 22 14:25:24 2018 +0800
Committer: misakuo 
Committed: Thu Mar 22 15:43:30 2018 +0800

--
 .../main/java/com/taobao/weex/ui/component/WXComponent.java| 6 +-
 1 file changed, 5 insertions(+), 1 deletion(-)
--


http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/9dcd0cdb/android/sdk/src/main/java/com/taobao/weex/ui/component/WXComponent.java
--
diff --git 
a/android/sdk/src/main/java/com/taobao/weex/ui/component/WXComponent.java 
b/android/sdk/src/main/java/com/taobao/weex/ui/component/WXComponent.java
index 6522c9b..1dfb506 100644
--- a/android/sdk/src/main/java/com/taobao/weex/ui/component/WXComponent.java
+++ b/android/sdk/src/main/java/com/taobao/weex/ui/component/WXComponent.java
@@ -553,10 +553,14 @@ public abstract class  WXComponent 
implements IWXObject, IWXActi
 
   private void setComponentLayoutParams(int realWidth, int realHeight, int 
realLeft, int realTop,
   int realRight, int realBottom, Point rawOffset) {
+if(getInstance() == null || getInstance().isDestroy()){
+  return;
+}
+
 FlatGUIContext UIImp = getInstance().getFlatUIContext();
 WidgetContainer ancestor;
 Widget widget;
-if ((ancestor = UIImp.getFlatComponentAncestor(this)) != null) {
+if (UIImp != null && (ancestor = UIImp.getFlatComponentAncestor(this)) != 
null) {
   if (this instanceof FlatComponent && !((FlatComponent) 
this).promoteToView(true)) {
 widget = ((FlatComponent) this).getOrCreateFlatWidget();
   } else {



[GitHub] incubator-weex issue #1078: [WEEX-261][android]Flat GUI NullPointerException...

2018-03-22 Thread weex-bot
Github user weex-bot commented on the issue:

https://github.com/apache/incubator-weex/pull/1078
  






  

  
  Messages

  
  
  :book:
  has no jsfm file changed.

  

  :book:
  jsfm test finished.

  




  Generated by :no_entry_sign: http://github.com/danger/danger-js/";>dangerJS




---


[GitHub] incubator-weex pull request #1078: [WEEX-261][android]Flat GUI NullPointerEx...

2018-03-22 Thread gubaojian
Github user gubaojian closed the pull request at:

https://github.com/apache/incubator-weex/pull/1078


---


[GitHub] incubator-weex pull request #1078: [WEEX-261][android]Flat GUI NullPointerEx...

2018-03-22 Thread gubaojian
GitHub user gubaojian opened a pull request:

https://github.com/apache/incubator-weex/pull/1078

[WEEX-261][android]Flat GUI NullPointerException fix

[WEEX-261][android]Flat GUI NullPointerException fix

You can merge this pull request into a Git repository by running:

$ git pull https://github.com/gubaojian/incubator-weex master

Alternatively you can review and apply these changes as the patch at:

https://github.com/apache/incubator-weex/pull/1078.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

This closes #1078


commit 8a78db6aef80e4e049ef43636f70a96e810fd756
Author: jianbai.gbj 
Date:   2017-12-29T07:53:24Z

[android][WEEX-184]  Weex Android Playground Demo Show

commit d181854551ffe62678bbf30db84670f2c2473c31
Author: jianbai.gbj 
Date:   2018-01-03T06:38:05Z

Merge branch 'release-0.17-playground'

commit 5ff6b97f727daedbfeabb7bebdc891deaa13202a
Author: jianbai.gbj 
Date:   2018-01-09T06:45:24Z

Merge branch 'master' of https://github.com/apache/incubator-weex

commit 466f6ded8689663970fa82340239bc3e18961ea5
Author: jianbai.gbj 
Date:   2018-01-11T03:05:36Z

Merge branch 'master' of https://github.com/apache/incubator-weex

commit 2cb3dc34f5ed291119bdce5c2f390425996f8b08
Author: jianbai.gbj 
Date:   2018-01-11T03:13:10Z

[WEEX-130][android] High Performance Binary Wson Supported

commit 7c072b620a7bd1c0828e561bc003cccfb1d66e97
Author: jianbai.gbj 
Date:   2018-01-12T06:35:12Z

Merge branch 'master' of https://github.com/apache/incubator-weex




---


[GitHub] incubator-weex pull request #1077: [WEEX-261][android]Flat GUI NullPointerEx...

2018-03-22 Thread gubaojian
Github user gubaojian closed the pull request at:

https://github.com/apache/incubator-weex/pull/1077


---