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

hanser-ui

v1.4.1

Published

hanser弹幕组UI库(Vue版)

Downloads

214

Readme

hanser弹幕组UI库(Vue版)

  1. 命名规范

    1.1 所有组件名必须以 h- 开头

    1.2 css规范

    • 不使用id
    • 标签统一使用 小写- (短横线)
    • 类名由以下元素构成
      • 小写字母
      • - (短横线)
      • _ (下划线)
      • 数字
    • 使用 BEM 命名规范: 块__元素--修饰符例:.footer__logo--dark (黑暗模式的底部LOGO).user-rank__avatar--first (用户棒排名第一的用户头像).post-title--top(置顶帖标题)
    • 减少嵌套,一般情况下最多只用2层嵌套
    • 避免使用 /deep/,如果不可避免要使用的话,应该考虑在组件中提供参数来修改组件样式

    1.3 js规范

    • 变量名,函数名统一使用小驼峰命名;类名统一使用大驼峰命名
  2. 其他规范

    2.1 统一使用4空格缩进

    2.2 组件使用时使用小写加 - 形式:组件类: HButton使用:<h-button></h-button>

    2.3 参考 h-standard 组件

  3. 创建新组件

    运行 npm run component 组件名 注释 创建组件

  4. 使用文档

  5. 主题色增加文档