[GitHub] YorkShen closed pull request #241: * [Doc] Update css-unit.

2018-12-17 Thread GitBox
YorkShen closed pull request #241: * [Doc] Update css-unit.
URL: https://github.com/apache/incubator-weex-site/pull/241
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/source/cn/wiki/css-units.md b/source/cn/wiki/css-units.md
index 512544c70..e2edb44e3 100644
--- a/source/cn/wiki/css-units.md
+++ b/source/cn/wiki/css-units.md
@@ -33,32 +33,25 @@ version: 2.1
 
 ### 注意
 
-* 不支持 `hsl()`, `hsla()`, `currentColor`, 8个字符的十六进制颜色。
+> 不支持 `hsl()`, `hsla()`, `currentColor`
 
-* `rgb(a,b,c)` 或 `rgba(a,b,c,d)` 的性能比其他颜色格式差很多,请选择合适的颜色格式。
+> `6-chars hex`是性能最好的颜色使用方式。除非有特殊原因,请使用`6-chars hex`格式。
 
-颜色名称可查看 [颜色名称列表](./color-names.html).
+>  颜色名称可查看 [颜色名称列表](./color-names.html)。
 
 ## CSS `length` 单位
 
-在 Weex 中,我们只支持 `px` 长度单位。并且它将在 JavaScript 运行时和本机渲染器中解析为数字类型。
-
-下面这些不同的写法,解析的结果完全相同。
-
+在 Weex 中,我们只支持 `px` 长度单位。
 ```css
 .classA { font-size: 48px; line-height: 64px; }
 ```
 
-不支持类似 `em`,`rem`,`pt` 这样的 CSS 标准中的其他长度单位。
+> 不支持类似 `em`,`rem`,`pt` 这样的 CSS 标准中的其他长度单位。
 
 ## CSS `number` 单位
+number可用于以下CSS属性:
+* [opacity](./common-styles.html)
+* [lines](./text-styles.html)
+* [flex](./common-styles.html)
 
-仅仅一个数字。用于 [`opacity`](./common-styles.html),[`lines`](./text-styles.html)等。
-
-有时值必须是整数,例如:`lines`。
-
-## CSS `percentage` 单位 (暂不支持)
-
-表示百分比值,如“50%”,“66.7%”等。
-
-它是 CSS 标准的一部分,但 Weex 暂不支持。
+## CSS `percentage` 单位 (暂不支持)
\ No newline at end of file
diff --git a/source/wiki/css-units.md b/source/wiki/css-units.md
index 1a220aa76..972f83688 100644
--- a/source/wiki/css-units.md
+++ b/source/wiki/css-units.md
@@ -29,28 +29,28 @@ version: 2.1
 }
 ```
 
-## Notes
+### Notes
 
-* Not support `hsl()`, `hsla()`, `currentColor`, or 8-character hexadecimal 
color.
+> `hsl()`, `hsla()`, `currentColor`, nor 8-character hexadecimal color are not 
supported.
 
-* Performance of `rgb(a,b,c)` or `rgba(a,b,c,d)` is much worse than other 
color formats, please select the appropriate color format.
+> `6-chars hex` format is the most efficient way. Use it unless you have a 
special reason.
 
-build-in color name you can see [Color Names](./color-names.html).
+> build-in [color names](./color-names.html).
 
 ## CSS `length` units
-
-In weex we only support px length units. It will resolve to a numeric type in 
the JavaScript runtime and native renderer.
+`px` is the only supported length units.
 You can use it like this :
 
 ```css
 .classA { font-size: 48px; line-height: 64px; }
 ```
 
-Other length units in the CSS standard like `em`, `rem`, and `pt` are not 
supported.
+> Other length units in the CSS standard like `em`, `rem`, and `pt` are not 
supported.
 
 ## CSS `number` units
+You can use `number` on following properties:
+* [opacity](./common-styles.html)
+* [lines](./text-styles.html)
+* [flex](./common-styles.html)
 
-You can use `number` on property [`opacity`](./common-styles.html) and 
[`lines`](./text-styles.html).
-
-
-## CSS `percentage` units (Not support now)
+## CSS `percentage` (Not support)
\ No newline at end of file


 


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services


[GitHub] YorkShen opened a new pull request #241: * [Doc] Update css-unit.

2018-12-17 Thread GitBox
YorkShen opened a new pull request #241: * [Doc] Update css-unit.
URL: https://github.com/apache/incubator-weex-site/pull/241
 
 
   


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services


Re: Weekly beta release of 20181217

2018-12-17 Thread 申远
Yes, it is not a release, just a beta version.

By the way,

xxx.xxx.xx-beta or
xxx.xxx.xx-snapshot

Which one would be better?

> 在 2018年12月17日,16:05,Willem Jiang  写道:
> 
> As we don't vote this release, it should be a snapshot deployment, not
> a release.
> For the Apache release, we need to go through the PPMC vote and IPMC vote.
> 
> Willem Jiang
> 
> Twitter: willemjiang
> Weibo: 姜宁willem
> 
> On Mon, Dec 17, 2018 at 3:50 PM 申远  > wrote:
>> 
>> Hi, all
>> 
>> As discussed early, weex will publish a weekly beta release every Thursday
>> or Friday. Well, the first weekly beta release is build on 17th, Dec with
>> the following content.
>> 
>> The weekly beta release version for this week is *0.20.3.0-beta*, one can
>> checkout this version from JCenter(Android), CocoaPods(iOS) or Github if
>> you prefer source code.
>> 
>> ChangeLog
>> Android Feature
>> 
>>   - Support direction:rtl
>>  - For international useage, support direction:rtl
>>  > >
>>  - Pull Request: https://github.com/apache/incubator-weex/pull/1664 
>> 
>>   - Support richtext component
>>  - Support richtext component richtext
>>  > >
>>  - Pull Request: https://github.com/apache/incubator-weex/pull/1796 
>> 
>>   - Performance optimization(init)
>>  - rm useless log && reduce reflection
>>  - Pull Request:https://github.com/apache/incubator-weex/pull/1844
>>   - rm useless code of WXInstanceExceptionRecord
>>  - Pull Request:https://github.com/apache/incubator-weex/pull/1606
>> 
>> Bugfix
>> 
>>   - Emoji not show on Android 9.0(init)
>>  - Emoji not show on Android 9.0(init)
>>  - Pull Request:
>>  https://github.com/apache/incubator-weex/pull/1804/files
>>   - Support ontouch event on scroller component
>>  - Pull Request: https://github.com/apache/incubator-weex/pull/1896
>>   - Fix NPE && No such Element Exception
>>  - Pull Request: https://github.com/apache/incubator-weex/pull/1896
>>   - ignore fixed element for interactionTime
>>  - Pull Request:https://github.com/apache/incubator-weex/pull/1900
>> 
>> iOSBugfix
>> 
>>   - Forbid adjustment of safeArea by system for cycle slider component.
>>  - https://github.com/apache/incubator-weex/pull/1780
>>   - Fix dead-lock if subclass of WXListComponent is registered to WeexSDK.
>>  - https://github.com/apache/incubator-weex/pull/1790
>>   - Podspec use libc++ by default.
>>   - Release jscontext in bridge thread to avoid main thread deadlock.
>>  - https://github.com/apache/incubator-weex/pull/1822
>>   - Fix multicontext recreate.
>>  - https://github.com/apache/incubator-weex/pull/1818
>>   - Fix image load
>>  - https://github.com/apache/incubator-weex/pull/1795
>>   - Fix crash when multithread accessing setCustomEnvironment and
>>   customEnvironment of WXSDKEngine.
>>  - https://github.com/apache/incubator-weex/pull/1875
>>   - Fix remove active pseudo class doesn't work.
>>  - https://github.com/apache/incubator-weex/pull/1854
>>   - Fix css style width & height set to 0, but doesn't relayout.
>>  - https://github.com/apache/incubator-weex/pull/1848
>>   - When navigation ishidden, the weexinstance will relayout, it should
>>   modify WXRootView's frame, in same case it does't not work because of the
>>   execute sequence.
>>  - Pull Reuqest:https://github.com/apache/incubator-weex/pull/1901
>> 
>> Features
>> 
>>   - Support RTL layout direction.
>>  - Pull Request: https://github.com/apache/incubator-weex/pull/1664
>>   - Add completion callback for registerService.
>>  - Pull Request: https://github.com/apache/incubator-weex/pull/1776
>>   - Support richtext component
>>  - Support richtext component.
>>  - Pull Request: https://github.com/apache/incubator-weex/pull/1799
>>   - Add a feature to control the offset of list attach to bottom.
>>  - Pull Request:https://github.com/apache/incubator-weex/pull/1813
>>   - supprot devtool show the new performance info
>>  - Pull Request : https://github.com/apache/incubator-weex/pull/1751
>>   - Add script section in opcode file
>>  - Pull Request:https://github.com/apache/incubator-weex/pull/1827
>>   - Animation of slider on iOS can be forbidden
>>  - Pull Request: https://github.com/apache/incubator-weex/pull/1849
>>   - Add upriseOffset attribute for edit component to control uprise offset
>>   triggered by keyboard.
>>  - Pull Request: https://github.com/apache/incubator-weex/pull/1893
>> 
>> 
>> --
>> 
>> 
>> Best regards,
>> 
>> York Shen



Re: Weekly beta release of 20181217

2018-12-17 Thread Willem Jiang
As we don't vote this release, it should be a snapshot deployment, not
a release.
For the Apache release, we need to go through the PPMC vote and IPMC vote.

Willem Jiang

Twitter: willemjiang
Weibo: 姜宁willem

On Mon, Dec 17, 2018 at 3:50 PM 申远  wrote:
>
> Hi, all
>
> As discussed early, weex will publish a weekly beta release every Thursday
> or Friday. Well, the first weekly beta release is build on 17th, Dec with
> the following content.
>
> The weekly beta release version for this week is *0.20.3.0-beta*, one can
> checkout this version from JCenter(Android), CocoaPods(iOS) or Github if
> you prefer source code.
>
> ChangeLog
> Android Feature
>
>- Support direction:rtl
>   - For international useage, support direction:rtl
>   
>   - Pull Request: https://github.com/apache/incubator-weex/pull/1664
>- Support richtext component
>   - Support richtext component richtext
>   
>   - Pull Request: https://github.com/apache/incubator-weex/pull/1796
>- Performance optimization(init)
>   - rm useless log && reduce reflection
>   - Pull Request:https://github.com/apache/incubator-weex/pull/1844
>- rm useless code of WXInstanceExceptionRecord
>   - Pull Request:https://github.com/apache/incubator-weex/pull/1606
>
> Bugfix
>
>- Emoji not show on Android 9.0(init)
>   - Emoji not show on Android 9.0(init)
>   - Pull Request:
>   https://github.com/apache/incubator-weex/pull/1804/files
>- Support ontouch event on scroller component
>   - Pull Request: https://github.com/apache/incubator-weex/pull/1896
>- Fix NPE && No such Element Exception
>   - Pull Request: https://github.com/apache/incubator-weex/pull/1896
>- ignore fixed element for interactionTime
>   - Pull Request:https://github.com/apache/incubator-weex/pull/1900
>
> iOSBugfix
>
>- Forbid adjustment of safeArea by system for cycle slider component.
>   - https://github.com/apache/incubator-weex/pull/1780
>- Fix dead-lock if subclass of WXListComponent is registered to WeexSDK.
>   - https://github.com/apache/incubator-weex/pull/1790
>- Podspec use libc++ by default.
>- Release jscontext in bridge thread to avoid main thread deadlock.
>   - https://github.com/apache/incubator-weex/pull/1822
>- Fix multicontext recreate.
>   - https://github.com/apache/incubator-weex/pull/1818
>- Fix image load
>   - https://github.com/apache/incubator-weex/pull/1795
>- Fix crash when multithread accessing setCustomEnvironment and
>customEnvironment of WXSDKEngine.
>   - https://github.com/apache/incubator-weex/pull/1875
>- Fix remove active pseudo class doesn't work.
>   - https://github.com/apache/incubator-weex/pull/1854
>- Fix css style width & height set to 0, but doesn't relayout.
>   - https://github.com/apache/incubator-weex/pull/1848
>- When navigation ishidden, the weexinstance will relayout, it should
>modify WXRootView's frame, in same case it does't not work because of the
>execute sequence.
>   - Pull Reuqest:https://github.com/apache/incubator-weex/pull/1901
>
> Features
>
>- Support RTL layout direction.
>   - Pull Request: https://github.com/apache/incubator-weex/pull/1664
>- Add completion callback for registerService.
>   - Pull Request: https://github.com/apache/incubator-weex/pull/1776
>- Support richtext component
>   - Support richtext component.
>   - Pull Request: https://github.com/apache/incubator-weex/pull/1799
>- Add a feature to control the offset of list attach to bottom.
>   - Pull Request:https://github.com/apache/incubator-weex/pull/1813
>- supprot devtool show the new performance info
>   - Pull Request : https://github.com/apache/incubator-weex/pull/1751
>- Add script section in opcode file
>   - Pull Request:https://github.com/apache/incubator-weex/pull/1827
>- Animation of slider on iOS can be forbidden
>   - Pull Request: https://github.com/apache/incubator-weex/pull/1849
>- Add upriseOffset attribute for edit component to control uprise offset
>triggered by keyboard.
>   - Pull Request: https://github.com/apache/incubator-weex/pull/1893
>
>
> --
>
>
> Best regards,
>
> York Shen