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

lm-gallery-test

v1.0.0

Published

领图组件库

Downloads

3

Readme

Development

# install dependencies
$ cnpm install

# develop library by docs demo
$ cnpm start

# build library source code
$ cnpm run build

# build library source code in watch mode
$ cnpm run build:watch

# build docs
$ cnpm run docs:build

# check your project for potential problems
$ cnpm run doctor

LICENSE

MIT

className 命名

注意组件 className 命名 不要使用 css module 的形式(不便于引入后修改名称)

目前迁移组件都使用 css module 形式进行命名、后续进行优化

样式问题

目前项目中的组件外都套了一层 外面套层 ConfigProviderAC,里面的 theme 统一了 border-radius、border-color 等 css 属性、组件封装记得检查相关属性样式与之前一致

vscode 插件

Fileheader Pro 用于文件头部注释信息

组件封装-基于 antd

组件基于 antd 的二次封装,组件命名带有AC标志,意为"add content"。

为了统一样式更改,二次封装需要修改前缀为 antd-lm 可参考 ButtonAC 组件

统一在组件内部文件夹修改样式

非二次封装 只修改样式 需要在.dumi 中 overrides.less 文件中修改

文档书写

文档中引用的示例不直接写在 md 文件中

通过 code 双标签来引用 demo 示例文件夹下的示例代码

API 目前手动书写、官方自动生成方案存在问题、后续考虑进行自动生成

组件分类

基础组件

业务组件

通知组件

数据展示

示例书写

统一写在组件内部文件夹 demo 文件夹下

命名可根据要展示的示例分组类型来 基础命名为 base.tsx

多个示例写在不同文件下