Skip to content

Commit

Permalink
chore(cdn): change cdn path
Browse files Browse the repository at this point in the history
  • Loading branch information
zoomchan-cxj committed Jan 11, 2022
1 parent f7a20a5 commit 3c9244c
Show file tree
Hide file tree
Showing 53 changed files with 33 additions and 35 deletions.
4 changes: 1 addition & 3 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,4 @@
*.cr.so filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.otf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.jpg filter=lfs diff=lfs merge=lfs -text
*.a filter=lfs diff=lfs merge=lfs -text
*.a filter=lfs diff=lfs merge=lfs -text
20 changes: 10 additions & 10 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,25 +58,25 @@ Hippy 从底层增加了很多和浏览器相同的接口,方便了开发者

Hippy 的包体积在业内也是非常具有竞争力的。

![包体积1](assets/baodaxiao.png)
![包体积1](assets/img/baodaxiao.png)

上图是一个空的APK,在引入后终端包大小对比。

![包体积2](assets/jsbao.png)
![包体积2](assets/img/jsbao.png)

上图是在前端搭建了一个最简单的 ListView 后,前端打出的 JS 的包大小对比。

## 渲染性能

ListView 在滑动时的性能对比,Hippy 可以一直保持十分流畅的状态

<img src="assets/listxingneng.png" alt="渲染性能" width="50%"/>
<img src="assets/img/listxingneng.png" alt="渲染性能" width="50%"/>

## 内存占用

而在内存占用上,初始化 List 时 Hippy 就略占优势,在滑动了几屏后内存开销的差距越来越大。

![内存占用](assets/listmeicun.png)
![内存占用](assets/img/listmeicun.png)

## 跟 Web 接近的开发体验

Expand Down Expand Up @@ -106,7 +106,7 @@ Hippy 在开发体验上也进行了大量优化,包含但不限于,跟浏
</p>
</span>
<span style="display:flex;flex-direction:column;justify-content:flex-start;align-items: center;margin: 20px">
<img src="assets/tv.png" width="50" alt="云视听极光" />
<img src="assets/img/tv.png" width="50" alt="云视听极光" />
<p style="font-size:16px">
<a target="_blank" style="text-decoration:none;color:#34495e" href="https://tv.qq.com/" title="云视听极光">云视听极光</a>
</p>
Expand All @@ -130,7 +130,7 @@ Hippy 在开发体验上也进行了大量优化,包含但不限于,跟浏
</p>
</span>
<span style="display:flex;flex-direction:column;justify-content:flex-start;align-items: center;margin: 20px">
<img src="assets/voov.png" width="50" alt="VOOV直播" />
<img src="assets/img/voov.png" width="50" alt="VOOV直播" />
<p style="font-size:16px">
<a target="_blank" style="text-decoration:none;color:#34495e" href="https://www.voovlive.com/" title="VOOV直播">VOOV直播</a>
</p>
Expand Down Expand Up @@ -201,15 +201,15 @@ Hippy 在开发体验上也进行了大量优化,包含但不限于,跟浏
<p style="font-size:16px">CDG大丰满满/自选股团队</p>
</span>
<span style="display:flex;flex-direction:column;justify-content:flex-start;align-items: center;width:130px;margin:5px 10px 5px 10px">
<img src="assets/qg-team.png" width="50" alt="QGraphics团队" />
<img src="assets/img/qg-team.png" width="50" alt="QGraphics团队" />
<p style="font-size:16px">QGraphics团队</p>
</span>
<span style="display:flex;flex-direction:column;justify-content:flex-start;align-items: center;width:130px;margin:5px 10px 5px 10px">
<img src="assets/IVW_23.png" width="50" alt="IVWEB团队" />
<img src="assets/img/IVW_23.png" width="50" alt="IVWEB团队" />
<p style="font-size:16px">IVWEB团队</p>
</span>
<span style="display:flex;flex-direction:column;justify-content:flex-start;align-items: center;width:130px;margin:5px 10px 5px 10px">
<img src="assets/wii-team.png" width="50" alt="游云南WII团队" />
<img src="assets/img/wii-team.png" width="50" alt="游云南WII团队" />
<p style="font-size:16px">游云南WII团队</p>
</span>
</div>
Expand Down Expand Up @@ -277,7 +277,7 @@ Hippy 在开发体验上也进行了大量优化,包含但不限于,跟浏
* QQ 群:[784894901](//shang.qq.com/wpa/qunwpa?idkey=7bff52aca3aac75a4f1ba96c1844a5e3b62000351890182eb60311542d75fa1a) - 点击链接启动 QQ 加入,或者复制群号码手工加入
* QQ群二维码,使用手机QQ扫描加入

![QQ群二维码](assets/qq-group.png)
![QQ群二维码](assets/img/qq-group.png)

## 总结

Expand Down
File renamed without changes.
Binary file added docs/assets/img/IVW_23.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/assets/img/baodaxiao.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/assets/img/border-box.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/assets/img/check-font.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/assets/img/chrome-inspect-process.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/assets/img/confirm-font.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/assets/img/copy-font.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/assets/img/dynamic_import.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/assets/img/element-inspect.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/assets/img/flex-direction.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
Binary file added docs/assets/img/font-project-setup.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/assets/img/hippy-core.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes.
File renamed without changes
Binary file added docs/assets/img/hippy-react-dev-process.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/assets/img/hippy-react.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/assets/img/hippy-vue.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
Binary file added docs/assets/img/info-plist.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/assets/img/inspectDebugInfo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/assets/img/ios-simulator.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/assets/img/jsbao.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/assets/img/jsi_structure.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/assets/img/listmeicun.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/assets/img/listxingneng.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
Binary file added docs/assets/img/qg-team.png
Binary file added docs/assets/img/qq-group.png
Binary file added docs/assets/img/safari-dev-process.png
File renamed without changes
Binary file added docs/assets/img/tv.png
Binary file added docs/assets/img/voov.png
Binary file added docs/assets/img/wii-team.png
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions docs/guide/layout.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Hippy 为了方便前端开发便于理解,样式也采用了 CSS 的盒模型

> PS: Hippy 的盒模型布局对应的是CSS的 `box-sizing` 属性的 `border-box` 类型,具体表现与宽高边距计算可参考[MDN文档 box-sizing](//developer.mozilla.org/zh-CN/docs/Web/CSS/box-sizing)
![盒模型](../assets/border-box.png)
![盒模型](../assets/img/border-box.png)

* [width](style/layout.md?id=width)
* [height](style/layout.md?id=height)
Expand All @@ -25,7 +25,7 @@ flexDirection 属性指定了内部元素是如何在 flex 容器中布局的,

> 注意:Hippy 的 flexDirection 与 Web的 flex-direction Web 默认为 `row`, Hippy 默认为 `column`
<img src="assets/flex-direction.png" alt="flexDirection" width="30%"/>
<img src="assets/img/flex-direction.png" alt="flexDirection" width="30%"/>
<br />
<br />

Expand Down
2 changes: 1 addition & 1 deletion docs/guide/support.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@

也可以加入 QQ 群 [784894901](//shang.qq.com/wpa/qunwpa?idkey=ce9cd2eb06fd6da26a1a63b70da82edd132964d22998e5154e533822f7b757cc)

[![QQ群](../assets/qq-group.png)](//shang.qq.com/wpa/qunwpa?idkey=ce9cd2eb06fd6da26a1a63b70da82edd132964d22998e5154e533822f7b757cc)
[![QQ群](../assets/img/qq-group.png)](//shang.qq.com/wpa/qunwpa?idkey=ce9cd2eb06fd6da26a1a63b70da82edd132964d22998e5154e533822f7b757cc)
6 changes: 3 additions & 3 deletions docs/hippy-react/animation.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@ Hippy 的动画则是完全由前端传入动画参数,由终端控制每一

* 关注动画

<img src="assets/follow_animation.gif" alt="关注动画" width="30%"/>
<img src="assets/img/follow_animation.gif" alt="关注动画" width="30%"/>

* 点赞微笑动画

<img src="assets/smile_animation.gif" alt="点赞微笑" width="30%"/>
<img src="assets/img/smile_animation.gif" alt="点赞微笑" width="30%"/>

* 进度条动画

<img src="assets/pk_animation.gif" alt="PK进度条动画" width="30%"/>
<img src="assets/img/pk_animation.gif" alt="PK进度条动画" width="30%"/>

## 让我们开始吧

Expand Down
2 changes: 1 addition & 1 deletion docs/hippy-react/introduction.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ hippy-react 是基于 Facebook React 的官方自定义渲染器 [react-reconcil

# 架构图

<img src="assets/hippy-react.png" alt="hippy-react 架构图" width="70%"/>
<img src="assets/img/hippy-react.png" alt="hippy-react 架构图" width="70%"/>
<br />
<br />
26 changes: 13 additions & 13 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@
<meta property="og:type" content="article">
<meta property="og:title" content="Hippy">
<meta property="og:description" content="Hippy - A Cross-Platform Development Framework">
<meta property="og:image" content="assets/hippy-logo.svg">
<meta property="og:image" content="assets/img/hippy-logo.svg">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="Hippy">
<meta name="twitter:description" content="Hippy - A Cross-Platform Development Framework">
<meta name="twitter:image" content="assets/hippy-logo.svg">
<link rel="icon" href="assets/hippy-logo.ico">
<link rel="stylesheet" href="assets/vue.css" title="vue">
<meta name="twitter:image" content="assets/img/hippy-logo.svg">
<link rel="icon" href="assets/img/hippy-logo.ico">
<link rel="stylesheet" href="assets/css/vue.css" title="vue">
<style>
#custom-homepage {
flex: 1;
Expand Down Expand Up @@ -143,15 +143,15 @@
}
}
</script>
<script src="assets/docsify.min.js"></script>
<script src="assets/prism-jsx.min.js" defer></script>
<script src="assets/prism-json.min.js" defer></script>
<script src="assets/prism-css.min.js" defer></script>
<script src="assets/prism-java.min.js" defer></script>
<script src="assets/prism-objectivec.min.js" defer></script>
<script src="assets/prism-bash.min.js" defer></script>
<script src="assets/prism-cpp.min.js" defer></script>
<script src="assets/search2.js" defer></script>
<script src="assets/js/docsify.min.js"></script>
<script src="assets/js/prism-jsx.min.js" defer></script>
<script src="assets/js/prism-json.min.js" defer></script>
<script src="assets/js/prism-css.min.js" defer></script>
<script src="assets/js/prism-java.min.js" defer></script>
<script src="assets/js/prism-objectivec.min.js" defer></script>
<script src="assets/js/prism-bash.min.js" defer></script>
<script src="assets/js/prism-cpp.min.js" defer></script>
<script src="assets/js/search2.js" defer></script>
<script src="https://cdn-go.cn/aegis/aegis-sdk/latest/aegis.min.26.js"></script>
<script>
const aegis = new Aegis({
Expand Down
2 changes: 1 addition & 1 deletion framework/js/packages/hippy-debug-server/server/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ async function startDevServer(args) {
description: 'hippy instance',
devtoolsFrontendUrl: `chrome-devtools://devtools/bundled/js_app.html?experiments=true&ws=${host}:${port}/debugger-proxy?role=chrome`,
devtoolsFrontendUrlCompat: `chrome-devtools://devtools/bundled/inspector.html?experiments=true&v8only=true&ws=${host}:${port}/debugger-proxy?role=chrome`,
faviconUrl: 'http://res.imtt.qq.com/hippydoc/img/hippy-logo.ico',
faviconUrl: 'https://hippyjs.org/assets/img/hippy-logo.ico',
title: 'Hippy debug tools for V8',
type: 'page',
url: '',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ test('native device info', (t) => {

test('native ImageLoader', async (t) => {
t.is(Native.ImageLoader.prefetch(), undefined);
t.is(await Native.ImageLoader.getSize('https://static.res.qq.com/nav/3b202b2c44af478caf1319dece33fff2.png'), undefined);
t.is(await Native.ImageLoader.getSize('https://user-images.githubusercontent.com/12878546/148736102-7cd9525b-aceb-41c6-a905-d3156219ef16.png'), undefined);
});

test('native backAndroid', async (t) => {
Expand Down

0 comments on commit 3c9244c

Please sign in to comment.