npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

iot-ui

v2.0.0

Published

基于快应用的IoT组件库

Downloads

31

Readme

使用iot-ui组件库方法

  • 安装hap-toolkit, hap-toolkit版本>=0.0.37,查看hap-toolkit版本号执行 hap -V
  • 组件使用了less,需要在项目中执行npm install --save-dev less-loader less
  • 项目manifest.json文件config.designWidth需要设置成1080,组件库是按照设计宽度1080开发的
  • 安装iot-ui组件库 npm install iot-ui --save
  • 使用import标签引用组件例如使用Btn组件:
 <import name="Btn" src="iot-ui/Btn/index.ux"></import>

注意 ⚠️

  • 2.0版本并不不兼容1.0的版本. 请详细查看每个组件的文档

  • 如果想修改组件默认样式,请修改组件库下的theme.less文件

  • 注意组件图片的引用路径.路径错误会导致图片无法显示. 图片路径请使用绝对路径或者http地址,例如你的 icon.png图片在 /src/Mydir/icon.png下,那么绝对路径就是/Mydir/icon.png

  • 有的示例使用了prompt,manifest.json文件需要添加接口声明,接口声明示例

  • 如果使用IOT接口,manifest.json文件需要添加接口声明{"name": "service.iot"},然后import IOT from '@service.iot' 或 const IOT = require('@service.iot')

  • 组件是按照1080设计宽度开发的,manifest.json文件config.designWidth需要设置成1080,可以参考页面样式与布局-方案一

环境要求

Node.js (>= 8.9.*), Npm version 4+(Yarn preferred), and Git.

组件

运行本项目


# 克隆项目
git clone https://github.com/vivoquickapp/iot-ui.git your-project-name
# 进入目录
cd your-project-name
# 安装依赖包
npm install
# 监听打包快应用
npm run watch
# 打开服务器,扫描安装快应用
npm run server