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

kmos-paysdk-reactui

v0.1.23

Published

- [node](http://nodejs.org/) 和 [git](https://git-scm.com/) -项目开发环境 - [tsdx](https://tsdx.io/) - 了解打包第三方库 - [rollup](https://www.rollupjs.com/) - JavaScript 模块打包器 - [TypeScript](https://www.typescriptlang.org/) - 熟悉`TypeScript`基本语法 - [Es6+](http://es6.ruan

Downloads

4

Readme

准备

  • nodegit -项目开发环境
  • tsdx - 了解打包第三方库
  • rollup - JavaScript 模块打包器
  • TypeScript - 熟悉TypeScript基本语法
  • Es6+ - 熟悉 es6 基本语法
  • less - 熟悉 less 基本语法
  • css(var) - 熟悉 CSS自定义属性

安装使用

  • 获取项目代码
git clone http://icode.kaikeba.com/kmos/kmos-paysdk-reactui.git
  • 安装依赖
cd kmos-paysdk-reactui

yarn install

cd example

yarn install
  • 运行
cd kmos-paysdk-reactui
 
 yarn start

 cd example

yarn start

预览

yarn build 正式线打包

Git 提交规范

  • 参考 vue 规范 (Angular)

    • feat 增加新功能
    • fix 修复问题/BUG
    • style 代码风格相关无影响运行结果的
    • perf 优化/性能提升
    • refactor 重构
    • revert 撤销修改
    • test 测试相关
    • docs 文档/注释
    • chore 依赖更新/脚手架配置修改等
    • workflow 工作流改进
    • ci 持续集成
    • types 类型定义文件更改
    • wip 开发中
  1. 创建自己的分支: git checkout -b feat/xxxx
  2. 提交你的修改: git commit -am 'feat(function): add xxxxx'
  3. 推送您的分支: git push origin feat/xxxx

参数说明

| 参数 | 说明 | 类型 | 默认值 | 是否必传 | | ---- | ---- |---- | ---- | ---- | | visible | 组件是否可见 | boolean | false | 是| | onClose | 关闭组件 | function | - | 是 | | title | 标题 | string | 无 | 是 | | mark | 遮罩层是否显示 | boolean | true | 是 | | markStyle | 遮罩层style | React.CSSProperties | rgba(55, 55, 55, 0.6) | 否 | | mode | modal动画 | 'left''bottom' | bottom | 否 | | orderNo | 订单号 | number | - | 是 | | openid | 用户openid | string | - | 是 | | unionid | 用户unionid | string | - | 是 | | channelCode | 渠道 | string | - | 是 | | courseCode | 课程 | string | - | 是 | | onError | 接口报错 | (msg:string)=>{} | toast | 否 |

使用

  import { PayList,PaySdk } from "kmos-paysdk-reactui";

  PayList.init('test')

   <PayList
        visible={visible}
        onClose={handleClose}
        title={"请选择支付方式"}
        orderNo={order && order.orderNo}
        markStyle={{ backgroundColor: "red" }}
        openid="o0IXitx_lVGqIU0Q26qYojqv4pAs"
        unionid="ocPQA1dkMB11rqsgUEktzVjISuQk"
        channelCode="9zd1lmrs9i"
        courseCode="0307l3nhxh"
      />

主题颜色

    :root:root {
      --kpui-color-primary: red;
      --kpui-color-weak: yellow;
    }

目录结构

.
├── dist #打包文件
├── example #测试项目
├── src #项目代码
│   ├── assets #静态资源
│   ├── components #组件
│   ├── design #样式
│   ├── hooks #hooks
│   ├── index.ts #入口文件
│   └── utils #工具
├── stories #文档项目
└── test #测试项目