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 🙏

© 2026 – Pkg Stats / Ryan Hefner

@gzbapp/jm-admin-common

v1.1.4

Published

mygzb.com React Components

Readme

@gzbapp/jm-admin-common

管理后台通用业务组件库,基于 React + TypeScript 开发,提供了一套完整的后台管理业务组件解决方案。

特性

  • 📦 开箱即用的业务组件
  • 🎨 基于 Ant Design 设计体系
  • 💪 TypeScript 类型支持
  • 🔧 完善的工具函数库
  • 📹 支持多种视频播放格式(FLV、HLS、WebRTC)
  • 🚀 远程组件支持,便于统一部署和更新

安装

yarn add @gzbapp/jm-admin-common

使用

import { Login, Menu, VideoPlayer } from '@gzbapp/jm-admin-common';

组件列表

业务组件

  • Login - 登录组件
  • Menu - 菜单组件,支持菜单范围选择
  • AreaSelect - 地区选择组件
  • Setting - 设置组件
  • SecondAdmin - 二级管理员组件
  • OptLog - 操作日志组件
  • Tenements - 单位选择器组件
  • UnAuthorized - 未授权提示组件

布局组件

  • Layout - 布局组件

视频播放器

  • VideoPlayer - 视频播放器组件,支持:
    • FLV 格式播放
    • HLS 格式播放
    • WebRTC 实时流播放
    • 自定义插件(时间、音量、上下集切换等)

工具函数

  • form - 表单相关工具函数
  • table - 表格相关工具函数
  • constants - 常量定义

开发

# 安装依赖
yarn install

# 构建
yarn build

# 启动文档
yarn doc

# 代码格式化
yarn prettier

# 代码检查
yarn lint

技术栈

  • React 18.3.1+
  • TypeScript 4.9.3
  • Ant Design 5.29.3+
  • Styled Components
  • Webpack 5

版本

当前版本:1.0.1-beta.1

远程组件打包逻辑

  1. @gdjiami/rc-components不再使用 替换为 @gzbapp/jm-rc-components
  2. jm-rc-components为npm库,其打包的jm-rc-components.js部署cdn,为生产实际使用的代码
  3. jm-rc-components每次代码更新需要同时升级npm和cdn库,项目代码内依然通过 import 引用jm-rc-components的组件,但是打包后实际代码使用jm-rc-components.js及css
  4. jm-rc-components 包含组件代码以及对应样式和antd代码以及对应样式。项目打包不含jm-rc-components的任何样式代码和组件代码
  5. 项目会打包antd组件代码及样式,原因是项目编译引用rc以外的antd组件,这里会导致部分antd代码重复打包(TODO优化)
  6. 后台业务组件库(此项目)打包代码不包含jm-rc-components组件及样式代码,但是包含antd的组件及样式代码(TODO优化),原因也是引用rc外的antd组件
  7. 后台业务组件库(此项目)同样为远程引用的代码,由后端部署到公共应用服务