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

qm-ux

v0.7.6

Published

千米公有云管理端UI基础组件库、JS对象扩展、工具类、业务组件

Downloads

43

Readme

QM-UX

说明

actor defaultState :-> table action :-> update\delete\insert sql

ql: QL :-> select sql

store-provider:-> zookeeper

store: bindActor:-> dao|jdbc dispatch:-> transaction

relax|service :-> core actorState:-> bean

component: handle|event :-> controller

Actor 保留字

  • BasicActor

    • __init: false
  • DataSourceActor

    • dataTotal: 0, //数据总条目,若是本地数据,则返回 dataSource.count().若是远程数据返回数据库字段
    • dataRemote: true, //是否为远程数据
    • dataSource: fromJS([]), //本地初始化数据
  • FormActor

    • formState: '', //'' || 'edit' || 'audit', 默认状态,编辑状态,审核状态,校验状态
    • formSource: Map({}), //form elements 集合
    • validState: '', // '' || 'validating' || 'success' || 'error' || 'warning'
    • validResult: Map({}), //form elements 校验结果
    • remoteDate: Map({}) //{key:'name',value:'value'} 键值对 OrderedSet
  • NetWorkActor

    • netHost: "", //获取数据,请求域
    • netUrl: "", //获取数据,url
    • netResponse: OrderedMap({}), //获取数据,返回对象存储
    • netPre: undefined, //请求前
    • net: undefined, //请求体,return Promise
    • netPost: undefined, //请求后
    • pushHost: "", //请求域,自带端口
    • pushUrl: "", //数据提交请求 url
    • pushPre: undefined, //提交请求前
    • push: undefined, //提交请求,return Promise
    • pushPost: undefined, //提交请求后
    • loading: false //页面是否显示加载中
  • PaginationActor

    • pageCurrent: null, //当前页数 number
    • pageSize: null, //每页条数 number
    • pageCache: false, //分页缓存:场景:滚动分页,数据叠加
  • TableActor

    • columns: fromJS([]) //列集合
  • TaskFlowActor

    • step: 1, //任务流数据机
    • flow: {} //任务流数据集
  • ViewCellActor

    • cellKey: '', //原数据唯一标示
    • cellSelectType: 'checkbox', //'checkbox' || 'radio'
    • cellSelected: OrderedMap({}), //勾选项{key:index,value:v}对象异步存储容器
    • cellSelectLimit: false, //Array || [Function] || (false || null)
  • ViewTypeActor

    • viewType: '', //数据面板展现标示
    • viewTypes: [] //数据面板展现形式集

定位

  • 解决场景

环境

  • NODE > 6.0.0
  • babel(建议全局安装)
  • yarn(建议安装)
  • falcon-cli (控制台项目,建议安装)
  • 依赖 webpack 插件

模块的输入方式

import React,{Component} from 'react';
import {QMDataView,SearchForm,Table,Toolbar,Pagination} from 'qm-ux';
const Item = SearchForm.Item;
const Column = Table.Column;
const ColumnsManager = Table.ColumnsManager;

export default class GoodsList extends Component{
    render(){
        return (
            <QMDataView>
                <SearchForm>
                    <Item>
                        <Input/>
                    </Item>
                    <Item>
                        <Select/>
                    </Item>
                </SearchForm>

                <Toolbar>
                </Toolbar>

                <Table/>

                <Pagination/>

            </QMDataView>
        )
    }
}

QM***

like Console | Table | SearchForm

***Actor

***DefaultQL

***Service

***Store

***Util