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

business-root-manager

v2.2.3

Published

业务权限管理器

Downloads

16

Readme

BusinessRootManager

业务权限管理器

如何使用

  • 安装 yarn add business-root-manager

  • 使用示例

    import BusinessRootManager from 'business-root-manager';;
    
    <BusinessManager rootUrl={rootUrl} token={token} />
      
  • 使用ts检测需要声明模块 | 新建.d.ts文件

    declare module 'business-root-manager';

| 参数 | 类型 | 是否必填 | 描述 | | ------ | ------ | ------ |------ | | rootUrl: string | required |请求的域名| | token: string | required |userToken| | limitHeight: boolean | 可不传 |运行平台需要该参数限制高度|

  • 地址

二次开发

  1. http://114.115.156.220/front
  2. yarn install & npm run start
  3. 本地开发调试目录 /example/src/index.js
  4. 本地调试完成之后,执行npm run build,然后再使用 npm link,把npm包代理到本地进行调试,调试完成后在进行发布(防止频繁发包)
  5. 一切调试完成后,执行 npm run pub 进行发包(需先注册登录 npm)

npm 注册登录

  • 前置条件: 切到对应的npm源
  1. npm logout
  2. npm login
  3. 依次输入账号、密码、邮箱
  4. npm publish
  • npm 发布时可能遇到的问题
    1. 源出错
    2. 包名重复

项目目录

|____.babelrc
|____config // webpack 配置
|____example // 开发环境调试目录
|____node_modules 
|____README.md
|____yarn.lock
|____public 
|____.gitignore
|____package.json
|____lib // 打包后目录
|____tsconfig.json // ts配置
|____postcss.config.js // postcss配置
|____src // 组件源码

版本更新说明

  1. 通讯录支持异步加载
  2. 查看和预览用户支持分页加载,提高性能