ronds-metadata 1.2.31 → 1.2.32
Sign up to get free protection for your applications and to get access to all the features.
- package/es/comps/DynamicPorts/comps/NodeElement.js +3 -2
- package/es/comps/FormGenerator/comps/Canvas/core/index.less +23 -23
- package/es/comps/JsonView/index.less +41 -41
- package/es/comps/MdEdit/index.less +6 -6
- package/es/comps/MdView/index.less +1 -1
- package/es/comps/MetadataEdit/index.less +10 -10
- package/es/comps/MetadataEdit/type.d.ts +20 -20
- package/es/comps/MetadataForm/HOC/index.less +41 -41
- package/es/framework/metadata/types.d.ts +98 -98
- package/es/theme.less +2 -0
- package/package.json +102 -102
@@ -3,7 +3,7 @@ import React from "react";
|
|
3
3
|
/*
|
4
4
|
* @Author: wangxian
|
5
5
|
* @Date: 2022-05-24 08:50:16
|
6
|
-
* @LastEditTime:
|
6
|
+
* @LastEditTime: 2023-04-13 15:06:59
|
7
7
|
*/
|
8
8
|
import { GlobalOutlined } from '@ant-design/icons';
|
9
9
|
import '../index.less';
|
@@ -23,7 +23,8 @@ var NodeElement = function NodeElement(props) {
|
|
23
23
|
}) : /*#__PURE__*/React.createElement(GlobalOutlined, null)), /*#__PURE__*/React.createElement("div", {
|
24
24
|
className: "notation"
|
25
25
|
}, /*#__PURE__*/React.createElement("div", {
|
26
|
-
className: "name"
|
26
|
+
className: "name",
|
27
|
+
title: name
|
27
28
|
}, name))));
|
28
29
|
};
|
29
30
|
|
@@ -1,23 +1,23 @@
|
|
1
|
-
.canvas-wrapper {
|
2
|
-
.drag-item {
|
3
|
-
position: relative;
|
4
|
-
border: 1px dashed var(--ronds-metadata-color-border-1);
|
5
|
-
background: var(--ronds-metadata-color-bg-4);
|
6
|
-
margin-bottom: 8px;
|
7
|
-
}
|
8
|
-
|
9
|
-
.drag-item-selected {
|
10
|
-
border: 1px solid var(--ronds-metadata-color-border-2);
|
11
|
-
}
|
12
|
-
|
13
|
-
.ant-form-item {
|
14
|
-
margin-bottom: '4px' !important;
|
15
|
-
}
|
16
|
-
.ant-form-item-label {
|
17
|
-
padding: 0 0 2px !important;
|
18
|
-
}
|
19
|
-
.ant-input-number,
|
20
|
-
.ant-picker {
|
21
|
-
width: 100%;
|
22
|
-
}
|
23
|
-
}
|
1
|
+
.canvas-wrapper {
|
2
|
+
.drag-item {
|
3
|
+
position: relative;
|
4
|
+
border: 1px dashed var(--ronds-metadata-color-border-1);
|
5
|
+
background: var(--ronds-metadata-color-bg-4);
|
6
|
+
margin-bottom: 8px;
|
7
|
+
}
|
8
|
+
|
9
|
+
.drag-item-selected {
|
10
|
+
border: 1px solid var(--ronds-metadata-color-border-2);
|
11
|
+
}
|
12
|
+
|
13
|
+
.ant-form-item {
|
14
|
+
margin-bottom: '4px' !important;
|
15
|
+
}
|
16
|
+
.ant-form-item-label {
|
17
|
+
padding: 0 0 2px !important;
|
18
|
+
}
|
19
|
+
.ant-input-number,
|
20
|
+
.ant-picker {
|
21
|
+
width: 100%;
|
22
|
+
}
|
23
|
+
}
|
@@ -1,41 +1,41 @@
|
|
1
|
-
pre {
|
2
|
-
margin: 0;
|
3
|
-
font-weight: 900;
|
4
|
-
font-size: 14px;
|
5
|
-
}
|
6
|
-
.string {
|
7
|
-
color: #3ab54a;
|
8
|
-
}
|
9
|
-
.number {
|
10
|
-
color: #25aae2;
|
11
|
-
}
|
12
|
-
.boolean {
|
13
|
-
color: #f98280;
|
14
|
-
}
|
15
|
-
.null {
|
16
|
-
color: #f1592a;
|
17
|
-
}
|
18
|
-
.width-10 {
|
19
|
-
width: 10px;
|
20
|
-
}
|
21
|
-
.key {
|
22
|
-
color: #92278f;
|
23
|
-
}
|
24
|
-
.open {
|
25
|
-
display: inline-block;
|
26
|
-
width: 12px;
|
27
|
-
height: 12px;
|
28
|
-
background: url('./icon/close.png') no-repeat;
|
29
|
-
background-size: 100% 100%;
|
30
|
-
vertical-align: middle;
|
31
|
-
cursor: pointer;
|
32
|
-
}
|
33
|
-
.close {
|
34
|
-
display: inline-block;
|
35
|
-
width: 12px;
|
36
|
-
height: 12px;
|
37
|
-
background: url('./icon/open.png') no-repeat;
|
38
|
-
background-size: 100% 100%;
|
39
|
-
vertical-align: middle;
|
40
|
-
cursor: pointer;
|
41
|
-
}
|
1
|
+
pre {
|
2
|
+
margin: 0;
|
3
|
+
font-weight: 900;
|
4
|
+
font-size: 14px;
|
5
|
+
}
|
6
|
+
.string {
|
7
|
+
color: #3ab54a;
|
8
|
+
}
|
9
|
+
.number {
|
10
|
+
color: #25aae2;
|
11
|
+
}
|
12
|
+
.boolean {
|
13
|
+
color: #f98280;
|
14
|
+
}
|
15
|
+
.null {
|
16
|
+
color: #f1592a;
|
17
|
+
}
|
18
|
+
.width-10 {
|
19
|
+
width: 10px;
|
20
|
+
}
|
21
|
+
.key {
|
22
|
+
color: #92278f;
|
23
|
+
}
|
24
|
+
.open {
|
25
|
+
display: inline-block;
|
26
|
+
width: 12px;
|
27
|
+
height: 12px;
|
28
|
+
background: url('./icon/close.png') no-repeat;
|
29
|
+
background-size: 100% 100%;
|
30
|
+
vertical-align: middle;
|
31
|
+
cursor: pointer;
|
32
|
+
}
|
33
|
+
.close {
|
34
|
+
display: inline-block;
|
35
|
+
width: 12px;
|
36
|
+
height: 12px;
|
37
|
+
background: url('./icon/open.png') no-repeat;
|
38
|
+
background-size: 100% 100%;
|
39
|
+
vertical-align: middle;
|
40
|
+
cursor: pointer;
|
41
|
+
}
|
@@ -1,6 +1,6 @@
|
|
1
|
-
.rc-md-editor.full {
|
2
|
-
width: 100% !important;
|
3
|
-
}
|
4
|
-
.rc-md-editor .rc-md-navigation .button-wrap {
|
5
|
-
align-items: center;
|
6
|
-
}
|
1
|
+
.rc-md-editor.full {
|
2
|
+
width: 100% !important;
|
3
|
+
}
|
4
|
+
.rc-md-editor .rc-md-navigation .button-wrap {
|
5
|
+
align-items: center;
|
6
|
+
}
|
@@ -1,10 +1,10 @@
|
|
1
|
-
.metadata-edit {
|
2
|
-
height: 100%;
|
3
|
-
width: 100%;
|
4
|
-
.ant-row {
|
5
|
-
display: block;
|
6
|
-
}
|
7
|
-
.pr-10 {
|
8
|
-
padding-right: 10px;
|
9
|
-
}
|
10
|
-
}
|
1
|
+
.metadata-edit {
|
2
|
+
height: 100%;
|
3
|
+
width: 100%;
|
4
|
+
.ant-row {
|
5
|
+
display: block;
|
6
|
+
}
|
7
|
+
.pr-10 {
|
8
|
+
padding-right: 10px;
|
9
|
+
}
|
10
|
+
}
|
@@ -1,20 +1,20 @@
|
|
1
|
-
export interface IMetaFileds {
|
2
|
-
id: string;
|
3
|
-
type: 'object';
|
4
|
-
properties: any[];
|
5
|
-
value: any;
|
6
|
-
}
|
7
|
-
|
8
|
-
export type ITypeStatus = 'object' | 'ref' | 'bool' | 'number' | 'text' | 'enum' | 'array';
|
9
|
-
|
10
|
-
export type IMetaProperty = {
|
11
|
-
/**
|
12
|
-
* 属性的名称
|
13
|
-
*/
|
14
|
-
id: string;
|
15
|
-
/**
|
16
|
-
* 类型
|
17
|
-
*/
|
18
|
-
type: string;
|
19
|
-
enum?: any[];
|
20
|
-
};
|
1
|
+
export interface IMetaFileds {
|
2
|
+
id: string;
|
3
|
+
type: 'object';
|
4
|
+
properties: any[];
|
5
|
+
value: any;
|
6
|
+
}
|
7
|
+
|
8
|
+
export type ITypeStatus = 'object' | 'ref' | 'bool' | 'number' | 'text' | 'enum' | 'array';
|
9
|
+
|
10
|
+
export type IMetaProperty = {
|
11
|
+
/**
|
12
|
+
* 属性的名称
|
13
|
+
*/
|
14
|
+
id: string;
|
15
|
+
/**
|
16
|
+
* 类型
|
17
|
+
*/
|
18
|
+
type: string;
|
19
|
+
enum?: any[];
|
20
|
+
};
|
@@ -1,41 +1,41 @@
|
|
1
|
-
.with-add-on-after {
|
2
|
-
--card-bg: #ffffff;
|
3
|
-
position: relative;
|
4
|
-
width: 100%;
|
5
|
-
|
6
|
-
.ant-form-item-label {
|
7
|
-
padding: 0 !important;
|
8
|
-
}
|
9
|
-
|
10
|
-
& > .ant-form-item {
|
11
|
-
padding: 0 0 8px !important;
|
12
|
-
flex: 1;
|
13
|
-
}
|
14
|
-
&-extra {
|
15
|
-
position: absolute;
|
16
|
-
right: 20px;
|
17
|
-
top: 18px;
|
18
|
-
padding: 0 6px;
|
19
|
-
background-color: var(--card-bg);
|
20
|
-
z-index: 1000;
|
21
|
-
}
|
22
|
-
&-ref {
|
23
|
-
position: absolute;
|
24
|
-
right: 20px;
|
25
|
-
top: -10px;
|
26
|
-
padding: 0 6px;
|
27
|
-
background-color: var(--card-bg);
|
28
|
-
z-index: 1000;
|
29
|
-
}
|
30
|
-
.ant-select-tree-indent {
|
31
|
-
.ant-select-tree-indent-unit {
|
32
|
-
width: 10px !important;
|
33
|
-
}
|
34
|
-
}
|
35
|
-
|
36
|
-
/* .ant-col-2.7 {
|
37
|
-
display: block;
|
38
|
-
flex: 0 0 75%;
|
39
|
-
max-width: 75%;
|
40
|
-
} */
|
41
|
-
}
|
1
|
+
.with-add-on-after {
|
2
|
+
--card-bg: #ffffff;
|
3
|
+
position: relative;
|
4
|
+
width: 100%;
|
5
|
+
|
6
|
+
.ant-form-item-label {
|
7
|
+
padding: 0 !important;
|
8
|
+
}
|
9
|
+
|
10
|
+
& > .ant-form-item {
|
11
|
+
padding: 0 0 8px !important;
|
12
|
+
flex: 1;
|
13
|
+
}
|
14
|
+
&-extra {
|
15
|
+
position: absolute;
|
16
|
+
right: 20px;
|
17
|
+
top: 18px;
|
18
|
+
padding: 0 6px;
|
19
|
+
background-color: var(--card-bg);
|
20
|
+
z-index: 1000;
|
21
|
+
}
|
22
|
+
&-ref {
|
23
|
+
position: absolute;
|
24
|
+
right: 20px;
|
25
|
+
top: -10px;
|
26
|
+
padding: 0 6px;
|
27
|
+
background-color: var(--card-bg);
|
28
|
+
z-index: 1000;
|
29
|
+
}
|
30
|
+
.ant-select-tree-indent {
|
31
|
+
.ant-select-tree-indent-unit {
|
32
|
+
width: 10px !important;
|
33
|
+
}
|
34
|
+
}
|
35
|
+
|
36
|
+
/* .ant-col-2.7 {
|
37
|
+
display: block;
|
38
|
+
flex: 0 0 75%;
|
39
|
+
max-width: 75%;
|
40
|
+
} */
|
41
|
+
}
|
@@ -1,98 +1,98 @@
|
|
1
|
-
/*
|
2
|
-
* @Author: wangxian
|
3
|
-
* @Date: 2021-09-18 14:15:04
|
4
|
-
* @LastEditTime: 2023-02-09 18:37:15
|
5
|
-
*/
|
6
|
-
export type IMetaType = 'object' | 'ref' | 'bool' | 'number' | 'text' | 'enum' | 'array' | string;
|
7
|
-
|
8
|
-
export type IMetaData = {
|
9
|
-
/**
|
10
|
-
* 类名称/属性名称
|
11
|
-
*/
|
12
|
-
id: string;
|
13
|
-
/**
|
14
|
-
* 类型
|
15
|
-
*/
|
16
|
-
type: IMetaType;
|
17
|
-
/**
|
18
|
-
* 属性
|
19
|
-
*/
|
20
|
-
properties?: IMetaProperties[];
|
21
|
-
|
22
|
-
/**
|
23
|
-
* 引用id
|
24
|
-
*/
|
25
|
-
refId?: string;
|
26
|
-
/**
|
27
|
-
* 静态的变量
|
28
|
-
*/
|
29
|
-
fields?: IMetaFileds[];
|
30
|
-
/**
|
31
|
-
* 内部类
|
32
|
-
*/
|
33
|
-
types?: IMetaData[];
|
34
|
-
};
|
35
|
-
|
36
|
-
export type IMetaProperties = {
|
37
|
-
/**
|
38
|
-
* 类规则名称
|
39
|
-
*/
|
40
|
-
id: string;
|
41
|
-
|
42
|
-
/**
|
43
|
-
* 类型
|
44
|
-
*/
|
45
|
-
type: IMetaType;
|
46
|
-
|
47
|
-
/**
|
48
|
-
* 引用id
|
49
|
-
*/
|
50
|
-
refId?: string;
|
51
|
-
/**
|
52
|
-
* 静态的变量
|
53
|
-
*/
|
54
|
-
fields?: IMetaFileds[];
|
55
|
-
/**
|
56
|
-
* 枚举值
|
57
|
-
*/
|
58
|
-
enum?: { value: string }[];
|
59
|
-
/**
|
60
|
-
* 数组类型
|
61
|
-
*/
|
62
|
-
items?: { type: IMetaType; refId?: string };
|
63
|
-
};
|
64
|
-
|
65
|
-
export type IMetaFileds = {
|
66
|
-
/**
|
67
|
-
* 规则名称
|
68
|
-
*/
|
69
|
-
id: string;
|
70
|
-
|
71
|
-
/**
|
72
|
-
* 类型
|
73
|
-
*/
|
74
|
-
type: IMetaType;
|
75
|
-
|
76
|
-
/**
|
77
|
-
* 引用id
|
78
|
-
*/
|
79
|
-
refId?: string;
|
80
|
-
|
81
|
-
/**
|
82
|
-
* 规则值
|
83
|
-
*/
|
84
|
-
value: any;
|
85
|
-
};
|
86
|
-
|
87
|
-
export interface IAPI {
|
88
|
-
// 获取元数据列表
|
89
|
-
GetMetadataList(keyWords?: string[]): Promise<{ id: string; name: string; schema: string }[]>;
|
90
|
-
// 通过元数据Id获取元数据详情
|
91
|
-
GetMetadataDetailById(metadataId: string): Promise<any>;
|
92
|
-
// 新增元数据
|
93
|
-
SaveMetadata(data: any, metadataTag: string): Promise<any>;
|
94
|
-
// 获取元数据的值
|
95
|
-
GetMetadataObjList(data: any): Promise<any[]>;
|
96
|
-
/** 通过扩展规则获取枚举类型的值 */
|
97
|
-
GetEnumDataByUrl(url: string, method: 'get' | 'post', body: any): Promise<any>;
|
98
|
-
}
|
1
|
+
/*
|
2
|
+
* @Author: wangxian
|
3
|
+
* @Date: 2021-09-18 14:15:04
|
4
|
+
* @LastEditTime: 2023-02-09 18:37:15
|
5
|
+
*/
|
6
|
+
export type IMetaType = 'object' | 'ref' | 'bool' | 'number' | 'text' | 'enum' | 'array' | string;
|
7
|
+
|
8
|
+
export type IMetaData = {
|
9
|
+
/**
|
10
|
+
* 类名称/属性名称
|
11
|
+
*/
|
12
|
+
id: string;
|
13
|
+
/**
|
14
|
+
* 类型
|
15
|
+
*/
|
16
|
+
type: IMetaType;
|
17
|
+
/**
|
18
|
+
* 属性
|
19
|
+
*/
|
20
|
+
properties?: IMetaProperties[];
|
21
|
+
|
22
|
+
/**
|
23
|
+
* 引用id
|
24
|
+
*/
|
25
|
+
refId?: string;
|
26
|
+
/**
|
27
|
+
* 静态的变量
|
28
|
+
*/
|
29
|
+
fields?: IMetaFileds[];
|
30
|
+
/**
|
31
|
+
* 内部类
|
32
|
+
*/
|
33
|
+
types?: IMetaData[];
|
34
|
+
};
|
35
|
+
|
36
|
+
export type IMetaProperties = {
|
37
|
+
/**
|
38
|
+
* 类规则名称
|
39
|
+
*/
|
40
|
+
id: string;
|
41
|
+
|
42
|
+
/**
|
43
|
+
* 类型
|
44
|
+
*/
|
45
|
+
type: IMetaType;
|
46
|
+
|
47
|
+
/**
|
48
|
+
* 引用id
|
49
|
+
*/
|
50
|
+
refId?: string;
|
51
|
+
/**
|
52
|
+
* 静态的变量
|
53
|
+
*/
|
54
|
+
fields?: IMetaFileds[];
|
55
|
+
/**
|
56
|
+
* 枚举值
|
57
|
+
*/
|
58
|
+
enum?: { value: string }[];
|
59
|
+
/**
|
60
|
+
* 数组类型
|
61
|
+
*/
|
62
|
+
items?: { type: IMetaType; refId?: string };
|
63
|
+
};
|
64
|
+
|
65
|
+
export type IMetaFileds = {
|
66
|
+
/**
|
67
|
+
* 规则名称
|
68
|
+
*/
|
69
|
+
id: string;
|
70
|
+
|
71
|
+
/**
|
72
|
+
* 类型
|
73
|
+
*/
|
74
|
+
type: IMetaType;
|
75
|
+
|
76
|
+
/**
|
77
|
+
* 引用id
|
78
|
+
*/
|
79
|
+
refId?: string;
|
80
|
+
|
81
|
+
/**
|
82
|
+
* 规则值
|
83
|
+
*/
|
84
|
+
value: any;
|
85
|
+
};
|
86
|
+
|
87
|
+
export interface IAPI {
|
88
|
+
// 获取元数据列表
|
89
|
+
GetMetadataList(keyWords?: string[]): Promise<{ id: string; name: string; schema: string }[]>;
|
90
|
+
// 通过元数据Id获取元数据详情
|
91
|
+
GetMetadataDetailById(metadataId: string): Promise<any>;
|
92
|
+
// 新增元数据
|
93
|
+
SaveMetadata(data: any, metadataTag: string): Promise<any>;
|
94
|
+
// 获取元数据的值
|
95
|
+
GetMetadataObjList(data: any): Promise<any[]>;
|
96
|
+
/** 通过扩展规则获取枚举类型的值 */
|
97
|
+
GetEnumDataByUrl(url: string, method: 'get' | 'post', body: any): Promise<any>;
|
98
|
+
}
|
package/es/theme.less
CHANGED
@@ -4,6 +4,7 @@
|
|
4
4
|
--ronds-metadata-color-bg-2: #0d1f40;
|
5
5
|
--ronds-metadata-color-bg-3: #021125;
|
6
6
|
--ronds-metadata-color-bg-4: #1c3771;
|
7
|
+
--ronds-metadata-color-bg-5: #13264E;
|
7
8
|
--ronds-metadata-color-text-1: #ffffff;
|
8
9
|
--ronds-metadata-color-text-2: #ffffff;
|
9
10
|
--ronds-metadata-color-text-3: #ffffff;
|
@@ -44,6 +45,7 @@
|
|
44
45
|
--ronds-metadata-color-bg-2: rgba(229, 238, 255, 0.85);
|
45
46
|
--ronds-metadata-color-bg-3: #f6f5f6;
|
46
47
|
--ronds-metadata-color-bg-4: #ffffff;
|
48
|
+
--ronds-metadata-color-bg-5: #ffffff;
|
47
49
|
--ronds-metadata-color-text-1: #1d2129;
|
48
50
|
--ronds-metadata-color-text-2: #24292f;
|
49
51
|
--ronds-metadata-color-text-3: #f2f3f5;
|
package/package.json
CHANGED
@@ -1,102 +1,102 @@
|
|
1
|
-
{
|
2
|
-
"public": true,
|
3
|
-
"name": "ronds-metadata",
|
4
|
-
"version": "1.2.
|
5
|
-
"scripts": {
|
6
|
-
"start": "dumi dev",
|
7
|
-
"docs:build": "dumi build",
|
8
|
-
"docs:deploy": "gh-pages -d docs-dist",
|
9
|
-
"build": "father-build",
|
10
|
-
"deploy": "npm run docs:build && npm run docs:deploy",
|
11
|
-
"release": "npm run build && npm publish",
|
12
|
-
"prettier": "prettier --write \"**/*.{js,jsx,tsx,ts,less,md,json}\"",
|
13
|
-
"test": "umi-test",
|
14
|
-
"test:coverage": "umi-test --coverage",
|
15
|
-
"prepublishOnly": "npm run build"
|
16
|
-
},
|
17
|
-
"main": "es",
|
18
|
-
"module": "es",
|
19
|
-
"types": "es/index.d.ts",
|
20
|
-
"gitHooks": {
|
21
|
-
"pre-commit": "lint-staged"
|
22
|
-
},
|
23
|
-
"lint-staged": {
|
24
|
-
"*.{js,jsx,less,md,json}": [
|
25
|
-
"prettier --write"
|
26
|
-
],
|
27
|
-
"*.ts?(x)": [
|
28
|
-
"prettier --parser=typescript --write"
|
29
|
-
]
|
30
|
-
},
|
31
|
-
"files": [
|
32
|
-
"/es"
|
33
|
-
],
|
34
|
-
"dependencies": {
|
35
|
-
"@antv/x6": "^1.32.2",
|
36
|
-
"@antv/x6-react-shape": "^1.6.0",
|
37
|
-
"@babel/helper-create-regexp-features-plugin": "^7.12.13",
|
38
|
-
"@babel/runtime": "^7.11.2",
|
39
|
-
"@popperjs/core": "^2.4.4",
|
40
|
-
"@types/file-saver": "^2.0.5",
|
41
|
-
"@types/markdown-it": "^12.2.3",
|
42
|
-
"@types/markdown-navbar": "^1.4.0",
|
43
|
-
"ahooks": "^3.4.0",
|
44
|
-
"axios": "^0.21.4",
|
45
|
-
"babel-plugin-import": "^1.13.3",
|
46
|
-
"babel-plugin-transform-remove-console": "^6.9.4",
|
47
|
-
"bl": "^5.0.0",
|
48
|
-
"codemirror": "^5.63.0",
|
49
|
-
"codepage": "^1.15.0",
|
50
|
-
"css-element-queries": "^1.2.3",
|
51
|
-
"file-saver": "^2.0.5",
|
52
|
-
"github-markdown-css": "^5.1.0",
|
53
|
-
"html-docx-js-typescript": "^0.1.5",
|
54
|
-
"immer": "^9.0.14",
|
55
|
-
"lodash": "^4.17.21",
|
56
|
-
"markdown-it": "^13.0.1",
|
57
|
-
"markdown-navbar": "^1.4.3",
|
58
|
-
"qs": "^6.10.1",
|
59
|
-
"react": "^17.0.2",
|
60
|
-
"react-contenteditable": "^3.3.7",
|
61
|
-
"react-dnd": "^11.1.3",
|
62
|
-
"react-dnd-html5-backend": "^11.1.3",
|
63
|
-
"react-jexcel": "^1.0.2",
|
64
|
-
"react-markdown": "^8.0.3",
|
65
|
-
"react-markdown-editor-lite": "^1.3.2",
|
66
|
-
"react-popper": "^2.2.3",
|
67
|
-
"react-split": "^2.0.14",
|
68
|
-
"react-syntax-highlighter": "^15.5.0",
|
69
|
-
"rehype-raw": "^6.1.1",
|
70
|
-
"remark-gfm": "^3.0.1",
|
71
|
-
"rxjs": "^7.5.4",
|
72
|
-
"xlsx": "^0.18.5"
|
73
|
-
},
|
74
|
-
"peerDependencies": {
|
75
|
-
"antd": ">=4.1.5",
|
76
|
-
"react": ">=16.14.0",
|
77
|
-
"react-dom": ">=16.14.0",
|
78
|
-
"react-router": ">=5.0.0",
|
79
|
-
"styled-components": ">=4.1.1"
|
80
|
-
},
|
81
|
-
"devDependencies": {
|
82
|
-
"@types/react": "^17.0.2",
|
83
|
-
"@types/react-dom": "^17.0.2",
|
84
|
-
"@types/react-router": "^5.1.8",
|
85
|
-
"@types/react-window": "^1.8.2",
|
86
|
-
"@types/styled-components": "^5.1.2",
|
87
|
-
"@umijs/test": "^3.0.5",
|
88
|
-
"antd": "^4.18.1",
|
89
|
-
"babel-loader": "^8.1.0",
|
90
|
-
"copy-to-clipboard": "^3.3.1",
|
91
|
-
"css-loader": "^4.2.2",
|
92
|
-
"dumi": "^1.0.16",
|
93
|
-
"father-build": "^1.17.2",
|
94
|
-
"gh-pages": "^3.0.0",
|
95
|
-
"less-loader": "^7.0.0",
|
96
|
-
"lint-staged": "^10.0.7",
|
97
|
-
"prettier": "^2.2.1",
|
98
|
-
"style-loader": "^1.2.1",
|
99
|
-
"webpack-cli": "^3.3.12",
|
100
|
-
"yorkie": "^2.0.0"
|
101
|
-
}
|
102
|
-
}
|
1
|
+
{
|
2
|
+
"public": true,
|
3
|
+
"name": "ronds-metadata",
|
4
|
+
"version": "1.2.32",
|
5
|
+
"scripts": {
|
6
|
+
"start": "dumi dev",
|
7
|
+
"docs:build": "dumi build",
|
8
|
+
"docs:deploy": "gh-pages -d docs-dist",
|
9
|
+
"build": "father-build",
|
10
|
+
"deploy": "npm run docs:build && npm run docs:deploy",
|
11
|
+
"release": "npm run build && npm publish",
|
12
|
+
"prettier": "prettier --write \"**/*.{js,jsx,tsx,ts,less,md,json}\"",
|
13
|
+
"test": "umi-test",
|
14
|
+
"test:coverage": "umi-test --coverage",
|
15
|
+
"prepublishOnly": "npm run build"
|
16
|
+
},
|
17
|
+
"main": "es",
|
18
|
+
"module": "es",
|
19
|
+
"types": "es/index.d.ts",
|
20
|
+
"gitHooks": {
|
21
|
+
"pre-commit": "lint-staged"
|
22
|
+
},
|
23
|
+
"lint-staged": {
|
24
|
+
"*.{js,jsx,less,md,json}": [
|
25
|
+
"prettier --write"
|
26
|
+
],
|
27
|
+
"*.ts?(x)": [
|
28
|
+
"prettier --parser=typescript --write"
|
29
|
+
]
|
30
|
+
},
|
31
|
+
"files": [
|
32
|
+
"/es"
|
33
|
+
],
|
34
|
+
"dependencies": {
|
35
|
+
"@antv/x6": "^1.32.2",
|
36
|
+
"@antv/x6-react-shape": "^1.6.0",
|
37
|
+
"@babel/helper-create-regexp-features-plugin": "^7.12.13",
|
38
|
+
"@babel/runtime": "^7.11.2",
|
39
|
+
"@popperjs/core": "^2.4.4",
|
40
|
+
"@types/file-saver": "^2.0.5",
|
41
|
+
"@types/markdown-it": "^12.2.3",
|
42
|
+
"@types/markdown-navbar": "^1.4.0",
|
43
|
+
"ahooks": "^3.4.0",
|
44
|
+
"axios": "^0.21.4",
|
45
|
+
"babel-plugin-import": "^1.13.3",
|
46
|
+
"babel-plugin-transform-remove-console": "^6.9.4",
|
47
|
+
"bl": "^5.0.0",
|
48
|
+
"codemirror": "^5.63.0",
|
49
|
+
"codepage": "^1.15.0",
|
50
|
+
"css-element-queries": "^1.2.3",
|
51
|
+
"file-saver": "^2.0.5",
|
52
|
+
"github-markdown-css": "^5.1.0",
|
53
|
+
"html-docx-js-typescript": "^0.1.5",
|
54
|
+
"immer": "^9.0.14",
|
55
|
+
"lodash": "^4.17.21",
|
56
|
+
"markdown-it": "^13.0.1",
|
57
|
+
"markdown-navbar": "^1.4.3",
|
58
|
+
"qs": "^6.10.1",
|
59
|
+
"react": "^17.0.2",
|
60
|
+
"react-contenteditable": "^3.3.7",
|
61
|
+
"react-dnd": "^11.1.3",
|
62
|
+
"react-dnd-html5-backend": "^11.1.3",
|
63
|
+
"react-jexcel": "^1.0.2",
|
64
|
+
"react-markdown": "^8.0.3",
|
65
|
+
"react-markdown-editor-lite": "^1.3.2",
|
66
|
+
"react-popper": "^2.2.3",
|
67
|
+
"react-split": "^2.0.14",
|
68
|
+
"react-syntax-highlighter": "^15.5.0",
|
69
|
+
"rehype-raw": "^6.1.1",
|
70
|
+
"remark-gfm": "^3.0.1",
|
71
|
+
"rxjs": "^7.5.4",
|
72
|
+
"xlsx": "^0.18.5"
|
73
|
+
},
|
74
|
+
"peerDependencies": {
|
75
|
+
"antd": ">=4.1.5",
|
76
|
+
"react": ">=16.14.0",
|
77
|
+
"react-dom": ">=16.14.0",
|
78
|
+
"react-router": ">=5.0.0",
|
79
|
+
"styled-components": ">=4.1.1"
|
80
|
+
},
|
81
|
+
"devDependencies": {
|
82
|
+
"@types/react": "^17.0.2",
|
83
|
+
"@types/react-dom": "^17.0.2",
|
84
|
+
"@types/react-router": "^5.1.8",
|
85
|
+
"@types/react-window": "^1.8.2",
|
86
|
+
"@types/styled-components": "^5.1.2",
|
87
|
+
"@umijs/test": "^3.0.5",
|
88
|
+
"antd": "^4.18.1",
|
89
|
+
"babel-loader": "^8.1.0",
|
90
|
+
"copy-to-clipboard": "^3.3.1",
|
91
|
+
"css-loader": "^4.2.2",
|
92
|
+
"dumi": "^1.0.16",
|
93
|
+
"father-build": "^1.17.2",
|
94
|
+
"gh-pages": "^3.0.0",
|
95
|
+
"less-loader": "^7.0.0",
|
96
|
+
"lint-staged": "^10.0.7",
|
97
|
+
"prettier": "^2.2.1",
|
98
|
+
"style-loader": "^1.2.1",
|
99
|
+
"webpack-cli": "^3.3.12",
|
100
|
+
"yorkie": "^2.0.0"
|
101
|
+
}
|
102
|
+
}
|