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

nuke-biz-navigator

v0.0.3

Published

nuke-navigator

Downloads

4

Readme

以下是标准 README 的内容

nuke-navigator

  • category: 功能
  • chinese: 往navigator添加功能按钮
  • type: UI组件

设计思想

支持最多3个自定义功能

支持对一些特殊的功能单独添加在导航栏右侧,“…”左侧,例如升级、搜索

  • 需使用大众熟知的通用图标
  • 此处最多支持一个功能点透出,不支持下拉选择功能
  • 支持icon/文字形式,文字最多两个字,字号固定,颜色随“返回”按钮配套的两套

API

addButton

参数 | 类型 | 是否必填 |默认值 | 说明 -----|-----|-----|-----|----- iconName | String | 是| |千牛客户端内置 icon 名称,内置 icon 列表参看本页附录 text | String | 否| 是 |图标文本,如果 iconName 和 iconImg 都没有值,则展示文本 tapEvent | String | 是| |按钮点击时触发的事件,该事件为 Page 级别事件,可以使用 QN.on 进行监听,注意 tapEvent 不要与其他事件重复 success | Function | 否| |调用成功的回调函数 error | Function | 否| |调用失败的回调函数 jsBundle | Object | 否| | jsBundle添加按钮暂不支持removeButton方法,自定义按钮和系统按钮互斥,不能同时调用 jsBundle.url | String | 是| | 必填,页面路径,对应自定义按钮的页面路径,'qap:///rightBtn.js'或者'http://30.5.104.58:8090/docs/rightButton.js' jsBundle.width | String | 是| | 必填,注意必须带'rem' jsBundle.height | String | 是| | 必填,注意必须带'rem' jsBundle.param | Object | 是| | 用户将参数带入bundle的js里面,客户端不使用,这里只是透传,没有要给{},安卓端未做入参判断直接crash了

removeButton

参数 | 类型 | 是否必填 |默认值 | 说明 -----|-----|-----|-----|----- tapEvent | String | 是| |事件名称,删除按钮的唯一标识 success | Function | 否| |调用成功的回调函数 error | Function | 否| |调用成功的回调函数