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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@tpulse666/framework-ui-web-bootstrap

v0.0.84

Published

import * from 'tpulse-ui-framework/tpulse-ui.css' ### 全局上下文对象PageContext 1. 全局事件监听 ```js import {context} from 'tpulse-ui/PageContext'

Readme

framework-ui-web-bootstrap

约定

统一样式

import * from 'tpulse-ui-framework/tpulse-ui.css'

全局上下文对象PageContext

  1. 全局事件监听
    import {context} from 'tpulse-ui/PageContext'

    context.addEventListener('click', (event) => {
        console.debug("监听到注册的时间");
    });

ui组件说明

布局

横向布局(单行布局)

    <Hstack>
        <Flex className="content" style="height: 100px">按照内容大小占用
        </Flex>   <!--默认grow = 0-->
        <Flex grow={1}>占满剩余控件</Flex>
    </Hstack>
  • 选项
    1. grow
    2. shrink

纵向布局(高度100%布局需要)

   render = () => {
       <Vstack>
            <Flex className="content" style="height: 100px">按照内容大小占用</Flex>   
            <Flex grow={1}>竖向占满剩余控件</Flex>        
        </Vstack>
   }
  • 选项
    1. grow

整体布局

    render = (route: Route, menu: Menu, user: User) => {
        <Container routes menu user headers={component[]}></Container>
    }
  • 数据结构(model)
    1. Route/RouteItem
    2. Menu/MenuItem
    3. User

面板

DropDown

    <DropDown parent={parentComponent} clickOnHide={false} >
        <!--child-->
    </DropDown>    
  1. 选项
    1. parent
    2. clickOnHide

Toast

    import (info, msg) from 'useToast'
    info("fdafasd");
    render = () => {
        <Toast></Toast>
    }

表单

    

默认支持元素

1. 文本输入框    
2. 单选选择框
3. 可搜索单选选择框
4. 复选选择框
5. 可搜索复选择框

自定义元素组件

表格

测试

ts类的单元测试

  1. npm依赖: 安装ts-node
  2. 定义单位测试ts类 ***.test.ts
  3. 执行测试 npx ts-node ***.test.ts

常用类

HttpRouteClient

用于http通信接口,具体使用查看测试类HttpRouteClient.test.ts

版本升级说明

0.0.20210903002

  1. [修复]table.model.ts@PageLoader 泛型化
  2. [优化]代码整理
  3. [优化]npm发布地址变更: tpulse-framework-web-admin