[GitHub] incubator-weex issue #1084: [doc] fix playground link
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
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
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
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
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
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
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...
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...
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
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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
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
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)
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)
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
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
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
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...
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...
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...
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...
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...
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...
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...
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...
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
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
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...
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...
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.
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...
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...
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
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
[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...
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...
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...
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...
Github user gubaojian closed the pull request at: https://github.com/apache/incubator-weex/pull/1077 ---