Skip to content

Commit

Permalink
Merge pull request #31 from linyisonger/dev
Browse files Browse the repository at this point in the history
🚀v1.5.0 增加假数据模块
  • Loading branch information
linyisonger authored Sep 28, 2024
2 parents b1f8458 + 5bb9822 commit 6279451
Show file tree
Hide file tree
Showing 20 changed files with 12,914 additions and 197 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ node_modules/
coverage/
package-lock.json
yarn.lock
docs/
docs/
assets/region.json
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
### 🚀v1.5.0 增加假数据模块
➕: Fakery 假数据模块
➕: Maths 方法名简化

### 🚀v1.4.6 修复颜色转换rgbToHex
➕: rgbToHex 正则问题

Expand Down
10 changes: 8 additions & 2 deletions TODO.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,14 @@
- [x] 身份证号码信息 1.2.0
- [x] 性别 1.2.0
- [x] 生日 1.2.0
- [x] 地区 仅输出区域码 1.2.0
- [x] 地区 仅输出区域码 1.2.0
- [x] 星座 1.2.0
- [x] 年龄 1.2.0
- [x] 增加执行时间输出 1.1.6
- [x] 开始增加String|Date|Number|Object拓展方法 1.2.0
- [x] 开始增加 String|Date|Number|Object 拓展方法 1.2.0
- [x] 随机数据
- [x] 身份证号码
- [x] 社会统一信用号码
- [x] 手机号码
- [x] 银行卡号码
- [x] 姓名
10 changes: 10 additions & 0 deletions assets/name.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
/** 前二十姓氏 */
export const familyName: string[];
export const femaleName: string[];
export const maleName: string[];
declare namespace _default {
export { familyName };
export { femaleName };
export { maleName };
}
export default _default;
9 changes: 9 additions & 0 deletions assets/name.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
/** 前二十姓氏 */
export const familyName = "李,王,张,刘,陈,杨,赵,黄,周,吴,徐,孙,胡,朱,高,林,何,郭,马,罗".split(',');
export const femaleName = '佳瑶‌,妙冉‌,娴婉‌,德莎‌,思芸‌,紫琴‌,洛雅‌,苡瑶‌,芮涵‌,冉雯‌'.split(',');
export const maleName = '博宇,新安‌,华森‌,书皓‌,楷国‌,若煊‌,宸毅‌,宇轩‌,浩然‌,风昊‌'.split(',');
export default {
familyName,
femaleName,
maleName
};
16 changes: 16 additions & 0 deletions assets/region.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
declare const _default: {
id: string;
name: string;
postal_code: string;
subordinates: {
id: string;
name: string;
postal_code: string;
subordinates: {
id: string;
name: string;
postal_code: string;
}[];
}[];
}[];
export default _default;
6,147 changes: 6,147 additions & 0 deletions assets/region.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ export * from './lib/market.js';
export * from './lib/animation.js';
export * from './lib/picture.js';
export * from './lib/generate.js';
export * from './lib/fakery.js';
1 change: 1 addition & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ export * from './lib/market.js';
export * from './lib/animation.js';
export * from './lib/picture.js';
export * from './lib/generate.js';
export * from './lib/fakery.js';
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@3r/tool",
"version": "1.4.6",
"version": "1.5.0",
"description": "🏃‍包含一些常用方法例如对象深克隆、递归调用、一一对比/数组交集、并集、差集/二维向量点乘、叉乘/股票KDJ、MACD、RSI、BOLL/验证为空、车牌号、邮箱、身份证、统一社会信用代码、手机号、版本对比/转换日期、星座、身份证解析、字节...持续更新整合",
"main": "index.js",
"type": "module",
Expand Down
10 changes: 10 additions & 0 deletions src/assets/name.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
/** 前二十姓氏 */
export const familyName = "李,王,张,刘,陈,杨,赵,黄,周,吴,徐,孙,胡,朱,高,林,何,郭,马,罗".split(',')
export const femaleName = '佳瑶‌,妙冉‌,娴婉‌,德莎‌,思芸‌,紫琴‌,洛雅‌,苡瑶‌,芮涵‌,冉雯‌'.split(',')
export const maleName = '博宇,新安‌,华森‌,书皓‌,楷国‌,若煊‌,宸毅‌,宇轩‌,浩然‌,风昊‌'.split(',')

export default {
familyName,
femaleName,
maleName
};
Loading

0 comments on commit 6279451

Please sign in to comment.