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

aaron-ui

v0.0.1

Published

| 属性名 | 含义 | 类型 | 必填 | 默认值 | | ------ | ------ | ------ | ------ | ------ | | url | 头像图片路径 | String | 是 | 无 | | size | 头像尺寸,宽高相等 | Number | 否 | 150 |

Downloads

4

Readme

Avatar

属性

| 属性名 | 含义 | 类型 | 必填 | 默认值 | | ------ | ------ | ------ | ------ | ------ | | url | 头像图片路径 | String | 是 | 无 | | size | 头像尺寸,宽高相等 | Number | 否 | 150 |

Icon

图标组件 使用图标来自于【阿里巴巴矢量库】

属性

| 属性名 | 含义 | 类型 | 必填 | 默认值 | | ------ | ------ | ------ | ------ | ------ | | type | 图表类型 | String | 是 | 无 |

pager

属性

| 属性名 | 含义 | 类型 | 必填 | 默认值 | | ------ | ------ | ------ | ------ | ------ | | current | 当前页码 | Number | 否 | 1 | | total | 总数据量 | Number | 否 | 0 | | limit | 页容量 | Number | 否 | 10 | | visibleNumber | 可见页码数 | Number | 否 | 10 |

事件

| 属性名 | 含义 | 事件参数 | 参数类型 | | ------ | ------ | ------ | ------ | | pageChange | 页码变化 | 新的页码 | Number |

Empty

该组件需要在外层容器中横向垂直居中

属性

| 属性名 | 含义 | 类型 | 必填 | 默认值 | | ------ | ------ | ------ | ------ | ------ | | text | 显示文字 | String | 否 | 无数据 |

ImageLoader

在加载一些比较大的图片时通常是很耗时的 该组件可以实现一个渐进式图片 (首先显示一个用于等待加载的占位图片,待要显示的图片加载完后再替换掉占位图片)

属性

| 属性名 | 含义 | 类型 | 必填 | 默认值 | | ------ | ------ | ------ | ------ | ------ | | src | 原始图片的路径 | String | 是 | 无 | | placeholder | 原始图片加载完成前的占位图片 | String | 是 | 无 | | duration | 原始图片加载完成后,切换到原始图经过的毫秒数 | Number | 否 | 500 |

事件

| 属性名 | 含义 | 事件参数 | 参数类型 | | ------ | ------ | ------ | ------ | | load | 原始图片加载完成后触发 | 无 | 无 |

SiteAside

网页左侧项目栏,组合了Menu Contact

子组件:Menu

菜单栏

子组件:Contact

该组件需要横向撑满容器,背景色透明 1.如何实现点击弹出QQ对话框? 设置超链接为:tencen://message/?Menu=yes&uin=要对话的QQ号&Service=300&sigT=45a1e5847943b64c6ff3990f8a9e644d2b31356cb0b4ac6b24663a3c8dd0f8aa12a595b1714f9d45 2.如何实现点击弹出发送邮件 设置超链接为mailto邮件地址,前提是电脑上有安装邮箱软件

layout

用于布局的组件:左边栏、中间主区域、右边栏
特点:撑满父元素、溢出隐藏