You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@weex.apache.org by ha...@apache.org on 2018/03/20 08:21:13 UTC

[1/9] incubator-weex-site git commit: Update clipboard.md

Repository: incubator-weex-site
Updated Branches:
  refs/heads/master abbb45060 -> fb1e00223


Update clipboard.md

doc:update clipboard CN

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/131d8b3b
Tree: http://git-wip-us.apache.org/repos/asf/incubator-weex-site/tree/131d8b3b
Diff: http://git-wip-us.apache.org/repos/asf/incubator-weex-site/diff/131d8b3b

Branch: refs/heads/master
Commit: 131d8b3b91bf70d3b02db504963f2b7b3c6d66ef
Parents: b92ac3c
Author: 行久 <wi...@163.com>
Authored: Tue Mar 20 11:03:14 2018 +0800
Committer: GitHub <no...@github.com>
Committed: Tue Mar 20 11:03:14 2018 +0800

----------------------------------------------------------------------
 source/cn/references/modules/clipboard.md | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-weex-site/blob/131d8b3b/source/cn/references/modules/clipboard.md
----------------------------------------------------------------------
diff --git a/source/cn/references/modules/clipboard.md b/source/cn/references/modules/clipboard.md
index 9c2a18c..6aa2e89 100644
--- a/source/cn/references/modules/clipboard.md
+++ b/source/cn/references/modules/clipboard.md
@@ -12,7 +12,7 @@ version: 2.1
 
 我们可以通过 `clipboard` 模块的 `getString()`、`setString()` 接口从系统的粘贴板获取内容或者设置内容。
 
-以前当我们收到一条短信验证码信息时,除了人肉拷贝,我们无法获取拷贝短信的内容。这是非常苦恼的。但是现在我们可以通过简单的调用 `clipboard.getString()` 接口来获取短信内容了。
+以前当我们收到一条短信验证码信息时,除了人肉拷贝,我们无法获取拷贝短信的内容。这是非常苦恼的。目前很多手机自带一键复制短信中的验证码到剪贴板功能,再配合使用 `clipboard.getString()` 接口,就可以直接获取到验证码信息,并且进行下一步操作,例如帮助用户自动填到对应输入框中。
 
 **注意**
 


[2/9] incubator-weex-site git commit: Update storage.md

Posted by ha...@apache.org.
Update storage.md

doc: update storage EN

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/23c12f54
Tree: http://git-wip-us.apache.org/repos/asf/incubator-weex-site/tree/23c12f54
Diff: http://git-wip-us.apache.org/repos/asf/incubator-weex-site/diff/23c12f54

Branch: refs/heads/master
Commit: 23c12f5421cf4782bb4b968c776cde8febe34e98
Parents: b92ac3c
Author: 行久 <wi...@163.com>
Authored: Tue Mar 20 11:17:11 2018 +0800
Committer: GitHub <no...@github.com>
Committed: Tue Mar 20 11:17:11 2018 +0800

----------------------------------------------------------------------
 source/references/modules/storage.md | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-weex-site/blob/23c12f54/source/references/modules/storage.md
----------------------------------------------------------------------
diff --git a/source/references/modules/storage.md b/source/references/modules/storage.md
index 10875ff..22f3d69 100644
--- a/source/references/modules/storage.md
+++ b/source/references/modules/storage.md
@@ -11,14 +11,14 @@ version: 2.1
 
 ## Summary
 
-`storage` is a series of apis, allowing you to for example add, modify or delete stored data items.
+`storage` is a series of apis, support add, modify and delete stored data.
 
 ## API
 
 ### setItem(key, value, callback)
 
-When passed a key name and value, will add that key to the storage,
-or update that key's value if it already exists.
+When passed a key and a value, it will saved into the storage,
+or update the value if the key already exists.
 
 #### Arguments
 
@@ -28,7 +28,7 @@ or update that key's value if it already exists.
 
 ### getItem(key, callback)
 
-When passed a key name, will return that key's value.
+When passed a key, will return that key's value.
 
 #### Arguments
 
@@ -37,7 +37,7 @@ When passed a key name, will return that key's value.
 
 ### removeItem(key, callback)
 
-When passed a key name, will remove that key from the storage.
+When passed a key, will remove that key and value from the storage.
 
 #### Arguments
 
@@ -57,7 +57,7 @@ storage.removeItem('foo', function(e) {
 
 ### length(callback)
 
-Returns an integer representing the number of data items stored in the Storage object.
+Returns an integer representing the number of key-value items stored in the storage.
 
 #### Arguments
 
@@ -65,7 +65,7 @@ Returns an integer representing the number of data items stored in the Storage o
 
 ### getAllKeys(callback)
 
-Returns an array that contains all keys stored in Storage object.
+Returns an array that contains all keys stored in the storage.
 
 #### Arguments
 


[3/9] incubator-weex-site git commit: Update storage.md

Posted by ha...@apache.org.
Update storage.md

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/6433700d
Tree: http://git-wip-us.apache.org/repos/asf/incubator-weex-site/tree/6433700d
Diff: http://git-wip-us.apache.org/repos/asf/incubator-weex-site/diff/6433700d

Branch: refs/heads/master
Commit: 6433700dd4641b84baad2e9f184f9c4add8880f2
Parents: 23c12f5
Author: 行久 <wi...@163.com>
Authored: Tue Mar 20 11:26:10 2018 +0800
Committer: GitHub <no...@github.com>
Committed: Tue Mar 20 11:26:10 2018 +0800

----------------------------------------------------------------------
 source/references/modules/storage.md | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-weex-site/blob/6433700d/source/references/modules/storage.md
----------------------------------------------------------------------
diff --git a/source/references/modules/storage.md b/source/references/modules/storage.md
index 22f3d69..2a64999 100644
--- a/source/references/modules/storage.md
+++ b/source/references/modules/storage.md
@@ -13,6 +13,8 @@ version: 2.1
 
 `storage` is a series of apis, support add, modify and delete stored data.
 
+**Cauction**: There is NO same-origin-policy in weex storage moudle. Any one can access any key, even can change the value. So be careful of your usage.
+
 ## API
 
 ### setItem(key, value, callback)


[9/9] incubator-weex-site git commit: fix: change adapter url from dev branch to master in websocket page (#113)

Posted by ha...@apache.org.
fix: change adapter url from dev branch to master in websocket page (#113)


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/fb1e0022
Tree: http://git-wip-us.apache.org/repos/asf/incubator-weex-site/tree/fb1e0022
Diff: http://git-wip-us.apache.org/repos/asf/incubator-weex-site/diff/fb1e0022

Branch: refs/heads/master
Commit: fb1e00223898c592672fa0fade2a79eb43d20b3d
Parents: c5734a5 5f63837
Author: Hanks <zh...@gmail.com>
Authored: Tue Mar 20 16:20:20 2018 +0800
Committer: Hanks <zh...@gmail.com>
Committed: Tue Mar 20 16:20:20 2018 +0800

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



[8/9] incubator-weex-site git commit: fix a typo (#112)

Posted by ha...@apache.org.
fix a typo (#112)


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/c5734a5d
Tree: http://git-wip-us.apache.org/repos/asf/incubator-weex-site/tree/c5734a5d
Diff: http://git-wip-us.apache.org/repos/asf/incubator-weex-site/diff/c5734a5d

Branch: refs/heads/master
Commit: c5734a5d5e6d5472a9d9ce3a0768d689beaacf9f
Parents: d620159 4159002
Author: Hanks <zh...@gmail.com>
Authored: Tue Mar 20 16:19:43 2018 +0800
Committer: Hanks <zh...@gmail.com>
Committed: Tue Mar 20 16:19:43 2018 +0800

----------------------------------------------------------------------
 source/guide/advanced/path.md | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------



[5/9] incubator-weex-site git commit: fix: change adapter url from dev branch to master in websocket page

Posted by ha...@apache.org.
fix: change adapter url from dev branch to master in websocket page


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/5f63837e
Tree: http://git-wip-us.apache.org/repos/asf/incubator-weex-site/tree/5f63837e
Diff: http://git-wip-us.apache.org/repos/asf/incubator-weex-site/diff/5f63837e

Branch: refs/heads/master
Commit: 5f63837e46748b3e32483139dcedd075e665ca87
Parents: abbb450
Author: Zhenfei You <he...@imyzf.com>
Authored: Tue Mar 20 16:02:41 2018 +0800
Committer: Zhenfei You <he...@imyzf.com>
Committed: Tue Mar 20 16:02:41 2018 +0800

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


http://git-wip-us.apache.org/repos/asf/incubator-weex-site/blob/5f63837e/source/cn/references/modules/websocket.md
----------------------------------------------------------------------
diff --git a/source/cn/references/modules/websocket.md b/source/cn/references/modules/websocket.md
index c17577a..053fac9 100644
--- a/source/cn/references/modules/websocket.md
+++ b/source/cn/references/modules/websocket.md
@@ -15,9 +15,9 @@ WebSockets 是一种先进的技术, 这使得在用户的 H5/iOS/Android 和一
 
 ## **注意:**
 - iOS和h5提供 WebSockets 的 protocol 默认实现,安卓使用需要提供自定义 adapter 实现,source:
-  - [DefaultWebSocketAdapter.java](https://github.com/apache/incubator-weex/blob/dev/android/commons/src/main/java/com/alibaba/weex/commons/adapter/DefaultWebSocketAdapter.java);
-  - [DefaultWebSocketAdapterFactory.java](https://github.com/apache/incubator-weex/blob/dev/android/commons/src/main/java/com/alibaba/weex/commons/adapter/DefaultWebSocketAdapterFactory.java);
-  - 集成例子参考weex [playground](https://github.com/apache/incubator-weex/tree/dev/android/playground)
+  - [DefaultWebSocketAdapter.java](https://github.com/apache/incubator-weex/blob/master/android/commons/src/main/java/com/alibaba/weex/commons/adapter/DefaultWebSocketAdapter.java);
+  - [DefaultWebSocketAdapterFactory.java](https://github.com/apache/incubator-weex/blob/master/android/commons/src/main/java/com/alibaba/weex/commons/adapter/DefaultWebSocketAdapterFactory.java);
+  - 集成例子参考weex [playground](https://github.com/apache/incubator-weex/tree/master/android/playground)
 
 
 ## API

http://git-wip-us.apache.org/repos/asf/incubator-weex-site/blob/5f63837e/source/references/modules/websocket.md
----------------------------------------------------------------------
diff --git a/source/references/modules/websocket.md b/source/references/modules/websocket.md
index 55b6d5d..4b08a84 100644
--- a/source/references/modules/websocket.md
+++ b/source/references/modules/websocket.md
@@ -15,9 +15,9 @@ WebSockets is an advanced technology that makes it possible to open an interacti
 
 ## **Notes:**
 - iOS and h5 provide  webSocket default handle. if you use webSocket in android environment . you should provide custom adapter implementation,source:
-  - [DefaultWebSocketAdapter.java](https://github.com/apache/incubator-weex/blob/dev/android/commons/src/main/java/com/alibaba/weex/commons/adapter/DefaultWebSocketAdapter.java);
-  - [DefaultWebSocketAdapterFactory.java](https://github.com/apache/incubator-weex/blob/dev/android/commons/src/main/java/com/alibaba/weex/commons/adapter/DefaultWebSocketAdapterFactory.java);
-  - refer:  [weex playground](https://github.com/apache/incubator-weex/tree/dev/android/playground)
+  - [DefaultWebSocketAdapter.java](https://github.com/apache/incubator-weex/blob/master/android/commons/src/main/java/com/alibaba/weex/commons/adapter/DefaultWebSocketAdapter.java);
+  - [DefaultWebSocketAdapterFactory.java](https://github.com/apache/incubator-weex/blob/master/android/commons/src/main/java/com/alibaba/weex/commons/adapter/DefaultWebSocketAdapterFactory.java);
+  - refer:  [weex playground](https://github.com/apache/incubator-weex/tree/master/android/playground)
 
 ## API
 ### `WebSocket(url, protocol)`


[7/9] incubator-weex-site git commit: Update storage.md (#111)

Posted by ha...@apache.org.
Update storage.md (#111)


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/d620159d
Tree: http://git-wip-us.apache.org/repos/asf/incubator-weex-site/tree/d620159d
Diff: http://git-wip-us.apache.org/repos/asf/incubator-weex-site/diff/d620159d

Branch: refs/heads/master
Commit: d620159d29f03fe11fb0e1c4e472f5798e0689e5
Parents: 1bd7aea 6433700
Author: Hanks <zh...@gmail.com>
Authored: Tue Mar 20 16:18:18 2018 +0800
Committer: Hanks <zh...@gmail.com>
Committed: Tue Mar 20 16:18:18 2018 +0800

----------------------------------------------------------------------
 source/references/modules/storage.md | 16 +++++++++-------
 1 file changed, 9 insertions(+), 7 deletions(-)
----------------------------------------------------------------------



[6/9] incubator-weex-site git commit: Update clipboard.md (#110)

Posted by ha...@apache.org.
Update clipboard.md (#110)


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/1bd7aea2
Tree: http://git-wip-us.apache.org/repos/asf/incubator-weex-site/tree/1bd7aea2
Diff: http://git-wip-us.apache.org/repos/asf/incubator-weex-site/diff/1bd7aea2

Branch: refs/heads/master
Commit: 1bd7aea21e73610e93653f9829fcd6efb682cc7c
Parents: abbb450 131d8b3
Author: Hanks <zh...@gmail.com>
Authored: Tue Mar 20 16:17:55 2018 +0800
Committer: Hanks <zh...@gmail.com>
Committed: Tue Mar 20 16:17:55 2018 +0800

----------------------------------------------------------------------
 source/cn/references/modules/clipboard.md | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------



[4/9] incubator-weex-site git commit: fix a typo

Posted by ha...@apache.org.
fix a typo

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/41590029
Tree: http://git-wip-us.apache.org/repos/asf/incubator-weex-site/tree/41590029
Diff: http://git-wip-us.apache.org/repos/asf/incubator-weex-site/diff/41590029

Branch: refs/heads/master
Commit: 415900296eae69ef18d3e60860c55980064027f0
Parents: abbb450
Author: Liu PeiPei <ls...@live.com>
Authored: Tue Mar 20 14:42:18 2018 +0800
Committer: GitHub <no...@github.com>
Committed: Tue Mar 20 14:42:18 2018 +0800

----------------------------------------------------------------------
 source/guide/advanced/path.md | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-weex-site/blob/41590029/source/guide/advanced/path.md
----------------------------------------------------------------------
diff --git a/source/guide/advanced/path.md b/source/guide/advanced/path.md
index a66ef99..9822b60 100644
--- a/source/guide/advanced/path.md
+++ b/source/guide/advanced/path.md
@@ -19,7 +19,7 @@ This article will cover uri (url) usage in Weex. Including using image/typeface
 Weex SDK provide `local` scheme to access resources packaged with application, and of cource, it's not working in the HTML5 runtime.
 Currently, developers can use this scheme with `image` and text's font file location.
   * In iOS, it's always locate file in 'bundle resources'. For example, a `image` component with `local:///app_icon` will load image file named 'app_icon' in bundle resouce, and font file work in the same way.
-  * In Android, image component will load from 'drawable' resource folder like 'res/drawable-xxx'. But load font file is different, android framework can not load font file from 'res', so SDK will load it from `asserts` folder.
+  * In Android, image component will load from 'drawable' resource folder like 'res/drawable-xxx'. But load font file is different, android framework can not load font file from 'res', so SDK will load it from `assets` folder.
 
 * HTTP/HTTPS
 It's working in the same way as in web, Weex support these at very beginning.