ebaoferc 0.3.3-beta.1 → 0.3.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/LICENSE +21 -21
- package/README.md +43 -43
- package/dist/components/ImageViewTrigger/index.d.ts +4 -0
- package/dist/components/ImageViewTrigger/index.js +14 -6
- package/dist/components/ImageViewTrigger/index.less +25 -25
- package/dist/components/MindGraph/core/graphic/drag.js +15 -15
- package/dist/components/MindGraph/core/graphic/index.js +105 -105
- package/dist/components/MindGraph/core/helper/depth-first-walk-tree.js +4 -4
- package/dist/components/MindGraph/core/helper/descendant.js +3 -3
- package/dist/components/MindGraph/core/helper/get-layout-calc-children.js +6 -6
- package/dist/components/MindGraph/core/helper/judge-if-all-child-fold.js +4 -4
- package/dist/components/MindGraph/core/helper/judge-if-heir-and-fold.js +6 -6
- package/dist/components/MindGraph/core/helper/judge-if-visual-leaf.js +3 -3
- package/dist/components/MindGraph/core/index.d.ts +2 -6
- package/dist/components/MindGraph/core/index.js +26 -26
- package/dist/components/MindGraph/core/process/layout/structured/get-node-cross-boundary.js +7 -7
- package/dist/components/MindGraph/core/process/layout/type.js +20 -20
- package/dist/components/MindGraph/core/process/visible.js +3 -3
- package/dist/components/MindGraph/react/component/index.module.less +71 -71
- package/dist/components/MindGraph/react/scrollbar/axis/index.module.less +47 -47
- package/dist/components/QueryProCard/index.less +9 -9
- package/dist/components/SectionTitleBar/index.less +31 -31
- package/dist/components/SliderVerify/style.module.less +119 -119
- package/dist/components/StyledQueryFilter/index.less +34 -34
- package/dist/components/StyledTable/index.less +17 -17
- package/dist/components/ThemeStatusTag/index.less +11 -11
- package/dist/utils/file/index.d.ts +0 -1
- package/dist/utils/file/index.js +1 -2
- package/dist/utils/format/index.js +14 -14
- package/package.json +100 -100
- package/dist/utils/file/file-upload.d.ts +0 -1
- package/dist/utils/file/file-upload.js +0 -15
|
@@ -1,119 +1,119 @@
|
|
|
1
|
-
.slider {
|
|
2
|
-
background-color: #fff;
|
|
3
|
-
width: 278px;
|
|
4
|
-
z-index: 999;
|
|
5
|
-
box-sizing: border-box;
|
|
6
|
-
padding: 9px;
|
|
7
|
-
border-radius: 6px;
|
|
8
|
-
box-shadow: 0 0 11px 0 #999;
|
|
9
|
-
user-select: none;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
.slider .content {
|
|
13
|
-
width: 100%;
|
|
14
|
-
height: 159px;
|
|
15
|
-
position: relative;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
.bg-img-div {
|
|
19
|
-
width: 100%;
|
|
20
|
-
height: 100%;
|
|
21
|
-
position: absolute;
|
|
22
|
-
transform: translate(0, 0);
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
.slider-img-div {
|
|
26
|
-
height: 100%;
|
|
27
|
-
position: absolute;
|
|
28
|
-
transform: translate(0, 0);
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
.bg-img-div img {
|
|
32
|
-
width: 100%;
|
|
33
|
-
-webkit-user-drag: none;
|
|
34
|
-
-khtml-user-drag: none;
|
|
35
|
-
-moz-user-drag: none;
|
|
36
|
-
-o-user-drag: none;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
.slider-img-div img {
|
|
40
|
-
height: 100%;
|
|
41
|
-
-webkit-user-drag: none;
|
|
42
|
-
-khtml-user-drag: none;
|
|
43
|
-
-moz-user-drag: none;
|
|
44
|
-
-o-user-drag: none;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
.slider .slider-move {
|
|
48
|
-
width: 100%;
|
|
49
|
-
margin: 11px 0;
|
|
50
|
-
position: relative;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
.slider .bottom {
|
|
54
|
-
width: 100%;
|
|
55
|
-
display: flex;
|
|
56
|
-
justify-content: flex-end;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
.refresh-btn,
|
|
60
|
-
.close-btn {
|
|
61
|
-
display: inline-block;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
.slider-move .slider-move-track {
|
|
65
|
-
line-height: 32px;
|
|
66
|
-
font-size: 14px;
|
|
67
|
-
text-align: center;
|
|
68
|
-
white-space: nowrap;
|
|
69
|
-
color: #88949d;
|
|
70
|
-
user-select: none;
|
|
71
|
-
border-radius: 20px;
|
|
72
|
-
background: #dfe1e2;
|
|
73
|
-
box-shadow: inset 0 0 4px 0 rgba(0, 0, 0, 15%);
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
.slider-move .slider-move-btn {
|
|
77
|
-
transform: translate(0, 0);
|
|
78
|
-
position: absolute;
|
|
79
|
-
top: -8px;
|
|
80
|
-
left: 0;
|
|
81
|
-
width: 48px;
|
|
82
|
-
height: 48px;
|
|
83
|
-
-webkit-user-drag: none;
|
|
84
|
-
-khtml-user-drag: none;
|
|
85
|
-
-moz-user-drag: none;
|
|
86
|
-
-o-user-drag: none;
|
|
87
|
-
box-shadow: 0 0 8px 0 rgba(0, 0, 0, 30%), inset 0 0 6px 0 rgba(0, 0, 0, 5%);
|
|
88
|
-
background-color: white;
|
|
89
|
-
border-radius: 50%;
|
|
90
|
-
display: flex;
|
|
91
|
-
justify-content: center;
|
|
92
|
-
align-items: center;
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
.slider-move .slider-move-btn-img {
|
|
96
|
-
-webkit-user-drag: none;
|
|
97
|
-
-khtml-user-drag: none;
|
|
98
|
-
-moz-user-drag: none;
|
|
99
|
-
-o-user-drag: none;
|
|
100
|
-
display: flex;
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
.slider-move-btn:hover,
|
|
104
|
-
.close-btn:hover,
|
|
105
|
-
.refresh-btn:hover {
|
|
106
|
-
cursor: pointer;
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
.bottom .close-btn {
|
|
110
|
-
width: 20px;
|
|
111
|
-
height: 20px;
|
|
112
|
-
margin: 5px;
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
.bottom .refresh-btn {
|
|
116
|
-
width: 20px;
|
|
117
|
-
height: 20px;
|
|
118
|
-
margin: 5px;
|
|
119
|
-
}
|
|
1
|
+
.slider {
|
|
2
|
+
background-color: #fff;
|
|
3
|
+
width: 278px;
|
|
4
|
+
z-index: 999;
|
|
5
|
+
box-sizing: border-box;
|
|
6
|
+
padding: 9px;
|
|
7
|
+
border-radius: 6px;
|
|
8
|
+
box-shadow: 0 0 11px 0 #999;
|
|
9
|
+
user-select: none;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.slider .content {
|
|
13
|
+
width: 100%;
|
|
14
|
+
height: 159px;
|
|
15
|
+
position: relative;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.bg-img-div {
|
|
19
|
+
width: 100%;
|
|
20
|
+
height: 100%;
|
|
21
|
+
position: absolute;
|
|
22
|
+
transform: translate(0, 0);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.slider-img-div {
|
|
26
|
+
height: 100%;
|
|
27
|
+
position: absolute;
|
|
28
|
+
transform: translate(0, 0);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.bg-img-div img {
|
|
32
|
+
width: 100%;
|
|
33
|
+
-webkit-user-drag: none;
|
|
34
|
+
-khtml-user-drag: none;
|
|
35
|
+
-moz-user-drag: none;
|
|
36
|
+
-o-user-drag: none;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.slider-img-div img {
|
|
40
|
+
height: 100%;
|
|
41
|
+
-webkit-user-drag: none;
|
|
42
|
+
-khtml-user-drag: none;
|
|
43
|
+
-moz-user-drag: none;
|
|
44
|
+
-o-user-drag: none;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.slider .slider-move {
|
|
48
|
+
width: 100%;
|
|
49
|
+
margin: 11px 0;
|
|
50
|
+
position: relative;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.slider .bottom {
|
|
54
|
+
width: 100%;
|
|
55
|
+
display: flex;
|
|
56
|
+
justify-content: flex-end;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.refresh-btn,
|
|
60
|
+
.close-btn {
|
|
61
|
+
display: inline-block;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.slider-move .slider-move-track {
|
|
65
|
+
line-height: 32px;
|
|
66
|
+
font-size: 14px;
|
|
67
|
+
text-align: center;
|
|
68
|
+
white-space: nowrap;
|
|
69
|
+
color: #88949d;
|
|
70
|
+
user-select: none;
|
|
71
|
+
border-radius: 20px;
|
|
72
|
+
background: #dfe1e2;
|
|
73
|
+
box-shadow: inset 0 0 4px 0 rgba(0, 0, 0, 15%);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.slider-move .slider-move-btn {
|
|
77
|
+
transform: translate(0, 0);
|
|
78
|
+
position: absolute;
|
|
79
|
+
top: -8px;
|
|
80
|
+
left: 0;
|
|
81
|
+
width: 48px;
|
|
82
|
+
height: 48px;
|
|
83
|
+
-webkit-user-drag: none;
|
|
84
|
+
-khtml-user-drag: none;
|
|
85
|
+
-moz-user-drag: none;
|
|
86
|
+
-o-user-drag: none;
|
|
87
|
+
box-shadow: 0 0 8px 0 rgba(0, 0, 0, 30%), inset 0 0 6px 0 rgba(0, 0, 0, 5%);
|
|
88
|
+
background-color: white;
|
|
89
|
+
border-radius: 50%;
|
|
90
|
+
display: flex;
|
|
91
|
+
justify-content: center;
|
|
92
|
+
align-items: center;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.slider-move .slider-move-btn-img {
|
|
96
|
+
-webkit-user-drag: none;
|
|
97
|
+
-khtml-user-drag: none;
|
|
98
|
+
-moz-user-drag: none;
|
|
99
|
+
-o-user-drag: none;
|
|
100
|
+
display: flex;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.slider-move-btn:hover,
|
|
104
|
+
.close-btn:hover,
|
|
105
|
+
.refresh-btn:hover {
|
|
106
|
+
cursor: pointer;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.bottom .close-btn {
|
|
110
|
+
width: 20px;
|
|
111
|
+
height: 20px;
|
|
112
|
+
margin: 5px;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.bottom .refresh-btn {
|
|
116
|
+
width: 20px;
|
|
117
|
+
height: 20px;
|
|
118
|
+
margin: 5px;
|
|
119
|
+
}
|
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
.custom-styled-query-filter {
|
|
2
|
-
display: flex;
|
|
3
|
-
justify-content: space-between;
|
|
4
|
-
column-gap: 16px;
|
|
5
|
-
|
|
6
|
-
&__form {
|
|
7
|
-
flex: 1;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
&__right {
|
|
11
|
-
display: flex;
|
|
12
|
-
flex-direction: column;
|
|
13
|
-
justify-content: space-between;
|
|
14
|
-
align-items: flex-end;
|
|
15
|
-
|
|
16
|
-
.ant-btn-link {
|
|
17
|
-
padding-right: 0;
|
|
18
|
-
margin-bottom: 28px;
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
&__submitter {
|
|
23
|
-
display: flex;
|
|
24
|
-
column-gap: 8px;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
.ant-form-item-no-colon {
|
|
28
|
-
margin-right: 10px;
|
|
29
|
-
|
|
30
|
-
&::after {
|
|
31
|
-
display: none;
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
}
|
|
1
|
+
.custom-styled-query-filter {
|
|
2
|
+
display: flex;
|
|
3
|
+
justify-content: space-between;
|
|
4
|
+
column-gap: 16px;
|
|
5
|
+
|
|
6
|
+
&__form {
|
|
7
|
+
flex: 1;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
&__right {
|
|
11
|
+
display: flex;
|
|
12
|
+
flex-direction: column;
|
|
13
|
+
justify-content: space-between;
|
|
14
|
+
align-items: flex-end;
|
|
15
|
+
|
|
16
|
+
.ant-btn-link {
|
|
17
|
+
padding-right: 0;
|
|
18
|
+
margin-bottom: 28px;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
&__submitter {
|
|
23
|
+
display: flex;
|
|
24
|
+
column-gap: 8px;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.ant-form-item-no-colon {
|
|
28
|
+
margin-right: 10px;
|
|
29
|
+
|
|
30
|
+
&::after {
|
|
31
|
+
display: none;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
.styled-table-row {
|
|
2
|
-
td {
|
|
3
|
-
padding: 12.67px 16px !important;
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
&:hover {
|
|
7
|
-
td {
|
|
8
|
-
background-color: #f0f0f0 !important;
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
.styled-table-zebra-stripe {
|
|
14
|
-
td {
|
|
15
|
-
background: #f9f9f9 !important;
|
|
16
|
-
}
|
|
17
|
-
}
|
|
1
|
+
.styled-table-row {
|
|
2
|
+
td {
|
|
3
|
+
padding: 12.67px 16px !important;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
&:hover {
|
|
7
|
+
td {
|
|
8
|
+
background-color: #f0f0f0 !important;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.styled-table-zebra-stripe {
|
|
14
|
+
td {
|
|
15
|
+
background: #f9f9f9 !important;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
.theme-status-tag {
|
|
2
|
-
display: flex;
|
|
3
|
-
align-items: center;
|
|
4
|
-
gap: 4px;
|
|
5
|
-
|
|
6
|
-
.circle {
|
|
7
|
-
width: 7px;
|
|
8
|
-
height: 7px;
|
|
9
|
-
border-radius: 50%;
|
|
10
|
-
}
|
|
11
|
-
}
|
|
1
|
+
.theme-status-tag {
|
|
2
|
+
display: flex;
|
|
3
|
+
align-items: center;
|
|
4
|
+
gap: 4px;
|
|
5
|
+
|
|
6
|
+
.circle {
|
|
7
|
+
width: 7px;
|
|
8
|
+
height: 7px;
|
|
9
|
+
border-radius: 50%;
|
|
10
|
+
}
|
|
11
|
+
}
|
package/dist/utils/file/index.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
export * from "./download";
|
|
2
|
-
export * from "./file-upload";
|
|
1
|
+
export * from "./download";
|
|
@@ -26,17 +26,17 @@ export function arrayToSingleValue(value) {
|
|
|
26
26
|
return value;
|
|
27
27
|
}
|
|
28
28
|
|
|
29
|
-
/**
|
|
30
|
-
* 判断数据类型 Number/String/Boolean/Null/Undefined/Array/Object/Symbol/Date/RegExp/FormData
|
|
31
|
-
* @param data
|
|
32
|
-
* @returns
|
|
29
|
+
/**
|
|
30
|
+
* 判断数据类型 Number/String/Boolean/Null/Undefined/Array/Object/Symbol/Date/RegExp/FormData
|
|
31
|
+
* @param data
|
|
32
|
+
* @returns
|
|
33
33
|
*/
|
|
34
34
|
export function typeOfData(data) {
|
|
35
35
|
return Object.prototype.toString.call(data).slice(8, -1);
|
|
36
36
|
}
|
|
37
37
|
|
|
38
|
-
/**
|
|
39
|
-
* 给对象第一层的字符串属性值做 trim
|
|
38
|
+
/**
|
|
39
|
+
* 给对象第一层的字符串属性值做 trim
|
|
40
40
|
*/
|
|
41
41
|
export function trimObjectValuesFirstLayer(obj) {
|
|
42
42
|
if (typeOfData(obj) !== 'Object') return obj;
|
|
@@ -48,10 +48,10 @@ export function trimObjectValuesFirstLayer(obj) {
|
|
|
48
48
|
}
|
|
49
49
|
return result;
|
|
50
50
|
}
|
|
51
|
-
/**
|
|
52
|
-
* 表格序号
|
|
53
|
-
* @param TableRiwNoType
|
|
54
|
-
* @returns
|
|
51
|
+
/**
|
|
52
|
+
* 表格序号
|
|
53
|
+
* @param TableRiwNoType
|
|
54
|
+
* @returns
|
|
55
55
|
*/
|
|
56
56
|
export function computedTableRowSerialNo(_ref) {
|
|
57
57
|
var pagination = _ref.pagination,
|
|
@@ -65,10 +65,10 @@ export function computedTableRowSerialNo(_ref) {
|
|
|
65
65
|
}
|
|
66
66
|
}
|
|
67
67
|
|
|
68
|
-
/**
|
|
69
|
-
* 对中国手机号进行加密中间四位。
|
|
70
|
-
* @param phoneNumber - 需要加密的手机号
|
|
71
|
-
* @returns 加密后的手机号
|
|
68
|
+
/**
|
|
69
|
+
* 对中国手机号进行加密中间四位。
|
|
70
|
+
* @param phoneNumber - 需要加密的手机号
|
|
71
|
+
* @returns 加密后的手机号
|
|
72
72
|
*/
|
|
73
73
|
export function encryptPhoneNumber(phoneNumber) {
|
|
74
74
|
// 将中间四位替换为星号
|
package/package.json
CHANGED
|
@@ -1,100 +1,100 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "ebaoferc",
|
|
3
|
-
"version": "0.3.3
|
|
4
|
-
"description": "A react library developed with dumi",
|
|
5
|
-
"license": "MIT",
|
|
6
|
-
"module": "dist/index.js",
|
|
7
|
-
"types": "dist/index.d.ts",
|
|
8
|
-
"files": [
|
|
9
|
-
"dist"
|
|
10
|
-
],
|
|
11
|
-
"scripts": {
|
|
12
|
-
"build": "node checkProject && father build",
|
|
13
|
-
"build:watch": "father dev",
|
|
14
|
-
"dev": "dumi dev",
|
|
15
|
-
"docs:build": "dumi build",
|
|
16
|
-
"docs:preview": "dumi preview",
|
|
17
|
-
"doctor": "father doctor",
|
|
18
|
-
"lint": "npm run lint:es && npm run lint:css",
|
|
19
|
-
"lint:css": "stylelint \"{src,test}/**/*.{css,less}\"",
|
|
20
|
-
"lint:es": "eslint \"{src,test}/**/*.{js,jsx,ts,tsx}\"",
|
|
21
|
-
"prepare": "husky install && dumi setup",
|
|
22
|
-
"prepublishOnly": "father doctor && npm run build",
|
|
23
|
-
"start": "npm run dev"
|
|
24
|
-
},
|
|
25
|
-
"commitlint": {
|
|
26
|
-
"extends": [
|
|
27
|
-
"@commitlint/config-conventional"
|
|
28
|
-
]
|
|
29
|
-
},
|
|
30
|
-
"lint-staged": {
|
|
31
|
-
"*.{md,json}": [
|
|
32
|
-
"prettier --write --no-error-on-unmatched-pattern"
|
|
33
|
-
],
|
|
34
|
-
"*.{css,less}": [
|
|
35
|
-
"stylelint --fix",
|
|
36
|
-
"prettier --write"
|
|
37
|
-
],
|
|
38
|
-
"*.{js,jsx}": [
|
|
39
|
-
"eslint --fix",
|
|
40
|
-
"prettier --write"
|
|
41
|
-
],
|
|
42
|
-
"*.{ts,tsx}": [
|
|
43
|
-
"eslint --fix",
|
|
44
|
-
"prettier --parser=typescript --write"
|
|
45
|
-
]
|
|
46
|
-
},
|
|
47
|
-
"dependencies": {
|
|
48
|
-
"d3": "^7.9.0",
|
|
49
|
-
"dagre": "^0.8.5"
|
|
50
|
-
},
|
|
51
|
-
"devDependencies": {
|
|
52
|
-
"@ant-design/icons": "^5.3.7",
|
|
53
|
-
"@ant-design/pro-components": "^2.7.1",
|
|
54
|
-
"@commitlint/cli": "^18.2.0",
|
|
55
|
-
"@commitlint/config-conventional": "^18.1.0",
|
|
56
|
-
"@commitlint/config-pnpm-scopes": "^18.1.0",
|
|
57
|
-
"@types/lodash": "^4.17.7",
|
|
58
|
-
"@types/react": "^18.2.36",
|
|
59
|
-
"@types/react-dom": "^18.2.14",
|
|
60
|
-
"@umijs/lint": "^4.0.87",
|
|
61
|
-
"@umijs/max": "^4.1.10",
|
|
62
|
-
"@vitest/coverage-v8": "^0.34.6",
|
|
63
|
-
"ahooks": "^3.7.10",
|
|
64
|
-
"antd": "^5.17.0",
|
|
65
|
-
"classnames": "^2.5.1",
|
|
66
|
-
"connect-history-api-fallback": "^2.0.0",
|
|
67
|
-
"cross-env": "^7.0.3",
|
|
68
|
-
"dayjs": "^1.11.10",
|
|
69
|
-
"dumi": "^2.3.0",
|
|
70
|
-
"eslint": "^8.23.0",
|
|
71
|
-
"express": "^4.19.2",
|
|
72
|
-
"father": "^4.1.0",
|
|
73
|
-
"husky": "^8.0.1",
|
|
74
|
-
"lint-staged": "^13.0.3",
|
|
75
|
-
"lodash": "^4.17.21",
|
|
76
|
-
"prettier": "^2.7.1",
|
|
77
|
-
"prettier-plugin-organize-imports": "^3.0.0",
|
|
78
|
-
"prettier-plugin-packagejson": "^2.2.18",
|
|
79
|
-
"react": "^18.0.0",
|
|
80
|
-
"react-dom": "^18.0.0",
|
|
81
|
-
"stylelint": "^14.9.1"
|
|
82
|
-
},
|
|
83
|
-
"peerDependencies": {
|
|
84
|
-
"@ant-design/icons": "^5.3.7",
|
|
85
|
-
"@ant-design/pro-components": "^2.7.1",
|
|
86
|
-
"ahooks": "^3.7.10",
|
|
87
|
-
"antd": "^5.17.0",
|
|
88
|
-
"classnames": "^2.5.1",
|
|
89
|
-
"cross-env": "^7.0.3",
|
|
90
|
-
"dayjs": "^1.11.10",
|
|
91
|
-
"lodash": "^4.17.21",
|
|
92
|
-
"react": ">=16.9.0",
|
|
93
|
-
"react-dom": ">=16.9.0"
|
|
94
|
-
},
|
|
95
|
-
"publishConfig": {
|
|
96
|
-
"access": "public",
|
|
97
|
-
"registry": "https://registry.npmjs.org"
|
|
98
|
-
},
|
|
99
|
-
"authors": []
|
|
100
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "ebaoferc",
|
|
3
|
+
"version": "0.3.3",
|
|
4
|
+
"description": "A react library developed with dumi",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"module": "dist/index.js",
|
|
7
|
+
"types": "dist/index.d.ts",
|
|
8
|
+
"files": [
|
|
9
|
+
"dist"
|
|
10
|
+
],
|
|
11
|
+
"scripts": {
|
|
12
|
+
"build": "node checkProject && father build",
|
|
13
|
+
"build:watch": "father dev",
|
|
14
|
+
"dev": "dumi dev",
|
|
15
|
+
"docs:build": "dumi build",
|
|
16
|
+
"docs:preview": "dumi preview",
|
|
17
|
+
"doctor": "father doctor",
|
|
18
|
+
"lint": "npm run lint:es && npm run lint:css",
|
|
19
|
+
"lint:css": "stylelint \"{src,test}/**/*.{css,less}\"",
|
|
20
|
+
"lint:es": "eslint \"{src,test}/**/*.{js,jsx,ts,tsx}\"",
|
|
21
|
+
"prepare": "husky install && dumi setup",
|
|
22
|
+
"prepublishOnly": "father doctor && npm run build",
|
|
23
|
+
"start": "npm run dev"
|
|
24
|
+
},
|
|
25
|
+
"commitlint": {
|
|
26
|
+
"extends": [
|
|
27
|
+
"@commitlint/config-conventional"
|
|
28
|
+
]
|
|
29
|
+
},
|
|
30
|
+
"lint-staged": {
|
|
31
|
+
"*.{md,json}": [
|
|
32
|
+
"prettier --write --no-error-on-unmatched-pattern"
|
|
33
|
+
],
|
|
34
|
+
"*.{css,less}": [
|
|
35
|
+
"stylelint --fix",
|
|
36
|
+
"prettier --write"
|
|
37
|
+
],
|
|
38
|
+
"*.{js,jsx}": [
|
|
39
|
+
"eslint --fix",
|
|
40
|
+
"prettier --write"
|
|
41
|
+
],
|
|
42
|
+
"*.{ts,tsx}": [
|
|
43
|
+
"eslint --fix",
|
|
44
|
+
"prettier --parser=typescript --write"
|
|
45
|
+
]
|
|
46
|
+
},
|
|
47
|
+
"dependencies": {
|
|
48
|
+
"d3": "^7.9.0",
|
|
49
|
+
"dagre": "^0.8.5"
|
|
50
|
+
},
|
|
51
|
+
"devDependencies": {
|
|
52
|
+
"@ant-design/icons": "^5.3.7",
|
|
53
|
+
"@ant-design/pro-components": "^2.7.1",
|
|
54
|
+
"@commitlint/cli": "^18.2.0",
|
|
55
|
+
"@commitlint/config-conventional": "^18.1.0",
|
|
56
|
+
"@commitlint/config-pnpm-scopes": "^18.1.0",
|
|
57
|
+
"@types/lodash": "^4.17.7",
|
|
58
|
+
"@types/react": "^18.2.36",
|
|
59
|
+
"@types/react-dom": "^18.2.14",
|
|
60
|
+
"@umijs/lint": "^4.0.87",
|
|
61
|
+
"@umijs/max": "^4.1.10",
|
|
62
|
+
"@vitest/coverage-v8": "^0.34.6",
|
|
63
|
+
"ahooks": "^3.7.10",
|
|
64
|
+
"antd": "^5.17.0",
|
|
65
|
+
"classnames": "^2.5.1",
|
|
66
|
+
"connect-history-api-fallback": "^2.0.0",
|
|
67
|
+
"cross-env": "^7.0.3",
|
|
68
|
+
"dayjs": "^1.11.10",
|
|
69
|
+
"dumi": "^2.3.0",
|
|
70
|
+
"eslint": "^8.23.0",
|
|
71
|
+
"express": "^4.19.2",
|
|
72
|
+
"father": "^4.1.0",
|
|
73
|
+
"husky": "^8.0.1",
|
|
74
|
+
"lint-staged": "^13.0.3",
|
|
75
|
+
"lodash": "^4.17.21",
|
|
76
|
+
"prettier": "^2.7.1",
|
|
77
|
+
"prettier-plugin-organize-imports": "^3.0.0",
|
|
78
|
+
"prettier-plugin-packagejson": "^2.2.18",
|
|
79
|
+
"react": "^18.0.0",
|
|
80
|
+
"react-dom": "^18.0.0",
|
|
81
|
+
"stylelint": "^14.9.1"
|
|
82
|
+
},
|
|
83
|
+
"peerDependencies": {
|
|
84
|
+
"@ant-design/icons": "^5.3.7",
|
|
85
|
+
"@ant-design/pro-components": "^2.7.1",
|
|
86
|
+
"ahooks": "^3.7.10",
|
|
87
|
+
"antd": "^5.17.0",
|
|
88
|
+
"classnames": "^2.5.1",
|
|
89
|
+
"cross-env": "^7.0.3",
|
|
90
|
+
"dayjs": "^1.11.10",
|
|
91
|
+
"lodash": "^4.17.21",
|
|
92
|
+
"react": ">=16.9.0",
|
|
93
|
+
"react-dom": ">=16.9.0"
|
|
94
|
+
},
|
|
95
|
+
"publishConfig": {
|
|
96
|
+
"access": "public",
|
|
97
|
+
"registry": "https://registry.npmjs.org"
|
|
98
|
+
},
|
|
99
|
+
"authors": []
|
|
100
|
+
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const validateFileType: (fileName: string, accept: string) => boolean;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
export var validateFileType = function validateFileType(fileName, accept) {
|
|
2
|
-
var _fileName$split$pop;
|
|
3
|
-
if (!accept) return true;
|
|
4
|
-
|
|
5
|
-
// 获取文件扩展名(转换为小写)
|
|
6
|
-
var fileExtension = (_fileName$split$pop = fileName.split('.').pop()) === null || _fileName$split$pop === void 0 ? void 0 : _fileName$split$pop.toLowerCase();
|
|
7
|
-
|
|
8
|
-
// 将 accept 字符串转换为数组,并处理每个扩展名(转换为小写)
|
|
9
|
-
var acceptedTypes = accept.split(',').map(function (type) {
|
|
10
|
-
return type.trim().toLowerCase().replace('.', '');
|
|
11
|
-
});
|
|
12
|
-
|
|
13
|
-
// 检查文件扩展名是否在接受的类型列表中
|
|
14
|
-
return acceptedTypes.includes(fileExtension);
|
|
15
|
-
};
|