zero-ai 0.3.32 → 0.3.33
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/run-authorize.sh +1 -1
- package/src/cab/perm/falcon.fm.bill.process.xlsx +0 -0
- package/src/cab/perm/falcon.fm.trans.xlsx +0 -0
- package/src/cab/perm/falcon.i.message.xlsx +0 -0
- package/src/cab/perm/falcon.my.notify.xlsx +0 -0
- package/src/cab/perm/falcon.system.ticket.xlsx +0 -0
- package/src/commander/ai.zero +1 -1
- package/src/commander/option.zero +1 -0
- package/src/commander-ai/fn.random.js +6 -3
- package/src/epic/ai.string.fn.str.util.js +9 -2
package/package.json
CHANGED
package/run-authorize.sh
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
|
-
export ROOT=/Users/lang/zero-cloud/
|
|
2
|
+
export ROOT=/Users/lang/zero-cloud/web-app/workshop/zero-ws/zero-extension
|
|
3
3
|
echo "拷贝 zero-ambient 权限"
|
|
4
4
|
cp -rf ${ROOT}/zero-ambient/src/main/resources/plugin/ambient/oob/role/ADMIN.SUPER/* ./src/cab/perm/
|
|
5
5
|
echo "拷贝 zero-atom 权限"
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/src/commander/ai.zero
CHANGED
|
@@ -5,7 +5,7 @@ csv, executeCsv, 将JsonArray数据转换成csv,
|
|
|
5
5
|
uk, executeUk, 检查数据文件中的Data数据是否符合唯一值规范, p=输入数据文件路径, f=需要检查的字段名
|
|
6
6
|
data, executeData, 根据配置文件生成数据, c=配置文件路径, o=「.」输出文件基本路径, j=「false」是否Array, n=「23」如果是Array则生效
|
|
7
7
|
key, executeKey, 为数据模板添加key属性(UUID格式), p=输入数据文件路径, f=「key」标识key的字段名
|
|
8
|
-
str, executeString, 生成随机字符串,可直接拷贝, n=「1」生成的数量, l=「64」长度信息(默认64
|
|
8
|
+
str, executeString, 生成随机字符串,可直接拷贝, n=「1」生成的数量, l=「64」长度信息(默认64),f=是否完全生成
|
|
9
9
|
md5, executeMD5, 加密字符串,可直接拷贝, i=输入字符串
|
|
10
10
|
init, executeInit, 初始化Zero Ui工程, n=项目名称(必须填写,最终写入package.json)
|
|
11
11
|
sync, executeSync, 同步Zero Ui最新框架, p=配置文件路径,前端项目根目录,m=是否本地模式
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
const Ec = require('../epic');
|
|
2
2
|
const os = require('os');
|
|
3
3
|
|
|
4
|
+
const os_compatible = ['darwin', 'win32'];
|
|
5
|
+
|
|
4
6
|
module.exports = () => {
|
|
5
7
|
/*
|
|
6
8
|
* 参数解析
|
|
@@ -9,7 +11,8 @@ module.exports = () => {
|
|
|
9
11
|
[],
|
|
10
12
|
[
|
|
11
13
|
['-n', '--number', 1],
|
|
12
|
-
['-l', '--length', 64]
|
|
14
|
+
['-l', '--length', 64],
|
|
15
|
+
['-f', '--full', false]
|
|
13
16
|
]
|
|
14
17
|
);
|
|
15
18
|
/*
|
|
@@ -21,10 +24,10 @@ module.exports = () => {
|
|
|
21
24
|
Ec.info(`随机字符串,生成数量:${number},长度:${length}`);
|
|
22
25
|
Ec.info(`当前操作系统:${platform}`);
|
|
23
26
|
|
|
24
|
-
if (
|
|
27
|
+
if (os_compatible.indexOf(platform) > -1) {
|
|
25
28
|
const content = [];
|
|
26
29
|
for (let idx = 0; idx < number; idx++) {
|
|
27
|
-
const generated = Ec.strRandom(length);
|
|
30
|
+
const generated = Ec.strRandom(length, actual.full);
|
|
28
31
|
console.info(generated);
|
|
29
32
|
content.push(generated);
|
|
30
33
|
}
|
|
@@ -23,8 +23,15 @@ const strShapeCount = (literal = "") => {
|
|
|
23
23
|
return counter;
|
|
24
24
|
}
|
|
25
25
|
const strUuid = () => v4();
|
|
26
|
-
|
|
27
|
-
|
|
26
|
+
// 去掉混淆子母
|
|
27
|
+
const strRandom = (length = 64, full = false) => {
|
|
28
|
+
if (full) {
|
|
29
|
+
return Mock.Random.string("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789", length);
|
|
30
|
+
} else {
|
|
31
|
+
return Mock.Random.string("ABCDEFGHJKLMNPQRSTUVWXYZ123456789", length);
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
28
35
|
const strWidth = (input = "") => {
|
|
29
36
|
let content = "";
|
|
30
37
|
const space = 16 - input.length;
|