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

mengtx-report

v0.0.3

Published

[文档地址](http://gateway-dev.rongzer.info/doc.html#/home) (进入后左侧下拉框选择 ldb)

Downloads

1

Readme

API 文档

文档地址 (进入后左侧下拉框选择 ldb)

独立图表渲染组件

代码地址

该项目主要是为了创建一个报告展示组件,能够在第三方项目中使用 ldb 配置好的图表。

  • 项目中的 widgets 直接拷贝 ldb 的 src/views/report/components/widgets
  • 项目中的 app/Widget.vue 直接拷贝 ldb 的 src/views/report/app/Widget.vue
  • 项目中的 app/Viewer.vue 参照 ldb 的 src/views/report/app/Viewer.vue

发布组件到组件库

npm publish

图表设计思路

一个报告会包含多个图表,这里我们统称为 widget。每个 widget 都是一个独立的组件。

报告编辑器包含

- widget 选取区域 (头部)
- 拖拽区域        (左侧)
- widget 配置区域 (右侧)

操作流程:

- 点击头部 widget 
- addWidget (`app/App.vue:addWidget`) 
- 根据 widget 类型,从 (`config`) 中选取对应初始配置初始化 widget
    > `config` 中不但配置了 widget 的初始参数,还配置了控制每个参数该用的配置组件(`settigns`)
- 点击拖拽区域的 widget 激活 widget 以配置

图表相关组件都在 src/views/report/components 文件夹下

├── app      // 图表编辑页面
├── common   // 通用组件
├── config   // 各 widget 的初始配置
├── settings // 控制 widget 配置的组件单元
└── widgets  // 所有支持的 widget 注意:这里的 widget 不要 import 到 widgets 文件夹外面的东西,因为该文件夹会在另一个项目中独立出去,所以要保持其独立性。

地图相关