neo-cmp-cli 1.8.2 → 1.8.3
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/bin/neo.js +1 -1
- package/package.json +6 -5
- package/src/{module/index.js → index.js} +14 -14
- package/src/{module/main.js → main.js} +18 -18
- package/src/module/neoInitByCopy.js +6 -6
- package/src/neo/webpack.mf.js +1 -1
- package/src/oss/publish2oss.js +1 -1
- package/src/utils/cmpUtils/createCmpByZip.js +7 -5
- package/src/utils/cmpUtils/pullCmp.js +1 -1
- package/src/utils/cmpUtils/pushCmp.js +9 -7
- package/src/utils/projectUtils/updatePublishLog.js +1 -1
- package/test/demo.js +1 -1
- package/test/demo3.js +1 -1
- package/test/neo.config.js +77 -0
- package/src/template/antd-custom-cmp-template/.prettierrc.js +0 -12
- package/src/template/antd-custom-cmp-template/README.md +0 -153
- package/src/template/antd-custom-cmp-template/commitlint.config.js +0 -59
- package/src/template/antd-custom-cmp-template/neo.config.js +0 -144
- package/src/template/antd-custom-cmp-template/package.json +0 -60
- package/src/template/antd-custom-cmp-template/public/css/base.css +0 -283
- package/src/template/antd-custom-cmp-template/public/scripts/app/bluebird.js +0 -6679
- package/src/template/antd-custom-cmp-template/public/template.html +0 -13
- package/src/template/antd-custom-cmp-template/src/assets/css/common.scss +0 -127
- package/src/template/antd-custom-cmp-template/src/assets/css/mixin.scss +0 -47
- package/src/template/antd-custom-cmp-template/src/assets/img/NeoCRM.jpg +0 -0
- package/src/template/antd-custom-cmp-template/src/assets/img/custom-widget.svg +0 -1
- package/src/template/antd-custom-cmp-template/src/assets/img/favicon.png +0 -0
- package/src/template/antd-custom-cmp-template/src/components/dataDashboard/README.md +0 -39
- package/src/template/antd-custom-cmp-template/src/components/dataDashboard/index.tsx +0 -462
- package/src/template/antd-custom-cmp-template/src/components/dataDashboard/model.ts +0 -75
- package/src/template/antd-custom-cmp-template/src/components/dataDashboard/style.scss +0 -1667
- package/src/template/antd-custom-cmp-template/src/components/infoCard/index.tsx +0 -87
- package/src/template/antd-custom-cmp-template/src/components/infoCard/model.ts +0 -80
- package/src/template/antd-custom-cmp-template/src/components/infoCard/style.scss +0 -105
- package/src/template/antd-custom-cmp-template/tsconfig.json +0 -68
- package/src/template/develop/neo-custom-cmp-template/.prettierrc.js +0 -12
- package/src/template/develop/neo-custom-cmp-template/README.md +0 -48
- package/src/template/develop/neo-custom-cmp-template/commitlint.config.js +0 -59
- package/src/template/develop/neo-custom-cmp-template/docs/README.md +0 -13
- package/src/template/develop/neo-custom-cmp-template/neo.config.js +0 -121
- package/src/template/develop/neo-custom-cmp-template/package.json +0 -63
- package/src/template/develop/neo-custom-cmp-template/public/css/base.css +0 -283
- package/src/template/develop/neo-custom-cmp-template/public/scripts/app/bluebird.js +0 -6679
- package/src/template/develop/neo-custom-cmp-template/public/template.html +0 -13
- package/src/template/develop/neo-custom-cmp-template/src/assets/css/common.scss +0 -127
- package/src/template/develop/neo-custom-cmp-template/src/assets/css/mixin.scss +0 -47
- package/src/template/develop/neo-custom-cmp-template/src/assets/img/NeoCRM.jpg +0 -0
- package/src/template/develop/neo-custom-cmp-template/src/assets/img/custom-widget.svg +0 -1
- package/src/template/develop/neo-custom-cmp-template/src/assets/img/favicon.png +0 -0
- package/src/template/develop/neo-custom-cmp-template/src/assets/img/table.svg +0 -1
- package/src/template/develop/neo-custom-cmp-template/src/components/contactCardList/README.md +0 -65
- package/src/template/develop/neo-custom-cmp-template/src/components/contactCardList/index.tsx +0 -180
- package/src/template/develop/neo-custom-cmp-template/src/components/contactCardList/model.ts +0 -50
- package/src/template/develop/neo-custom-cmp-template/src/components/contactCardList/style.scss +0 -260
- package/src/template/develop/neo-custom-cmp-template/src/components/contactForm/README.md +0 -94
- package/src/template/develop/neo-custom-cmp-template/src/components/contactForm/index.tsx +0 -251
- package/src/template/develop/neo-custom-cmp-template/src/components/contactForm/model.ts +0 -56
- package/src/template/develop/neo-custom-cmp-template/src/components/contactForm/style.scss +0 -120
- package/src/template/develop/neo-custom-cmp-template/src/components/neoEntityGrid/README.md +0 -115
- package/src/template/develop/neo-custom-cmp-template/src/components/neoEntityGrid/index.tsx +0 -304
- package/src/template/develop/neo-custom-cmp-template/src/components/neoEntityGrid/model.ts +0 -87
- package/src/template/develop/neo-custom-cmp-template/src/components/neoEntityGrid/style.scss +0 -127
- package/src/template/develop/neo-custom-cmp-template/src/utils/axiosFetcher.ts +0 -29
- package/src/template/develop/neo-custom-cmp-template/src/utils/queryObjectData.ts +0 -39
- package/src/template/develop/neo-custom-cmp-template/src/utils/xobjects.ts +0 -203
- package/src/template/develop/neo-custom-cmp-template/tsconfig.json +0 -68
- package/src/template/echarts-custom-cmp-template/.prettierrc.js +0 -12
- package/src/template/echarts-custom-cmp-template/README.md +0 -198
- package/src/template/echarts-custom-cmp-template/commitlint.config.js +0 -59
- package/src/template/echarts-custom-cmp-template/neo.config.js +0 -140
- package/src/template/echarts-custom-cmp-template/package.json +0 -61
- package/src/template/echarts-custom-cmp-template/public/css/base.css +0 -283
- package/src/template/echarts-custom-cmp-template/public/scripts/app/bluebird.js +0 -6679
- package/src/template/echarts-custom-cmp-template/public/template.html +0 -13
- package/src/template/echarts-custom-cmp-template/src/assets/css/common.scss +0 -127
- package/src/template/echarts-custom-cmp-template/src/assets/css/mixin.scss +0 -47
- package/src/template/echarts-custom-cmp-template/src/assets/img/NeoCRM.jpg +0 -0
- package/src/template/echarts-custom-cmp-template/src/assets/img/chart.svg +0 -1
- package/src/template/echarts-custom-cmp-template/src/assets/img/custom-widget.svg +0 -1
- package/src/template/echarts-custom-cmp-template/src/assets/img/favicon.png +0 -0
- package/src/template/echarts-custom-cmp-template/src/components/chartWidget/README.md +0 -186
- package/src/template/echarts-custom-cmp-template/src/components/chartWidget/index.tsx +0 -724
- package/src/template/echarts-custom-cmp-template/src/components/chartWidget/model.ts +0 -151
- package/src/template/echarts-custom-cmp-template/src/components/chartWidget/style.scss +0 -209
- package/src/template/echarts-custom-cmp-template/src/components/mapWidget/README.md +0 -125
- package/src/template/echarts-custom-cmp-template/src/components/mapWidget/USAGE.md +0 -190
- package/src/template/echarts-custom-cmp-template/src/components/mapWidget/index.tsx +0 -385
- package/src/template/echarts-custom-cmp-template/src/components/mapWidget/model.ts +0 -107
- package/src/template/echarts-custom-cmp-template/src/components/mapWidget/style.scss +0 -192
- package/src/template/echarts-custom-cmp-template/src/utils/url.ts +0 -82
- package/src/template/echarts-custom-cmp-template/tsconfig.json +0 -68
- package/src/template/empty-cmp/index.tsx +0 -58
- package/src/template/empty-cmp/model.ts +0 -79
- package/src/template/empty-cmp/style.scss +0 -72
- package/src/template/empty-custom-cmp-template/.prettierrc.js +0 -12
- package/src/template/empty-custom-cmp-template/README.md +0 -154
- package/src/template/empty-custom-cmp-template/commitlint.config.js +0 -59
- package/src/template/empty-custom-cmp-template/neo.config.js +0 -138
- package/src/template/empty-custom-cmp-template/package.json +0 -58
- package/src/template/empty-custom-cmp-template/public/css/base.css +0 -283
- package/src/template/empty-custom-cmp-template/public/scripts/app/bluebird.js +0 -6679
- package/src/template/empty-custom-cmp-template/public/template.html +0 -13
- package/src/template/empty-custom-cmp-template/src/assets/css/common.scss +0 -127
- package/src/template/empty-custom-cmp-template/src/assets/css/mixin.scss +0 -47
- package/src/template/empty-custom-cmp-template/src/assets/img/NeoCRM.jpg +0 -0
- package/src/template/empty-custom-cmp-template/src/assets/img/custom-widget.svg +0 -1
- package/src/template/empty-custom-cmp-template/src/assets/img/favicon.png +0 -0
- package/src/template/empty-custom-cmp-template/src/assets/img/map.svg +0 -1
- package/src/template/empty-custom-cmp-template/src/components/README.md +0 -3
- package/src/template/empty-custom-cmp-template/tsconfig.json +0 -68
- package/src/template/neo-custom-cmp-template/.prettierrc.js +0 -12
- package/src/template/neo-custom-cmp-template/README.md +0 -155
- package/src/template/neo-custom-cmp-template/commitlint.config.js +0 -59
- package/src/template/neo-custom-cmp-template/docs/README.md +0 -244
- package/src/template/neo-custom-cmp-template/neo.config.js +0 -140
- package/src/template/neo-custom-cmp-template/package.json +0 -66
- package/src/template/neo-custom-cmp-template/public/css/base.css +0 -283
- package/src/template/neo-custom-cmp-template/public/scripts/app/bluebird.js +0 -6679
- package/src/template/neo-custom-cmp-template/public/template.html +0 -13
- package/src/template/neo-custom-cmp-template/src/assets/css/common.scss +0 -127
- package/src/template/neo-custom-cmp-template/src/assets/css/mixin.scss +0 -47
- package/src/template/neo-custom-cmp-template/src/assets/img/NeoCRM.jpg +0 -0
- package/src/template/neo-custom-cmp-template/src/assets/img/card-list.svg +0 -1
- package/src/template/neo-custom-cmp-template/src/assets/img/contact-form.svg +0 -1
- package/src/template/neo-custom-cmp-template/src/assets/img/custom-form.svg +0 -1
- package/src/template/neo-custom-cmp-template/src/assets/img/custom-widget.svg +0 -1
- package/src/template/neo-custom-cmp-template/src/assets/img/data-list.svg +0 -1
- package/src/template/neo-custom-cmp-template/src/assets/img/detail.svg +0 -1
- package/src/template/neo-custom-cmp-template/src/assets/img/table.svg +0 -1
- package/src/template/neo-custom-cmp-template/src/components/entityCardList/README.md +0 -61
- package/src/template/neo-custom-cmp-template/src/components/entityCardList/index.tsx +0 -202
- package/src/template/neo-custom-cmp-template/src/components/entityCardList/model.ts +0 -74
- package/src/template/neo-custom-cmp-template/src/components/entityCardList/style.scss +0 -260
- package/src/template/neo-custom-cmp-template/src/components/entityDetail/README.md +0 -176
- package/src/template/neo-custom-cmp-template/src/components/entityDetail/index.tsx +0 -334
- package/src/template/neo-custom-cmp-template/src/components/entityDetail/model.ts +0 -123
- package/src/template/neo-custom-cmp-template/src/components/entityDetail/style.scss +0 -292
- package/src/template/neo-custom-cmp-template/src/components/entityForm/README.md +0 -176
- package/src/template/neo-custom-cmp-template/src/components/entityForm/index.tsx +0 -615
- package/src/template/neo-custom-cmp-template/src/components/entityForm/model.ts +0 -107
- package/src/template/neo-custom-cmp-template/src/components/entityForm/style.scss +0 -370
- package/src/template/neo-custom-cmp-template/src/components/entityTable/README.md +0 -92
- package/src/template/neo-custom-cmp-template/src/components/entityTable/index.tsx +0 -784
- package/src/template/neo-custom-cmp-template/src/components/entityTable/model.ts +0 -134
- package/src/template/neo-custom-cmp-template/src/components/entityTable/style.scss +0 -304
- package/src/template/neo-custom-cmp-template/src/utils/axiosFetcher.ts +0 -37
- package/src/template/neo-custom-cmp-template/src/utils/queryObjectData.ts +0 -76
- package/src/template/neo-custom-cmp-template/src/utils/xobjects.ts +0 -162
- package/src/template/neo-custom-cmp-template/tsconfig.json +0 -49
- package/src/template/react-custom-cmp-template/.prettierrc.js +0 -12
- package/src/template/react-custom-cmp-template/README.md +0 -154
- package/src/template/react-custom-cmp-template/commitlint.config.js +0 -59
- package/src/template/react-custom-cmp-template/neo.config.js +0 -137
- package/src/template/react-custom-cmp-template/package.json +0 -57
- package/src/template/react-custom-cmp-template/public/css/base.css +0 -283
- package/src/template/react-custom-cmp-template/public/scripts/app/bluebird.js +0 -6679
- package/src/template/react-custom-cmp-template/public/template.html +0 -13
- package/src/template/react-custom-cmp-template/src/assets/css/common.scss +0 -127
- package/src/template/react-custom-cmp-template/src/assets/css/mixin.scss +0 -47
- package/src/template/react-custom-cmp-template/src/assets/img/NeoCRM.jpg +0 -0
- package/src/template/react-custom-cmp-template/src/assets/img/custom-widget.svg +0 -1
- package/src/template/react-custom-cmp-template/src/assets/img/favicon.png +0 -0
- package/src/template/react-custom-cmp-template/src/components/infoCard/index.jsx +0 -45
- package/src/template/react-custom-cmp-template/src/components/infoCard/model.js +0 -81
- package/src/template/react-custom-cmp-template/src/components/infoCard/style.scss +0 -67
- package/src/template/react-ts-custom-cmp-template/.prettierrc.js +0 -12
- package/src/template/react-ts-custom-cmp-template/README.md +0 -154
- package/src/template/react-ts-custom-cmp-template/commitlint.config.js +0 -59
- package/src/template/react-ts-custom-cmp-template/neo.config.js +0 -138
- package/src/template/react-ts-custom-cmp-template/package.json +0 -59
- package/src/template/react-ts-custom-cmp-template/public/css/base.css +0 -283
- package/src/template/react-ts-custom-cmp-template/public/scripts/app/bluebird.js +0 -6679
- package/src/template/react-ts-custom-cmp-template/public/template.html +0 -13
- package/src/template/react-ts-custom-cmp-template/src/assets/css/common.scss +0 -127
- package/src/template/react-ts-custom-cmp-template/src/assets/css/mixin.scss +0 -47
- package/src/template/react-ts-custom-cmp-template/src/assets/img/NeoCRM.jpg +0 -0
- package/src/template/react-ts-custom-cmp-template/src/assets/img/custom-widget.svg +0 -1
- package/src/template/react-ts-custom-cmp-template/src/assets/img/favicon.png +0 -0
- package/src/template/react-ts-custom-cmp-template/src/assets/img/map.svg +0 -1
- package/src/template/react-ts-custom-cmp-template/src/components/listWidget/README.md +0 -2
- package/src/template/react-ts-custom-cmp-template/src/components/listWidget/index.tsx +0 -208
- package/src/template/react-ts-custom-cmp-template/src/components/listWidget/model.ts +0 -92
- package/src/template/react-ts-custom-cmp-template/src/components/listWidget/style.scss +0 -350
- package/src/template/react-ts-custom-cmp-template/tsconfig.json +0 -68
- package/src/template/vue2-custom-cmp-template/.prettierrc.js +0 -12
- package/src/template/vue2-custom-cmp-template/README.md +0 -154
- package/src/template/vue2-custom-cmp-template/commitlint.config.js +0 -59
- package/src/template/vue2-custom-cmp-template/neo.config.js +0 -146
- package/src/template/vue2-custom-cmp-template/package.json +0 -59
- package/src/template/vue2-custom-cmp-template/public/css/base.css +0 -283
- package/src/template/vue2-custom-cmp-template/public/scripts/app/bluebird.js +0 -6679
- package/src/template/vue2-custom-cmp-template/public/template.html +0 -13
- package/src/template/vue2-custom-cmp-template/src/assets/css/common.scss +0 -126
- package/src/template/vue2-custom-cmp-template/src/assets/css/mixin.scss +0 -47
- package/src/template/vue2-custom-cmp-template/src/assets/img/NeoCRM.jpg +0 -0
- package/src/template/vue2-custom-cmp-template/src/assets/img/custom-widget.svg +0 -1
- package/src/template/vue2-custom-cmp-template/src/assets/img/favicon.png +0 -0
- package/src/template/vue2-custom-cmp-template/src/components/vueInfoCard/index.vue +0 -131
- package/src/template/vue2-custom-cmp-template/src/components/vueInfoCard/model.js +0 -81
- package/src/utils/getConfigObj.js +0 -18
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
<html lang="en">
|
|
2
|
-
<head>
|
|
3
|
-
<meta charset="UTF-8">
|
|
4
|
-
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
5
|
-
<meta name="format-detection" content="telephone=no"/>
|
|
6
|
-
<meta name="viewport" content="initial-scale=1.0,user-scalable=no,width=device-width,viewport-fit=cover">
|
|
7
|
-
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
|
8
|
-
<title>自定义组件预览页</title>
|
|
9
|
-
</head>
|
|
10
|
-
<body>
|
|
11
|
-
<div id="root"></div>
|
|
12
|
-
</body>
|
|
13
|
-
</html>
|
|
@@ -1,127 +0,0 @@
|
|
|
1
|
-
/* 公共的自定义函数 */
|
|
2
|
-
|
|
3
|
-
@function px2vw($px, $screen-width: 750) {
|
|
4
|
-
@return ($px / $screen-width) * 100vw;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
@function px2rem($px, $remRate: 100) {
|
|
8
|
-
@return ($px / $remRate) + rem;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
@function px2vmin($px, $screen-width: 750) {
|
|
12
|
-
@return ($px / $screen-width) * 100vmin;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
@mixin fillBox {
|
|
16
|
-
width: 100%;
|
|
17
|
-
height: 100%;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
/* 头部细线 */
|
|
21
|
-
@mixin borderTop {
|
|
22
|
-
content: '';
|
|
23
|
-
position: absolute;
|
|
24
|
-
left: 0;
|
|
25
|
-
right: 0;
|
|
26
|
-
top: 0;
|
|
27
|
-
width: 100%;
|
|
28
|
-
height: 1px;
|
|
29
|
-
background: #ddd;
|
|
30
|
-
transform: scaleY(0.5);
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
/* 底部细线 */
|
|
34
|
-
@mixin borderBtm {
|
|
35
|
-
content: '';
|
|
36
|
-
position: absolute;
|
|
37
|
-
left: 0;
|
|
38
|
-
right: 0;
|
|
39
|
-
bottom: 0;
|
|
40
|
-
width: 100%;
|
|
41
|
-
height: 1px;
|
|
42
|
-
background: #ddd;
|
|
43
|
-
transform: scaleY(0.5);
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
/* 统一的内边距 */
|
|
47
|
-
@mixin unifiedPadding($value: 40) {
|
|
48
|
-
padding: 0 px2rem($value) 0 px2rem($value);
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
/* 统一的左内边距 */
|
|
52
|
-
@mixin unifiedLeftPadding($value: 40) {
|
|
53
|
-
padding-left: px2rem($value);
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
/* 统一的右内边距 */
|
|
57
|
-
@mixin unifiedRightPadding($value: 40) {
|
|
58
|
-
padding-right: px2rem($value);
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
/* 统一的底部边框样式 */
|
|
62
|
-
@mixin unifiedBottomBorder {
|
|
63
|
-
border-bottom: 1px solid #ddd;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
/* 统一的上边框样式 */
|
|
67
|
-
@mixin unifiedTopBorder {
|
|
68
|
-
border-top: 1px solid #ddd;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
/* 统一的Item高度 */
|
|
72
|
-
@mixin unifiedItemHeight {
|
|
73
|
-
line-height: px2rem(120);
|
|
74
|
-
height: px2rem(120);
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
/* 设置行高样式 */
|
|
78
|
-
@mixin setItemHeight($value: 120) {
|
|
79
|
-
line-height: px2rem($value);
|
|
80
|
-
height: px2rem($value);
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
/* 统一的Item样式 */
|
|
84
|
-
@mixin unifiedItemStyle {
|
|
85
|
-
font-family: PingFangSC-Regular;
|
|
86
|
-
font-size: px2rem(28);
|
|
87
|
-
color: #828282;
|
|
88
|
-
letter-spacing: 0;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
/* 统一的弹性盒子样式 */
|
|
92
|
-
@mixin unifiedFlexBoxStyle {
|
|
93
|
-
display: flex;
|
|
94
|
-
flex-wrap: nowrap;
|
|
95
|
-
justify-content: center;
|
|
96
|
-
align-items: center;
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
/* 统一的Title样式 */
|
|
100
|
-
@mixin unifiedTitleStyle {
|
|
101
|
-
font-family: PingFangSC-Regular;
|
|
102
|
-
font-size: px2rem(40);
|
|
103
|
-
color: #1e1e1e;
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
/* 统一的内容样式 */
|
|
107
|
-
@mixin unifiedContentStyle {
|
|
108
|
-
font-family: PingFangSC-Regular;
|
|
109
|
-
font-size: px2rem(28);
|
|
110
|
-
color: #1e1e1e;
|
|
111
|
-
letter-spacing: 0;
|
|
112
|
-
text-align: right;
|
|
113
|
-
line-height: px2rem(28);
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
/* 底部导航盒子样式 */
|
|
117
|
-
@mixin fixedBottomBox {
|
|
118
|
-
position: fixed;
|
|
119
|
-
left: 0;
|
|
120
|
-
bottom: 0;
|
|
121
|
-
width: 100%;
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
// 常用的变量
|
|
125
|
-
$background-color: #fafafa;
|
|
126
|
-
$border-color: #f7f7f7;
|
|
127
|
-
$page-padding-top: px2rem(20);
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
// 通用mixin
|
|
2
|
-
$borderColor: #ddd;
|
|
3
|
-
|
|
4
|
-
// type 为top 或者 bottom
|
|
5
|
-
@mixin borderTopOrBtm($type) {
|
|
6
|
-
&::after {
|
|
7
|
-
content: '';
|
|
8
|
-
position: absolute;
|
|
9
|
-
left: 0;
|
|
10
|
-
right: 0;
|
|
11
|
-
#{$type}: 0;
|
|
12
|
-
width: 100%;
|
|
13
|
-
height: 1px;
|
|
14
|
-
background: $borderColor;
|
|
15
|
-
transform: scaleY(0.5);
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
// type为 right 或者 left
|
|
20
|
-
@mixin borderRtOrLt($type) {
|
|
21
|
-
&::after {
|
|
22
|
-
content: '';
|
|
23
|
-
position: absolute;
|
|
24
|
-
top: 0;
|
|
25
|
-
bottom: 0;
|
|
26
|
-
#{$type}: 0;
|
|
27
|
-
height: 100%;
|
|
28
|
-
width: 1px;
|
|
29
|
-
background: $borderColor;
|
|
30
|
-
transform: scaleX(0.5);
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
//超出1行显示...
|
|
35
|
-
@mixin ellipsis1 {
|
|
36
|
-
overflow: hidden;
|
|
37
|
-
text-overflow: ellipsis;
|
|
38
|
-
white-space: nowrap;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
// 超出多行显示...
|
|
42
|
-
@mixin ellipsis($num) {
|
|
43
|
-
overflow: hidden;
|
|
44
|
-
display: -webkit-box;
|
|
45
|
-
-webkit-line-clamp: $num;
|
|
46
|
-
-webkit-box-orient: vertical;
|
|
47
|
-
}
|
|
Binary file
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1756957113315" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5395" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><path d="M288 768v115.2c0 25.6 19.2 44.8 44.8 44.8h556.8c25.6 0 44.8-19.2 44.8-44.8v-198.4s0-6.4-6.4-6.4h-83.2c-38.4 0-70.4-32-70.4-70.4 0-38.4 32-70.4 70.4-70.4h83.2s6.4 0 6.4-6.4V332.8c0-25.6-19.2-44.8-44.8-44.8H768C768 198.4 697.6 128 608 128S448 198.4 448 288H332.8c-25.6 0-44.8 19.2-44.8 44.8V448C198.4 448 128 518.4 128 608S198.4 768 288 768z m0-249.6h70.4V358.4h160V288c0-51.2 38.4-89.6 89.6-89.6 51.2 0 89.6 38.4 89.6 89.6v70.4h160v108.8h-19.2c-76.8 0-140.8 64-140.8 140.8 0 76.8 64 140.8 140.8 140.8h19.2v108.8H358.4v-160H288c-51.2 0-89.6-38.4-89.6-89.6 0-51.2 38.4-89.6 89.6-89.6z" p-id="5396" fill="#0764f5"></path></svg>
|
|
Binary file
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1760670196857" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="4651" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><path d="M485.888 626.496 512 663.488l26.112-36.992c1.088-1.472 107.392-151.68 140.864-189.184C715.776 396.224 736 343.168 736 288 736 164.544 635.52 64 512 64s-224 100.48-224 224c0 55.232 20.224 108.288 57.088 149.376C378.624 474.816 484.8 625.024 485.888 626.496zM512 128c88.256 0 160 71.808 160 160 0 39.424-14.464 77.312-40.768 106.688C606.016 422.912 546.624 504.64 512 552.896 477.44 504.64 418.048 422.912 392.768 394.688 366.528 365.376 352 327.488 352 288 352 199.808 423.744 128 512 128zM512 384c52.928 0 96-43.072 96-96S564.928 192 512 192 416 235.072 416 288 459.072 384 512 384zM512 256c17.6 0 32 14.336 32 32S529.6 320 512 320 480 305.664 480 288 494.4 256 512 256zM960 129.024l0 703.168L680 960 384 832l-320 127.36L64 258.176l168.256-67.904C227.264 211.456 224 233.28 224 256c0 2.176 0.512 4.224 0.576 6.4L128 301.376l0 563.648 192-76.416L320 476.032c18.048 23.36 41.472 55.104 64 86.144l0 200.96 1.024-0.384 24.384 10.56L640 872.96 640 562.304c22.976-31.616 46.208-63.168 64-86.144l0 402.56 192-87.68L896 228.608l-97.536 44.544C798.784 267.392 800 261.76 800 256c0-17.664-2.176-34.752-5.184-51.584L960 129.024z" p-id="4652" fill="#0764f5"></path></svg>
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"experimentalDecorators": true,
|
|
4
|
-
/* Basic Options */
|
|
5
|
-
"target": "esnext",
|
|
6
|
-
/* 指定编译之后的版本: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017','ES2018' or 'ESNEXT'. */
|
|
7
|
-
"module": "esnext" /* 指定要使用的模板标准: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */,
|
|
8
|
-
// "lib": [], /* Specify library files to be included in the compilation. */
|
|
9
|
-
"allowJs": false /* 指定是否允许编译JS文件,默认false,即不编译JS文件. */,
|
|
10
|
-
// "checkJs": true, /* 指定是否检查和报告JS文件中的错误,默认false */
|
|
11
|
-
"jsx": "react" /* 指定jsx代码用于的开发环境:'preserve','react-native', or 'react'. */,
|
|
12
|
-
"declaration": false /* 指定是否在编译的时候生成相的d.ts声明文件 */,
|
|
13
|
-
// "declarationMap": true, /* 指定编译时是否生成.map文件 */
|
|
14
|
-
// "sourceMap": true, /* 指定编译时是否生成.map文件 */
|
|
15
|
-
// "outFile": "./", /* 指定输出文件合并为一个文件 */
|
|
16
|
-
// "outDir": "dist", /* 指定输出文件夹,值为一个文件夹路径字符串,输出的文件都将放置在这个文件夹*/
|
|
17
|
-
// "rootDir": "src", /* 指定编译文件的根目录,编译器会在根目录查找入口文件 */
|
|
18
|
-
// "composite": true, /* 是否编译构建引用项目 */
|
|
19
|
-
// "removeComments": true, /* 指定是否将编译后的文件注释删掉,设为true的话即删除注释,默认为false */
|
|
20
|
-
"noEmit": false /* 不生成编译文件 */,
|
|
21
|
-
"importHelpers": true /* 指定是否引入tslib里的复制工具函数,默认为false */,
|
|
22
|
-
// "downlevelIteration": true, /* 当target为"ES5"或"ES3"时,为"for-of" "spread"和"destructuring"中的迭代器提供完全支持 */
|
|
23
|
-
"isolatedModules": false /* 指定是否将每个文件作为单独的模块,默认为true */,
|
|
24
|
-
|
|
25
|
-
/* Strict Type-Checking Options */
|
|
26
|
-
"strict": false /* 指定是否启动所有类型检查 */,
|
|
27
|
-
"noImplicitAny": true /* Raise error on expressions and declarations with an implied 'any' type. */,
|
|
28
|
-
"strictNullChecks": true /* Enable strict null checks. */,
|
|
29
|
-
// "strictFunctionTypes": true, /* Enable strict checking of function types. */
|
|
30
|
-
// "strictPropertyInitialization": true, /* Enable strict checking of property initialization in classes. */
|
|
31
|
-
"noImplicitThis": true /* Raise error on 'this' expressions with an implied 'any' type. */,
|
|
32
|
-
// "alwaysStrict": true, /* Parse in strict mode and emit "use strict" for each source file. */
|
|
33
|
-
|
|
34
|
-
/* Additional Checks */
|
|
35
|
-
"noUnusedLocals": false /* Report errors on unused locals. */,
|
|
36
|
-
// "noUnusedParameters": true, /* Report errors on unused parameters. */
|
|
37
|
-
"noImplicitReturns": true /* Report error when not all code paths in function return a value. */,
|
|
38
|
-
// "noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */
|
|
39
|
-
|
|
40
|
-
/* Module Resolution Options */
|
|
41
|
-
"moduleResolution": "node" /* Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6). */,
|
|
42
|
-
"baseUrl": "./" /* Base directory to resolve non-absolute module names. */,
|
|
43
|
-
"paths": {
|
|
44
|
-
"@": ["./src"]
|
|
45
|
-
} /* A series of entries which re-map imports to lookup locations relative to the 'baseUrl'. */,
|
|
46
|
-
// "rootDirs": [], /* List of root folders whose combined content represents the structure of the project at runtime. */
|
|
47
|
-
/* 指定声明文件或文件夹的路径列表,如果指定了此项,则只有在这里列出的声明文件才会被加载 */
|
|
48
|
-
"typeRoots": ["./@types", "./node_modules/@types"],
|
|
49
|
-
// "types": [], /* 指定需要包含的模块,只有在这里列出的模块的声明文件才会被加载 */
|
|
50
|
-
"allowSyntheticDefaultImports": true /* Allow default imports from modules with no default export. This does not affect code emit, just typechecking. */,
|
|
51
|
-
"esModuleInterop": true /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */,
|
|
52
|
-
// "preserveSymlinks": true, /* Do not resolve the real path of symlinks. */
|
|
53
|
-
|
|
54
|
-
/* Source Map Options */
|
|
55
|
-
// "sourceRoot": "./", /* Specify the location where debugger should locate TypeScript files instead of source locations. */
|
|
56
|
-
// "mapRoot": "./", /* Specify the location where debugger should locate map files instead of generated locations. */
|
|
57
|
-
// "inlineSourceMap": true, /* Emit a single file with source maps instead of having a separate file. */
|
|
58
|
-
// "inlineSources": true, /* Emit the source alongside the sourcemaps within a single file; requires '--inlineSourceMap' or '--sourceMap' to be set. */
|
|
59
|
-
|
|
60
|
-
/* Experimental Options */
|
|
61
|
-
// "experimentalDecorators": true, /* Enables experimental support for ES7 decorators. */
|
|
62
|
-
// "emitDecoratorMetadata": true, /* Enables experimental support for emitting type metadata for decorators. */
|
|
63
|
-
"forceConsistentCasingInFileNames": true /* Disallow inconsistently-cased references to the same file. */
|
|
64
|
-
// "suppressImplicitAnyIndexErrors": true /* Suppress --noImplicitAny errors for indexing objects lacking index signatures. See issue #1232 for more details. */
|
|
65
|
-
},
|
|
66
|
-
"include": ["src", "test"],
|
|
67
|
-
"exclude": ["node_modules"]
|
|
68
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
prettier 配置文件
|
|
3
|
-
更多配置信息:https://prettier.io/docs/en/options.html
|
|
4
|
-
*/
|
|
5
|
-
module.exports = {
|
|
6
|
-
semi: true, // Semicolons 分号,默认需要分号
|
|
7
|
-
tabWidth: 2, // 空格,默认 2,
|
|
8
|
-
useTabs: false,
|
|
9
|
-
singleQuote: true, // 单引号还是双引号,默认为false 双引号
|
|
10
|
-
trailingComma: 'all', // 逗号
|
|
11
|
-
jsxBracketSameLine: false, // 默认为false,Put the > of a multi-line JSX element at the end of the last line instead of being alone on the next line (does not apply to self closing elements).
|
|
12
|
-
};
|
|
@@ -1,155 +0,0 @@
|
|
|
1
|
-
### 目录说明
|
|
2
|
-
- src: 自定义组件源码;
|
|
3
|
-
- src/assets: 存放组件静态资源,比如 css、img等;
|
|
4
|
-
- src/components: 存放自定义组件代码,每个自定义组件以自身名称(cmpType 数值)作为目录进行存放;
|
|
5
|
-
- src/components/xxCmp/index: 自定义组件的内容文件;
|
|
6
|
-
- src/components/xxCmp/model: 自定义组件的模型文件,用于对接页面设计器;
|
|
7
|
-
- neo.config.js: neo-cmp-cli 配置文件。
|
|
8
|
-
|
|
9
|
-
### 组件开发规范
|
|
10
|
-
- 存放在 src/components 目录下的自定义组件,默认 index 为自定义组件源码入口文件,register.[tj]s 为注册 自定义组件的脚本文件,model.[tj]s 为自定义组件的模型文件(对接页面设计器需要);
|
|
11
|
-
- 当 neo.config.js 中的 entry 为空或者不存在时,cli 将根据 src/components 目录下的自定义组件结构生成对应的 entry 配置(可在命令控制台查看生成的 entry 配置);
|
|
12
|
-
- 自定义组件中可用的配置项类型 请见 [当前可用表单项](https://github.com/wibetter/neo-register/blob/master/docs/FormItemType.md);
|
|
13
|
-
- 自定义组件最外层请设置一个唯一的 ClassName(比如 xx-cmpType-container),所有内容样式请放在该 ClassName 中,避免自定义组件样式相互干扰;
|
|
14
|
-
- 默认开启代码规范检测(含样式内容),如需关闭,请调整 neo.config.js 相关配置;
|
|
15
|
-
- 请使用 react 16版本;
|
|
16
|
-
- 支持在自定义组件中使用 Open API,详细见[使用说明](https://www.npmjs.com/package/neo-open-api)。
|
|
17
|
-
|
|
18
|
-
### 自定义组件注册器使用说明
|
|
19
|
-
- [neo-register 使用说明](https://www.npmjs.com/package/neo-register?activeTab=readme)
|
|
20
|
-
备注:预览、调试(linkDebug)和构建发布时 cli 会自动创建对应的注册文件(含 neo-register 的使用),用户无需关注 neo-register。
|
|
21
|
-
|
|
22
|
-
### 开发说明
|
|
23
|
-
|
|
24
|
-
1. **安装依赖**
|
|
25
|
-
```bash
|
|
26
|
-
$ npm i 或者 yarn
|
|
27
|
-
```
|
|
28
|
-
|
|
29
|
-
2. **preview: 组件预览模式(带热更新)**
|
|
30
|
-
> preview模式:用于预览自定义组件内容。
|
|
31
|
-
```bash
|
|
32
|
-
$ npm run preview
|
|
33
|
-
```
|
|
34
|
-
|
|
35
|
-
3. **linkDebug: 外链调试(在线上页面设计器端预览自定义组件)**
|
|
36
|
-
> linkDebug模式:用于在线上页面设计器中预览和调试自定义组件。
|
|
37
|
-
```bash
|
|
38
|
-
$ npm run linkDebug
|
|
39
|
-
```
|
|
40
|
-
|
|
41
|
-
4. **发布到 NeoCRM 平台**
|
|
42
|
-
> 需要确保 package.json 中的 name 值唯一,version 值不重复。
|
|
43
|
-
```bash
|
|
44
|
-
$ npm run pushCmp
|
|
45
|
-
```
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
### 🔐 授权配置
|
|
49
|
-
|
|
50
|
-
使用 `neo push cmp`、`neo pull cmp`、`neo delete cmp` 等命令与 NeoCRM 平台交互时,需要配置授权信息。
|
|
51
|
-
|
|
52
|
-
#### 方式一:OAuth2 登录授权(推荐)
|
|
53
|
-
|
|
54
|
-
OAuth2 授权码模式更加安全可靠,无需用户配置账户名和密码。
|
|
55
|
-
|
|
56
|
-
##### 使用步骤
|
|
57
|
-
|
|
58
|
-
1. **登录 NeoCRM 平台**
|
|
59
|
-
```bash
|
|
60
|
-
neo login
|
|
61
|
-
```
|
|
62
|
-
|
|
63
|
-
执行流程:
|
|
64
|
-
- 自动打开浏览器访问授权页面
|
|
65
|
-
- 在浏览器中输入 NeoCRM 账号密码进行登录(需选择对应的租户)
|
|
66
|
-
- 授权成功后自动跳转回本地(附带 code)
|
|
67
|
-
- cli 端 通过 code 获取 Token,并自动保存到项目的 `.neo-cli/token.json` 文件中
|
|
68
|
-
|
|
69
|
-
2. **登出 NeoCRM 平台**
|
|
70
|
-
```bash
|
|
71
|
-
neo logout
|
|
72
|
-
```
|
|
73
|
-
|
|
74
|
-
功能:清除本地保存的 token 文件,下次使用需要重新登录。
|
|
75
|
-
|
|
76
|
-
##### 配置示例
|
|
77
|
-
|
|
78
|
-
```javascript
|
|
79
|
-
// neo.config.js
|
|
80
|
-
module.exports = {
|
|
81
|
-
neoConfig: {
|
|
82
|
-
neoBaseURL: 'https://crm-cd.xiaoshouyi.com', // 平台根地址(默认:https://crm.xiaoshouyi.com)
|
|
83
|
-
// 登录授权 URL(用于获取 code)
|
|
84
|
-
loginURL: 'https://login-cd.xiaoshouyi.com/auc/oauth2/auth',
|
|
85
|
-
tokenAPI: 'https://login-cd.xiaoshouyi.com/auc/oauth2/token', // Token 获取接口地址
|
|
86
|
-
},
|
|
87
|
-
}
|
|
88
|
-
```
|
|
89
|
-
|
|
90
|
-
##### Token 有效期
|
|
91
|
-
|
|
92
|
-
- **access_token**:默认有效期 2 小时
|
|
93
|
-
- **refresh_token**:默认有效期 30 天
|
|
94
|
-
- 系统会在 access_token 过期前 5 分钟自动刷新
|
|
95
|
-
- 如果 refresh_token 也过期,需要重新执行 `neo login`
|
|
96
|
-
|
|
97
|
-
##### 常见问题
|
|
98
|
-
|
|
99
|
-
**Q1: 浏览器无法自动打开怎么办?**
|
|
100
|
-
A: 命令行会输出授权 URL,手动复制到浏览器中打开即可。
|
|
101
|
-
|
|
102
|
-
**Q2: Token 刷新失败怎么办?**
|
|
103
|
-
A: 如果 refresh_token 也过期(默认 30 天),需要重新执行 `neo login`。同时检查网络连接是否正常。
|
|
104
|
-
|
|
105
|
-
**Q3: 授权登录后没有正常跳回 redirect_uri**
|
|
106
|
-
A: 可能被浏览器安装的插件影响,目前已知会影响授权登录的浏览器插件有:Neo UI Extension,请关闭插件后重试。
|
|
107
|
-
|
|
108
|
-
#### 方式二:密码授权配置
|
|
109
|
-
|
|
110
|
-
在项目根目录的 `neo.config.js` 文件中添加 NeoCRM 平台授权配置:
|
|
111
|
-
|
|
112
|
-
```javascript
|
|
113
|
-
module.exports = {
|
|
114
|
-
neoConfig: {
|
|
115
|
-
neoBaseURL: 'https://crm-cd.xiaoshouyi.com', // 平台根地址(默认:https://crm.xiaoshouyi.com)
|
|
116
|
-
tokenAPI: 'https://login-cd.xiaoshouyi.com/auc/oauth2/token', // Token 获取接口地址
|
|
117
|
-
// NeoCRM 授权配置
|
|
118
|
-
auth: {
|
|
119
|
-
client_id: 'xx', // 客户端 ID,从创建连接器的客户端信息中获取(Client_Id)
|
|
120
|
-
client_secret: 'xxx', // 客户端秘钥,从创建连接器的客户端信息中获取(Client_Secret)
|
|
121
|
-
username: 'xx', // 用户在销售易系统中的用户名
|
|
122
|
-
/**
|
|
123
|
-
* password 为 用户在销售易系统中的账号密码加上 8 位安全令牌。
|
|
124
|
-
* 例如,用户密码为 123456,安全令牌为 ABCDEFGH,则 password 的值应为 123456ABCDEFGH。
|
|
125
|
-
*/
|
|
126
|
-
password: 'xx xx' // 用户账户密码 + 8 位安全令牌
|
|
127
|
-
},
|
|
128
|
-
},
|
|
129
|
-
}
|
|
130
|
-
```
|
|
131
|
-
|
|
132
|
-
##### 授权配置获取方式
|
|
133
|
-
|
|
134
|
-
1. **客户端 ID 和客户端秘钥**:需通过创建连接器获取
|
|
135
|
-
- 访问 [销售易文档中心](https://doc.xiaoshouyi.com) / 创建连接器
|
|
136
|
-
- 创建连接器后,从客户端信息中获取 `Client_Id` 和 `Client_Secret`
|
|
137
|
-
|
|
138
|
-
2. **安全令牌**:如何获取安全令牌
|
|
139
|
-
- 访问 [销售易文档中心](https://doc.xiaoshouyi.com) / OAuth安全认证 / 密码模式 / 获取令牌
|
|
140
|
-
- 按照文档说明获取 8 位安全令牌
|
|
141
|
-
- `password` 字段 = 用户账户密码 + 8 位安全令牌(直接拼接,无空格或分隔符)
|
|
142
|
-
|
|
143
|
-
#### OAuth2 模式 vs 密码模式
|
|
144
|
-
|
|
145
|
-
| 特性 | OAuth2 授权码模式 | 密码模式 |
|
|
146
|
-
|------|------------------|---------|
|
|
147
|
-
| 安全性 | ✅ 高(无需在配置文件中存储密码) | ⚠️ 较低(需要配置密码和安全令牌) |
|
|
148
|
-
| Token 刷新 | ✅ 自动刷新 | ✅ 自动刷新 |
|
|
149
|
-
| 有效期 | 2 小时(可自动刷新) | 永不过期 |
|
|
150
|
-
| 推荐程度 | ⭐⭐⭐⭐⭐ | ⭐⭐⭐ |
|
|
151
|
-
|
|
152
|
-
---
|
|
153
|
-
|
|
154
|
-
### 配置项说明(neo-cmp-cli)
|
|
155
|
-
[请查看neo-cmp-cli](https://www.npmjs.com/package/neo-cmp-cli)
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* https://www.npmjs.com/package/@commitlint/config-conventional\
|
|
3
|
-
*
|
|
4
|
-
* Git提交规范-配置文件
|
|
5
|
-
* Commit message 由Header、Body 和 Footer三个部分组成,其格式如下:
|
|
6
|
-
* <type>(<scope>): <subject>
|
|
7
|
-
* <BLANK LINE>
|
|
8
|
-
* <body>
|
|
9
|
-
* <BLANK LINE>
|
|
10
|
-
* <footer>
|
|
11
|
-
*
|
|
12
|
-
*【备注】
|
|
13
|
-
* type 用于说明 commit 的类别,常用下面 7 个标识:
|
|
14
|
-
* scope 用于说明当前功能点作用于哪个页面或者哪个功能模块;
|
|
15
|
-
* subject 用于简短的描述当前commit,不超过50个字符;
|
|
16
|
-
* body 用于填写对本次 commit 的详细描述,可以分成多行;
|
|
17
|
-
* footer 不兼容变动声明,或者关闭 Issue。
|
|
18
|
-
*
|
|
19
|
-
* 【type类型取值类型】
|
|
20
|
-
* feat:新功能(feature)
|
|
21
|
-
* fix:功能优化
|
|
22
|
-
* bug:修补bug
|
|
23
|
-
* docs:文档(documentation)
|
|
24
|
-
* style:格式(不影响代码运行的变动)
|
|
25
|
-
* refactor:重构(即不是新增功能,也不是修改bug的代码变动)
|
|
26
|
-
* test:增加测试
|
|
27
|
-
* chore:构建过程或辅助工具的变动
|
|
28
|
-
* build:影响构建系统或外部依赖项的更改(示例范围:gulp,broccoli,npm)
|
|
29
|
-
* ci:对 CI 配置文件和脚本的更改(示例范围:Travis,Circle,BrowserStack,SauceLabs)
|
|
30
|
-
* perf:改进性能的代码更改
|
|
31
|
-
*
|
|
32
|
-
*/
|
|
33
|
-
|
|
34
|
-
module.exports = {
|
|
35
|
-
extends: ['@commitlint/config-conventional'],
|
|
36
|
-
rules: {
|
|
37
|
-
'type-enum': [
|
|
38
|
-
2,
|
|
39
|
-
'always',
|
|
40
|
-
[
|
|
41
|
-
'feat',
|
|
42
|
-
'fix',
|
|
43
|
-
'bug',
|
|
44
|
-
'docs',
|
|
45
|
-
'style',
|
|
46
|
-
'refactor',
|
|
47
|
-
'test',
|
|
48
|
-
'chore',
|
|
49
|
-
'perf',
|
|
50
|
-
'build',
|
|
51
|
-
'ci',
|
|
52
|
-
],
|
|
53
|
-
],
|
|
54
|
-
'type-empty': [2, 'never'],
|
|
55
|
-
'scope-empty': [1, 'never'],
|
|
56
|
-
'subject-full-stop': [0, 'never'],
|
|
57
|
-
'subject-case': [0, 'never'],
|
|
58
|
-
},
|
|
59
|
-
};
|