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

micro-app-lib

v0.1.2

Published

`npm i micro-app-lib`

Downloads

2

Readme

1 micro-app-lib

npm i micro-app-lib

import { QueryTable } from 'micro-app-lib'

2 文件管理

  • src/modules --- 模块组件 Line Pie Bar 等
  • src/components --- 通用组件 icons 等
  • src/utils --- 通用函数
  • src/pages --- 页面分组 app preview auth 等
  • src/theme --- 主题配置
  • src/editor --- 自定义表单

3 module (todo)

| 组件 | 说明 | 备注 | | :--------- | :------- | :------- | | QueryTable | 查询表格 | nn | | FlowTable | 查询表格 | nn | | NormalModal | 普通弹窗 | a | | NormalForm | 表单 | c | | BackgroundCard | 大屏卡片背景 | l | | Line | 折线图 | l | | Bar | 柱状图 | l | | Pie | 饼状图 | | | RichText | 富文本 | | | Image | 图片 | | | CountUp | 动态数字 | | | Text | 普通文字 | | | Carousel | 轮播图 | | | Input | 输入查询 | variable | | Select | 选择查询 | variable | | TimePicker | 时间查询 | variable | | TimeRange | 时间查询 | variable |

TODO:尽量集成 echarts 支持的图表、后续可支持 three.js babalon.js d3.js

4 editor 自定义表单(todo)- c

| 组件 | 说明 | 类型 | | :------------- | :-------------- | :------- | | InputEditor | 输入框编辑器 | input | | SelectEditor | 选择编辑器 | select | | CheckBoxEditor | checkbox 编辑器 | checkbox | | ColorEditor | 颜色选择器 | color | | ImageEditor | 图片选择器 | image | | JsonEditor | json 编辑器 | json | | NumberEditor | 数字编辑器 | number | | TabEditor | tab 切换 | tab | | SwitchEditor | switch 编辑器 | switch | | RadioEditor | radio 编辑器 | radio | | RichTextEditor | 富文本编辑器 | richtext |

TODO:编辑器都有 onChange 事件(后面可加 debounce 函数),将变化吐出到最外层

<Editor config={config} onChange={onChange} ref={ref} />

4 theme (todo)

  • 统一使用.scss
  • 建议使用 scss module
  • js 使用 scss 变量 使用:export 导出
  • 定义主题(light、dark)初始支持两个

5 国际化支持(todo)暂时不做

6 单元测试 ahao

7 打包 Preview 与 module 按需引入(todo)

两种引入方式 yarn install our-preview

<Preview config={config}>

<iframe src="url?id=1"></iframe>