open-index/open-npm huggingface dataset:
npm package: @jiumao/commitlint-config
Description: JiuMaoFE CommitLint Config
Author: wangxingkang
Latest version: 0.1.3

# CommitLint Config

[![npm](https://img.shields.io/npm/v/%40jiumao%2Fcommitlint-config.svg)](https://www.npmjs.com/package/@jiumao/commitlint-config)
![](https://img.shields.io/github/stars/jiumao-fe/commitlint-config-jiumao.svg)
![](https://img.shields.io/github/license/jiumao-fe/commitlint-config-jiumao.svg)
![](https://img.shields.io/github/issues/jiumao-fe/commitlint-config-jiumao.svg)
![](https://img.shields.io/github/forks/jiumao-fe/commitlint-config-jiumao.svg)

> JiuMao前端团队 CommitLint 配置

# Usage

1. 安装commitlint

```
yarn add -D @commitlint/cli husky
```

2. 项目添加`commitlint.config.js`配置文件

```
const { rules } = require('@jiumao/commitlint-config');

module.exports = {
  rules
};
```

3. package.json添加如下代码

```
"scripts": {
  "commitmsg": "commitlint -E HUSKY_GIT_PARAMS"
},
"husky": {
  "hooks": {
    "commit-msg": "npm run commitmsg"
  }
}
```

# Git commit规范

提交格式如下

```
<type>(<scope>): <subject>
// 空一行
<body>
// 空一行
<footer>
```

提交信息应该包含Header(必填)、Body(选填)和Footer(选填)

Header:

```
<type>(<scope>): <subject>
```

<type>: 用来説明commit的类别, 可选值如下

* `feat`: 新功能
* `fix`: BUG修复
* `docs`: 文档
* `style`: 代码格式(不影响代码运行的变动)
* `refactor`: 重构
* `test`: 关于测试
* `chore`: 构建过程或辅助工具的变动
* `revert`: 还原代码

<scope>: 表示影响的范围 选填

<subject>: commit 目的的简短描述

Body:
 本次 commit 的详细描述，可以分成多行
 
Footer
  只用于两种情况 关联Issue 和 关闭Issue

关联Issue:
  格式: Issue #1, #2, #3
关闭Issue:
  格式: Close #1, #2, #3
  
  
# 示例

```
feat(document module): 添加了新功能
 
添加**新功能

- 功能1
- 功能2

Issue #1, #2
Close #1
```

# 参考

* [my-commit-message](https://yanhaijing.com/git/2016/02/17/my-commit-message)
* [Commit message 和 Change log 编写指南](http://www.ruanyifeng.com/blog/2016/01/commit_message_change_log.html)
npm package: @jiumao/dharma
Description: 前端常用工具方法
Author: wangxingkang
Latest version: 0.0.8

# dharma

[![NPM version](https://img.shields.io/npm/v/@jiumao/dharma.svg?style=flat)](https://npmjs.org/package/@jiumao/dharma)
[![NPM downloads](http://img.shields.io/npm/dm/@jiumao/dharma.svg?style=flat)](https://npmjs.org/package/@jiumao/dharma)

> 前端工具库 库已更名为[awe-utils](https://www.npmjs.com/package/awe-utils) 该包停止维护

# 使用

1. 安装依赖

`npm install @jiumao/dharma` || `yarn add @jiumao/dharma`

2. 使用

```
import { numberToChinese } from '@jiumao/dharma';

// 一
console.log(numberToChinese(1));

// 一万
console.log(numberToChinese(10000));
```

# API

## numberToChinese

> 数字转中文工具方法 `numberToChinese(number: number): string`

* 引入版本

0.0.1

* 参数

number(number): 需要转换的数字

* 返回值

(string): 转换后的文本

* 例子


```
numberToChinese(1);
// => 一
```
npm package: @jiumao/policy
Description: [![NPM version](https://img.shields.io/npm/v/@jiumao/policy.svg?style=flat)](https://npmjs.org/package/@jiumao/policy) [![NPM downloads](http://img.shields.io/npm/dm/@jiumao/policy.svg?style=flat)](https://npmjs.org/package/@jiumao/policy)
Author: wangxingkang
Latest version: 1.0.5

# Policy

[![NPM version](https://img.shields.io/npm/v/@jiumao/policy.svg?style=flat)](https://npmjs.org/package/@jiumao/policy)
[![NPM downloads](http://img.shields.io/npm/dm/@jiumao/policy.svg?style=flat)](https://npmjs.org/package/@jiumao/policy)

> 阿里云 [Policy](https://help.aliyun.com/document_detail/28664.html?spm=a2c8b.12215508.policylist.2.ff466253ERVmtX) 语法结构

## 如何使用

1、添加到仓库依赖

`npm install @jiumao/policy` || `yarn add @jiumao/policy`

2、引用

```
import Policy form '@jiumao/policy';

const actions = [
  { module: 'module1', action: 'action1' },
  { module: 'module1', action: 'action2' },
  { module: 'module1', action: 'action3' },
  { module: 'module2', action: 'action1' },
  { module: 'module2', action: 'action2' },
]

const policy = new Policy();

policy.addPolicy({
  version: 1,
  statement: [
    {
      effect: 'allow',
      action: [
        'module1/*'
      ]
    }
  ]
})

policy.multipleVerify('module1/action1'); // true
policy.multipleVerify('module2/action1'); // false

```

## API

* moduleMap     模块操作Map
* allowActions  允许操作集合
* denyActions   禁止操作集合

### addPolicy(policy)

添加权限策略

**参数**

1、 policy

```
interface IStatement {
  // 授权效力 allow: 允许 deny: 禁止
  effect: 'allow' | 'deny';
  // 操作列表
  action: '*' | string[];
}

interface IPolicyData {
  version: string | number;
  statement: IStatement[]
}
```

### singleVerify(action: string): boolean

单个action验证

**参数**

1、action

- eg1: `'*'`
- eg2: `'module1/action1'`


### multipleVerify(actions: string | string[]): boolean

单个/多个action验证

**参数**

1、actions

- eg1: `'*'`
- eg2: `'module1/action1'`
- eg3: `['module1/action1', 'module1/action2']`

### combinationVerify(actionStr: string): boolean

组合action验证

> ! 取非 && 且  || 或

**参数**

1、action

- eg1: `'!module1/action1'`
- eg2: `'module1/action1' && 'module1/action2'`
- eg3: `'module1/action1' || 'module1/action2'`

## 策略数据结构

```
{
  // 策略版本
  version: 1,
  // 授权语句
  statement: [
    {
      // 授权效力 allow: 允许 deny: 禁止
      effect: 'allow',
      // 操作 
      // * | string[]
      // eg: "*" 代表可访问所有权限
      // eg: "module1/*" 代表可访问module1下所有权限
      // eg: "module1/action1" 代表可访问module1下action1权限
      action: 'system:*'
    },
    {
      effect: 'allow',
      action: [
        'permission:actionCreate',
        'permission:actionUpdate'
      ]
    }
  ]
}

```
npm package: @jiumao/rc-send-code
Description: 发送验证码倒计时组件
Author: wangxingkang
Latest version: 0.0.2

<h1 align="center">rc-send-code</h1>

[![NPM version](https://img.shields.io/npm/v/@jiumao/rc-send-code.svg?style=flat)](https://npmjs.org/package/@jiumao/rc-send-code)
[![NPM downloads](http://img.shields.io/npm/dm/@jiumao/rc-send-code.svg?style=flat)](https://npmjs.org/package/@jiumao/rc-send-code)

> 发送验证码倒计时组件，基于[ant-design](https://ant.design/index-cn)Button组件

## 安装和使用

* 安装依赖

```
yarn add @jiumao/rc-send-code
```

* 使用示例

```
import React from 'react';
import SendCode from '@jiumao/rc-send-code';

class App extends React.Component {
  render() {
    return (
      <SendCode
        onCaptcha={() => { return true; }}
      />
    );
  }
}

```

# Props

* second 倒计时时长（秒）默认60
* initText 初始化按钮显示文本
* runText 运行时显示文本
* resetText 运行结束后显示文本
* onEnd 倒计时结束执行函数
* onCaptcha 获取验证码执行函数
npm package: @jiumi/tinymce-vue
Description: Official TinyMCE Vue 3 Component
Author: Ephox Inc
Latest version: 5.1.0

# Official TinyMCE Vue component

## About

This package is a thin wrapper around [TinyMCE](https://github.com/tinymce/tinymce) to make it easier to use in a Vue application.

* If you need detailed documentation on TinyMCE, see: [TinyMCE Documentation](https://www.tiny.cloud/docs/tinymce/6/).
* For the TinyMCE Vue Quick Start, see: [TinyMCE Documentation - Vue Integration](https://www.tiny.cloud/docs/tinymce/6/vue-cloud).
* For the TinyMCE Vue Technical Reference, see: [TinyMCE Documentation - TinyMCE Vue Technical Reference](https://www.tiny.cloud/docs/tinymce/6/vue-ref).

### Support

Version 4.0 is intended to support Vue 3. For Vue 2.x and below please use previous versions of the wrapper.

### Issues

Have you found an issue with `tinymce-vue` or do you have a feature request? Open up an [issue](https://github.com/tinymce/tinymce-vue/issues) and let us know or submit a [pull request](https://github.com/tinymce/tinymce-vue/pulls). *Note: for issues related to TinyMCE please visit the [TinyMCE repository](https://github.com/tinymce/tinymce).*
npm package: @jiumi/vue-jiumi-admin-v2
Description: 河北九米电子科技有限公司（www.hebei9.cn）
Author: jiumi
Latest version: 0.0.2



# @jiumi/vue-jiumi-admin-v2

Powered By [ArcoDesign](https://arco.design/)

[Click to Preview](https://arco.design/themes/design/6421)

## Installation

```
npm install @jiumi/vue-jiumi-admin-v2
```

## Changelog


- 0.0.2

    更改圆角：遗漏的部分组件
   Release: 
   - Tabs: 
   - Tag: 
   - Tooltip: 
   - Card: 
   - Input: 

    
- 0.0.1

    Release: 
   - Button: 
   - Collapse: 
   - Input: 
   - InputNumber: 
   - Radio: 
   - Select: 
   - InputTag: 
   - Transfer: 
   - DatePicker: 
   - Upload: 
   - Message: