ember-connection-aware-media:使用网络信息API的Ember Connection-Aware媒体组件附加组件

时间:2021-02-05 00:09:14
【文件属性】:
文件名称:ember-connection-aware-media:使用网络信息API的Ember Connection-Aware媒体组件附加组件
文件大小:122KB
文件格式:ZIP
更新时间:2021-02-05 00:09:14
ember components emberjs component network 灰烬连接感知媒体 此插件通过使用浏览器提供的最新网络信息API,为您提供了一个组件“ ca-media”,它是可识别网络连接的组件。 目前,Chrome是唯一支持此api的浏览器。 根据有效的连接类型,此组件可提供不同的媒体资源,如下所示: 2g =>低分辨率图像 3g =>高分辨率图像 4g =>视频 离线=>占位符内容 这里还有一篇博客文章定义了如何从头开始创建组件以及如何工作。 演示版 请在找到此插件的演示,该演示仅在Chrome中有效。 用法 要在模板中呈现组件, {{ ca-media highResImage = highResImage lowResImage =
【文件预览】:
ember-connection-aware-media-master
----.travis.yml(702B)
----.ember-cli(280B)
----ember-cli-build.js(575B)
----vendor()
--------.gitkeep(0B)
----addon()
--------templates()
--------components()
--------.gitkeep(0B)
----config()
--------ember-try.js(2KB)
--------environment.js(112B)
----index.js(98B)
----.watchmanconfig(37B)
----package.json(2KB)
----.bowerrc(60B)
----tests()
--------test-helper.js(170B)
--------index.html(1KB)
--------unit()
--------.eslintrc.js(55B)
--------dummy()
--------integration()
--------helpers()
----package-lock.json(416KB)
----app()
--------components()
--------.gitkeep(0B)
----testem.js(469B)
----.npmignore(205B)
----.eslintrc.js(188B)
----LICENSE.md(1KB)
----.gitignore(331B)
----README.md(3KB)
----.editorconfig(368B)

网友评论