ezsystems/hybrid-platform-ui-core-components
Composer 安装命令:
composer require ezsystems/hybrid-platform-ui-core-components
包简介
Hybrid Platform UI core frontend components
README 文档
README
Provides the following custom elements used in the Hybrid Platform UI:
<ez-platform-ui-app><ez-navigation-hub><ez-toolbar>
In addition, this package provides a class expression mixin to add support for tabs based on a specific markup. To use that expression mixin, you can write something like:
<link rel="import" href="path/to/polymer/polymer-element.html"> <link rel="import" href="path/to/hybrid-platform-ui-core-components/mixins/ez-tabs.html"> <script> class MyComponent extends eZ.TabsMixin(Polymer.Element) { static get is() { return 'my-component'; } // your code } window.customElements.define(MyComponent.is, MyComponent); </script>
With that, the tabs markup will be automatically recognized. ez-tabs.html also provides the base CSS code so that the tabs visually behave as tabs. So with the following code:
<my-component> <div class="ez-tabs"> <ul class="ez-tabs-list"> <li class="ez-tabs-label is-tab-selected"><a href="#tab1">Tab 1</a></li> <li class="ez-tabs-label"><a href="#tab2">Tab 2</a></li> </ul> <div class="ez-tabs-panels"> <div class="ez-tabs-panel is-tab-selected" id="tab1">Some content</div> <div class="ez-tabs-panel" id="tab2">Some other content</div> </div> </div> </my-component>
You should see 2 tabs and should be able to switch from one to the other.
Developers tasks
System requirements:
- Node >= 6.x (nvm is an easy way to get it running)
bowershould be installed globally withnpm install -g bower- before any of the following tasks, make sure the bower and npm dependencies are
installed and up to date by running
$ npm install $ bower install
Run unit tests
Using local browsers
$ npm run test-local
This will executes unit tests in local browsers.
To keep the test browsers open (and keep the test web server alive), you can add
the -p option:
$ npm run test-local -- -p
Using SauceLabs
First, create an account at https://saucelabs.com/ (It's free for Open Source projects). Then run the following commands:
$ export SAUCE_USERNAME="your_sauce_labs_username" $ export SAUCE_ACCESS_KEY="your_sauce_labs_key" $ npm run test-sauce
The unit tests should be run using the Sauce Labs infrastructure. Targeted
platforms/browsers are defined in wct.conf.json.
Run code style checks
$ npm run lint
Run local demo of components
$ npm run serve
This will run a local web server to serve the demo. After running that command, it should display the URL to reach the demo.
Alternatively, you can execute:
$ npm run serve -- -o
to open the index page in the default browser.
ezsystems/hybrid-platform-ui-core-components 适用场景与选型建议
ezsystems/hybrid-platform-ui-core-components 是一款 基于 JavaScript 开发的 Composer 扩展包,目前已累计 2k 次下载、GitHub Stars 达 0, 最近一次更新时间为 2017 年 05 月 10 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 ezsystems/hybrid-platform-ui-core-components 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 ezsystems/hybrid-platform-ui-core-components 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 2k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 18
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: GPL-2.0
- 更新时间: 2017-05-10